1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for mpc 0.9.
4#
5# Report bugs to <mpc-discuss@lists.gforge.inria.fr>.
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.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: mpc-discuss@lists.gforge.inria.fr about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$1; test $as_status -eq 0 && as_status=1
370  if test "$4"; then
371    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373  fi
374  $as_echo "$as_me: error: $2" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $ECHO works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<_LT_EOF
562$*
563_LT_EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572  if test "X${echo_test_string+set}" != Xset; then
573    # find a string as large as possible, as long as the shell can cope with it
574    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578      then
579        break
580      fi
581    done
582  fi
583
584  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586     test "X$echo_testing_string" = "X$echo_test_string"; then
587    :
588  else
589    # The Solaris, AIX, and Digital Unix default echo programs unquote
590    # backslashes.  This makes it impossible to quote backslashes using
591    #   echo "$something" | sed 's/\\/\\\\/g'
592    #
593    # So, first we look for a working echo in the user's PATH.
594
595    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596    for dir in $PATH /usr/ucb; do
597      IFS="$lt_save_ifs"
598      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601         test "X$echo_testing_string" = "X$echo_test_string"; then
602        ECHO="$dir/echo"
603        break
604      fi
605    done
606    IFS="$lt_save_ifs"
607
608    if test "X$ECHO" = Xecho; then
609      # We didn't find a better echo, so look for alternatives.
610      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612         test "X$echo_testing_string" = "X$echo_test_string"; then
613        # This shell has a builtin print -r that does the trick.
614        ECHO='print -r'
615      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616	   test "X$CONFIG_SHELL" != X/bin/ksh; then
617        # If we have ksh, try running configure again with it.
618        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619        export ORIGINAL_CONFIG_SHELL
620        CONFIG_SHELL=/bin/ksh
621        export CONFIG_SHELL
622        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623      else
624        # Try using printf.
625        ECHO='printf %s\n'
626        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628	   test "X$echo_testing_string" = "X$echo_test_string"; then
629	  # Cool, printf works
630	  :
631        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632	     test "X$echo_testing_string" = 'X\t' &&
633	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634	     test "X$echo_testing_string" = "X$echo_test_string"; then
635	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636	  export CONFIG_SHELL
637	  SHELL="$CONFIG_SHELL"
638	  export SHELL
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	     test "X$echo_testing_string" = 'X\t' &&
642	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	     test "X$echo_testing_string" = "X$echo_test_string"; then
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        else
646	  # maybe with a smaller string...
647	  prev=:
648
649	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651	    then
652	      break
653	    fi
654	    prev="$cmd"
655	  done
656
657	  if test "$prev" != 'sed 50q "$0"'; then
658	    echo_test_string=`eval $prev`
659	    export echo_test_string
660	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661	  else
662	    # Oops.  We lost completely, so just stick with echo.
663	    ECHO=echo
664	  fi
665        fi
666      fi
667    fi
668  fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='mpc'
703PACKAGE_TARNAME='mpc'
704PACKAGE_VERSION='0.9'
705PACKAGE_STRING='mpc 0.9'
706PACKAGE_BUGREPORT='mpc-discuss@lists.gforge.inria.fr'
707PACKAGE_URL=''
708
709ac_unique_file="src/mpc-impl.h"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724#  include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729#  include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749WARNINGCFLAGS
750MPC_LOG_H
751LIBOBJS
752OTOOL64
753OTOOL
754LIPO
755NMEDIT
756DSYMUTIL
757lt_ECHO
758RANLIB
759AR
760OBJDUMP
761LN_S
762NM
763ac_ct_DUMPBIN
764DUMPBIN
765LD
766FGREP
767LIBTOOL
768SED
769EGREP
770GREP
771CPP
772am__fastdepCC_FALSE
773am__fastdepCC_TRUE
774CCDEPMODE
775AMDEPBACKSLASH
776AMDEP_FALSE
777AMDEP_TRUE
778am__quote
779am__include
780DEPDIR
781OBJEXT
782EXEEXT
783ac_ct_CC
784CPPFLAGS
785LDFLAGS
786CFLAGS
787CC
788host_os
789host_vendor
790host_cpu
791host
792build_os
793build_vendor
794build_cpu
795build
796MAINT
797MAINTAINER_MODE_FALSE
798MAINTAINER_MODE_TRUE
799am__untar
800am__tar
801AMTAR
802am__leading_dot
803SET_MAKE
804AWK
805mkdir_p
806MKDIR_P
807INSTALL_STRIP_PROGRAM
808STRIP
809install_sh
810MAKEINFO
811AUTOHEADER
812AUTOMAKE
813AUTOCONF
814ACLOCAL
815VERSION
816PACKAGE
817CYGPATH_W
818am__isrc
819INSTALL_DATA
820INSTALL_SCRIPT
821INSTALL_PROGRAM
822target_alias
823host_alias
824build_alias
825LIBS
826ECHO_T
827ECHO_N
828ECHO_C
829DEFS
830mandir
831localedir
832libdir
833psdir
834pdfdir
835dvidir
836htmldir
837infodir
838docdir
839oldincludedir
840includedir
841localstatedir
842sharedstatedir
843sysconfdir
844datadir
845datarootdir
846libexecdir
847sbindir
848bindir
849program_transform_name
850prefix
851exec_prefix
852PACKAGE_URL
853PACKAGE_BUGREPORT
854PACKAGE_STRING
855PACKAGE_VERSION
856PACKAGE_TARNAME
857PACKAGE_NAME
858PATH_SEPARATOR
859SHELL'
860ac_subst_files=''
861ac_user_opts='
862enable_option_checking
863enable_maintainer_mode
864with_mpfr_include
865with_mpfr_lib
866with_mpfr
867with_gmp_include
868with_gmp_lib
869with_gmp
870enable_logging
871enable_dependency_tracking
872enable_shared
873enable_static
874with_pic
875enable_fast_install
876with_gnu_ld
877enable_libtool_lock
878'
879      ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
885LIBS
886CPPFLAGS
887CPP'
888
889
890# Initialize some variables set by options.
891ac_init_help=
892ac_init_version=false
893ac_unrecognized_opts=
894ac_unrecognized_sep=
895# The variables have the same names as the options, with
896# dashes changed to underlines.
897cache_file=/dev/null
898exec_prefix=NONE
899no_create=
900no_recursion=
901prefix=NONE
902program_prefix=NONE
903program_suffix=NONE
904program_transform_name=s,x,x,
905silent=
906site=
907srcdir=
908verbose=
909x_includes=NONE
910x_libraries=NONE
911
912# Installation directory options.
913# These are left unexpanded so users can "make install exec_prefix=/foo"
914# and all the variables that are supposed to be based on exec_prefix
915# by default will actually change.
916# Use braces instead of parens because sh, perl, etc. also accept them.
917# (The list follows the same order as the GNU Coding Standards.)
918bindir='${exec_prefix}/bin'
919sbindir='${exec_prefix}/sbin'
920libexecdir='${exec_prefix}/libexec'
921datarootdir='${prefix}/share'
922datadir='${datarootdir}'
923sysconfdir='${prefix}/etc'
924sharedstatedir='${prefix}/com'
925localstatedir='${prefix}/var'
926includedir='${prefix}/include'
927oldincludedir='/usr/include'
928docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929infodir='${datarootdir}/info'
930htmldir='${docdir}'
931dvidir='${docdir}'
932pdfdir='${docdir}'
933psdir='${docdir}'
934libdir='${exec_prefix}/lib'
935localedir='${datarootdir}/locale'
936mandir='${datarootdir}/man'
937
938ac_prev=
939ac_dashdash=
940for ac_option
941do
942  # If the previous option needs an argument, assign it.
943  if test -n "$ac_prev"; then
944    eval $ac_prev=\$ac_option
945    ac_prev=
946    continue
947  fi
948
949  case $ac_option in
950  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951  *=)   ac_optarg= ;;
952  *)    ac_optarg=yes ;;
953  esac
954
955  # Accept the important Cygnus configure options, so we can diagnose typos.
956
957  case $ac_dashdash$ac_option in
958  --)
959    ac_dashdash=yes ;;
960
961  -bindir | --bindir | --bindi | --bind | --bin | --bi)
962    ac_prev=bindir ;;
963  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964    bindir=$ac_optarg ;;
965
966  -build | --build | --buil | --bui | --bu)
967    ac_prev=build_alias ;;
968  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969    build_alias=$ac_optarg ;;
970
971  -cache-file | --cache-file | --cache-fil | --cache-fi \
972  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973    ac_prev=cache_file ;;
974  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976    cache_file=$ac_optarg ;;
977
978  --config-cache | -C)
979    cache_file=config.cache ;;
980
981  -datadir | --datadir | --datadi | --datad)
982    ac_prev=datadir ;;
983  -datadir=* | --datadir=* | --datadi=* | --datad=*)
984    datadir=$ac_optarg ;;
985
986  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987  | --dataroo | --dataro | --datar)
988    ac_prev=datarootdir ;;
989  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991    datarootdir=$ac_optarg ;;
992
993  -disable-* | --disable-*)
994    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995    # Reject names that are not valid shell variable names.
996    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997      as_fn_error $? "invalid feature name: $ac_useropt"
998    ac_useropt_orig=$ac_useropt
999    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000    case $ac_user_opts in
1001      *"
1002"enable_$ac_useropt"
1003"*) ;;
1004      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005	 ac_unrecognized_sep=', ';;
1006    esac
1007    eval enable_$ac_useropt=no ;;
1008
1009  -docdir | --docdir | --docdi | --doc | --do)
1010    ac_prev=docdir ;;
1011  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012    docdir=$ac_optarg ;;
1013
1014  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015    ac_prev=dvidir ;;
1016  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017    dvidir=$ac_optarg ;;
1018
1019  -enable-* | --enable-*)
1020    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021    # Reject names that are not valid shell variable names.
1022    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023      as_fn_error $? "invalid feature name: $ac_useropt"
1024    ac_useropt_orig=$ac_useropt
1025    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026    case $ac_user_opts in
1027      *"
1028"enable_$ac_useropt"
1029"*) ;;
1030      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031	 ac_unrecognized_sep=', ';;
1032    esac
1033    eval enable_$ac_useropt=\$ac_optarg ;;
1034
1035  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037  | --exec | --exe | --ex)
1038    ac_prev=exec_prefix ;;
1039  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041  | --exec=* | --exe=* | --ex=*)
1042    exec_prefix=$ac_optarg ;;
1043
1044  -gas | --gas | --ga | --g)
1045    # Obsolete; use --with-gas.
1046    with_gas=yes ;;
1047
1048  -help | --help | --hel | --he | -h)
1049    ac_init_help=long ;;
1050  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051    ac_init_help=recursive ;;
1052  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053    ac_init_help=short ;;
1054
1055  -host | --host | --hos | --ho)
1056    ac_prev=host_alias ;;
1057  -host=* | --host=* | --hos=* | --ho=*)
1058    host_alias=$ac_optarg ;;
1059
1060  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061    ac_prev=htmldir ;;
1062  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063  | --ht=*)
1064    htmldir=$ac_optarg ;;
1065
1066  -includedir | --includedir | --includedi | --included | --include \
1067  | --includ | --inclu | --incl | --inc)
1068    ac_prev=includedir ;;
1069  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070  | --includ=* | --inclu=* | --incl=* | --inc=*)
1071    includedir=$ac_optarg ;;
1072
1073  -infodir | --infodir | --infodi | --infod | --info | --inf)
1074    ac_prev=infodir ;;
1075  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076    infodir=$ac_optarg ;;
1077
1078  -libdir | --libdir | --libdi | --libd)
1079    ac_prev=libdir ;;
1080  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081    libdir=$ac_optarg ;;
1082
1083  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084  | --libexe | --libex | --libe)
1085    ac_prev=libexecdir ;;
1086  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087  | --libexe=* | --libex=* | --libe=*)
1088    libexecdir=$ac_optarg ;;
1089
1090  -localedir | --localedir | --localedi | --localed | --locale)
1091    ac_prev=localedir ;;
1092  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093    localedir=$ac_optarg ;;
1094
1095  -localstatedir | --localstatedir | --localstatedi | --localstated \
1096  | --localstate | --localstat | --localsta | --localst | --locals)
1097    ac_prev=localstatedir ;;
1098  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100    localstatedir=$ac_optarg ;;
1101
1102  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103    ac_prev=mandir ;;
1104  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105    mandir=$ac_optarg ;;
1106
1107  -nfp | --nfp | --nf)
1108    # Obsolete; use --without-fp.
1109    with_fp=no ;;
1110
1111  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112  | --no-cr | --no-c | -n)
1113    no_create=yes ;;
1114
1115  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117    no_recursion=yes ;;
1118
1119  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121  | --oldin | --oldi | --old | --ol | --o)
1122    ac_prev=oldincludedir ;;
1123  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126    oldincludedir=$ac_optarg ;;
1127
1128  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129    ac_prev=prefix ;;
1130  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131    prefix=$ac_optarg ;;
1132
1133  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134  | --program-pre | --program-pr | --program-p)
1135    ac_prev=program_prefix ;;
1136  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138    program_prefix=$ac_optarg ;;
1139
1140  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141  | --program-suf | --program-su | --program-s)
1142    ac_prev=program_suffix ;;
1143  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145    program_suffix=$ac_optarg ;;
1146
1147  -program-transform-name | --program-transform-name \
1148  | --program-transform-nam | --program-transform-na \
1149  | --program-transform-n | --program-transform- \
1150  | --program-transform | --program-transfor \
1151  | --program-transfo | --program-transf \
1152  | --program-trans | --program-tran \
1153  | --progr-tra | --program-tr | --program-t)
1154    ac_prev=program_transform_name ;;
1155  -program-transform-name=* | --program-transform-name=* \
1156  | --program-transform-nam=* | --program-transform-na=* \
1157  | --program-transform-n=* | --program-transform-=* \
1158  | --program-transform=* | --program-transfor=* \
1159  | --program-transfo=* | --program-transf=* \
1160  | --program-trans=* | --program-tran=* \
1161  | --progr-tra=* | --program-tr=* | --program-t=*)
1162    program_transform_name=$ac_optarg ;;
1163
1164  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165    ac_prev=pdfdir ;;
1166  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167    pdfdir=$ac_optarg ;;
1168
1169  -psdir | --psdir | --psdi | --psd | --ps)
1170    ac_prev=psdir ;;
1171  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172    psdir=$ac_optarg ;;
1173
1174  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175  | -silent | --silent | --silen | --sile | --sil)
1176    silent=yes ;;
1177
1178  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179    ac_prev=sbindir ;;
1180  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181  | --sbi=* | --sb=*)
1182    sbindir=$ac_optarg ;;
1183
1184  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186  | --sharedst | --shareds | --shared | --share | --shar \
1187  | --sha | --sh)
1188    ac_prev=sharedstatedir ;;
1189  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192  | --sha=* | --sh=*)
1193    sharedstatedir=$ac_optarg ;;
1194
1195  -site | --site | --sit)
1196    ac_prev=site ;;
1197  -site=* | --site=* | --sit=*)
1198    site=$ac_optarg ;;
1199
1200  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201    ac_prev=srcdir ;;
1202  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203    srcdir=$ac_optarg ;;
1204
1205  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206  | --syscon | --sysco | --sysc | --sys | --sy)
1207    ac_prev=sysconfdir ;;
1208  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210    sysconfdir=$ac_optarg ;;
1211
1212  -target | --target | --targe | --targ | --tar | --ta | --t)
1213    ac_prev=target_alias ;;
1214  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215    target_alias=$ac_optarg ;;
1216
1217  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218    verbose=yes ;;
1219
1220  -version | --version | --versio | --versi | --vers | -V)
1221    ac_init_version=: ;;
1222
1223  -with-* | --with-*)
1224    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225    # Reject names that are not valid shell variable names.
1226    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227      as_fn_error $? "invalid package name: $ac_useropt"
1228    ac_useropt_orig=$ac_useropt
1229    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230    case $ac_user_opts in
1231      *"
1232"with_$ac_useropt"
1233"*) ;;
1234      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235	 ac_unrecognized_sep=', ';;
1236    esac
1237    eval with_$ac_useropt=\$ac_optarg ;;
1238
1239  -without-* | --without-*)
1240    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241    # Reject names that are not valid shell variable names.
1242    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243      as_fn_error $? "invalid package name: $ac_useropt"
1244    ac_useropt_orig=$ac_useropt
1245    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246    case $ac_user_opts in
1247      *"
1248"with_$ac_useropt"
1249"*) ;;
1250      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251	 ac_unrecognized_sep=', ';;
1252    esac
1253    eval with_$ac_useropt=no ;;
1254
1255  --x)
1256    # Obsolete; use --with-x.
1257    with_x=yes ;;
1258
1259  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260  | --x-incl | --x-inc | --x-in | --x-i)
1261    ac_prev=x_includes ;;
1262  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264    x_includes=$ac_optarg ;;
1265
1266  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268    ac_prev=x_libraries ;;
1269  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271    x_libraries=$ac_optarg ;;
1272
1273  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274Try \`$0 --help' for more information"
1275    ;;
1276
1277  *=*)
1278    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279    # Reject names that are not valid shell variable names.
1280    case $ac_envvar in #(
1281      '' | [0-9]* | *[!_$as_cr_alnum]* )
1282      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283    esac
1284    eval $ac_envvar=\$ac_optarg
1285    export $ac_envvar ;;
1286
1287  *)
1288    # FIXME: should be removed in autoconf 3.0.
1289    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293    ;;
1294
1295  esac
1296done
1297
1298if test -n "$ac_prev"; then
1299  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300  as_fn_error $? "missing argument to $ac_option"
1301fi
1302
1303if test -n "$ac_unrecognized_opts"; then
1304  case $enable_option_checking in
1305    no) ;;
1306    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308  esac
1309fi
1310
1311# Check all directory arguments for consistency.
1312for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313		datadir sysconfdir sharedstatedir localstatedir includedir \
1314		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315		libdir localedir mandir
1316do
1317  eval ac_val=\$$ac_var
1318  # Remove trailing slashes.
1319  case $ac_val in
1320    */ )
1321      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322      eval $ac_var=\$ac_val;;
1323  esac
1324  # Be sure to have absolute directory names.
1325  case $ac_val in
1326    [\\/$]* | ?:[\\/]* )  continue;;
1327    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328  esac
1329  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330done
1331
1332# There might be people who depend on the old broken behavior: `$host'
1333# used to hold the argument of --host etc.
1334# FIXME: To remove some day.
1335build=$build_alias
1336host=$host_alias
1337target=$target_alias
1338
1339# FIXME: To remove some day.
1340if test "x$host_alias" != x; then
1341  if test "x$build_alias" = x; then
1342    cross_compiling=maybe
1343    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1344    If a cross compiler is detected then cross compile mode will be used" >&2
1345  elif test "x$build_alias" != "x$host_alias"; then
1346    cross_compiling=yes
1347  fi
1348fi
1349
1350ac_tool_prefix=
1351test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353test "$silent" = yes && exec 6>/dev/null
1354
1355
1356ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357ac_ls_di=`ls -di .` &&
1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359  as_fn_error $? "working directory cannot be determined"
1360test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361  as_fn_error $? "pwd does not report name of working directory"
1362
1363
1364# Find the source files, if location was not specified.
1365if test -z "$srcdir"; then
1366  ac_srcdir_defaulted=yes
1367  # Try the directory containing this script, then the parent directory.
1368  ac_confdir=`$as_dirname -- "$as_myself" ||
1369$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370	 X"$as_myself" : 'X\(//\)[^/]' \| \
1371	 X"$as_myself" : 'X\(//\)$' \| \
1372	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373$as_echo X"$as_myself" |
1374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375	    s//\1/
1376	    q
1377	  }
1378	  /^X\(\/\/\)[^/].*/{
1379	    s//\1/
1380	    q
1381	  }
1382	  /^X\(\/\/\)$/{
1383	    s//\1/
1384	    q
1385	  }
1386	  /^X\(\/\).*/{
1387	    s//\1/
1388	    q
1389	  }
1390	  s/.*/./; q'`
1391  srcdir=$ac_confdir
1392  if test ! -r "$srcdir/$ac_unique_file"; then
1393    srcdir=..
1394  fi
1395else
1396  ac_srcdir_defaulted=no
1397fi
1398if test ! -r "$srcdir/$ac_unique_file"; then
1399  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401fi
1402ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403ac_abs_confdir=`(
1404	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405	pwd)`
1406# When building in place, set srcdir=.
1407if test "$ac_abs_confdir" = "$ac_pwd"; then
1408  srcdir=.
1409fi
1410# Remove unnecessary trailing slashes from srcdir.
1411# Double slashes in file names in object file debugging info
1412# mess up M-x gdb in Emacs.
1413case $srcdir in
1414*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415esac
1416for ac_var in $ac_precious_vars; do
1417  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418  eval ac_env_${ac_var}_value=\$${ac_var}
1419  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421done
1422
1423#
1424# Report the --help message.
1425#
1426if test "$ac_init_help" = "long"; then
1427  # Omit some internal or obsolete options to make the list less imposing.
1428  # This message is too long to be a string in the A/UX 3.1 sh.
1429  cat <<_ACEOF
1430\`configure' configures mpc 0.9 to adapt to many kinds of systems.
1431
1432Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435VAR=VALUE.  See below for descriptions of some of the useful variables.
1436
1437Defaults for the options are specified in brackets.
1438
1439Configuration:
1440  -h, --help              display this help and exit
1441      --help=short        display options specific to this package
1442      --help=recursive    display the short help of all the included packages
1443  -V, --version           display version information and exit
1444  -q, --quiet, --silent   do not print \`checking ...' messages
1445      --cache-file=FILE   cache test results in FILE [disabled]
1446  -C, --config-cache      alias for \`--cache-file=config.cache'
1447  -n, --no-create         do not create output files
1448      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1449
1450Installation directories:
1451  --prefix=PREFIX         install architecture-independent files in PREFIX
1452                          [$ac_default_prefix]
1453  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1454                          [PREFIX]
1455
1456By default, \`make install' will install all the files in
1457\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1458an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459for instance \`--prefix=\$HOME'.
1460
1461For better control, use the options below.
1462
1463Fine tuning of the installation directories:
1464  --bindir=DIR            user executables [EPREFIX/bin]
1465  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1466  --libexecdir=DIR        program executables [EPREFIX/libexec]
1467  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1468  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1469  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1470  --libdir=DIR            object code libraries [EPREFIX/lib]
1471  --includedir=DIR        C header files [PREFIX/include]
1472  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1473  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1474  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1475  --infodir=DIR           info documentation [DATAROOTDIR/info]
1476  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1477  --mandir=DIR            man documentation [DATAROOTDIR/man]
1478  --docdir=DIR            documentation root [DATAROOTDIR/doc/mpc]
1479  --htmldir=DIR           html documentation [DOCDIR]
1480  --dvidir=DIR            dvi documentation [DOCDIR]
1481  --pdfdir=DIR            pdf documentation [DOCDIR]
1482  --psdir=DIR             ps documentation [DOCDIR]
1483_ACEOF
1484
1485  cat <<\_ACEOF
1486
1487Program names:
1488  --program-prefix=PREFIX            prepend PREFIX to installed program names
1489  --program-suffix=SUFFIX            append SUFFIX to installed program names
1490  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1491
1492System types:
1493  --build=BUILD     configure for building on BUILD [guessed]
1494  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1495_ACEOF
1496fi
1497
1498if test -n "$ac_init_help"; then
1499  case $ac_init_help in
1500     short | recursive ) echo "Configuration of mpc 0.9:";;
1501   esac
1502  cat <<\_ACEOF
1503
1504Optional Features:
1505  --disable-option-checking  ignore unrecognized --enable/--with options
1506  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1507  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1508  --enable-maintainer-mode  enable make rules and dependencies not useful
1509			  (and sometimes confusing) to the casual installer
1510  --enable-logging        enable logging of function calls to stderr (default
1511                          = no)
1512  --disable-dependency-tracking  speeds up one-time build
1513  --enable-dependency-tracking   do not reject slow dependency extractors
1514  --enable-shared[=PKGS]  build shared libraries [default=yes]
1515  --enable-static[=PKGS]  build static libraries [default=yes]
1516  --enable-fast-install[=PKGS]
1517                          optimize for fast installation [default=yes]
1518  --disable-libtool-lock  avoid locking (might break parallel builds)
1519
1520Optional Packages:
1521  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1522  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1523  --with-mpfr-include=DIR MPFR include directory
1524  --with-mpfr-lib=DIR     MPFR lib directory
1525  --with-mpfr=DIR         MPFR install directory
1526  --with-gmp-include=DIR  GMP include directory
1527  --with-gmp-lib=DIR      GMP lib directory
1528  --with-gmp=DIR          GMP install directory
1529  --with-pic              try to use only PIC/non-PIC objects [default=use
1530                          both]
1531  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1532
1533Some influential environment variables:
1534  CC          C compiler command
1535  CFLAGS      C compiler flags
1536  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1537              nonstandard directory <lib dir>
1538  LIBS        libraries to pass to the linker, e.g. -l<library>
1539  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540              you have headers in a nonstandard directory <include dir>
1541  CPP         C preprocessor
1542
1543Use these variables to override the choices made by `configure' or to help
1544it to find libraries and programs with nonstandard names/locations.
1545
1546Report bugs to <mpc-discuss@lists.gforge.inria.fr>.
1547_ACEOF
1548ac_status=$?
1549fi
1550
1551if test "$ac_init_help" = "recursive"; then
1552  # If there are subdirs, report their specific --help.
1553  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554    test -d "$ac_dir" ||
1555      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556      continue
1557    ac_builddir=.
1558
1559case "$ac_dir" in
1560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561*)
1562  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563  # A ".." for each directory in $ac_dir_suffix.
1564  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565  case $ac_top_builddir_sub in
1566  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568  esac ;;
1569esac
1570ac_abs_top_builddir=$ac_pwd
1571ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572# for backward compatibility:
1573ac_top_builddir=$ac_top_build_prefix
1574
1575case $srcdir in
1576  .)  # We are building in place.
1577    ac_srcdir=.
1578    ac_top_srcdir=$ac_top_builddir_sub
1579    ac_abs_top_srcdir=$ac_pwd ;;
1580  [\\/]* | ?:[\\/]* )  # Absolute name.
1581    ac_srcdir=$srcdir$ac_dir_suffix;
1582    ac_top_srcdir=$srcdir
1583    ac_abs_top_srcdir=$srcdir ;;
1584  *) # Relative name.
1585    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586    ac_top_srcdir=$ac_top_build_prefix$srcdir
1587    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588esac
1589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591    cd "$ac_dir" || { ac_status=$?; continue; }
1592    # Check for guested configure.
1593    if test -f "$ac_srcdir/configure.gnu"; then
1594      echo &&
1595      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596    elif test -f "$ac_srcdir/configure"; then
1597      echo &&
1598      $SHELL "$ac_srcdir/configure" --help=recursive
1599    else
1600      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601    fi || ac_status=$?
1602    cd "$ac_pwd" || { ac_status=$?; break; }
1603  done
1604fi
1605
1606test -n "$ac_init_help" && exit $ac_status
1607if $ac_init_version; then
1608  cat <<\_ACEOF
1609mpc configure 0.9
1610generated by GNU Autoconf 2.67
1611
1612Copyright (C) 2010 Free Software Foundation, Inc.
1613This configure script is free software; the Free Software Foundation
1614gives unlimited permission to copy, distribute and modify it.
1615_ACEOF
1616  exit
1617fi
1618
1619## ------------------------ ##
1620## Autoconf initialization. ##
1621## ------------------------ ##
1622
1623# ac_fn_c_try_compile LINENO
1624# --------------------------
1625# Try to compile conftest.$ac_ext, and return whether this succeeded.
1626ac_fn_c_try_compile ()
1627{
1628  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629  rm -f conftest.$ac_objext
1630  if { { ac_try="$ac_compile"
1631case "(($ac_try" in
1632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633  *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637  (eval "$ac_compile") 2>conftest.err
1638  ac_status=$?
1639  if test -s conftest.err; then
1640    grep -v '^ *+' conftest.err >conftest.er1
1641    cat conftest.er1 >&5
1642    mv -f conftest.er1 conftest.err
1643  fi
1644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645  test $ac_status = 0; } && {
1646	 test -z "$ac_c_werror_flag" ||
1647	 test ! -s conftest.err
1648       } && test -s conftest.$ac_objext; then :
1649  ac_retval=0
1650else
1651  $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
1653
1654	ac_retval=1
1655fi
1656  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657  as_fn_set_status $ac_retval
1658
1659} # ac_fn_c_try_compile
1660
1661# ac_fn_c_try_cpp LINENO
1662# ----------------------
1663# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_cpp ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  if { { ac_try="$ac_cpp conftest.$ac_ext"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } > conftest.i && {
1683	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       }; then :
1686  ac_retval=0
1687else
1688  $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691    ac_retval=1
1692fi
1693  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_cpp
1697
1698# ac_fn_c_try_link LINENO
1699# -----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_link ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  rm -f conftest.$ac_objext conftest$ac_exeext
1705  if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_link") 2>conftest.err
1713  ac_status=$?
1714  if test -s conftest.err; then
1715    grep -v '^ *+' conftest.err >conftest.er1
1716    cat conftest.er1 >&5
1717    mv -f conftest.er1 conftest.err
1718  fi
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } && {
1721	 test -z "$ac_c_werror_flag" ||
1722	 test ! -s conftest.err
1723       } && test -s conftest$ac_exeext && {
1724	 test "$cross_compiling" = yes ||
1725	 $as_test_x conftest$ac_exeext
1726       }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732	ac_retval=1
1733fi
1734  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736  # interfere with the next link command; also delete a directory that is
1737  # left behind by Apple's compiler.  We do this before executing the actions.
1738  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_link
1743
1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745# -------------------------------------------------------
1746# Tests whether HEADER exists and can be compiled using the include files in
1747# INCLUDES, setting the cache variable VAR accordingly.
1748ac_fn_c_check_header_compile ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
1753if eval "test \"\${$3+set}\"" = set; then :
1754  $as_echo_n "(cached) " >&6
1755else
1756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h.  */
1758$4
1759#include <$2>
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762  eval "$3=yes"
1763else
1764  eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772
1773} # ac_fn_c_check_header_compile
1774
1775# ac_fn_c_try_run LINENO
1776# ----------------------
1777# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778# that executables *can* be run.
1779ac_fn_c_try_run ()
1780{
1781  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782  if { { ac_try="$ac_link"
1783case "(($ac_try" in
1784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785  *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789  (eval "$ac_link") 2>&5
1790  ac_status=$?
1791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793  { { case "(($ac_try" in
1794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795  *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799  (eval "$ac_try") 2>&5
1800  ac_status=$?
1801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802  test $ac_status = 0; }; }; then :
1803  ac_retval=0
1804else
1805  $as_echo "$as_me: program exited with status $ac_status" >&5
1806       $as_echo "$as_me: failed program was:" >&5
1807sed 's/^/| /' conftest.$ac_ext >&5
1808
1809       ac_retval=$ac_status
1810fi
1811  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813  as_fn_set_status $ac_retval
1814
1815} # ac_fn_c_try_run
1816
1817# ac_fn_c_check_func LINENO FUNC VAR
1818# ----------------------------------
1819# Tests whether FUNC exists, setting the cache variable VAR accordingly
1820ac_fn_c_check_func ()
1821{
1822  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
1825if eval "test \"\${$3+set}\"" = set; then :
1826  $as_echo_n "(cached) " >&6
1827else
1828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1832#define $2 innocuous_$2
1833
1834/* System header to define __stub macros and hopefully few prototypes,
1835    which can conflict with char $2 (); below.
1836    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1837    <limits.h> exists even on freestanding compilers.  */
1838
1839#ifdef __STDC__
1840# include <limits.h>
1841#else
1842# include <assert.h>
1843#endif
1844
1845#undef $2
1846
1847/* Override any GCC internal prototype to avoid an error.
1848   Use char because int might match the return type of a GCC
1849   builtin and then its argument prototype would still apply.  */
1850#ifdef __cplusplus
1851extern "C"
1852#endif
1853char $2 ();
1854/* The GNU C library defines this for functions which it implements
1855    to always fail with ENOSYS.  Some functions are actually named
1856    something starting with __ and the normal name is an alias.  */
1857#if defined __stub_$2 || defined __stub___$2
1858choke me
1859#endif
1860
1861int
1862main ()
1863{
1864return $2 ();
1865  ;
1866  return 0;
1867}
1868_ACEOF
1869if ac_fn_c_try_link "$LINENO"; then :
1870  eval "$3=yes"
1871else
1872  eval "$3=no"
1873fi
1874rm -f core conftest.err conftest.$ac_objext \
1875    conftest$ac_exeext conftest.$ac_ext
1876fi
1877eval ac_res=\$$3
1878	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
1880  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881
1882} # ac_fn_c_check_func
1883
1884# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1885# -------------------------------------------------------
1886# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1887# the include files in INCLUDES and setting the cache variable VAR
1888# accordingly.
1889ac_fn_c_check_header_mongrel ()
1890{
1891  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892  if eval "test \"\${$3+set}\"" = set; then :
1893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval "test \"\${$3+set}\"" = set; then :
1896  $as_echo_n "(cached) " >&6
1897fi
1898eval ac_res=\$$3
1899	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
1901else
1902  # Is the header compilable?
1903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1904$as_echo_n "checking $2 usability... " >&6; }
1905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907$4
1908#include <$2>
1909_ACEOF
1910if ac_fn_c_try_compile "$LINENO"; then :
1911  ac_header_compiler=yes
1912else
1913  ac_header_compiler=no
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1917$as_echo "$ac_header_compiler" >&6; }
1918
1919# Is the header present?
1920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1921$as_echo_n "checking $2 presence... " >&6; }
1922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h.  */
1924#include <$2>
1925_ACEOF
1926if ac_fn_c_try_cpp "$LINENO"; then :
1927  ac_header_preproc=yes
1928else
1929  ac_header_preproc=no
1930fi
1931rm -f conftest.err conftest.i conftest.$ac_ext
1932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1933$as_echo "$ac_header_preproc" >&6; }
1934
1935# So?  What about this header?
1936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1937  yes:no: )
1938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1939$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942    ;;
1943  no:yes:* )
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1945$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1947$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1949$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1951$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1952    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954( $as_echo "## ------------------------------------------------ ##
1955## Report this to mpc-discuss@lists.gforge.inria.fr ##
1956## ------------------------------------------------ ##"
1957     ) | sed "s/^/$as_me: WARNING:     /" >&2
1958    ;;
1959esac
1960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961$as_echo_n "checking for $2... " >&6; }
1962if eval "test \"\${$3+set}\"" = set; then :
1963  $as_echo_n "(cached) " >&6
1964else
1965  eval "$3=\$ac_header_compiler"
1966fi
1967eval ac_res=\$$3
1968	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970fi
1971  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972
1973} # ac_fn_c_check_header_mongrel
1974
1975# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1976# -------------------------------------------
1977# Tests whether TYPE exists after having included INCLUDES, setting cache
1978# variable VAR accordingly.
1979ac_fn_c_check_type ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
1984if eval "test \"\${$3+set}\"" = set; then :
1985  $as_echo_n "(cached) " >&6
1986else
1987  eval "$3=no"
1988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$4
1991int
1992main ()
1993{
1994if (sizeof ($2))
1995	 return 0;
1996  ;
1997  return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h.  */
2003$4
2004int
2005main ()
2006{
2007if (sizeof (($2)))
2008	    return 0;
2009  ;
2010  return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014
2015else
2016  eval "$3=yes"
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021fi
2022eval ac_res=\$$3
2023	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024$as_echo "$ac_res" >&6; }
2025  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026
2027} # ac_fn_c_check_type
2028cat >config.log <<_ACEOF
2029This file contains any messages produced by compilers while
2030running configure, to aid debugging if configure makes a mistake.
2031
2032It was created by mpc $as_me 0.9, which was
2033generated by GNU Autoconf 2.67.  Invocation command line was
2034
2035  $ $0 $@
2036
2037_ACEOF
2038exec 5>>config.log
2039{
2040cat <<_ASUNAME
2041## --------- ##
2042## Platform. ##
2043## --------- ##
2044
2045hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050
2051/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2053
2054/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2055/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2056/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2058/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2059/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2060/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2061
2062_ASUNAME
2063
2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065for as_dir in $PATH
2066do
2067  IFS=$as_save_IFS
2068  test -z "$as_dir" && as_dir=.
2069    $as_echo "PATH: $as_dir"
2070  done
2071IFS=$as_save_IFS
2072
2073} >&5
2074
2075cat >&5 <<_ACEOF
2076
2077
2078## ----------- ##
2079## Core tests. ##
2080## ----------- ##
2081
2082_ACEOF
2083
2084
2085# Keep a trace of the command line.
2086# Strip out --no-create and --no-recursion so they do not pile up.
2087# Strip out --silent because we don't want to record it for future runs.
2088# Also quote any args containing shell meta-characters.
2089# Make two passes to allow for proper duplicate-argument suppression.
2090ac_configure_args=
2091ac_configure_args0=
2092ac_configure_args1=
2093ac_must_keep_next=false
2094for ac_pass in 1 2
2095do
2096  for ac_arg
2097  do
2098    case $ac_arg in
2099    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101    | -silent | --silent | --silen | --sile | --sil)
2102      continue ;;
2103    *\'*)
2104      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105    esac
2106    case $ac_pass in
2107    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2108    2)
2109      as_fn_append ac_configure_args1 " '$ac_arg'"
2110      if test $ac_must_keep_next = true; then
2111	ac_must_keep_next=false # Got value, back to normal.
2112      else
2113	case $ac_arg in
2114	  *=* | --config-cache | -C | -disable-* | --disable-* \
2115	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117	  | -with-* | --with-* | -without-* | --without-* | --x)
2118	    case "$ac_configure_args0 " in
2119	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120	    esac
2121	    ;;
2122	  -* ) ac_must_keep_next=true ;;
2123	esac
2124      fi
2125      as_fn_append ac_configure_args " '$ac_arg'"
2126      ;;
2127    esac
2128  done
2129done
2130{ ac_configure_args0=; unset ac_configure_args0;}
2131{ ac_configure_args1=; unset ac_configure_args1;}
2132
2133# When interrupted or exit'd, cleanup temporary files, and complete
2134# config.log.  We remove comments because anyway the quotes in there
2135# would cause problems or look ugly.
2136# WARNING: Use '\'' to represent an apostrophe within the trap.
2137# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138trap 'exit_status=$?
2139  # Save into config.log some information that might help in debugging.
2140  {
2141    echo
2142
2143    $as_echo "## ---------------- ##
2144## Cache variables. ##
2145## ---------------- ##"
2146    echo
2147    # The following way of writing the cache mishandles newlines in values,
2148(
2149  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150    eval ac_val=\$$ac_var
2151    case $ac_val in #(
2152    *${as_nl}*)
2153      case $ac_var in #(
2154      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156      esac
2157      case $ac_var in #(
2158      _ | IFS | as_nl) ;; #(
2159      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160      *) { eval $ac_var=; unset $ac_var;} ;;
2161      esac ;;
2162    esac
2163  done
2164  (set) 2>&1 |
2165    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166    *${as_nl}ac_space=\ *)
2167      sed -n \
2168	"s/'\''/'\''\\\\'\'''\''/g;
2169	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170      ;; #(
2171    *)
2172      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173      ;;
2174    esac |
2175    sort
2176)
2177    echo
2178
2179    $as_echo "## ----------------- ##
2180## Output variables. ##
2181## ----------------- ##"
2182    echo
2183    for ac_var in $ac_subst_vars
2184    do
2185      eval ac_val=\$$ac_var
2186      case $ac_val in
2187      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188      esac
2189      $as_echo "$ac_var='\''$ac_val'\''"
2190    done | sort
2191    echo
2192
2193    if test -n "$ac_subst_files"; then
2194      $as_echo "## ------------------- ##
2195## File substitutions. ##
2196## ------------------- ##"
2197      echo
2198      for ac_var in $ac_subst_files
2199      do
2200	eval ac_val=\$$ac_var
2201	case $ac_val in
2202	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203	esac
2204	$as_echo "$ac_var='\''$ac_val'\''"
2205      done | sort
2206      echo
2207    fi
2208
2209    if test -s confdefs.h; then
2210      $as_echo "## ----------- ##
2211## confdefs.h. ##
2212## ----------- ##"
2213      echo
2214      cat confdefs.h
2215      echo
2216    fi
2217    test "$ac_signal" != 0 &&
2218      $as_echo "$as_me: caught signal $ac_signal"
2219    $as_echo "$as_me: exit $exit_status"
2220  } >&5
2221  rm -f core *.core core.conftest.* &&
2222    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2223    exit $exit_status
2224' 0
2225for ac_signal in 1 2 13 15; do
2226  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2227done
2228ac_signal=0
2229
2230# confdefs.h avoids OS command line length limits that DEFS can exceed.
2231rm -f -r conftest* confdefs.h
2232
2233$as_echo "/* confdefs.h */" > confdefs.h
2234
2235# Predefined preprocessor variables.
2236
2237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_NAME "$PACKAGE_NAME"
2239_ACEOF
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2243_ACEOF
2244
2245cat >>confdefs.h <<_ACEOF
2246#define PACKAGE_VERSION "$PACKAGE_VERSION"
2247_ACEOF
2248
2249cat >>confdefs.h <<_ACEOF
2250#define PACKAGE_STRING "$PACKAGE_STRING"
2251_ACEOF
2252
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255_ACEOF
2256
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_URL "$PACKAGE_URL"
2259_ACEOF
2260
2261
2262# Let the site file select an alternate cache file if it wants to.
2263# Prefer an explicitly selected file to automatically selected ones.
2264ac_site_file1=NONE
2265ac_site_file2=NONE
2266if test -n "$CONFIG_SITE"; then
2267  # We do not want a PATH search for config.site.
2268  case $CONFIG_SITE in #((
2269    -*)  ac_site_file1=./$CONFIG_SITE;;
2270    */*) ac_site_file1=$CONFIG_SITE;;
2271    *)   ac_site_file1=./$CONFIG_SITE;;
2272  esac
2273elif test "x$prefix" != xNONE; then
2274  ac_site_file1=$prefix/share/config.site
2275  ac_site_file2=$prefix/etc/config.site
2276else
2277  ac_site_file1=$ac_default_prefix/share/config.site
2278  ac_site_file2=$ac_default_prefix/etc/config.site
2279fi
2280for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2281do
2282  test "x$ac_site_file" = xNONE && continue
2283  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2284    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2286    sed 's/^/| /' "$ac_site_file" >&5
2287    . "$ac_site_file" \
2288      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290as_fn_error $? "failed to load site script $ac_site_file
2291See \`config.log' for more details" "$LINENO" 5 ; }
2292  fi
2293done
2294
2295if test -r "$cache_file"; then
2296  # Some versions of bash will fail to source /dev/null (special files
2297  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2298  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2299    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300$as_echo "$as_me: loading cache $cache_file" >&6;}
2301    case $cache_file in
2302      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303      *)                      . "./$cache_file";;
2304    esac
2305  fi
2306else
2307  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308$as_echo "$as_me: creating cache $cache_file" >&6;}
2309  >$cache_file
2310fi
2311
2312# Check that the precious variables saved in the cache have kept the same
2313# value.
2314ac_cache_corrupted=false
2315for ac_var in $ac_precious_vars; do
2316  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2317  eval ac_new_set=\$ac_env_${ac_var}_set
2318  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2319  eval ac_new_val=\$ac_env_${ac_var}_value
2320  case $ac_old_set,$ac_new_set in
2321    set,)
2322      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2323$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2324      ac_cache_corrupted=: ;;
2325    ,set)
2326      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2327$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2328      ac_cache_corrupted=: ;;
2329    ,);;
2330    *)
2331      if test "x$ac_old_val" != "x$ac_new_val"; then
2332	# differences in whitespace do not lead to failure.
2333	ac_old_val_w=`echo x $ac_old_val`
2334	ac_new_val_w=`echo x $ac_new_val`
2335	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2336	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2337$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2338	  ac_cache_corrupted=:
2339	else
2340	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2341$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2342	  eval $ac_var=\$ac_old_val
2343	fi
2344	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2345$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2346	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2347$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2348      fi;;
2349  esac
2350  # Pass precious variables to config.status.
2351  if test "$ac_new_set" = set; then
2352    case $ac_new_val in
2353    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2354    *) ac_arg=$ac_var=$ac_new_val ;;
2355    esac
2356    case " $ac_configure_args " in
2357      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2358      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2359    esac
2360  fi
2361done
2362if $ac_cache_corrupted; then
2363  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2366$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2367  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2368fi
2369## -------------------- ##
2370## Main body of script. ##
2371## -------------------- ##
2372
2373ac_ext=c
2374ac_cpp='$CPP $CPPFLAGS'
2375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
2379
2380
2381ac_config_headers="$ac_config_headers config.h"
2382
2383
2384am__api_version='1.11'
2385
2386ac_aux_dir=
2387for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2388  if test -f "$ac_dir/install-sh"; then
2389    ac_aux_dir=$ac_dir
2390    ac_install_sh="$ac_aux_dir/install-sh -c"
2391    break
2392  elif test -f "$ac_dir/install.sh"; then
2393    ac_aux_dir=$ac_dir
2394    ac_install_sh="$ac_aux_dir/install.sh -c"
2395    break
2396  elif test -f "$ac_dir/shtool"; then
2397    ac_aux_dir=$ac_dir
2398    ac_install_sh="$ac_aux_dir/shtool install -c"
2399    break
2400  fi
2401done
2402if test -z "$ac_aux_dir"; then
2403  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2404fi
2405
2406# These three variables are undocumented and unsupported,
2407# and are intended to be withdrawn in a future Autoconf release.
2408# They can cause serious problems if a builder's source tree is in a directory
2409# whose full name contains unusual characters.
2410ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2411ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2412ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2413
2414
2415# Find a good install program.  We prefer a C program (faster),
2416# so one script is as good as another.  But avoid the broken or
2417# incompatible versions:
2418# SysV /etc/install, /usr/sbin/install
2419# SunOS /usr/etc/install
2420# IRIX /sbin/install
2421# AIX /bin/install
2422# AmigaOS /C/install, which installs bootblocks on floppy discs
2423# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2424# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2425# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2426# OS/2's system install, which has a completely different semantic
2427# ./install, which can be erroneously created by make from ./install.sh.
2428# Reject install programs that cannot install multiple files.
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2430$as_echo_n "checking for a BSD-compatible install... " >&6; }
2431if test -z "$INSTALL"; then
2432if test "${ac_cv_path_install+set}" = set; then :
2433  $as_echo_n "(cached) " >&6
2434else
2435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438  IFS=$as_save_IFS
2439  test -z "$as_dir" && as_dir=.
2440    # Account for people who put trailing slashes in PATH elements.
2441case $as_dir/ in #((
2442  ./ | .// | /[cC]/* | \
2443  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2444  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2445  /usr/ucb/* ) ;;
2446  *)
2447    # OSF1 and SCO ODT 3.0 have their own names for install.
2448    # Don't use installbsd from OSF since it installs stuff as root
2449    # by default.
2450    for ac_prog in ginstall scoinst install; do
2451      for ac_exec_ext in '' $ac_executable_extensions; do
2452	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2453	  if test $ac_prog = install &&
2454	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2455	    # AIX install.  It has an incompatible calling convention.
2456	    :
2457	  elif test $ac_prog = install &&
2458	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2459	    # program-specific install script used by HP pwplus--don't use.
2460	    :
2461	  else
2462	    rm -rf conftest.one conftest.two conftest.dir
2463	    echo one > conftest.one
2464	    echo two > conftest.two
2465	    mkdir conftest.dir
2466	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2467	      test -s conftest.one && test -s conftest.two &&
2468	      test -s conftest.dir/conftest.one &&
2469	      test -s conftest.dir/conftest.two
2470	    then
2471	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2472	      break 3
2473	    fi
2474	  fi
2475	fi
2476      done
2477    done
2478    ;;
2479esac
2480
2481  done
2482IFS=$as_save_IFS
2483
2484rm -rf conftest.one conftest.two conftest.dir
2485
2486fi
2487  if test "${ac_cv_path_install+set}" = set; then
2488    INSTALL=$ac_cv_path_install
2489  else
2490    # As a last resort, use the slow shell script.  Don't cache a
2491    # value for INSTALL within a source directory, because that will
2492    # break other packages using the cache if that directory is
2493    # removed, or if the value is a relative name.
2494    INSTALL=$ac_install_sh
2495  fi
2496fi
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2498$as_echo "$INSTALL" >&6; }
2499
2500# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2501# It thinks the first close brace ends the variable substitution.
2502test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2503
2504test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2505
2506test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2507
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2509$as_echo_n "checking whether build environment is sane... " >&6; }
2510# Just in case
2511sleep 1
2512echo timestamp > conftest.file
2513# Reject unsafe characters in $srcdir or the absolute working directory
2514# name.  Accept space and tab only in the latter.
2515am_lf='
2516'
2517case `pwd` in
2518  *[\\\"\#\$\&\'\`$am_lf]*)
2519    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2520esac
2521case $srcdir in
2522  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2523    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2524esac
2525
2526# Do `set' in a subshell so we don't clobber the current shell's
2527# arguments.  Must try -L first in case configure is actually a
2528# symlink; some systems play weird games with the mod time of symlinks
2529# (eg FreeBSD returns the mod time of the symlink's containing
2530# directory).
2531if (
2532   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2533   if test "$*" = "X"; then
2534      # -L didn't work.
2535      set X `ls -t "$srcdir/configure" conftest.file`
2536   fi
2537   rm -f conftest.file
2538   if test "$*" != "X $srcdir/configure conftest.file" \
2539      && test "$*" != "X conftest.file $srcdir/configure"; then
2540
2541      # If neither matched, then we have a broken ls.  This can happen
2542      # if, for instance, CONFIG_SHELL is bash and it inherits a
2543      # broken ls alias from the environment.  This has actually
2544      # happened.  Such a system could not be considered "sane".
2545      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2546alias in your environment" "$LINENO" 5
2547   fi
2548
2549   test "$2" = conftest.file
2550   )
2551then
2552   # Ok.
2553   :
2554else
2555   as_fn_error $? "newly created file is older than distributed files!
2556Check your system clock" "$LINENO" 5
2557fi
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559$as_echo "yes" >&6; }
2560test "$program_prefix" != NONE &&
2561  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2562# Use a double $ so make ignores it.
2563test "$program_suffix" != NONE &&
2564  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2565# Double any \ or $.
2566# By default was `s,x,x', remove it if useless.
2567ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2568program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2569
2570# expand $ac_aux_dir to an absolute path
2571am_aux_dir=`cd $ac_aux_dir && pwd`
2572
2573if test x"${MISSING+set}" != xset; then
2574  case $am_aux_dir in
2575  *\ * | *\	*)
2576    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2577  *)
2578    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2579  esac
2580fi
2581# Use eval to expand $SHELL
2582if eval "$MISSING --run true"; then
2583  am_missing_run="$MISSING --run "
2584else
2585  am_missing_run=
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2587$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2588fi
2589
2590if test x"${install_sh}" != xset; then
2591  case $am_aux_dir in
2592  *\ * | *\	*)
2593    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2594  *)
2595    install_sh="\${SHELL} $am_aux_dir/install-sh"
2596  esac
2597fi
2598
2599# Installed binaries are usually stripped using `strip' when the user
2600# run `make install-strip'.  However `strip' might not be the right
2601# tool to use in cross-compilation environments, therefore Automake
2602# will honor the `STRIP' environment variable to overrule this program.
2603if test "$cross_compiling" != no; then
2604  if test -n "$ac_tool_prefix"; then
2605  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2606set dummy ${ac_tool_prefix}strip; ac_word=$2
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if test "${ac_cv_prog_STRIP+set}" = set; then :
2610  $as_echo_n "(cached) " >&6
2611else
2612  if test -n "$STRIP"; then
2613  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620    for ac_exec_ext in '' $ac_executable_extensions; do
2621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624    break 2
2625  fi
2626done
2627  done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632STRIP=$ac_cv_prog_STRIP
2633if test -n "$STRIP"; then
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2635$as_echo "$STRIP" >&6; }
2636else
2637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638$as_echo "no" >&6; }
2639fi
2640
2641
2642fi
2643if test -z "$ac_cv_prog_STRIP"; then
2644  ac_ct_STRIP=$STRIP
2645  # Extract the first word of "strip", so it can be a program name with args.
2646set dummy strip; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2650  $as_echo_n "(cached) " >&6
2651else
2652  if test -n "$ac_ct_STRIP"; then
2653  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660    for ac_exec_ext in '' $ac_executable_extensions; do
2661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662    ac_cv_prog_ac_ct_STRIP="strip"
2663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667  done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2673if test -n "$ac_ct_STRIP"; then
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2675$as_echo "$ac_ct_STRIP" >&6; }
2676else
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681  if test "x$ac_ct_STRIP" = x; then
2682    STRIP=":"
2683  else
2684    case $cross_compiling:$ac_tool_warned in
2685yes:)
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2688ac_tool_warned=yes ;;
2689esac
2690    STRIP=$ac_ct_STRIP
2691  fi
2692else
2693  STRIP="$ac_cv_prog_STRIP"
2694fi
2695
2696fi
2697INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2698
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2700$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2701if test -z "$MKDIR_P"; then
2702  if test "${ac_cv_path_mkdir+set}" = set; then :
2703  $as_echo_n "(cached) " >&6
2704else
2705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2707do
2708  IFS=$as_save_IFS
2709  test -z "$as_dir" && as_dir=.
2710    for ac_prog in mkdir gmkdir; do
2711	 for ac_exec_ext in '' $ac_executable_extensions; do
2712	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2713	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2714	     'mkdir (GNU coreutils) '* | \
2715	     'mkdir (coreutils) '* | \
2716	     'mkdir (fileutils) '4.1*)
2717	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2718	       break 3;;
2719	   esac
2720	 done
2721       done
2722  done
2723IFS=$as_save_IFS
2724
2725fi
2726
2727  test -d ./--version && rmdir ./--version
2728  if test "${ac_cv_path_mkdir+set}" = set; then
2729    MKDIR_P="$ac_cv_path_mkdir -p"
2730  else
2731    # As a last resort, use the slow shell script.  Don't cache a
2732    # value for MKDIR_P within a source directory, because that will
2733    # break other packages using the cache if that directory is
2734    # removed, or if the value is a relative name.
2735    MKDIR_P="$ac_install_sh -d"
2736  fi
2737fi
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2739$as_echo "$MKDIR_P" >&6; }
2740
2741mkdir_p="$MKDIR_P"
2742case $mkdir_p in
2743  [\\/$]* | ?:[\\/]*) ;;
2744  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2745esac
2746
2747for ac_prog in gawk mawk nawk awk
2748do
2749  # Extract the first word of "$ac_prog", so it can be a program name with args.
2750set dummy $ac_prog; ac_word=$2
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752$as_echo_n "checking for $ac_word... " >&6; }
2753if test "${ac_cv_prog_AWK+set}" = set; then :
2754  $as_echo_n "(cached) " >&6
2755else
2756  if test -n "$AWK"; then
2757  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762  IFS=$as_save_IFS
2763  test -z "$as_dir" && as_dir=.
2764    for ac_exec_ext in '' $ac_executable_extensions; do
2765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766    ac_cv_prog_AWK="$ac_prog"
2767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768    break 2
2769  fi
2770done
2771  done
2772IFS=$as_save_IFS
2773
2774fi
2775fi
2776AWK=$ac_cv_prog_AWK
2777if test -n "$AWK"; then
2778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2779$as_echo "$AWK" >&6; }
2780else
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782$as_echo "no" >&6; }
2783fi
2784
2785
2786  test -n "$AWK" && break
2787done
2788
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2790$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2791set x ${MAKE-make}
2792ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2793if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2794  $as_echo_n "(cached) " >&6
2795else
2796  cat >conftest.make <<\_ACEOF
2797SHELL = /bin/sh
2798all:
2799	@echo '@@@%%%=$(MAKE)=@@@%%%'
2800_ACEOF
2801# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2802case `${MAKE-make} -f conftest.make 2>/dev/null` in
2803  *@@@%%%=?*=@@@%%%*)
2804    eval ac_cv_prog_make_${ac_make}_set=yes;;
2805  *)
2806    eval ac_cv_prog_make_${ac_make}_set=no;;
2807esac
2808rm -f conftest.make
2809fi
2810if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812$as_echo "yes" >&6; }
2813  SET_MAKE=
2814else
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
2817  SET_MAKE="MAKE=${MAKE-make}"
2818fi
2819
2820rm -rf .tst 2>/dev/null
2821mkdir .tst 2>/dev/null
2822if test -d .tst; then
2823  am__leading_dot=.
2824else
2825  am__leading_dot=_
2826fi
2827rmdir .tst 2>/dev/null
2828
2829if test "`cd $srcdir && pwd`" != "`pwd`"; then
2830  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2831  # is not polluted with repeated "-I."
2832  am__isrc=' -I$(srcdir)'
2833  # test to see if srcdir already configured
2834  if test -f $srcdir/config.status; then
2835    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2836  fi
2837fi
2838
2839# test whether we have cygpath
2840if test -z "$CYGPATH_W"; then
2841  if (cygpath --version) >/dev/null 2>/dev/null; then
2842    CYGPATH_W='cygpath -w'
2843  else
2844    CYGPATH_W=echo
2845  fi
2846fi
2847
2848
2849# Define the identity of the package.
2850 PACKAGE='mpc'
2851 VERSION='0.9'
2852
2853
2854cat >>confdefs.h <<_ACEOF
2855#define PACKAGE "$PACKAGE"
2856_ACEOF
2857
2858
2859cat >>confdefs.h <<_ACEOF
2860#define VERSION "$VERSION"
2861_ACEOF
2862
2863# Some tools Automake needs.
2864
2865ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2866
2867
2868AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2869
2870
2871AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2872
2873
2874AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2875
2876
2877MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2878
2879# We need awk for the "check" target.  The system "awk" is bad on
2880# some platforms.
2881# Always define AMTAR for backward compatibility.
2882
2883AMTAR=${AMTAR-"${am_missing_run}tar"}
2884
2885am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2886
2887
2888
2889
2890
2891
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2893$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2894    # Check whether --enable-maintainer-mode was given.
2895if test "${enable_maintainer_mode+set}" = set; then :
2896  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2897else
2898  USE_MAINTAINER_MODE=no
2899fi
2900
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2902$as_echo "$USE_MAINTAINER_MODE" >&6; }
2903   if test $USE_MAINTAINER_MODE = yes; then
2904  MAINTAINER_MODE_TRUE=
2905  MAINTAINER_MODE_FALSE='#'
2906else
2907  MAINTAINER_MODE_TRUE='#'
2908  MAINTAINER_MODE_FALSE=
2909fi
2910
2911  MAINT=$MAINTAINER_MODE_TRUE
2912
2913
2914
2915# Make sure we can run config.sub.
2916$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2917  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2918
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2920$as_echo_n "checking build system type... " >&6; }
2921if test "${ac_cv_build+set}" = set; then :
2922  $as_echo_n "(cached) " >&6
2923else
2924  ac_build_alias=$build_alias
2925test "x$ac_build_alias" = x &&
2926  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2927test "x$ac_build_alias" = x &&
2928  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2929ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2930  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2931
2932fi
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2934$as_echo "$ac_cv_build" >&6; }
2935case $ac_cv_build in
2936*-*-*) ;;
2937*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2938esac
2939build=$ac_cv_build
2940ac_save_IFS=$IFS; IFS='-'
2941set x $ac_cv_build
2942shift
2943build_cpu=$1
2944build_vendor=$2
2945shift; shift
2946# Remember, the first character of IFS is used to create $*,
2947# except with old shells:
2948build_os=$*
2949IFS=$ac_save_IFS
2950case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2951
2952
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2954$as_echo_n "checking host system type... " >&6; }
2955if test "${ac_cv_host+set}" = set; then :
2956  $as_echo_n "(cached) " >&6
2957else
2958  if test "x$host_alias" = x; then
2959  ac_cv_host=$ac_cv_build
2960else
2961  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2962    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2963fi
2964
2965fi
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2967$as_echo "$ac_cv_host" >&6; }
2968case $ac_cv_host in
2969*-*-*) ;;
2970*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2971esac
2972host=$ac_cv_host
2973ac_save_IFS=$IFS; IFS='-'
2974set x $ac_cv_host
2975shift
2976host_cpu=$1
2977host_vendor=$2
2978shift; shift
2979# Remember, the first character of IFS is used to create $*,
2980# except with old shells:
2981host_os=$*
2982IFS=$ac_save_IFS
2983case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2984
2985
2986
2987
2988
2989# Check whether --with-mpfr_include was given.
2990if test "${with_mpfr_include+set}" = set; then :
2991  withval=$with_mpfr_include; CPPFLAGS="-I$withval $CPPFLAGS"
2992fi
2993
2994
2995# Check whether --with-mpfr_lib was given.
2996if test "${with_mpfr_lib+set}" = set; then :
2997  withval=$with_mpfr_lib; LDFLAGS="-L$withval $LDFLAGS"
2998fi
2999
3000
3001# Check whether --with-mpfr was given.
3002if test "${with_mpfr+set}" = set; then :
3003  withval=$with_mpfr;
3004            if test -z "$with_mpfr_include" -a -z "$with_mpfr_lib" ; then
3005               CPPFLAGS="-I$withval/include $CPPFLAGS"
3006               LDFLAGS="-L$withval/lib $LDFLAGS"
3007            else
3008               { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010as_fn_error $? "Do not use --with-mpfr and --with-mpfr-include/--with-mpfr-lib options simultaneously.
3011See \`config.log' for more details" "$LINENO" 5 ; }
3012            fi
3013
3014fi
3015
3016
3017# Check whether --with-gmp_include was given.
3018if test "${with_gmp_include+set}" = set; then :
3019  withval=$with_gmp_include; CPPFLAGS="-I$withval $CPPFLAGS"
3020fi
3021
3022
3023# Check whether --with-gmp_lib was given.
3024if test "${with_gmp_lib+set}" = set; then :
3025  withval=$with_gmp_lib; LDFLAGS="-L$withval $LDFLAGS"
3026fi
3027
3028
3029# Check whether --with-gmp was given.
3030if test "${with_gmp+set}" = set; then :
3031  withval=$with_gmp;
3032            if test -z "$with_gmp_lib" -a -z "$with_gmp_include" ; then
3033               CPPFLAGS="-I$withval/include $CPPFLAGS"
3034               LDFLAGS="-L$withval/lib $LDFLAGS"
3035            else
3036               { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
3039See \`config.log' for more details" "$LINENO" 5 ; }
3040            fi
3041
3042fi
3043
3044# Check whether --enable-logging was given.
3045if test "${enable_logging+set}" = set; then :
3046  enableval=$enable_logging; case $enableval in
3047                 yes) if test "x$enable_shared" = "xno"; then :
3048  as_fn_error $? "Logging works only with shared libraries; do not mix --enable-logging and --disable-shared" "$LINENO" 5
3049fi ;;
3050                 no)  ;;
3051                 *)   as_fn_error $? "Bad value for --enable-logging: Use yes or no" "$LINENO" 5  ;;
3052              esac
3053
3054
3055fi
3056
3057
3058
3059
3060if test -n "$CFLAGS" || test -n "$CC" ; then
3061   user_redefine_cc=yes
3062fi
3063
3064# Check for programs
3065ac_ext=c
3066ac_cpp='$CPP $CPPFLAGS'
3067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070if test -n "$ac_tool_prefix"; then
3071  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074$as_echo_n "checking for $ac_word... " >&6; }
3075if test "${ac_cv_prog_CC+set}" = set; then :
3076  $as_echo_n "(cached) " >&6
3077else
3078  if test -n "$CC"; then
3079  ac_cv_prog_CC="$CC" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  test -z "$as_dir" && as_dir=.
3086    for ac_exec_ext in '' $ac_executable_extensions; do
3087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090    break 2
3091  fi
3092done
3093  done
3094IFS=$as_save_IFS
3095
3096fi
3097fi
3098CC=$ac_cv_prog_CC
3099if test -n "$CC"; then
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101$as_echo "$CC" >&6; }
3102else
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
3105fi
3106
3107
3108fi
3109if test -z "$ac_cv_prog_CC"; then
3110  ac_ct_CC=$CC
3111  # Extract the first word of "gcc", so it can be a program name with args.
3112set dummy gcc; ac_word=$2
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114$as_echo_n "checking for $ac_word... " >&6; }
3115if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3116  $as_echo_n "(cached) " >&6
3117else
3118  if test -n "$ac_ct_CC"; then
3119  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120else
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124  IFS=$as_save_IFS
3125  test -z "$as_dir" && as_dir=.
3126    for ac_exec_ext in '' $ac_executable_extensions; do
3127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128    ac_cv_prog_ac_ct_CC="gcc"
3129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130    break 2
3131  fi
3132done
3133  done
3134IFS=$as_save_IFS
3135
3136fi
3137fi
3138ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139if test -n "$ac_ct_CC"; then
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141$as_echo "$ac_ct_CC" >&6; }
3142else
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144$as_echo "no" >&6; }
3145fi
3146
3147  if test "x$ac_ct_CC" = x; then
3148    CC=""
3149  else
3150    case $cross_compiling:$ac_tool_warned in
3151yes:)
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154ac_tool_warned=yes ;;
3155esac
3156    CC=$ac_ct_CC
3157  fi
3158else
3159  CC="$ac_cv_prog_CC"
3160fi
3161
3162if test -z "$CC"; then
3163          if test -n "$ac_tool_prefix"; then
3164    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165set dummy ${ac_tool_prefix}cc; ac_word=$2
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167$as_echo_n "checking for $ac_word... " >&6; }
3168if test "${ac_cv_prog_CC+set}" = set; then :
3169  $as_echo_n "(cached) " >&6
3170else
3171  if test -n "$CC"; then
3172  ac_cv_prog_CC="$CC" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177  IFS=$as_save_IFS
3178  test -z "$as_dir" && as_dir=.
3179    for ac_exec_ext in '' $ac_executable_extensions; do
3180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181    ac_cv_prog_CC="${ac_tool_prefix}cc"
3182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183    break 2
3184  fi
3185done
3186  done
3187IFS=$as_save_IFS
3188
3189fi
3190fi
3191CC=$ac_cv_prog_CC
3192if test -n "$CC"; then
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194$as_echo "$CC" >&6; }
3195else
3196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198fi
3199
3200
3201  fi
3202fi
3203if test -z "$CC"; then
3204  # Extract the first word of "cc", so it can be a program name with args.
3205set dummy cc; ac_word=$2
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
3208if test "${ac_cv_prog_CC+set}" = set; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  if test -n "$CC"; then
3212  ac_cv_prog_CC="$CC" # Let the user override the test.
3213else
3214  ac_prog_rejected=no
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218  IFS=$as_save_IFS
3219  test -z "$as_dir" && as_dir=.
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223       ac_prog_rejected=yes
3224       continue
3225     fi
3226    ac_cv_prog_CC="cc"
3227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228    break 2
3229  fi
3230done
3231  done
3232IFS=$as_save_IFS
3233
3234if test $ac_prog_rejected = yes; then
3235  # We found a bogon in the path, so make sure we never use it.
3236  set dummy $ac_cv_prog_CC
3237  shift
3238  if test $# != 0; then
3239    # We chose a different compiler from the bogus one.
3240    # However, it has the same basename, so the bogon will be chosen
3241    # first if we set CC to just the basename; use the full file name.
3242    shift
3243    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3244  fi
3245fi
3246fi
3247fi
3248CC=$ac_cv_prog_CC
3249if test -n "$CC"; then
3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251$as_echo "$CC" >&6; }
3252else
3253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255fi
3256
3257
3258fi
3259if test -z "$CC"; then
3260  if test -n "$ac_tool_prefix"; then
3261  for ac_prog in cl.exe
3262  do
3263    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266$as_echo_n "checking for $ac_word... " >&6; }
3267if test "${ac_cv_prog_CC+set}" = set; then :
3268  $as_echo_n "(cached) " >&6
3269else
3270  if test -n "$CC"; then
3271  ac_cv_prog_CC="$CC" # Let the user override the test.
3272else
3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278    for ac_exec_ext in '' $ac_executable_extensions; do
3279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282    break 2
3283  fi
3284done
3285  done
3286IFS=$as_save_IFS
3287
3288fi
3289fi
3290CC=$ac_cv_prog_CC
3291if test -n "$CC"; then
3292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293$as_echo "$CC" >&6; }
3294else
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296$as_echo "no" >&6; }
3297fi
3298
3299
3300    test -n "$CC" && break
3301  done
3302fi
3303if test -z "$CC"; then
3304  ac_ct_CC=$CC
3305  for ac_prog in cl.exe
3306do
3307  # Extract the first word of "$ac_prog", so it can be a program name with args.
3308set dummy $ac_prog; ac_word=$2
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310$as_echo_n "checking for $ac_word... " >&6; }
3311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3312  $as_echo_n "(cached) " >&6
3313else
3314  if test -n "$ac_ct_CC"; then
3315  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316else
3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318for as_dir in $PATH
3319do
3320  IFS=$as_save_IFS
3321  test -z "$as_dir" && as_dir=.
3322    for ac_exec_ext in '' $ac_executable_extensions; do
3323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324    ac_cv_prog_ac_ct_CC="$ac_prog"
3325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326    break 2
3327  fi
3328done
3329  done
3330IFS=$as_save_IFS
3331
3332fi
3333fi
3334ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335if test -n "$ac_ct_CC"; then
3336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337$as_echo "$ac_ct_CC" >&6; }
3338else
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340$as_echo "no" >&6; }
3341fi
3342
3343
3344  test -n "$ac_ct_CC" && break
3345done
3346
3347  if test "x$ac_ct_CC" = x; then
3348    CC=""
3349  else
3350    case $cross_compiling:$ac_tool_warned in
3351yes:)
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354ac_tool_warned=yes ;;
3355esac
3356    CC=$ac_ct_CC
3357  fi
3358fi
3359
3360fi
3361
3362
3363test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365as_fn_error $? "no acceptable C compiler found in \$PATH
3366See \`config.log' for more details" "$LINENO" 5 ; }
3367
3368# Provide some information about the compiler.
3369$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3370set X $ac_compile
3371ac_compiler=$2
3372for ac_option in --version -v -V -qversion; do
3373  { { ac_try="$ac_compiler $ac_option >&5"
3374case "(($ac_try" in
3375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376  *) ac_try_echo=$ac_try;;
3377esac
3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379$as_echo "$ac_try_echo"; } >&5
3380  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3381  ac_status=$?
3382  if test -s conftest.err; then
3383    sed '10a\
3384... rest of stderr output deleted ...
3385         10q' conftest.err >conftest.er1
3386    cat conftest.er1 >&5
3387  fi
3388  rm -f conftest.er1 conftest.err
3389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390  test $ac_status = 0; }
3391done
3392
3393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h.  */
3395
3396int
3397main ()
3398{
3399
3400  ;
3401  return 0;
3402}
3403_ACEOF
3404ac_clean_files_save=$ac_clean_files
3405ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406# Try to create an executable without -o first, disregard a.out.
3407# It will help us diagnose broken compilers, and finding out an intuition
3408# of exeext.
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410$as_echo_n "checking whether the C compiler works... " >&6; }
3411ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3412
3413# The possible output files:
3414ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3415
3416ac_rmfiles=
3417for ac_file in $ac_files
3418do
3419  case $ac_file in
3420    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422  esac
3423done
3424rm -f $ac_rmfiles
3425
3426if { { ac_try="$ac_link_default"
3427case "(($ac_try" in
3428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429  *) ac_try_echo=$ac_try;;
3430esac
3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432$as_echo "$ac_try_echo"; } >&5
3433  (eval "$ac_link_default") 2>&5
3434  ac_status=$?
3435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436  test $ac_status = 0; }; then :
3437  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3440# so that the user can short-circuit this test for compilers unknown to
3441# Autoconf.
3442for ac_file in $ac_files ''
3443do
3444  test -f "$ac_file" || continue
3445  case $ac_file in
3446    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3447	;;
3448    [ab].out )
3449	# We found the default executable, but exeext='' is most
3450	# certainly right.
3451	break;;
3452    *.* )
3453	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454	then :; else
3455	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456	fi
3457	# We set ac_cv_exeext here because the later test for it is not
3458	# safe: cross compilers may not add the suffix if given an `-o'
3459	# argument, so we may need to know it at that point already.
3460	# Even if this section looks crufty: it has the advantage of
3461	# actually working.
3462	break;;
3463    * )
3464	break;;
3465  esac
3466done
3467test "$ac_cv_exeext" = no && ac_cv_exeext=
3468
3469else
3470  ac_file=''
3471fi
3472if test -z "$ac_file"; then :
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474$as_echo "no" >&6; }
3475$as_echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480as_fn_error 77 "C compiler cannot create executables
3481See \`config.log' for more details" "$LINENO" 5 ; }
3482else
3483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484$as_echo "yes" >&6; }
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487$as_echo_n "checking for C compiler default output file name... " >&6; }
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3489$as_echo "$ac_file" >&6; }
3490ac_exeext=$ac_cv_exeext
3491
3492rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3493ac_clean_files=$ac_clean_files_save
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3495$as_echo_n "checking for suffix of executables... " >&6; }
3496if { { ac_try="$ac_link"
3497case "(($ac_try" in
3498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499  *) ac_try_echo=$ac_try;;
3500esac
3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502$as_echo "$ac_try_echo"; } >&5
3503  (eval "$ac_link") 2>&5
3504  ac_status=$?
3505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506  test $ac_status = 0; }; then :
3507  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3508# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3509# work properly (i.e., refer to `conftest.exe'), while it won't with
3510# `rm'.
3511for ac_file in conftest.exe conftest conftest.*; do
3512  test -f "$ac_file" || continue
3513  case $ac_file in
3514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516	  break;;
3517    * ) break;;
3518  esac
3519done
3520else
3521  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3524See \`config.log' for more details" "$LINENO" 5 ; }
3525fi
3526rm -f conftest conftest$ac_cv_exeext
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528$as_echo "$ac_cv_exeext" >&6; }
3529
3530rm -f conftest.$ac_ext
3531EXEEXT=$ac_cv_exeext
3532ac_exeext=$EXEEXT
3533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h.  */
3535#include <stdio.h>
3536int
3537main ()
3538{
3539FILE *f = fopen ("conftest.out", "w");
3540 return ferror (f) || fclose (f) != 0;
3541
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546ac_clean_files="$ac_clean_files conftest.out"
3547# Check that the compiler produces executables we can run.  If not, either
3548# the compiler is broken, or we cross compile.
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550$as_echo_n "checking whether we are cross compiling... " >&6; }
3551if test "$cross_compiling" != yes; then
3552  { { ac_try="$ac_link"
3553case "(($ac_try" in
3554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555  *) ac_try_echo=$ac_try;;
3556esac
3557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558$as_echo "$ac_try_echo"; } >&5
3559  (eval "$ac_link") 2>&5
3560  ac_status=$?
3561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562  test $ac_status = 0; }
3563  if { ac_try='./conftest$ac_cv_exeext'
3564  { { case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569$as_echo "$ac_try_echo"; } >&5
3570  (eval "$ac_try") 2>&5
3571  ac_status=$?
3572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573  test $ac_status = 0; }; }; then
3574    cross_compiling=no
3575  else
3576    if test "$cross_compiling" = maybe; then
3577	cross_compiling=yes
3578    else
3579	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581as_fn_error $? "cannot run C compiled programs.
3582If you meant to cross compile, use \`--host'.
3583See \`config.log' for more details" "$LINENO" 5 ; }
3584    fi
3585  fi
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588$as_echo "$cross_compiling" >&6; }
3589
3590rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3591ac_clean_files=$ac_clean_files_save
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593$as_echo_n "checking for suffix of object files... " >&6; }
3594if test "${ac_cv_objext+set}" = set; then :
3595  $as_echo_n "(cached) " >&6
3596else
3597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599
3600int
3601main ()
3602{
3603
3604  ;
3605  return 0;
3606}
3607_ACEOF
3608rm -f conftest.o conftest.obj
3609if { { ac_try="$ac_compile"
3610case "(($ac_try" in
3611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612  *) ac_try_echo=$ac_try;;
3613esac
3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615$as_echo "$ac_try_echo"; } >&5
3616  (eval "$ac_compile") 2>&5
3617  ac_status=$?
3618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619  test $ac_status = 0; }; then :
3620  for ac_file in conftest.o conftest.obj conftest.*; do
3621  test -f "$ac_file" || continue;
3622  case $ac_file in
3623    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3624    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3625       break;;
3626  esac
3627done
3628else
3629  $as_echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634as_fn_error $? "cannot compute suffix of object files: cannot compile
3635See \`config.log' for more details" "$LINENO" 5 ; }
3636fi
3637rm -f conftest.$ac_cv_objext conftest.$ac_ext
3638fi
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3640$as_echo "$ac_cv_objext" >&6; }
3641OBJEXT=$ac_cv_objext
3642ac_objext=$OBJEXT
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654#ifndef __GNUC__
3655       choke me
3656#endif
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662if ac_fn_c_try_compile "$LINENO"; then :
3663  ac_compiler_gnu=yes
3664else
3665  ac_compiler_gnu=no
3666fi
3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669
3670fi
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673if test $ac_compiler_gnu = yes; then
3674  GCC=yes
3675else
3676  GCC=
3677fi
3678ac_test_CFLAGS=${CFLAGS+set}
3679ac_save_CFLAGS=$CFLAGS
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681$as_echo_n "checking whether $CC accepts -g... " >&6; }
3682if test "${ac_cv_prog_cc_g+set}" = set; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  ac_save_c_werror_flag=$ac_c_werror_flag
3686   ac_c_werror_flag=yes
3687   ac_cv_prog_cc_g=no
3688   CFLAGS="-g"
3689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h.  */
3691
3692int
3693main ()
3694{
3695
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700if ac_fn_c_try_compile "$LINENO"; then :
3701  ac_cv_prog_cc_g=yes
3702else
3703  CFLAGS=""
3704      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h.  */
3706
3707int
3708main ()
3709{
3710
3711  ;
3712  return 0;
3713}
3714_ACEOF
3715if ac_fn_c_try_compile "$LINENO"; then :
3716
3717else
3718  ac_c_werror_flag=$ac_save_c_werror_flag
3719	 CFLAGS="-g"
3720	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722
3723int
3724main ()
3725{
3726
3727  ;
3728  return 0;
3729}
3730_ACEOF
3731if ac_fn_c_try_compile "$LINENO"; then :
3732  ac_cv_prog_cc_g=yes
3733fi
3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735fi
3736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737fi
3738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739   ac_c_werror_flag=$ac_save_c_werror_flag
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742$as_echo "$ac_cv_prog_cc_g" >&6; }
3743if test "$ac_test_CFLAGS" = set; then
3744  CFLAGS=$ac_save_CFLAGS
3745elif test $ac_cv_prog_cc_g = yes; then
3746  if test "$GCC" = yes; then
3747    CFLAGS="-g -O2"
3748  else
3749    CFLAGS="-g"
3750  fi
3751else
3752  if test "$GCC" = yes; then
3753    CFLAGS="-O2"
3754  else
3755    CFLAGS=
3756  fi
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760if test "${ac_cv_prog_cc_c89+set}" = set; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  ac_cv_prog_cc_c89=no
3764ac_save_CC=$CC
3765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h.  */
3767#include <stdarg.h>
3768#include <stdio.h>
3769#include <sys/types.h>
3770#include <sys/stat.h>
3771/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3772struct buf { int x; };
3773FILE * (*rcsopen) (struct buf *, struct stat *, int);
3774static char *e (p, i)
3775     char **p;
3776     int i;
3777{
3778  return p[i];
3779}
3780static char *f (char * (*g) (char **, int), char **p, ...)
3781{
3782  char *s;
3783  va_list v;
3784  va_start (v,p);
3785  s = g (p, va_arg (v,int));
3786  va_end (v);
3787  return s;
3788}
3789
3790/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3791   function prototypes and stuff, but not '\xHH' hex character constants.
3792   These don't provoke an error unfortunately, instead are silently treated
3793   as 'x'.  The following induces an error, until -std is added to get
3794   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3795   array size at least.  It's necessary to write '\x00'==0 to get something
3796   that's true only with -std.  */
3797int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3798
3799/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3800   inside strings and character constants.  */
3801#define FOO(x) 'x'
3802int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3803
3804int test (int i, double x);
3805struct s1 {int (*f) (int a);};
3806struct s2 {int (*f) (double a);};
3807int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3808int argc;
3809char **argv;
3810int
3811main ()
3812{
3813return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3814  ;
3815  return 0;
3816}
3817_ACEOF
3818for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3819	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3820do
3821  CC="$ac_save_CC $ac_arg"
3822  if ac_fn_c_try_compile "$LINENO"; then :
3823  ac_cv_prog_cc_c89=$ac_arg
3824fi
3825rm -f core conftest.err conftest.$ac_objext
3826  test "x$ac_cv_prog_cc_c89" != "xno" && break
3827done
3828rm -f conftest.$ac_ext
3829CC=$ac_save_CC
3830
3831fi
3832# AC_CACHE_VAL
3833case "x$ac_cv_prog_cc_c89" in
3834  x)
3835    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3836$as_echo "none needed" >&6; } ;;
3837  xno)
3838    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3839$as_echo "unsupported" >&6; } ;;
3840  *)
3841    CC="$CC $ac_cv_prog_cc_c89"
3842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3843$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3844esac
3845if test "x$ac_cv_prog_cc_c89" != xno; then :
3846
3847fi
3848
3849ac_ext=c
3850ac_cpp='$CPP $CPPFLAGS'
3851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854DEPDIR="${am__leading_dot}deps"
3855
3856ac_config_commands="$ac_config_commands depfiles"
3857
3858
3859am_make=${MAKE-make}
3860cat > confinc << 'END'
3861am__doit:
3862	@echo this is the am__doit target
3863.PHONY: am__doit
3864END
3865# If we don't find an include directive, just comment out the code.
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3867$as_echo_n "checking for style of include used by $am_make... " >&6; }
3868am__include="#"
3869am__quote=
3870_am_result=none
3871# First try GNU make style include.
3872echo "include confinc" > confmf
3873# Ignore all kinds of additional output from `make'.
3874case `$am_make -s -f confmf 2> /dev/null` in #(
3875*the\ am__doit\ target*)
3876  am__include=include
3877  am__quote=
3878  _am_result=GNU
3879  ;;
3880esac
3881# Now try BSD make style include.
3882if test "$am__include" = "#"; then
3883   echo '.include "confinc"' > confmf
3884   case `$am_make -s -f confmf 2> /dev/null` in #(
3885   *the\ am__doit\ target*)
3886     am__include=.include
3887     am__quote="\""
3888     _am_result=BSD
3889     ;;
3890   esac
3891fi
3892
3893
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3895$as_echo "$_am_result" >&6; }
3896rm -f confinc confmf
3897
3898# Check whether --enable-dependency-tracking was given.
3899if test "${enable_dependency_tracking+set}" = set; then :
3900  enableval=$enable_dependency_tracking;
3901fi
3902
3903if test "x$enable_dependency_tracking" != xno; then
3904  am_depcomp="$ac_aux_dir/depcomp"
3905  AMDEPBACKSLASH='\'
3906fi
3907 if test "x$enable_dependency_tracking" != xno; then
3908  AMDEP_TRUE=
3909  AMDEP_FALSE='#'
3910else
3911  AMDEP_TRUE='#'
3912  AMDEP_FALSE=
3913fi
3914
3915
3916
3917depcc="$CC"   am_compiler_list=
3918
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3920$as_echo_n "checking dependency style of $depcc... " >&6; }
3921if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3925  # We make a subdir and do the tests there.  Otherwise we can end up
3926  # making bogus files that we don't know about and never remove.  For
3927  # instance it was reported that on HP-UX the gcc test will end up
3928  # making a dummy file named `D' -- because `-MD' means `put the output
3929  # in D'.
3930  mkdir conftest.dir
3931  # Copy depcomp to subdir because otherwise we won't find it if we're
3932  # using a relative directory.
3933  cp "$am_depcomp" conftest.dir
3934  cd conftest.dir
3935  # We will build objects and dependencies in a subdirectory because
3936  # it helps to detect inapplicable dependency modes.  For instance
3937  # both Tru64's cc and ICC support -MD to output dependencies as a
3938  # side effect of compilation, but ICC will put the dependencies in
3939  # the current directory while Tru64 will put them in the object
3940  # directory.
3941  mkdir sub
3942
3943  am_cv_CC_dependencies_compiler_type=none
3944  if test "$am_compiler_list" = ""; then
3945     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3946  fi
3947  am__universal=false
3948  case " $depcc " in #(
3949     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3950     esac
3951
3952  for depmode in $am_compiler_list; do
3953    # Setup a source with many dependencies, because some compilers
3954    # like to wrap large dependency lists on column 80 (with \), and
3955    # we should not choose a depcomp mode which is confused by this.
3956    #
3957    # We need to recreate these files for each test, as the compiler may
3958    # overwrite some of them when testing with obscure command lines.
3959    # This happens at least with the AIX C compiler.
3960    : > sub/conftest.c
3961    for i in 1 2 3 4 5 6; do
3962      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3963      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3964      # Solaris 8's {/usr,}/bin/sh.
3965      touch sub/conftst$i.h
3966    done
3967    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3968
3969    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3970    # mode.  It turns out that the SunPro C++ compiler does not properly
3971    # handle `-M -o', and we need to detect this.  Also, some Intel
3972    # versions had trouble with output in subdirs
3973    am__obj=sub/conftest.${OBJEXT-o}
3974    am__minus_obj="-o $am__obj"
3975    case $depmode in
3976    gcc)
3977      # This depmode causes a compiler race in universal mode.
3978      test "$am__universal" = false || continue
3979      ;;
3980    nosideeffect)
3981      # after this tag, mechanisms are not by side-effect, so they'll
3982      # only be used when explicitly requested
3983      if test "x$enable_dependency_tracking" = xyes; then
3984	continue
3985      else
3986	break
3987      fi
3988      ;;
3989    msvisualcpp | msvcmsys)
3990      # This compiler won't grok `-c -o', but also, the minuso test has
3991      # not run yet.  These depmodes are late enough in the game, and
3992      # so weak that their functioning should not be impacted.
3993      am__obj=conftest.${OBJEXT-o}
3994      am__minus_obj=
3995      ;;
3996    none) break ;;
3997    esac
3998    if depmode=$depmode \
3999       source=sub/conftest.c object=$am__obj \
4000       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4001       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4002         >/dev/null 2>conftest.err &&
4003       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4004       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4005       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4006       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4007      # icc doesn't choke on unknown options, it will just issue warnings
4008      # or remarks (even with -Werror).  So we grep stderr for any message
4009      # that says an option was ignored or not supported.
4010      # When given -MP, icc 7.0 and 7.1 complain thusly:
4011      #   icc: Command line warning: ignoring option '-M'; no argument required
4012      # The diagnosis changed in icc 8.0:
4013      #   icc: Command line remark: option '-MP' not supported
4014      if (grep 'ignoring option' conftest.err ||
4015          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4016        am_cv_CC_dependencies_compiler_type=$depmode
4017        break
4018      fi
4019    fi
4020  done
4021
4022  cd ..
4023  rm -rf conftest.dir
4024else
4025  am_cv_CC_dependencies_compiler_type=none
4026fi
4027
4028fi
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4030$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4031CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4032
4033 if
4034  test "x$enable_dependency_tracking" != xno \
4035  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4036  am__fastdepCC_TRUE=
4037  am__fastdepCC_FALSE='#'
4038else
4039  am__fastdepCC_TRUE='#'
4040  am__fastdepCC_FALSE=
4041fi
4042
4043
4044ac_ext=c
4045ac_cpp='$CPP $CPPFLAGS'
4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
4052$as_echo_n "checking for gmp.h... " >&6; }
4053
4054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h.  */
4056
4057#include "gmp.h"
4058
4059_ACEOF
4060if ac_fn_c_try_compile "$LINENO"; then :
4061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4062$as_echo "yes" >&6; }
4063else
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066$as_echo "no" >&6; }
4067 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5
4068
4069fi
4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071
4072if test -z "$user_redefine_cc" ; then
4073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4074$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4075if test "${ac_cv_path_GREP+set}" = set; then :
4076  $as_echo_n "(cached) " >&6
4077else
4078  if test -z "$GREP"; then
4079  ac_path_GREP_found=false
4080  # Loop through the user's path and test for each of PROGNAME-LIST
4081  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4083do
4084  IFS=$as_save_IFS
4085  test -z "$as_dir" && as_dir=.
4086    for ac_prog in grep ggrep; do
4087    for ac_exec_ext in '' $ac_executable_extensions; do
4088      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4089      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4090# Check for GNU ac_path_GREP and select it if it is found.
4091  # Check for GNU $ac_path_GREP
4092case `"$ac_path_GREP" --version 2>&1` in
4093*GNU*)
4094  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4095*)
4096  ac_count=0
4097  $as_echo_n 0123456789 >"conftest.in"
4098  while :
4099  do
4100    cat "conftest.in" "conftest.in" >"conftest.tmp"
4101    mv "conftest.tmp" "conftest.in"
4102    cp "conftest.in" "conftest.nl"
4103    $as_echo 'GREP' >> "conftest.nl"
4104    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4105    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4106    as_fn_arith $ac_count + 1 && ac_count=$as_val
4107    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4108      # Best one so far, save it but keep looking for a better one
4109      ac_cv_path_GREP="$ac_path_GREP"
4110      ac_path_GREP_max=$ac_count
4111    fi
4112    # 10*(2^10) chars as input seems more than enough
4113    test $ac_count -gt 10 && break
4114  done
4115  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4116esac
4117
4118      $ac_path_GREP_found && break 3
4119    done
4120  done
4121  done
4122IFS=$as_save_IFS
4123  if test -z "$ac_cv_path_GREP"; then
4124    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4125  fi
4126else
4127  ac_cv_path_GREP=$GREP
4128fi
4129
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4132$as_echo "$ac_cv_path_GREP" >&6; }
4133 GREP="$ac_cv_path_GREP"
4134
4135
4136
4137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
4138$as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
4139   ac_ext=c
4140ac_cpp='$CPP $CPPFLAGS'
4141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4145$as_echo_n "checking how to run the C preprocessor... " >&6; }
4146# On Suns, sometimes $CPP names a directory.
4147if test -n "$CPP" && test -d "$CPP"; then
4148  CPP=
4149fi
4150if test -z "$CPP"; then
4151  if test "${ac_cv_prog_CPP+set}" = set; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154      # Double quotes because CPP needs to be expanded
4155    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4156    do
4157      ac_preproc_ok=false
4158for ac_c_preproc_warn_flag in '' yes
4159do
4160  # Use a header file that comes with gcc, so configuring glibc
4161  # with a fresh cross-compiler works.
4162  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163  # <limits.h> exists even on freestanding compilers.
4164  # On the NeXT, cc -E runs the code through the compiler's parser,
4165  # not just through cpp. "Syntax error" is here to catch this case.
4166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168#ifdef __STDC__
4169# include <limits.h>
4170#else
4171# include <assert.h>
4172#endif
4173		     Syntax error
4174_ACEOF
4175if ac_fn_c_try_cpp "$LINENO"; then :
4176
4177else
4178  # Broken: fails on valid input.
4179continue
4180fi
4181rm -f conftest.err conftest.i conftest.$ac_ext
4182
4183  # OK, works on sane cases.  Now check whether nonexistent headers
4184  # can be detected and how.
4185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h.  */
4187#include <ac_nonexistent.h>
4188_ACEOF
4189if ac_fn_c_try_cpp "$LINENO"; then :
4190  # Broken: success on invalid input.
4191continue
4192else
4193  # Passes both tests.
4194ac_preproc_ok=:
4195break
4196fi
4197rm -f conftest.err conftest.i conftest.$ac_ext
4198
4199done
4200# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4201rm -f conftest.i conftest.err conftest.$ac_ext
4202if $ac_preproc_ok; then :
4203  break
4204fi
4205
4206    done
4207    ac_cv_prog_CPP=$CPP
4208
4209fi
4210  CPP=$ac_cv_prog_CPP
4211else
4212  ac_cv_prog_CPP=$CPP
4213fi
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4215$as_echo "$CPP" >&6; }
4216ac_preproc_ok=false
4217for ac_c_preproc_warn_flag in '' yes
4218do
4219  # Use a header file that comes with gcc, so configuring glibc
4220  # with a fresh cross-compiler works.
4221  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4222  # <limits.h> exists even on freestanding compilers.
4223  # On the NeXT, cc -E runs the code through the compiler's parser,
4224  # not just through cpp. "Syntax error" is here to catch this case.
4225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226/* end confdefs.h.  */
4227#ifdef __STDC__
4228# include <limits.h>
4229#else
4230# include <assert.h>
4231#endif
4232		     Syntax error
4233_ACEOF
4234if ac_fn_c_try_cpp "$LINENO"; then :
4235
4236else
4237  # Broken: fails on valid input.
4238continue
4239fi
4240rm -f conftest.err conftest.i conftest.$ac_ext
4241
4242  # OK, works on sane cases.  Now check whether nonexistent headers
4243  # can be detected and how.
4244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h.  */
4246#include <ac_nonexistent.h>
4247_ACEOF
4248if ac_fn_c_try_cpp "$LINENO"; then :
4249  # Broken: success on invalid input.
4250continue
4251else
4252  # Passes both tests.
4253ac_preproc_ok=:
4254break
4255fi
4256rm -f conftest.err conftest.i conftest.$ac_ext
4257
4258done
4259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4260rm -f conftest.i conftest.err conftest.$ac_ext
4261if $ac_preproc_ok; then :
4262
4263else
4264  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4267See \`config.log' for more details" "$LINENO" 5 ; }
4268fi
4269
4270ac_ext=c
4271ac_cpp='$CPP $CPPFLAGS'
4272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4277$as_echo_n "checking for egrep... " >&6; }
4278if test "${ac_cv_path_EGREP+set}" = set; then :
4279  $as_echo_n "(cached) " >&6
4280else
4281  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4282   then ac_cv_path_EGREP="$GREP -E"
4283   else
4284     if test -z "$EGREP"; then
4285  ac_path_EGREP_found=false
4286  # Loop through the user's path and test for each of PROGNAME-LIST
4287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289do
4290  IFS=$as_save_IFS
4291  test -z "$as_dir" && as_dir=.
4292    for ac_prog in egrep; do
4293    for ac_exec_ext in '' $ac_executable_extensions; do
4294      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4295      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4296# Check for GNU ac_path_EGREP and select it if it is found.
4297  # Check for GNU $ac_path_EGREP
4298case `"$ac_path_EGREP" --version 2>&1` in
4299*GNU*)
4300  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4301*)
4302  ac_count=0
4303  $as_echo_n 0123456789 >"conftest.in"
4304  while :
4305  do
4306    cat "conftest.in" "conftest.in" >"conftest.tmp"
4307    mv "conftest.tmp" "conftest.in"
4308    cp "conftest.in" "conftest.nl"
4309    $as_echo 'EGREP' >> "conftest.nl"
4310    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312    as_fn_arith $ac_count + 1 && ac_count=$as_val
4313    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4314      # Best one so far, save it but keep looking for a better one
4315      ac_cv_path_EGREP="$ac_path_EGREP"
4316      ac_path_EGREP_max=$ac_count
4317    fi
4318    # 10*(2^10) chars as input seems more than enough
4319    test $ac_count -gt 10 && break
4320  done
4321  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322esac
4323
4324      $ac_path_EGREP_found && break 3
4325    done
4326  done
4327  done
4328IFS=$as_save_IFS
4329  if test -z "$ac_cv_path_EGREP"; then
4330    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331  fi
4332else
4333  ac_cv_path_EGREP=$EGREP
4334fi
4335
4336   fi
4337fi
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4339$as_echo "$ac_cv_path_EGREP" >&6; }
4340 EGREP="$ac_cv_path_EGREP"
4341
4342
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4344$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4345if test "${ac_cv_path_SED+set}" = set; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4349     for ac_i in 1 2 3 4 5 6 7; do
4350       ac_script="$ac_script$as_nl$ac_script"
4351     done
4352     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4353     { ac_script=; unset ac_script;}
4354     if test -z "$SED"; then
4355  ac_path_SED_found=false
4356  # Loop through the user's path and test for each of PROGNAME-LIST
4357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360  IFS=$as_save_IFS
4361  test -z "$as_dir" && as_dir=.
4362    for ac_prog in sed gsed; do
4363    for ac_exec_ext in '' $ac_executable_extensions; do
4364      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4365      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4366# Check for GNU ac_path_SED and select it if it is found.
4367  # Check for GNU $ac_path_SED
4368case `"$ac_path_SED" --version 2>&1` in
4369*GNU*)
4370  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4371*)
4372  ac_count=0
4373  $as_echo_n 0123456789 >"conftest.in"
4374  while :
4375  do
4376    cat "conftest.in" "conftest.in" >"conftest.tmp"
4377    mv "conftest.tmp" "conftest.in"
4378    cp "conftest.in" "conftest.nl"
4379    $as_echo '' >> "conftest.nl"
4380    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4381    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4382    as_fn_arith $ac_count + 1 && ac_count=$as_val
4383    if test $ac_count -gt ${ac_path_SED_max-0}; then
4384      # Best one so far, save it but keep looking for a better one
4385      ac_cv_path_SED="$ac_path_SED"
4386      ac_path_SED_max=$ac_count
4387    fi
4388    # 10*(2^10) chars as input seems more than enough
4389    test $ac_count -gt 10 && break
4390  done
4391  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4392esac
4393
4394      $ac_path_SED_found && break 3
4395    done
4396  done
4397  done
4398IFS=$as_save_IFS
4399  if test -z "$ac_cv_path_SED"; then
4400    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4401  fi
4402else
4403  ac_cv_path_SED=$SED
4404fi
4405
4406fi
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4408$as_echo "$ac_cv_path_SED" >&6; }
4409 SED="$ac_cv_path_SED"
4410  rm -f conftest.sed
4411
4412   # Get CC
4413   echo "#include \"gmp.h\"" >  conftest.c
4414   echo "MPC_OPTION __GMP_CC"           >> conftest.c
4415   GMP_CC=`$CPP $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPC_OPTION | $SED -e 's/MPC_OPTION //g' | $SED -e 's/"//g'`
4416   #Get CFLAGS
4417   echo "#include \"gmp.h\"" >  conftest.c
4418   echo "MPC_OPTION __GMP_CFLAGS"           >> conftest.c
4419   GMP_CFLAGS=`$CPP $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPC_OPTION | $SED -e 's/MPC_OPTION //g'| $SED -e 's/"//g'`
4420   rm -f conftest.c
4421   if test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" -o "x$GMP_CC" = "x__GMP_CC" ; then
4422      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423$as_echo "no" >&6; }
4424      GMP_CFLAGS=
4425      GMP_CC=
4426   else
4427      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
4428$as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
4429   fi
4430
4431      if test -n "$GMP_CFLAGS" ; then
4432      old_cflags=$CFLAGS
4433      old_cc=$CC
4434      CFLAGS=$GMP_CFLAGS
4435      CC=$GMP_CC
4436      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
4437$as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
4438      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h.  */
4440/*hello*/
4441int
4442main ()
4443{
4444/*world*/
4445  ;
4446  return 0;
4447}
4448_ACEOF
4449if ac_fn_c_try_compile "$LINENO"; then :
4450
4451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4452$as_echo "yes" >&6; }
4453
4454else
4455
4456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457$as_echo "no" >&6; }
4458         CFLAGS=$old_cflags
4459         CC=$old_cc
4460
4461fi
4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464/* end confdefs.h.  */
4465
4466   #ifndef __GNUC__
4467   #error "GCC Not Found"
4468   error
4469   #endif
4470
4471int
4472main ()
4473{
4474
4475  ;
4476  return 0;
4477}
4478_ACEOF
4479if ac_fn_c_try_compile "$LINENO"; then :
4480
4481      GCC=yes
4482
4483else
4484
4485      GCC=no
4486
4487fi
4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489   fi
4490
4491
4492fi
4493
4494
4495case $host in
4496  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4497
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5
4499$as_echo_n "checking for DLL/static GMP... " >&6; }
4500   if test "$enable_shared" = yes; then
4501     LDFLAGS="$LDFLAGS -no-undefined"
4502     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h.  */
4504
4505#include "gmp.h"
4506#if !__GMP_LIBGMP_DLL
4507#error
4508error
4509#endif
4510
4511int
4512main ()
4513{
4514
4515  ;
4516  return 0;
4517}
4518_ACEOF
4519if ac_fn_c_try_compile "$LINENO"; then :
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
4521$as_echo "DLL" >&6; }
4522else
4523
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
4525$as_echo "static" >&6; }
4526  as_fn_error $? "gmp.h isn't a DLL: use --enable-static --disable-shared" "$LINENO" 5
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h.  */
4531
4532#include "mpfr.h"
4533#if !__GMP_LIBGMP_DLL
4534#error
4535error
4536#endif
4537
4538int
4539main ()
4540{
4541
4542  ;
4543  return 0;
4544}
4545_ACEOF
4546if ac_fn_c_try_compile "$LINENO"; then :
4547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
4548$as_echo "DLL" >&6; }
4549else
4550
4551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
4552$as_echo "static" >&6; }
4553  as_fn_error $? "gmp.h isn't a DLL: use --enable-static --disable-shared" "$LINENO" 5
4554fi
4555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556   else
4557     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h.  */
4559
4560#include "gmp.h"
4561#if __GMP_LIBGMP_DLL
4562#error
4563error
4564#endif
4565
4566int
4567main ()
4568{
4569
4570  ;
4571  return 0;
4572}
4573_ACEOF
4574if ac_fn_c_try_compile "$LINENO"; then :
4575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
4576$as_echo "static" >&6; }
4577else
4578
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
4580$as_echo "DLL" >&6; }
4581  as_fn_error $? "gmp.h is a DLL: use --disable-static --enable-shared" "$LINENO" 5
4582fi
4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584  fi
4585  ;;
4586
4587esac
4588
4589
4590case `pwd` in
4591  *\ * | *\	*)
4592    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4593$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4594esac
4595
4596
4597
4598macro_version='2.2.6b'
4599macro_revision='1.3017'
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613ltmain="$ac_aux_dir/ltmain.sh"
4614
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4616$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4617if test "${ac_cv_path_SED+set}" = set; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4621     for ac_i in 1 2 3 4 5 6 7; do
4622       ac_script="$ac_script$as_nl$ac_script"
4623     done
4624     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4625     { ac_script=; unset ac_script;}
4626     if test -z "$SED"; then
4627  ac_path_SED_found=false
4628  # Loop through the user's path and test for each of PROGNAME-LIST
4629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632  IFS=$as_save_IFS
4633  test -z "$as_dir" && as_dir=.
4634    for ac_prog in sed gsed; do
4635    for ac_exec_ext in '' $ac_executable_extensions; do
4636      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4637      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4638# Check for GNU ac_path_SED and select it if it is found.
4639  # Check for GNU $ac_path_SED
4640case `"$ac_path_SED" --version 2>&1` in
4641*GNU*)
4642  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4643*)
4644  ac_count=0
4645  $as_echo_n 0123456789 >"conftest.in"
4646  while :
4647  do
4648    cat "conftest.in" "conftest.in" >"conftest.tmp"
4649    mv "conftest.tmp" "conftest.in"
4650    cp "conftest.in" "conftest.nl"
4651    $as_echo '' >> "conftest.nl"
4652    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654    as_fn_arith $ac_count + 1 && ac_count=$as_val
4655    if test $ac_count -gt ${ac_path_SED_max-0}; then
4656      # Best one so far, save it but keep looking for a better one
4657      ac_cv_path_SED="$ac_path_SED"
4658      ac_path_SED_max=$ac_count
4659    fi
4660    # 10*(2^10) chars as input seems more than enough
4661    test $ac_count -gt 10 && break
4662  done
4663  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664esac
4665
4666      $ac_path_SED_found && break 3
4667    done
4668  done
4669  done
4670IFS=$as_save_IFS
4671  if test -z "$ac_cv_path_SED"; then
4672    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4673  fi
4674else
4675  ac_cv_path_SED=$SED
4676fi
4677
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4680$as_echo "$ac_cv_path_SED" >&6; }
4681 SED="$ac_cv_path_SED"
4682  rm -f conftest.sed
4683
4684test -z "$SED" && SED=sed
4685Xsed="$SED -e 1s/^X//"
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4698$as_echo_n "checking for fgrep... " >&6; }
4699if test "${ac_cv_path_FGREP+set}" = set; then :
4700  $as_echo_n "(cached) " >&6
4701else
4702  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4703   then ac_cv_path_FGREP="$GREP -F"
4704   else
4705     if test -z "$FGREP"; then
4706  ac_path_FGREP_found=false
4707  # Loop through the user's path and test for each of PROGNAME-LIST
4708  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710do
4711  IFS=$as_save_IFS
4712  test -z "$as_dir" && as_dir=.
4713    for ac_prog in fgrep; do
4714    for ac_exec_ext in '' $ac_executable_extensions; do
4715      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4716      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4717# Check for GNU ac_path_FGREP and select it if it is found.
4718  # Check for GNU $ac_path_FGREP
4719case `"$ac_path_FGREP" --version 2>&1` in
4720*GNU*)
4721  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4722*)
4723  ac_count=0
4724  $as_echo_n 0123456789 >"conftest.in"
4725  while :
4726  do
4727    cat "conftest.in" "conftest.in" >"conftest.tmp"
4728    mv "conftest.tmp" "conftest.in"
4729    cp "conftest.in" "conftest.nl"
4730    $as_echo 'FGREP' >> "conftest.nl"
4731    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733    as_fn_arith $ac_count + 1 && ac_count=$as_val
4734    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4735      # Best one so far, save it but keep looking for a better one
4736      ac_cv_path_FGREP="$ac_path_FGREP"
4737      ac_path_FGREP_max=$ac_count
4738    fi
4739    # 10*(2^10) chars as input seems more than enough
4740    test $ac_count -gt 10 && break
4741  done
4742  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743esac
4744
4745      $ac_path_FGREP_found && break 3
4746    done
4747  done
4748  done
4749IFS=$as_save_IFS
4750  if test -z "$ac_cv_path_FGREP"; then
4751    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4752  fi
4753else
4754  ac_cv_path_FGREP=$FGREP
4755fi
4756
4757   fi
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4760$as_echo "$ac_cv_path_FGREP" >&6; }
4761 FGREP="$ac_cv_path_FGREP"
4762
4763
4764test -z "$GREP" && GREP=grep
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784# Check whether --with-gnu-ld was given.
4785if test "${with_gnu_ld+set}" = set; then :
4786  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4787else
4788  with_gnu_ld=no
4789fi
4790
4791ac_prog=ld
4792if test "$GCC" = yes; then
4793  # Check if gcc -print-prog-name=ld gives a path.
4794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4795$as_echo_n "checking for ld used by $CC... " >&6; }
4796  case $host in
4797  *-*-mingw*)
4798    # gcc leaves a trailing carriage return which upsets mingw
4799    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4800  *)
4801    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4802  esac
4803  case $ac_prog in
4804    # Accept absolute paths.
4805    [\\/]* | ?:[\\/]*)
4806      re_direlt='/[^/][^/]*/\.\./'
4807      # Canonicalize the pathname of ld
4808      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4809      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4810	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4811      done
4812      test -z "$LD" && LD="$ac_prog"
4813      ;;
4814  "")
4815    # If it fails, then pretend we aren't using GCC.
4816    ac_prog=ld
4817    ;;
4818  *)
4819    # If it is relative, then search for the first ld in PATH.
4820    with_gnu_ld=unknown
4821    ;;
4822  esac
4823elif test "$with_gnu_ld" = yes; then
4824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4825$as_echo_n "checking for GNU ld... " >&6; }
4826else
4827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4828$as_echo_n "checking for non-GNU ld... " >&6; }
4829fi
4830if test "${lt_cv_path_LD+set}" = set; then :
4831  $as_echo_n "(cached) " >&6
4832else
4833  if test -z "$LD"; then
4834  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4835  for ac_dir in $PATH; do
4836    IFS="$lt_save_ifs"
4837    test -z "$ac_dir" && ac_dir=.
4838    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4839      lt_cv_path_LD="$ac_dir/$ac_prog"
4840      # Check to see if the program is GNU ld.  I'd rather use --version,
4841      # but apparently some variants of GNU ld only accept -v.
4842      # Break only if it was the GNU/non-GNU ld that we prefer.
4843      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4844      *GNU* | *'with BFD'*)
4845	test "$with_gnu_ld" != no && break
4846	;;
4847      *)
4848	test "$with_gnu_ld" != yes && break
4849	;;
4850      esac
4851    fi
4852  done
4853  IFS="$lt_save_ifs"
4854else
4855  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4856fi
4857fi
4858
4859LD="$lt_cv_path_LD"
4860if test -n "$LD"; then
4861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4862$as_echo "$LD" >&6; }
4863else
4864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865$as_echo "no" >&6; }
4866fi
4867test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4869$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4870if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4874case `$LD -v 2>&1 </dev/null` in
4875*GNU* | *'with BFD'*)
4876  lt_cv_prog_gnu_ld=yes
4877  ;;
4878*)
4879  lt_cv_prog_gnu_ld=no
4880  ;;
4881esac
4882fi
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4884$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4885with_gnu_ld=$lt_cv_prog_gnu_ld
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4896$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4897if test "${lt_cv_path_NM+set}" = set; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  if test -n "$NM"; then
4901  # Let the user override the test.
4902  lt_cv_path_NM="$NM"
4903else
4904  lt_nm_to_check="${ac_tool_prefix}nm"
4905  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4906    lt_nm_to_check="$lt_nm_to_check nm"
4907  fi
4908  for lt_tmp_nm in $lt_nm_to_check; do
4909    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4910    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4911      IFS="$lt_save_ifs"
4912      test -z "$ac_dir" && ac_dir=.
4913      tmp_nm="$ac_dir/$lt_tmp_nm"
4914      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4915	# Check to see if the nm accepts a BSD-compat flag.
4916	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4917	#   nm: unknown option "B" ignored
4918	# Tru64's nm complains that /dev/null is an invalid object file
4919	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4920	*/dev/null* | *'Invalid file or object type'*)
4921	  lt_cv_path_NM="$tmp_nm -B"
4922	  break
4923	  ;;
4924	*)
4925	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4926	  */dev/null*)
4927	    lt_cv_path_NM="$tmp_nm -p"
4928	    break
4929	    ;;
4930	  *)
4931	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4932	    continue # so that we can try to find one that supports BSD flags
4933	    ;;
4934	  esac
4935	  ;;
4936	esac
4937      fi
4938    done
4939    IFS="$lt_save_ifs"
4940  done
4941  : ${lt_cv_path_NM=no}
4942fi
4943fi
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4945$as_echo "$lt_cv_path_NM" >&6; }
4946if test "$lt_cv_path_NM" != "no"; then
4947  NM="$lt_cv_path_NM"
4948else
4949  # Didn't find any BSD compatible name lister, look for dumpbin.
4950  if test -n "$ac_tool_prefix"; then
4951  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4952  do
4953    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4954set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956$as_echo_n "checking for $ac_word... " >&6; }
4957if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4958  $as_echo_n "(cached) " >&6
4959else
4960  if test -n "$DUMPBIN"; then
4961  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4962else
4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966  IFS=$as_save_IFS
4967  test -z "$as_dir" && as_dir=.
4968    for ac_exec_ext in '' $ac_executable_extensions; do
4969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972    break 2
4973  fi
4974done
4975  done
4976IFS=$as_save_IFS
4977
4978fi
4979fi
4980DUMPBIN=$ac_cv_prog_DUMPBIN
4981if test -n "$DUMPBIN"; then
4982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4983$as_echo "$DUMPBIN" >&6; }
4984else
4985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986$as_echo "no" >&6; }
4987fi
4988
4989
4990    test -n "$DUMPBIN" && break
4991  done
4992fi
4993if test -z "$DUMPBIN"; then
4994  ac_ct_DUMPBIN=$DUMPBIN
4995  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4996do
4997  # Extract the first word of "$ac_prog", so it can be a program name with args.
4998set dummy $ac_prog; ac_word=$2
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000$as_echo_n "checking for $ac_word... " >&6; }
5001if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5002  $as_echo_n "(cached) " >&6
5003else
5004  if test -n "$ac_ct_DUMPBIN"; then
5005  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5006else
5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH
5009do
5010  IFS=$as_save_IFS
5011  test -z "$as_dir" && as_dir=.
5012    for ac_exec_ext in '' $ac_executable_extensions; do
5013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016    break 2
5017  fi
5018done
5019  done
5020IFS=$as_save_IFS
5021
5022fi
5023fi
5024ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5025if test -n "$ac_ct_DUMPBIN"; then
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5027$as_echo "$ac_ct_DUMPBIN" >&6; }
5028else
5029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030$as_echo "no" >&6; }
5031fi
5032
5033
5034  test -n "$ac_ct_DUMPBIN" && break
5035done
5036
5037  if test "x$ac_ct_DUMPBIN" = x; then
5038    DUMPBIN=":"
5039  else
5040    case $cross_compiling:$ac_tool_warned in
5041yes:)
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044ac_tool_warned=yes ;;
5045esac
5046    DUMPBIN=$ac_ct_DUMPBIN
5047  fi
5048fi
5049
5050
5051  if test "$DUMPBIN" != ":"; then
5052    NM="$DUMPBIN"
5053  fi
5054fi
5055test -z "$NM" && NM=nm
5056
5057
5058
5059
5060
5061
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5063$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5064if test "${lt_cv_nm_interface+set}" = set; then :
5065  $as_echo_n "(cached) " >&6
5066else
5067  lt_cv_nm_interface="BSD nm"
5068  echo "int some_variable = 0;" > conftest.$ac_ext
5069  (eval echo "\"\$as_me:5069: $ac_compile\"" >&5)
5070  (eval "$ac_compile" 2>conftest.err)
5071  cat conftest.err >&5
5072  (eval echo "\"\$as_me:5072: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5073  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5074  cat conftest.err >&5
5075  (eval echo "\"\$as_me:5075: output\"" >&5)
5076  cat conftest.out >&5
5077  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5078    lt_cv_nm_interface="MS dumpbin"
5079  fi
5080  rm -f conftest*
5081fi
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5083$as_echo "$lt_cv_nm_interface" >&6; }
5084
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5086$as_echo_n "checking whether ln -s works... " >&6; }
5087LN_S=$as_ln_s
5088if test "$LN_S" = "ln -s"; then
5089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5090$as_echo "yes" >&6; }
5091else
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5093$as_echo "no, using $LN_S" >&6; }
5094fi
5095
5096# find the maximum length of command line arguments
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5098$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5099if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5100  $as_echo_n "(cached) " >&6
5101else
5102    i=0
5103  teststring="ABCD"
5104
5105  case $build_os in
5106  msdosdjgpp*)
5107    # On DJGPP, this test can blow up pretty badly due to problems in libc
5108    # (any single argument exceeding 2000 bytes causes a buffer overrun
5109    # during glob expansion).  Even if it were fixed, the result of this
5110    # check would be larger than it should be.
5111    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5112    ;;
5113
5114  gnu*)
5115    # Under GNU Hurd, this test is not required because there is
5116    # no limit to the length of command line arguments.
5117    # Libtool will interpret -1 as no limit whatsoever
5118    lt_cv_sys_max_cmd_len=-1;
5119    ;;
5120
5121  cygwin* | mingw* | cegcc*)
5122    # On Win9x/ME, this test blows up -- it succeeds, but takes
5123    # about 5 minutes as the teststring grows exponentially.
5124    # Worse, since 9x/ME are not pre-emptively multitasking,
5125    # you end up with a "frozen" computer, even though with patience
5126    # the test eventually succeeds (with a max line length of 256k).
5127    # Instead, let's just punt: use the minimum linelength reported by
5128    # all of the supported platforms: 8192 (on NT/2K/XP).
5129    lt_cv_sys_max_cmd_len=8192;
5130    ;;
5131
5132  amigaos*)
5133    # On AmigaOS with pdksh, this test takes hours, literally.
5134    # So we just punt and use a minimum line length of 8192.
5135    lt_cv_sys_max_cmd_len=8192;
5136    ;;
5137
5138  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5139    # This has been around since 386BSD, at least.  Likely further.
5140    if test -x /sbin/sysctl; then
5141      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5142    elif test -x /usr/sbin/sysctl; then
5143      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5144    else
5145      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5146    fi
5147    # And add a safety zone
5148    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5150    ;;
5151
5152  interix*)
5153    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5154    lt_cv_sys_max_cmd_len=196608
5155    ;;
5156
5157  osf*)
5158    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5159    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5160    # nice to cause kernel panics so lets avoid the loop below.
5161    # First set a reasonable default.
5162    lt_cv_sys_max_cmd_len=16384
5163    #
5164    if test -x /sbin/sysconfig; then
5165      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5166        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5167      esac
5168    fi
5169    ;;
5170  sco3.2v5*)
5171    lt_cv_sys_max_cmd_len=102400
5172    ;;
5173  sysv5* | sco5v6* | sysv4.2uw2*)
5174    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5175    if test -n "$kargmax"; then
5176      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5177    else
5178      lt_cv_sys_max_cmd_len=32768
5179    fi
5180    ;;
5181  *)
5182    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5183    if test -n "$lt_cv_sys_max_cmd_len"; then
5184      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5185      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5186    else
5187      # Make teststring a little bigger before we do anything with it.
5188      # a 1K string should be a reasonable start.
5189      for i in 1 2 3 4 5 6 7 8 ; do
5190        teststring=$teststring$teststring
5191      done
5192      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5193      # If test is not a shell built-in, we'll probably end up computing a
5194      # maximum length that is only half of the actual maximum length, but
5195      # we can't tell.
5196      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5197	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5198	      test $i != 17 # 1/2 MB should be enough
5199      do
5200        i=`expr $i + 1`
5201        teststring=$teststring$teststring
5202      done
5203      # Only check the string length outside the loop.
5204      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5205      teststring=
5206      # Add a significant safety factor because C++ compilers can tack on
5207      # massive amounts of additional arguments before passing them to the
5208      # linker.  It appears as though 1/2 is a usable value.
5209      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5210    fi
5211    ;;
5212  esac
5213
5214fi
5215
5216if test -n $lt_cv_sys_max_cmd_len ; then
5217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5218$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5219else
5220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5221$as_echo "none" >&6; }
5222fi
5223max_cmd_len=$lt_cv_sys_max_cmd_len
5224
5225
5226
5227
5228
5229
5230: ${CP="cp -f"}
5231: ${MV="mv -f"}
5232: ${RM="rm -f"}
5233
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5235$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5236# Try some XSI features
5237xsi_shell=no
5238( _lt_dummy="a/b/c"
5239  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5240      = c,a/b,, \
5241    && eval 'test $(( 1 + 1 )) -eq 2 \
5242    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5243  && xsi_shell=yes
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5245$as_echo "$xsi_shell" >&6; }
5246
5247
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5249$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5250lt_shell_append=no
5251( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5252    >/dev/null 2>&1 \
5253  && lt_shell_append=yes
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5255$as_echo "$lt_shell_append" >&6; }
5256
5257
5258if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5259  lt_unset=unset
5260else
5261  lt_unset=false
5262fi
5263
5264
5265
5266
5267
5268# test EBCDIC or ASCII
5269case `echo X|tr X '\101'` in
5270 A) # ASCII based system
5271    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5272  lt_SP2NL='tr \040 \012'
5273  lt_NL2SP='tr \015\012 \040\040'
5274  ;;
5275 *) # EBCDIC based system
5276  lt_SP2NL='tr \100 \n'
5277  lt_NL2SP='tr \r\n \100\100'
5278  ;;
5279esac
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5290$as_echo_n "checking for $LD option to reload object files... " >&6; }
5291if test "${lt_cv_ld_reload_flag+set}" = set; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  lt_cv_ld_reload_flag='-r'
5295fi
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5297$as_echo "$lt_cv_ld_reload_flag" >&6; }
5298reload_flag=$lt_cv_ld_reload_flag
5299case $reload_flag in
5300"" | " "*) ;;
5301*) reload_flag=" $reload_flag" ;;
5302esac
5303reload_cmds='$LD$reload_flag -o $output$reload_objs'
5304case $host_os in
5305  darwin*)
5306    if test "$GCC" = yes; then
5307      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5308    else
5309      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5310    fi
5311    ;;
5312esac
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322if test -n "$ac_tool_prefix"; then
5323  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5324set dummy ${ac_tool_prefix}objdump; ac_word=$2
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326$as_echo_n "checking for $ac_word... " >&6; }
5327if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5328  $as_echo_n "(cached) " >&6
5329else
5330  if test -n "$OBJDUMP"; then
5331  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5332else
5333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH
5335do
5336  IFS=$as_save_IFS
5337  test -z "$as_dir" && as_dir=.
5338    for ac_exec_ext in '' $ac_executable_extensions; do
5339  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342    break 2
5343  fi
5344done
5345  done
5346IFS=$as_save_IFS
5347
5348fi
5349fi
5350OBJDUMP=$ac_cv_prog_OBJDUMP
5351if test -n "$OBJDUMP"; then
5352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5353$as_echo "$OBJDUMP" >&6; }
5354else
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356$as_echo "no" >&6; }
5357fi
5358
5359
5360fi
5361if test -z "$ac_cv_prog_OBJDUMP"; then
5362  ac_ct_OBJDUMP=$OBJDUMP
5363  # Extract the first word of "objdump", so it can be a program name with args.
5364set dummy objdump; ac_word=$2
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366$as_echo_n "checking for $ac_word... " >&6; }
5367if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5368  $as_echo_n "(cached) " >&6
5369else
5370  if test -n "$ac_ct_OBJDUMP"; then
5371  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5372else
5373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374for as_dir in $PATH
5375do
5376  IFS=$as_save_IFS
5377  test -z "$as_dir" && as_dir=.
5378    for ac_exec_ext in '' $ac_executable_extensions; do
5379  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382    break 2
5383  fi
5384done
5385  done
5386IFS=$as_save_IFS
5387
5388fi
5389fi
5390ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5391if test -n "$ac_ct_OBJDUMP"; then
5392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5393$as_echo "$ac_ct_OBJDUMP" >&6; }
5394else
5395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396$as_echo "no" >&6; }
5397fi
5398
5399  if test "x$ac_ct_OBJDUMP" = x; then
5400    OBJDUMP="false"
5401  else
5402    case $cross_compiling:$ac_tool_warned in
5403yes:)
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406ac_tool_warned=yes ;;
5407esac
5408    OBJDUMP=$ac_ct_OBJDUMP
5409  fi
5410else
5411  OBJDUMP="$ac_cv_prog_OBJDUMP"
5412fi
5413
5414test -z "$OBJDUMP" && OBJDUMP=objdump
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5425$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5426if test "${lt_cv_deplibs_check_method+set}" = set; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  lt_cv_file_magic_cmd='$MAGIC_CMD'
5430lt_cv_file_magic_test_file=
5431lt_cv_deplibs_check_method='unknown'
5432# Need to set the preceding variable on all platforms that support
5433# interlibrary dependencies.
5434# 'none' -- dependencies not supported.
5435# `unknown' -- same as none, but documents that we really don't know.
5436# 'pass_all' -- all dependencies passed with no checks.
5437# 'test_compile' -- check by making test program.
5438# 'file_magic [[regex]]' -- check by looking for files in library path
5439# which responds to the $file_magic_cmd with a given extended regex.
5440# If you have `file' or equivalent on your system and you're not sure
5441# whether `pass_all' will *always* work, you probably want this one.
5442
5443case $host_os in
5444aix[4-9]*)
5445  lt_cv_deplibs_check_method=pass_all
5446  ;;
5447
5448beos*)
5449  lt_cv_deplibs_check_method=pass_all
5450  ;;
5451
5452bsdi[45]*)
5453  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5454  lt_cv_file_magic_cmd='/usr/bin/file -L'
5455  lt_cv_file_magic_test_file=/shlib/libc.so
5456  ;;
5457
5458cygwin*)
5459  # func_win32_libid is a shell function defined in ltmain.sh
5460  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5461  lt_cv_file_magic_cmd='func_win32_libid'
5462  ;;
5463
5464mingw* | pw32*)
5465  # Base MSYS/MinGW do not provide the 'file' command needed by
5466  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5467  # unless we find 'file', for example because we are cross-compiling.
5468  if ( file / ) >/dev/null 2>&1; then
5469    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5470    lt_cv_file_magic_cmd='func_win32_libid'
5471  else
5472    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5473    lt_cv_file_magic_cmd='$OBJDUMP -f'
5474  fi
5475  ;;
5476
5477cegcc)
5478  # use the weaker test based on 'objdump'. See mingw*.
5479  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5480  lt_cv_file_magic_cmd='$OBJDUMP -f'
5481  ;;
5482
5483darwin* | rhapsody*)
5484  lt_cv_deplibs_check_method=pass_all
5485  ;;
5486
5487freebsd* | dragonfly*)
5488  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5489    case $host_cpu in
5490    i*86 )
5491      # Not sure whether the presence of OpenBSD here was a mistake.
5492      # Let's accept both of them until this is cleared up.
5493      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5494      lt_cv_file_magic_cmd=/usr/bin/file
5495      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5496      ;;
5497    esac
5498  else
5499    lt_cv_deplibs_check_method=pass_all
5500  fi
5501  ;;
5502
5503gnu*)
5504  lt_cv_deplibs_check_method=pass_all
5505  ;;
5506
5507hpux10.20* | hpux11*)
5508  lt_cv_file_magic_cmd=/usr/bin/file
5509  case $host_cpu in
5510  ia64*)
5511    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5512    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5513    ;;
5514  hppa*64*)
5515    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]'
5516    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5517    ;;
5518  *)
5519    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5520    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5521    ;;
5522  esac
5523  ;;
5524
5525interix[3-9]*)
5526  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5527  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5528  ;;
5529
5530irix5* | irix6* | nonstopux*)
5531  case $LD in
5532  *-32|*"-32 ") libmagic=32-bit;;
5533  *-n32|*"-n32 ") libmagic=N32;;
5534  *-64|*"-64 ") libmagic=64-bit;;
5535  *) libmagic=never-match;;
5536  esac
5537  lt_cv_deplibs_check_method=pass_all
5538  ;;
5539
5540# This must be Linux ELF.
5541linux* | k*bsd*-gnu | kopensolaris*-gnu)
5542  lt_cv_deplibs_check_method=pass_all
5543  ;;
5544
5545netbsd* | netbsdelf*-gnu)
5546  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5547    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5548  else
5549    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5550  fi
5551  ;;
5552
5553newos6*)
5554  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5555  lt_cv_file_magic_cmd=/usr/bin/file
5556  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5557  ;;
5558
5559*nto* | *qnx*)
5560  lt_cv_deplibs_check_method=pass_all
5561  ;;
5562
5563openbsd*)
5564  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5565    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5566  else
5567    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5568  fi
5569  ;;
5570
5571osf3* | osf4* | osf5*)
5572  lt_cv_deplibs_check_method=pass_all
5573  ;;
5574
5575rdos*)
5576  lt_cv_deplibs_check_method=pass_all
5577  ;;
5578
5579solaris*)
5580  lt_cv_deplibs_check_method=pass_all
5581  ;;
5582
5583sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5584  lt_cv_deplibs_check_method=pass_all
5585  ;;
5586
5587sysv4 | sysv4.3*)
5588  case $host_vendor in
5589  motorola)
5590    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]'
5591    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5592    ;;
5593  ncr)
5594    lt_cv_deplibs_check_method=pass_all
5595    ;;
5596  sequent)
5597    lt_cv_file_magic_cmd='/bin/file'
5598    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5599    ;;
5600  sni)
5601    lt_cv_file_magic_cmd='/bin/file'
5602    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5603    lt_cv_file_magic_test_file=/lib/libc.so
5604    ;;
5605  siemens)
5606    lt_cv_deplibs_check_method=pass_all
5607    ;;
5608  pc)
5609    lt_cv_deplibs_check_method=pass_all
5610    ;;
5611  esac
5612  ;;
5613
5614tpf*)
5615  lt_cv_deplibs_check_method=pass_all
5616  ;;
5617esac
5618
5619fi
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5621$as_echo "$lt_cv_deplibs_check_method" >&6; }
5622file_magic_cmd=$lt_cv_file_magic_cmd
5623deplibs_check_method=$lt_cv_deplibs_check_method
5624test -z "$deplibs_check_method" && deplibs_check_method=unknown
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637if test -n "$ac_tool_prefix"; then
5638  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5639set dummy ${ac_tool_prefix}ar; ac_word=$2
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641$as_echo_n "checking for $ac_word... " >&6; }
5642if test "${ac_cv_prog_AR+set}" = set; then :
5643  $as_echo_n "(cached) " >&6
5644else
5645  if test -n "$AR"; then
5646  ac_cv_prog_AR="$AR" # Let the user override the test.
5647else
5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651  IFS=$as_save_IFS
5652  test -z "$as_dir" && as_dir=.
5653    for ac_exec_ext in '' $ac_executable_extensions; do
5654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655    ac_cv_prog_AR="${ac_tool_prefix}ar"
5656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657    break 2
5658  fi
5659done
5660  done
5661IFS=$as_save_IFS
5662
5663fi
5664fi
5665AR=$ac_cv_prog_AR
5666if test -n "$AR"; then
5667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5668$as_echo "$AR" >&6; }
5669else
5670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671$as_echo "no" >&6; }
5672fi
5673
5674
5675fi
5676if test -z "$ac_cv_prog_AR"; then
5677  ac_ct_AR=$AR
5678  # Extract the first word of "ar", so it can be a program name with args.
5679set dummy ar; ac_word=$2
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681$as_echo_n "checking for $ac_word... " >&6; }
5682if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5683  $as_echo_n "(cached) " >&6
5684else
5685  if test -n "$ac_ct_AR"; then
5686  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5687else
5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689for as_dir in $PATH
5690do
5691  IFS=$as_save_IFS
5692  test -z "$as_dir" && as_dir=.
5693    for ac_exec_ext in '' $ac_executable_extensions; do
5694  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695    ac_cv_prog_ac_ct_AR="ar"
5696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697    break 2
5698  fi
5699done
5700  done
5701IFS=$as_save_IFS
5702
5703fi
5704fi
5705ac_ct_AR=$ac_cv_prog_ac_ct_AR
5706if test -n "$ac_ct_AR"; then
5707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5708$as_echo "$ac_ct_AR" >&6; }
5709else
5710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711$as_echo "no" >&6; }
5712fi
5713
5714  if test "x$ac_ct_AR" = x; then
5715    AR="false"
5716  else
5717    case $cross_compiling:$ac_tool_warned in
5718yes:)
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5721ac_tool_warned=yes ;;
5722esac
5723    AR=$ac_ct_AR
5724  fi
5725else
5726  AR="$ac_cv_prog_AR"
5727fi
5728
5729test -z "$AR" && AR=ar
5730test -z "$AR_FLAGS" && AR_FLAGS=cru
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742if test -n "$ac_tool_prefix"; then
5743  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5744set dummy ${ac_tool_prefix}strip; ac_word=$2
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746$as_echo_n "checking for $ac_word... " >&6; }
5747if test "${ac_cv_prog_STRIP+set}" = set; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750  if test -n "$STRIP"; then
5751  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5752else
5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756  IFS=$as_save_IFS
5757  test -z "$as_dir" && as_dir=.
5758    for ac_exec_ext in '' $ac_executable_extensions; do
5759  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762    break 2
5763  fi
5764done
5765  done
5766IFS=$as_save_IFS
5767
5768fi
5769fi
5770STRIP=$ac_cv_prog_STRIP
5771if test -n "$STRIP"; then
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5773$as_echo "$STRIP" >&6; }
5774else
5775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776$as_echo "no" >&6; }
5777fi
5778
5779
5780fi
5781if test -z "$ac_cv_prog_STRIP"; then
5782  ac_ct_STRIP=$STRIP
5783  # Extract the first word of "strip", so it can be a program name with args.
5784set dummy strip; ac_word=$2
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786$as_echo_n "checking for $ac_word... " >&6; }
5787if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5788  $as_echo_n "(cached) " >&6
5789else
5790  if test -n "$ac_ct_STRIP"; then
5791  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5792else
5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794for as_dir in $PATH
5795do
5796  IFS=$as_save_IFS
5797  test -z "$as_dir" && as_dir=.
5798    for ac_exec_ext in '' $ac_executable_extensions; do
5799  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5800    ac_cv_prog_ac_ct_STRIP="strip"
5801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802    break 2
5803  fi
5804done
5805  done
5806IFS=$as_save_IFS
5807
5808fi
5809fi
5810ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5811if test -n "$ac_ct_STRIP"; then
5812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5813$as_echo "$ac_ct_STRIP" >&6; }
5814else
5815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816$as_echo "no" >&6; }
5817fi
5818
5819  if test "x$ac_ct_STRIP" = x; then
5820    STRIP=":"
5821  else
5822    case $cross_compiling:$ac_tool_warned in
5823yes:)
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5826ac_tool_warned=yes ;;
5827esac
5828    STRIP=$ac_ct_STRIP
5829  fi
5830else
5831  STRIP="$ac_cv_prog_STRIP"
5832fi
5833
5834test -z "$STRIP" && STRIP=:
5835
5836
5837
5838
5839
5840
5841if test -n "$ac_tool_prefix"; then
5842  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5843set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845$as_echo_n "checking for $ac_word... " >&6; }
5846if test "${ac_cv_prog_RANLIB+set}" = set; then :
5847  $as_echo_n "(cached) " >&6
5848else
5849  if test -n "$RANLIB"; then
5850  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855  IFS=$as_save_IFS
5856  test -z "$as_dir" && as_dir=.
5857    for ac_exec_ext in '' $ac_executable_extensions; do
5858  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5859    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861    break 2
5862  fi
5863done
5864  done
5865IFS=$as_save_IFS
5866
5867fi
5868fi
5869RANLIB=$ac_cv_prog_RANLIB
5870if test -n "$RANLIB"; then
5871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5872$as_echo "$RANLIB" >&6; }
5873else
5874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875$as_echo "no" >&6; }
5876fi
5877
5878
5879fi
5880if test -z "$ac_cv_prog_RANLIB"; then
5881  ac_ct_RANLIB=$RANLIB
5882  # Extract the first word of "ranlib", so it can be a program name with args.
5883set dummy ranlib; ac_word=$2
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885$as_echo_n "checking for $ac_word... " >&6; }
5886if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  if test -n "$ac_ct_RANLIB"; then
5890  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895  IFS=$as_save_IFS
5896  test -z "$as_dir" && as_dir=.
5897    for ac_exec_ext in '' $ac_executable_extensions; do
5898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899    ac_cv_prog_ac_ct_RANLIB="ranlib"
5900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901    break 2
5902  fi
5903done
5904  done
5905IFS=$as_save_IFS
5906
5907fi
5908fi
5909ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910if test -n "$ac_ct_RANLIB"; then
5911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5912$as_echo "$ac_ct_RANLIB" >&6; }
5913else
5914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915$as_echo "no" >&6; }
5916fi
5917
5918  if test "x$ac_ct_RANLIB" = x; then
5919    RANLIB=":"
5920  else
5921    case $cross_compiling:$ac_tool_warned in
5922yes:)
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5925ac_tool_warned=yes ;;
5926esac
5927    RANLIB=$ac_ct_RANLIB
5928  fi
5929else
5930  RANLIB="$ac_cv_prog_RANLIB"
5931fi
5932
5933test -z "$RANLIB" && RANLIB=:
5934
5935
5936
5937
5938
5939
5940# Determine commands to create old-style static archives.
5941old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5942old_postinstall_cmds='chmod 644 $oldlib'
5943old_postuninstall_cmds=
5944
5945if test -n "$RANLIB"; then
5946  case $host_os in
5947  openbsd*)
5948    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5949    ;;
5950  *)
5951    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5952    ;;
5953  esac
5954  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5955fi
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990# If no C compiler was specified, use CC.
5991LTCC=${LTCC-"$CC"}
5992
5993# If no C compiler flags were specified, use CFLAGS.
5994LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5995
5996# Allow CC to be a program name with arguments.
5997compiler=$CC
5998
5999
6000# Check for command to grab the raw symbol name followed by C symbol from nm.
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6002$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6003if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006
6007# These are sane defaults that work on at least a few old systems.
6008# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6009
6010# Character class describing NM global symbol codes.
6011symcode='[BCDEGRST]'
6012
6013# Regexp to match symbols that can be accessed directly from C.
6014sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6015
6016# Define system-specific variables.
6017case $host_os in
6018aix*)
6019  symcode='[BCDT]'
6020  ;;
6021cygwin* | mingw* | pw32* | cegcc*)
6022  symcode='[ABCDGISTW]'
6023  ;;
6024hpux*)
6025  if test "$host_cpu" = ia64; then
6026    symcode='[ABCDEGRST]'
6027  fi
6028  ;;
6029irix* | nonstopux*)
6030  symcode='[BCDEGRST]'
6031  ;;
6032osf*)
6033  symcode='[BCDEGQRST]'
6034  ;;
6035solaris*)
6036  symcode='[BDRT]'
6037  ;;
6038sco3.2v5*)
6039  symcode='[DT]'
6040  ;;
6041sysv4.2uw2*)
6042  symcode='[DT]'
6043  ;;
6044sysv5* | sco5v6* | unixware* | OpenUNIX*)
6045  symcode='[ABDT]'
6046  ;;
6047sysv4)
6048  symcode='[DFNSTU]'
6049  ;;
6050esac
6051
6052# If we're using GNU nm, then use its standard symbol codes.
6053case `$NM -V 2>&1` in
6054*GNU* | *'with BFD'*)
6055  symcode='[ABCDGIRSTW]' ;;
6056esac
6057
6058# Transform an extracted symbol line into a proper C declaration.
6059# Some systems (esp. on ia64) link data and code symbols differently,
6060# so use this general approach.
6061lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6062
6063# Transform an extracted symbol line into symbol name and symbol address
6064lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6065lt_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'"
6066
6067# Handle CRLF in mingw tool chain
6068opt_cr=
6069case $build_os in
6070mingw*)
6071  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6072  ;;
6073esac
6074
6075# Try without a prefix underscore, then with it.
6076for ac_symprfx in "" "_"; do
6077
6078  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6079  symxfrm="\\1 $ac_symprfx\\2 \\2"
6080
6081  # Write the raw and C identifiers.
6082  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6083    # Fake it for dumpbin and say T for any non-static function
6084    # and D for any global variable.
6085    # Also find C++ and __fastcall symbols from MSVC++,
6086    # which start with @ or ?.
6087    lt_cv_sys_global_symbol_pipe="$AWK '"\
6088"     {last_section=section; section=\$ 3};"\
6089"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6090"     \$ 0!~/External *\|/{next};"\
6091"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6092"     {if(hide[section]) next};"\
6093"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6094"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6095"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6096"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6097"     ' prfx=^$ac_symprfx"
6098  else
6099    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6100  fi
6101
6102  # Check to see that the pipe works correctly.
6103  pipe_works=no
6104
6105  rm -f conftest*
6106  cat > conftest.$ac_ext <<_LT_EOF
6107#ifdef __cplusplus
6108extern "C" {
6109#endif
6110char nm_test_var;
6111void nm_test_func(void);
6112void nm_test_func(void){}
6113#ifdef __cplusplus
6114}
6115#endif
6116int main(){nm_test_var='a';nm_test_func();return(0);}
6117_LT_EOF
6118
6119  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6120  (eval $ac_compile) 2>&5
6121  ac_status=$?
6122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123  test $ac_status = 0; }; then
6124    # Now try to grab the symbols.
6125    nlist=conftest.nm
6126    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6127  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6128  ac_status=$?
6129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130  test $ac_status = 0; } && test -s "$nlist"; then
6131      # Try sorting and uniquifying the output.
6132      if sort "$nlist" | uniq > "$nlist"T; then
6133	mv -f "$nlist"T "$nlist"
6134      else
6135	rm -f "$nlist"T
6136      fi
6137
6138      # Make sure that we snagged all the symbols we need.
6139      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6140	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6141	  cat <<_LT_EOF > conftest.$ac_ext
6142#ifdef __cplusplus
6143extern "C" {
6144#endif
6145
6146_LT_EOF
6147	  # Now generate the symbol file.
6148	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6149
6150	  cat <<_LT_EOF >> conftest.$ac_ext
6151
6152/* The mapping between symbol names and symbols.  */
6153const struct {
6154  const char *name;
6155  void       *address;
6156}
6157lt__PROGRAM__LTX_preloaded_symbols[] =
6158{
6159  { "@PROGRAM@", (void *) 0 },
6160_LT_EOF
6161	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6162	  cat <<\_LT_EOF >> conftest.$ac_ext
6163  {0, (void *) 0}
6164};
6165
6166/* This works around a problem in FreeBSD linker */
6167#ifdef FREEBSD_WORKAROUND
6168static const void *lt_preloaded_setup() {
6169  return lt__PROGRAM__LTX_preloaded_symbols;
6170}
6171#endif
6172
6173#ifdef __cplusplus
6174}
6175#endif
6176_LT_EOF
6177	  # Now try linking the two files.
6178	  mv conftest.$ac_objext conftstm.$ac_objext
6179	  lt_save_LIBS="$LIBS"
6180	  lt_save_CFLAGS="$CFLAGS"
6181	  LIBS="conftstm.$ac_objext"
6182	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6183	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6184  (eval $ac_link) 2>&5
6185  ac_status=$?
6186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6188	    pipe_works=yes
6189	  fi
6190	  LIBS="$lt_save_LIBS"
6191	  CFLAGS="$lt_save_CFLAGS"
6192	else
6193	  echo "cannot find nm_test_func in $nlist" >&5
6194	fi
6195      else
6196	echo "cannot find nm_test_var in $nlist" >&5
6197      fi
6198    else
6199      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6200    fi
6201  else
6202    echo "$progname: failed program was:" >&5
6203    cat conftest.$ac_ext >&5
6204  fi
6205  rm -rf conftest* conftst*
6206
6207  # Do not use the global_symbol_pipe unless it works.
6208  if test "$pipe_works" = yes; then
6209    break
6210  else
6211    lt_cv_sys_global_symbol_pipe=
6212  fi
6213done
6214
6215fi
6216
6217if test -z "$lt_cv_sys_global_symbol_pipe"; then
6218  lt_cv_sys_global_symbol_to_cdecl=
6219fi
6220if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6222$as_echo "failed" >&6; }
6223else
6224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6225$as_echo "ok" >&6; }
6226fi
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249# Check whether --enable-libtool-lock was given.
6250if test "${enable_libtool_lock+set}" = set; then :
6251  enableval=$enable_libtool_lock;
6252fi
6253
6254test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6255
6256# Some flags need to be propagated to the compiler or linker for good
6257# libtool support.
6258case $host in
6259ia64-*-hpux*)
6260  # Find out which ABI we are using.
6261  echo 'int i;' > conftest.$ac_ext
6262  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6263  (eval $ac_compile) 2>&5
6264  ac_status=$?
6265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266  test $ac_status = 0; }; then
6267    case `/usr/bin/file conftest.$ac_objext` in
6268      *ELF-32*)
6269	HPUX_IA64_MODE="32"
6270	;;
6271      *ELF-64*)
6272	HPUX_IA64_MODE="64"
6273	;;
6274    esac
6275  fi
6276  rm -rf conftest*
6277  ;;
6278*-*-irix6*)
6279  # Find out which ABI we are using.
6280  echo '#line 6280 "configure"' > conftest.$ac_ext
6281  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6282  (eval $ac_compile) 2>&5
6283  ac_status=$?
6284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6285  test $ac_status = 0; }; then
6286    if test "$lt_cv_prog_gnu_ld" = yes; then
6287      case `/usr/bin/file conftest.$ac_objext` in
6288	*32-bit*)
6289	  LD="${LD-ld} -melf32bsmip"
6290	  ;;
6291	*N32*)
6292	  LD="${LD-ld} -melf32bmipn32"
6293	  ;;
6294	*64-bit*)
6295	  LD="${LD-ld} -melf64bmip"
6296	;;
6297      esac
6298    else
6299      case `/usr/bin/file conftest.$ac_objext` in
6300	*32-bit*)
6301	  LD="${LD-ld} -32"
6302	  ;;
6303	*N32*)
6304	  LD="${LD-ld} -n32"
6305	  ;;
6306	*64-bit*)
6307	  LD="${LD-ld} -64"
6308	  ;;
6309      esac
6310    fi
6311  fi
6312  rm -rf conftest*
6313  ;;
6314
6315x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6316s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6317  # Find out which ABI we are using.
6318  echo 'int i;' > conftest.$ac_ext
6319  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6320  (eval $ac_compile) 2>&5
6321  ac_status=$?
6322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323  test $ac_status = 0; }; then
6324    case `/usr/bin/file conftest.o` in
6325      *32-bit*)
6326	case $host in
6327	  x86_64-*kfreebsd*-gnu)
6328	    LD="${LD-ld} -m elf_i386_fbsd"
6329	    ;;
6330	  x86_64-*linux*)
6331	    LD="${LD-ld} -m elf_i386"
6332	    ;;
6333	  ppc64-*linux*|powerpc64-*linux*)
6334	    LD="${LD-ld} -m elf32ppclinux"
6335	    ;;
6336	  s390x-*linux*)
6337	    LD="${LD-ld} -m elf_s390"
6338	    ;;
6339	  sparc64-*linux*)
6340	    LD="${LD-ld} -m elf32_sparc"
6341	    ;;
6342	esac
6343	;;
6344      *64-bit*)
6345	case $host in
6346	  x86_64-*kfreebsd*-gnu)
6347	    LD="${LD-ld} -m elf_x86_64_fbsd"
6348	    ;;
6349	  x86_64-*linux*)
6350	    LD="${LD-ld} -m elf_x86_64"
6351	    ;;
6352	  ppc*-*linux*|powerpc*-*linux*)
6353	    LD="${LD-ld} -m elf64ppc"
6354	    ;;
6355	  s390*-*linux*|s390*-*tpf*)
6356	    LD="${LD-ld} -m elf64_s390"
6357	    ;;
6358	  sparc*-*linux*)
6359	    LD="${LD-ld} -m elf64_sparc"
6360	    ;;
6361	esac
6362	;;
6363    esac
6364  fi
6365  rm -rf conftest*
6366  ;;
6367
6368*-*-sco3.2v5*)
6369  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6370  SAVE_CFLAGS="$CFLAGS"
6371  CFLAGS="$CFLAGS -belf"
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6373$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6374if test "${lt_cv_cc_needs_belf+set}" = set; then :
6375  $as_echo_n "(cached) " >&6
6376else
6377  ac_ext=c
6378ac_cpp='$CPP $CPPFLAGS'
6379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382
6383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h.  */
6385
6386int
6387main ()
6388{
6389
6390  ;
6391  return 0;
6392}
6393_ACEOF
6394if ac_fn_c_try_link "$LINENO"; then :
6395  lt_cv_cc_needs_belf=yes
6396else
6397  lt_cv_cc_needs_belf=no
6398fi
6399rm -f core conftest.err conftest.$ac_objext \
6400    conftest$ac_exeext conftest.$ac_ext
6401     ac_ext=c
6402ac_cpp='$CPP $CPPFLAGS'
6403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406
6407fi
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6409$as_echo "$lt_cv_cc_needs_belf" >&6; }
6410  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6411    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6412    CFLAGS="$SAVE_CFLAGS"
6413  fi
6414  ;;
6415sparc*-*solaris*)
6416  # Find out which ABI we are using.
6417  echo 'int i;' > conftest.$ac_ext
6418  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419  (eval $ac_compile) 2>&5
6420  ac_status=$?
6421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422  test $ac_status = 0; }; then
6423    case `/usr/bin/file conftest.o` in
6424    *64-bit*)
6425      case $lt_cv_prog_gnu_ld in
6426      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6427      *)
6428	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6429	  LD="${LD-ld} -64"
6430	fi
6431	;;
6432      esac
6433      ;;
6434    esac
6435  fi
6436  rm -rf conftest*
6437  ;;
6438esac
6439
6440need_locks="$enable_libtool_lock"
6441
6442
6443  case $host_os in
6444    rhapsody* | darwin*)
6445    if test -n "$ac_tool_prefix"; then
6446  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6447set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  if test -n "$DSYMUTIL"; then
6454  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459  IFS=$as_save_IFS
6460  test -z "$as_dir" && as_dir=.
6461    for ac_exec_ext in '' $ac_executable_extensions; do
6462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465    break 2
6466  fi
6467done
6468  done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473DSYMUTIL=$ac_cv_prog_DSYMUTIL
6474if test -n "$DSYMUTIL"; then
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6476$as_echo "$DSYMUTIL" >&6; }
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482
6483fi
6484if test -z "$ac_cv_prog_DSYMUTIL"; then
6485  ac_ct_DSYMUTIL=$DSYMUTIL
6486  # Extract the first word of "dsymutil", so it can be a program name with args.
6487set dummy dsymutil; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6491  $as_echo_n "(cached) " >&6
6492else
6493  if test -n "$ac_ct_DSYMUTIL"; then
6494  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499  IFS=$as_save_IFS
6500  test -z "$as_dir" && as_dir=.
6501    for ac_exec_ext in '' $ac_executable_extensions; do
6502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505    break 2
6506  fi
6507done
6508  done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6514if test -n "$ac_ct_DSYMUTIL"; then
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6516$as_echo "$ac_ct_DSYMUTIL" >&6; }
6517else
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522  if test "x$ac_ct_DSYMUTIL" = x; then
6523    DSYMUTIL=":"
6524  else
6525    case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531    DSYMUTIL=$ac_ct_DSYMUTIL
6532  fi
6533else
6534  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6535fi
6536
6537    if test -n "$ac_tool_prefix"; then
6538  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6539set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541$as_echo_n "checking for $ac_word... " >&6; }
6542if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6543  $as_echo_n "(cached) " >&6
6544else
6545  if test -n "$NMEDIT"; then
6546  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551  IFS=$as_save_IFS
6552  test -z "$as_dir" && as_dir=.
6553    for ac_exec_ext in '' $ac_executable_extensions; do
6554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557    break 2
6558  fi
6559done
6560  done
6561IFS=$as_save_IFS
6562
6563fi
6564fi
6565NMEDIT=$ac_cv_prog_NMEDIT
6566if test -n "$NMEDIT"; then
6567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6568$as_echo "$NMEDIT" >&6; }
6569else
6570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571$as_echo "no" >&6; }
6572fi
6573
6574
6575fi
6576if test -z "$ac_cv_prog_NMEDIT"; then
6577  ac_ct_NMEDIT=$NMEDIT
6578  # Extract the first word of "nmedit", so it can be a program name with args.
6579set dummy nmedit; ac_word=$2
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581$as_echo_n "checking for $ac_word... " >&6; }
6582if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6583  $as_echo_n "(cached) " >&6
6584else
6585  if test -n "$ac_ct_NMEDIT"; then
6586  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6587else
6588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589for as_dir in $PATH
6590do
6591  IFS=$as_save_IFS
6592  test -z "$as_dir" && as_dir=.
6593    for ac_exec_ext in '' $ac_executable_extensions; do
6594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597    break 2
6598  fi
6599done
6600  done
6601IFS=$as_save_IFS
6602
6603fi
6604fi
6605ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6606if test -n "$ac_ct_NMEDIT"; then
6607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6608$as_echo "$ac_ct_NMEDIT" >&6; }
6609else
6610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611$as_echo "no" >&6; }
6612fi
6613
6614  if test "x$ac_ct_NMEDIT" = x; then
6615    NMEDIT=":"
6616  else
6617    case $cross_compiling:$ac_tool_warned in
6618yes:)
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621ac_tool_warned=yes ;;
6622esac
6623    NMEDIT=$ac_ct_NMEDIT
6624  fi
6625else
6626  NMEDIT="$ac_cv_prog_NMEDIT"
6627fi
6628
6629    if test -n "$ac_tool_prefix"; then
6630  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6631set dummy ${ac_tool_prefix}lipo; ac_word=$2
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633$as_echo_n "checking for $ac_word... " >&6; }
6634if test "${ac_cv_prog_LIPO+set}" = set; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  if test -n "$LIPO"; then
6638  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643  IFS=$as_save_IFS
6644  test -z "$as_dir" && as_dir=.
6645    for ac_exec_ext in '' $ac_executable_extensions; do
6646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649    break 2
6650  fi
6651done
6652  done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
6657LIPO=$ac_cv_prog_LIPO
6658if test -n "$LIPO"; then
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6660$as_echo "$LIPO" >&6; }
6661else
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665
6666
6667fi
6668if test -z "$ac_cv_prog_LIPO"; then
6669  ac_ct_LIPO=$LIPO
6670  # Extract the first word of "lipo", so it can be a program name with args.
6671set dummy lipo; ac_word=$2
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673$as_echo_n "checking for $ac_word... " >&6; }
6674if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6675  $as_echo_n "(cached) " >&6
6676else
6677  if test -n "$ac_ct_LIPO"; then
6678  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6679else
6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683  IFS=$as_save_IFS
6684  test -z "$as_dir" && as_dir=.
6685    for ac_exec_ext in '' $ac_executable_extensions; do
6686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687    ac_cv_prog_ac_ct_LIPO="lipo"
6688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689    break 2
6690  fi
6691done
6692  done
6693IFS=$as_save_IFS
6694
6695fi
6696fi
6697ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6698if test -n "$ac_ct_LIPO"; then
6699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6700$as_echo "$ac_ct_LIPO" >&6; }
6701else
6702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703$as_echo "no" >&6; }
6704fi
6705
6706  if test "x$ac_ct_LIPO" = x; then
6707    LIPO=":"
6708  else
6709    case $cross_compiling:$ac_tool_warned in
6710yes:)
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713ac_tool_warned=yes ;;
6714esac
6715    LIPO=$ac_ct_LIPO
6716  fi
6717else
6718  LIPO="$ac_cv_prog_LIPO"
6719fi
6720
6721    if test -n "$ac_tool_prefix"; then
6722  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6723set dummy ${ac_tool_prefix}otool; ac_word=$2
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
6726if test "${ac_cv_prog_OTOOL+set}" = set; then :
6727  $as_echo_n "(cached) " >&6
6728else
6729  if test -n "$OTOOL"; then
6730  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735  IFS=$as_save_IFS
6736  test -z "$as_dir" && as_dir=.
6737    for ac_exec_ext in '' $ac_executable_extensions; do
6738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741    break 2
6742  fi
6743done
6744  done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749OTOOL=$ac_cv_prog_OTOOL
6750if test -n "$OTOOL"; then
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6752$as_echo "$OTOOL" >&6; }
6753else
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758
6759fi
6760if test -z "$ac_cv_prog_OTOOL"; then
6761  ac_ct_OTOOL=$OTOOL
6762  # Extract the first word of "otool", so it can be a program name with args.
6763set dummy otool; ac_word=$2
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765$as_echo_n "checking for $ac_word... " >&6; }
6766if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6767  $as_echo_n "(cached) " >&6
6768else
6769  if test -n "$ac_ct_OTOOL"; then
6770  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775  IFS=$as_save_IFS
6776  test -z "$as_dir" && as_dir=.
6777    for ac_exec_ext in '' $ac_executable_extensions; do
6778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779    ac_cv_prog_ac_ct_OTOOL="otool"
6780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781    break 2
6782  fi
6783done
6784  done
6785IFS=$as_save_IFS
6786
6787fi
6788fi
6789ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6790if test -n "$ac_ct_OTOOL"; then
6791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6792$as_echo "$ac_ct_OTOOL" >&6; }
6793else
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795$as_echo "no" >&6; }
6796fi
6797
6798  if test "x$ac_ct_OTOOL" = x; then
6799    OTOOL=":"
6800  else
6801    case $cross_compiling:$ac_tool_warned in
6802yes:)
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805ac_tool_warned=yes ;;
6806esac
6807    OTOOL=$ac_ct_OTOOL
6808  fi
6809else
6810  OTOOL="$ac_cv_prog_OTOOL"
6811fi
6812
6813    if test -n "$ac_tool_prefix"; then
6814  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6815set dummy ${ac_tool_prefix}otool64; ac_word=$2
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821  if test -n "$OTOOL64"; then
6822  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827  IFS=$as_save_IFS
6828  test -z "$as_dir" && as_dir=.
6829    for ac_exec_ext in '' $ac_executable_extensions; do
6830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836  done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841OTOOL64=$ac_cv_prog_OTOOL64
6842if test -n "$OTOOL64"; then
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6844$as_echo "$OTOOL64" >&6; }
6845else
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850
6851fi
6852if test -z "$ac_cv_prog_OTOOL64"; then
6853  ac_ct_OTOOL64=$OTOOL64
6854  # Extract the first word of "otool64", so it can be a program name with args.
6855set dummy otool64; ac_word=$2
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857$as_echo_n "checking for $ac_word... " >&6; }
6858if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6859  $as_echo_n "(cached) " >&6
6860else
6861  if test -n "$ac_ct_OTOOL64"; then
6862  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867  IFS=$as_save_IFS
6868  test -z "$as_dir" && as_dir=.
6869    for ac_exec_ext in '' $ac_executable_extensions; do
6870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871    ac_cv_prog_ac_ct_OTOOL64="otool64"
6872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873    break 2
6874  fi
6875done
6876  done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6882if test -n "$ac_ct_OTOOL64"; then
6883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6884$as_echo "$ac_ct_OTOOL64" >&6; }
6885else
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887$as_echo "no" >&6; }
6888fi
6889
6890  if test "x$ac_ct_OTOOL64" = x; then
6891    OTOOL64=":"
6892  else
6893    case $cross_compiling:$ac_tool_warned in
6894yes:)
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897ac_tool_warned=yes ;;
6898esac
6899    OTOOL64=$ac_ct_OTOOL64
6900  fi
6901else
6902  OTOOL64="$ac_cv_prog_OTOOL64"
6903fi
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6932$as_echo_n "checking for -single_module linker flag... " >&6; }
6933if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936  lt_cv_apple_cc_single_mod=no
6937      if test -z "${LT_MULTI_MODULE}"; then
6938	# By default we will add the -single_module flag. You can override
6939	# by either setting the environment variable LT_MULTI_MODULE
6940	# non-empty at configure time, or by adding -multi_module to the
6941	# link flags.
6942	rm -rf libconftest.dylib*
6943	echo "int foo(void){return 1;}" > conftest.c
6944	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6945-dynamiclib -Wl,-single_module conftest.c" >&5
6946	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6947	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6948        _lt_result=$?
6949	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6950	  lt_cv_apple_cc_single_mod=yes
6951	else
6952	  cat conftest.err >&5
6953	fi
6954	rm -rf libconftest.dylib*
6955	rm -f conftest.*
6956      fi
6957fi
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6959$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6960    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6961$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6962if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6963  $as_echo_n "(cached) " >&6
6964else
6965  lt_cv_ld_exported_symbols_list=no
6966      save_LDFLAGS=$LDFLAGS
6967      echo "_main" > conftest.sym
6968      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6969      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970/* end confdefs.h.  */
6971
6972int
6973main ()
6974{
6975
6976  ;
6977  return 0;
6978}
6979_ACEOF
6980if ac_fn_c_try_link "$LINENO"; then :
6981  lt_cv_ld_exported_symbols_list=yes
6982else
6983  lt_cv_ld_exported_symbols_list=no
6984fi
6985rm -f core conftest.err conftest.$ac_objext \
6986    conftest$ac_exeext conftest.$ac_ext
6987	LDFLAGS="$save_LDFLAGS"
6988
6989fi
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6991$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6992    case $host_os in
6993    rhapsody* | darwin1.[012])
6994      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6995    darwin1.*)
6996      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6997    darwin*) # darwin 5.x on
6998      # if running on 10.5 or later, the deployment target defaults
6999      # to the OS version, if on x86, and 10.4, the deployment
7000      # target defaults to 10.4. Don't you love it?
7001      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7002	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7003	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7004	10.[012]*)
7005	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7006	10.*)
7007	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7008      esac
7009    ;;
7010  esac
7011    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7012      _lt_dar_single_mod='$single_module'
7013    fi
7014    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7015      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7016    else
7017      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7018    fi
7019    if test "$DSYMUTIL" != ":"; then
7020      _lt_dsymutil='~$DSYMUTIL $lib || :'
7021    else
7022      _lt_dsymutil=
7023    fi
7024    ;;
7025  esac
7026
7027
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7029$as_echo_n "checking for ANSI C header files... " >&6; }
7030if test "${ac_cv_header_stdc+set}" = set; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035#include <stdlib.h>
7036#include <stdarg.h>
7037#include <string.h>
7038#include <float.h>
7039
7040int
7041main ()
7042{
7043
7044  ;
7045  return 0;
7046}
7047_ACEOF
7048if ac_fn_c_try_compile "$LINENO"; then :
7049  ac_cv_header_stdc=yes
7050else
7051  ac_cv_header_stdc=no
7052fi
7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054
7055if test $ac_cv_header_stdc = yes; then
7056  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h.  */
7059#include <string.h>
7060
7061_ACEOF
7062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7063  $EGREP "memchr" >/dev/null 2>&1; then :
7064
7065else
7066  ac_cv_header_stdc=no
7067fi
7068rm -f conftest*
7069
7070fi
7071
7072if test $ac_cv_header_stdc = yes; then
7073  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h.  */
7076#include <stdlib.h>
7077
7078_ACEOF
7079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7080  $EGREP "free" >/dev/null 2>&1; then :
7081
7082else
7083  ac_cv_header_stdc=no
7084fi
7085rm -f conftest*
7086
7087fi
7088
7089if test $ac_cv_header_stdc = yes; then
7090  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7091  if test "$cross_compiling" = yes; then :
7092  :
7093else
7094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095/* end confdefs.h.  */
7096#include <ctype.h>
7097#include <stdlib.h>
7098#if ((' ' & 0x0FF) == 0x020)
7099# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7100# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7101#else
7102# define ISLOWER(c) \
7103		   (('a' <= (c) && (c) <= 'i') \
7104		     || ('j' <= (c) && (c) <= 'r') \
7105		     || ('s' <= (c) && (c) <= 'z'))
7106# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7107#endif
7108
7109#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7110int
7111main ()
7112{
7113  int i;
7114  for (i = 0; i < 256; i++)
7115    if (XOR (islower (i), ISLOWER (i))
7116	|| toupper (i) != TOUPPER (i))
7117      return 2;
7118  return 0;
7119}
7120_ACEOF
7121if ac_fn_c_try_run "$LINENO"; then :
7122
7123else
7124  ac_cv_header_stdc=no
7125fi
7126rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7127  conftest.$ac_objext conftest.beam conftest.$ac_ext
7128fi
7129
7130fi
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7133$as_echo "$ac_cv_header_stdc" >&6; }
7134if test $ac_cv_header_stdc = yes; then
7135
7136$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7137
7138fi
7139
7140# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7141for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7142		  inttypes.h stdint.h unistd.h
7143do :
7144  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7145ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7146"
7147if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7148  cat >>confdefs.h <<_ACEOF
7149#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7150_ACEOF
7151
7152fi
7153
7154done
7155
7156
7157for ac_header in dlfcn.h
7158do :
7159  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7160"
7161if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7162  cat >>confdefs.h <<_ACEOF
7163#define HAVE_DLFCN_H 1
7164_ACEOF
7165
7166fi
7167
7168done
7169
7170
7171
7172# Set options
7173
7174
7175
7176        enable_dlopen=no
7177
7178
7179  enable_win32_dll=no
7180
7181
7182            # Check whether --enable-shared was given.
7183if test "${enable_shared+set}" = set; then :
7184  enableval=$enable_shared; p=${PACKAGE-default}
7185    case $enableval in
7186    yes) enable_shared=yes ;;
7187    no) enable_shared=no ;;
7188    *)
7189      enable_shared=no
7190      # Look at the argument we got.  We use all the common list separators.
7191      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7192      for pkg in $enableval; do
7193	IFS="$lt_save_ifs"
7194	if test "X$pkg" = "X$p"; then
7195	  enable_shared=yes
7196	fi
7197      done
7198      IFS="$lt_save_ifs"
7199      ;;
7200    esac
7201else
7202  enable_shared=yes
7203fi
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213  # Check whether --enable-static was given.
7214if test "${enable_static+set}" = set; then :
7215  enableval=$enable_static; p=${PACKAGE-default}
7216    case $enableval in
7217    yes) enable_static=yes ;;
7218    no) enable_static=no ;;
7219    *)
7220     enable_static=no
7221      # Look at the argument we got.  We use all the common list separators.
7222      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7223      for pkg in $enableval; do
7224	IFS="$lt_save_ifs"
7225	if test "X$pkg" = "X$p"; then
7226	  enable_static=yes
7227	fi
7228      done
7229      IFS="$lt_save_ifs"
7230      ;;
7231    esac
7232else
7233  enable_static=yes
7234fi
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245# Check whether --with-pic was given.
7246if test "${with_pic+set}" = set; then :
7247  withval=$with_pic; pic_mode="$withval"
7248else
7249  pic_mode=default
7250fi
7251
7252
7253test -z "$pic_mode" && pic_mode=default
7254
7255
7256
7257
7258
7259
7260
7261  # Check whether --enable-fast-install was given.
7262if test "${enable_fast_install+set}" = set; then :
7263  enableval=$enable_fast_install; p=${PACKAGE-default}
7264    case $enableval in
7265    yes) enable_fast_install=yes ;;
7266    no) enable_fast_install=no ;;
7267    *)
7268      enable_fast_install=no
7269      # Look at the argument we got.  We use all the common list separators.
7270      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7271      for pkg in $enableval; do
7272	IFS="$lt_save_ifs"
7273	if test "X$pkg" = "X$p"; then
7274	  enable_fast_install=yes
7275	fi
7276      done
7277      IFS="$lt_save_ifs"
7278      ;;
7279    esac
7280else
7281  enable_fast_install=yes
7282fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294# This can be used to rebuild libtool when needed
7295LIBTOOL_DEPS="$ltmain"
7296
7297# Always use our own libtool.
7298LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324test -z "$LN_S" && LN_S="ln -s"
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339if test -n "${ZSH_VERSION+set}" ; then
7340   setopt NO_GLOB_SUBST
7341fi
7342
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7344$as_echo_n "checking for objdir... " >&6; }
7345if test "${lt_cv_objdir+set}" = set; then :
7346  $as_echo_n "(cached) " >&6
7347else
7348  rm -f .libs 2>/dev/null
7349mkdir .libs 2>/dev/null
7350if test -d .libs; then
7351  lt_cv_objdir=.libs
7352else
7353  # MS-DOS does not allow filenames that begin with a dot.
7354  lt_cv_objdir=_libs
7355fi
7356rmdir .libs 2>/dev/null
7357fi
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7359$as_echo "$lt_cv_objdir" >&6; }
7360objdir=$lt_cv_objdir
7361
7362
7363
7364
7365
7366cat >>confdefs.h <<_ACEOF
7367#define LT_OBJDIR "$lt_cv_objdir/"
7368_ACEOF
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386case $host_os in
7387aix3*)
7388  # AIX sometimes has problems with the GCC collect2 program.  For some
7389  # reason, if we set the COLLECT_NAMES environment variable, the problems
7390  # vanish in a puff of smoke.
7391  if test "X${COLLECT_NAMES+set}" != Xset; then
7392    COLLECT_NAMES=
7393    export COLLECT_NAMES
7394  fi
7395  ;;
7396esac
7397
7398# Sed substitution that helps us do robust quoting.  It backslashifies
7399# metacharacters that are still active within double-quoted strings.
7400sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7401
7402# Same as above, but do not quote variable references.
7403double_quote_subst='s/\(["`\\]\)/\\\1/g'
7404
7405# Sed substitution to delay expansion of an escaped shell variable in a
7406# double_quote_subst'ed string.
7407delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7408
7409# Sed substitution to delay expansion of an escaped single quote.
7410delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7411
7412# Sed substitution to avoid accidental globbing in evaled expressions
7413no_glob_subst='s/\*/\\\*/g'
7414
7415# Global variables:
7416ofile=libtool
7417can_build_shared=yes
7418
7419# All known linkers require a `.a' archive for static linking (except MSVC,
7420# which needs '.lib').
7421libext=a
7422
7423with_gnu_ld="$lt_cv_prog_gnu_ld"
7424
7425old_CC="$CC"
7426old_CFLAGS="$CFLAGS"
7427
7428# Set sane defaults for various variables
7429test -z "$CC" && CC=cc
7430test -z "$LTCC" && LTCC=$CC
7431test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7432test -z "$LD" && LD=ld
7433test -z "$ac_objext" && ac_objext=o
7434
7435for cc_temp in $compiler""; do
7436  case $cc_temp in
7437    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7438    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7439    \-*) ;;
7440    *) break;;
7441  esac
7442done
7443cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7444
7445
7446# Only perform the check for file, if the check method requires it
7447test -z "$MAGIC_CMD" && MAGIC_CMD=file
7448case $deplibs_check_method in
7449file_magic*)
7450  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7451    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7452$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7453if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7454  $as_echo_n "(cached) " >&6
7455else
7456  case $MAGIC_CMD in
7457[\\/*] |  ?:[\\/]*)
7458  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7459  ;;
7460*)
7461  lt_save_MAGIC_CMD="$MAGIC_CMD"
7462  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7463  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7464  for ac_dir in $ac_dummy; do
7465    IFS="$lt_save_ifs"
7466    test -z "$ac_dir" && ac_dir=.
7467    if test -f $ac_dir/${ac_tool_prefix}file; then
7468      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7469      if test -n "$file_magic_test_file"; then
7470	case $deplibs_check_method in
7471	"file_magic "*)
7472	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7473	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7474	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7475	    $EGREP "$file_magic_regex" > /dev/null; then
7476	    :
7477	  else
7478	    cat <<_LT_EOF 1>&2
7479
7480*** Warning: the command libtool uses to detect shared libraries,
7481*** $file_magic_cmd, produces output that libtool cannot recognize.
7482*** The result is that libtool may fail to recognize shared libraries
7483*** as such.  This will affect the creation of libtool libraries that
7484*** depend on shared libraries, but programs linked with such libtool
7485*** libraries will work regardless of this problem.  Nevertheless, you
7486*** may want to report the problem to your system manager and/or to
7487*** bug-libtool@gnu.org
7488
7489_LT_EOF
7490	  fi ;;
7491	esac
7492      fi
7493      break
7494    fi
7495  done
7496  IFS="$lt_save_ifs"
7497  MAGIC_CMD="$lt_save_MAGIC_CMD"
7498  ;;
7499esac
7500fi
7501
7502MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7503if test -n "$MAGIC_CMD"; then
7504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7505$as_echo "$MAGIC_CMD" >&6; }
7506else
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508$as_echo "no" >&6; }
7509fi
7510
7511
7512
7513
7514
7515if test -z "$lt_cv_path_MAGIC_CMD"; then
7516  if test -n "$ac_tool_prefix"; then
7517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7518$as_echo_n "checking for file... " >&6; }
7519if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7520  $as_echo_n "(cached) " >&6
7521else
7522  case $MAGIC_CMD in
7523[\\/*] |  ?:[\\/]*)
7524  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7525  ;;
7526*)
7527  lt_save_MAGIC_CMD="$MAGIC_CMD"
7528  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7529  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7530  for ac_dir in $ac_dummy; do
7531    IFS="$lt_save_ifs"
7532    test -z "$ac_dir" && ac_dir=.
7533    if test -f $ac_dir/file; then
7534      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7535      if test -n "$file_magic_test_file"; then
7536	case $deplibs_check_method in
7537	"file_magic "*)
7538	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7539	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7541	    $EGREP "$file_magic_regex" > /dev/null; then
7542	    :
7543	  else
7544	    cat <<_LT_EOF 1>&2
7545
7546*** Warning: the command libtool uses to detect shared libraries,
7547*** $file_magic_cmd, produces output that libtool cannot recognize.
7548*** The result is that libtool may fail to recognize shared libraries
7549*** as such.  This will affect the creation of libtool libraries that
7550*** depend on shared libraries, but programs linked with such libtool
7551*** libraries will work regardless of this problem.  Nevertheless, you
7552*** may want to report the problem to your system manager and/or to
7553*** bug-libtool@gnu.org
7554
7555_LT_EOF
7556	  fi ;;
7557	esac
7558      fi
7559      break
7560    fi
7561  done
7562  IFS="$lt_save_ifs"
7563  MAGIC_CMD="$lt_save_MAGIC_CMD"
7564  ;;
7565esac
7566fi
7567
7568MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7569if test -n "$MAGIC_CMD"; then
7570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7571$as_echo "$MAGIC_CMD" >&6; }
7572else
7573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574$as_echo "no" >&6; }
7575fi
7576
7577
7578  else
7579    MAGIC_CMD=:
7580  fi
7581fi
7582
7583  fi
7584  ;;
7585esac
7586
7587# Use C for the default configuration in the libtool script
7588
7589lt_save_CC="$CC"
7590ac_ext=c
7591ac_cpp='$CPP $CPPFLAGS'
7592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594ac_compiler_gnu=$ac_cv_c_compiler_gnu
7595
7596
7597# Source file extension for C test sources.
7598ac_ext=c
7599
7600# Object file extension for compiled C test sources.
7601objext=o
7602objext=$objext
7603
7604# Code to be used in simple compile tests
7605lt_simple_compile_test_code="int some_variable = 0;"
7606
7607# Code to be used in simple link tests
7608lt_simple_link_test_code='int main(){return(0);}'
7609
7610
7611
7612
7613
7614
7615
7616# If no C compiler was specified, use CC.
7617LTCC=${LTCC-"$CC"}
7618
7619# If no C compiler flags were specified, use CFLAGS.
7620LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7621
7622# Allow CC to be a program name with arguments.
7623compiler=$CC
7624
7625# Save the default compiler, since it gets overwritten when the other
7626# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7627compiler_DEFAULT=$CC
7628
7629# save warnings/boilerplate of simple test code
7630ac_outfile=conftest.$ac_objext
7631echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7632eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7633_lt_compiler_boilerplate=`cat conftest.err`
7634$RM conftest*
7635
7636ac_outfile=conftest.$ac_objext
7637echo "$lt_simple_link_test_code" >conftest.$ac_ext
7638eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7639_lt_linker_boilerplate=`cat conftest.err`
7640$RM -r conftest*
7641
7642
7643## CAVEAT EMPTOR:
7644## There is no encapsulation within the following macros, do not change
7645## the running order or otherwise move them around unless you know exactly
7646## what you are doing...
7647if test -n "$compiler"; then
7648
7649lt_prog_compiler_no_builtin_flag=
7650
7651if test "$GCC" = yes; then
7652  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7653
7654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7655$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7656if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7657  $as_echo_n "(cached) " >&6
7658else
7659  lt_cv_prog_compiler_rtti_exceptions=no
7660   ac_outfile=conftest.$ac_objext
7661   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7662   lt_compiler_flag="-fno-rtti -fno-exceptions"
7663   # Insert the option either (1) after the last *FLAGS variable, or
7664   # (2) before a word containing "conftest.", or (3) at the end.
7665   # Note that $ac_compile itself does not contain backslashes and begins
7666   # with a dollar sign (not a hyphen), so the echo should work correctly.
7667   # The option is referenced via a variable to avoid confusing sed.
7668   lt_compile=`echo "$ac_compile" | $SED \
7669   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7670   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7671   -e 's:$: $lt_compiler_flag:'`
7672   (eval echo "\"\$as_me:7672: $lt_compile\"" >&5)
7673   (eval "$lt_compile" 2>conftest.err)
7674   ac_status=$?
7675   cat conftest.err >&5
7676   echo "$as_me:7676: \$? = $ac_status" >&5
7677   if (exit $ac_status) && test -s "$ac_outfile"; then
7678     # The compiler can only warn and ignore the option if not recognized
7679     # So say no if there are warnings other than the usual output.
7680     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7681     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7682     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7683       lt_cv_prog_compiler_rtti_exceptions=yes
7684     fi
7685   fi
7686   $RM conftest*
7687
7688fi
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7690$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7691
7692if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7693    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7694else
7695    :
7696fi
7697
7698fi
7699
7700
7701
7702
7703
7704
7705  lt_prog_compiler_wl=
7706lt_prog_compiler_pic=
7707lt_prog_compiler_static=
7708
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7710$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7711
7712  if test "$GCC" = yes; then
7713    lt_prog_compiler_wl='-Wl,'
7714    lt_prog_compiler_static='-static'
7715
7716    case $host_os in
7717      aix*)
7718      # All AIX code is PIC.
7719      if test "$host_cpu" = ia64; then
7720	# AIX 5 now supports IA64 processor
7721	lt_prog_compiler_static='-Bstatic'
7722      fi
7723      ;;
7724
7725    amigaos*)
7726      case $host_cpu in
7727      powerpc)
7728            # see comment about AmigaOS4 .so support
7729            lt_prog_compiler_pic='-fPIC'
7730        ;;
7731      m68k)
7732            # FIXME: we need at least 68020 code to build shared libraries, but
7733            # adding the `-m68020' flag to GCC prevents building anything better,
7734            # like `-m68040'.
7735            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7736        ;;
7737      esac
7738      ;;
7739
7740    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7741      # PIC is the default for these OSes.
7742      ;;
7743
7744    mingw* | cygwin* | pw32* | os2* | cegcc*)
7745      # This hack is so that the source file can tell whether it is being
7746      # built for inclusion in a dll (and should export symbols for example).
7747      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7748      # (--disable-auto-import) libraries
7749      lt_prog_compiler_pic='-DDLL_EXPORT'
7750      ;;
7751
7752    darwin* | rhapsody*)
7753      # PIC is the default on this platform
7754      # Common symbols not allowed in MH_DYLIB files
7755      lt_prog_compiler_pic='-fno-common'
7756      ;;
7757
7758    hpux*)
7759      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7760      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7761      # sets the default TLS model and affects inlining.
7762      case $host_cpu in
7763      hppa*64*)
7764	# +Z the default
7765	;;
7766      *)
7767	lt_prog_compiler_pic='-fPIC'
7768	;;
7769      esac
7770      ;;
7771
7772    interix[3-9]*)
7773      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7774      # Instead, we relocate shared libraries at runtime.
7775      ;;
7776
7777    msdosdjgpp*)
7778      # Just because we use GCC doesn't mean we suddenly get shared libraries
7779      # on systems that don't support them.
7780      lt_prog_compiler_can_build_shared=no
7781      enable_shared=no
7782      ;;
7783
7784    *nto* | *qnx*)
7785      # QNX uses GNU C++, but need to define -shared option too, otherwise
7786      # it will coredump.
7787      lt_prog_compiler_pic='-fPIC -shared'
7788      ;;
7789
7790    sysv4*MP*)
7791      if test -d /usr/nec; then
7792	lt_prog_compiler_pic=-Kconform_pic
7793      fi
7794      ;;
7795
7796    *)
7797      lt_prog_compiler_pic='-fPIC'
7798      ;;
7799    esac
7800  else
7801    # PORTME Check for flag to pass linker flags through the system compiler.
7802    case $host_os in
7803    aix*)
7804      lt_prog_compiler_wl='-Wl,'
7805      if test "$host_cpu" = ia64; then
7806	# AIX 5 now supports IA64 processor
7807	lt_prog_compiler_static='-Bstatic'
7808      else
7809	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7810      fi
7811      ;;
7812
7813    mingw* | cygwin* | pw32* | os2* | cegcc*)
7814      # This hack is so that the source file can tell whether it is being
7815      # built for inclusion in a dll (and should export symbols for example).
7816      lt_prog_compiler_pic='-DDLL_EXPORT'
7817      ;;
7818
7819    hpux9* | hpux10* | hpux11*)
7820      lt_prog_compiler_wl='-Wl,'
7821      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7822      # not for PA HP-UX.
7823      case $host_cpu in
7824      hppa*64*|ia64*)
7825	# +Z the default
7826	;;
7827      *)
7828	lt_prog_compiler_pic='+Z'
7829	;;
7830      esac
7831      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7832      lt_prog_compiler_static='${wl}-a ${wl}archive'
7833      ;;
7834
7835    irix5* | irix6* | nonstopux*)
7836      lt_prog_compiler_wl='-Wl,'
7837      # PIC (with -KPIC) is the default.
7838      lt_prog_compiler_static='-non_shared'
7839      ;;
7840
7841    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7842      case $cc_basename in
7843      # old Intel for x86_64 which still supported -KPIC.
7844      ecc*)
7845	lt_prog_compiler_wl='-Wl,'
7846	lt_prog_compiler_pic='-KPIC'
7847	lt_prog_compiler_static='-static'
7848        ;;
7849      # icc used to be incompatible with GCC.
7850      # ICC 10 doesn't accept -KPIC any more.
7851      icc* | ifort*)
7852	lt_prog_compiler_wl='-Wl,'
7853	lt_prog_compiler_pic='-fPIC'
7854	lt_prog_compiler_static='-static'
7855        ;;
7856      # Lahey Fortran 8.1.
7857      lf95*)
7858	lt_prog_compiler_wl='-Wl,'
7859	lt_prog_compiler_pic='--shared'
7860	lt_prog_compiler_static='--static'
7861	;;
7862      pgcc* | pgf77* | pgf90* | pgf95*)
7863        # Portland Group compilers (*not* the Pentium gcc compiler,
7864	# which looks to be a dead project)
7865	lt_prog_compiler_wl='-Wl,'
7866	lt_prog_compiler_pic='-fpic'
7867	lt_prog_compiler_static='-Bstatic'
7868        ;;
7869      ccc*)
7870        lt_prog_compiler_wl='-Wl,'
7871        # All Alpha code is PIC.
7872        lt_prog_compiler_static='-non_shared'
7873        ;;
7874      xl*)
7875	# IBM XL C 8.0/Fortran 10.1 on PPC
7876	lt_prog_compiler_wl='-Wl,'
7877	lt_prog_compiler_pic='-qpic'
7878	lt_prog_compiler_static='-qstaticlink'
7879	;;
7880      *)
7881	case `$CC -V 2>&1 | sed 5q` in
7882	*Sun\ C*)
7883	  # Sun C 5.9
7884	  lt_prog_compiler_pic='-KPIC'
7885	  lt_prog_compiler_static='-Bstatic'
7886	  lt_prog_compiler_wl='-Wl,'
7887	  ;;
7888	*Sun\ F*)
7889	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7890	  lt_prog_compiler_pic='-KPIC'
7891	  lt_prog_compiler_static='-Bstatic'
7892	  lt_prog_compiler_wl=''
7893	  ;;
7894	esac
7895	;;
7896      esac
7897      ;;
7898
7899    newsos6)
7900      lt_prog_compiler_pic='-KPIC'
7901      lt_prog_compiler_static='-Bstatic'
7902      ;;
7903
7904    *nto* | *qnx*)
7905      # QNX uses GNU C++, but need to define -shared option too, otherwise
7906      # it will coredump.
7907      lt_prog_compiler_pic='-fPIC -shared'
7908      ;;
7909
7910    osf3* | osf4* | osf5*)
7911      lt_prog_compiler_wl='-Wl,'
7912      # All OSF/1 code is PIC.
7913      lt_prog_compiler_static='-non_shared'
7914      ;;
7915
7916    rdos*)
7917      lt_prog_compiler_static='-non_shared'
7918      ;;
7919
7920    solaris*)
7921      lt_prog_compiler_pic='-KPIC'
7922      lt_prog_compiler_static='-Bstatic'
7923      case $cc_basename in
7924      f77* | f90* | f95*)
7925	lt_prog_compiler_wl='-Qoption ld ';;
7926      *)
7927	lt_prog_compiler_wl='-Wl,';;
7928      esac
7929      ;;
7930
7931    sunos4*)
7932      lt_prog_compiler_wl='-Qoption ld '
7933      lt_prog_compiler_pic='-PIC'
7934      lt_prog_compiler_static='-Bstatic'
7935      ;;
7936
7937    sysv4 | sysv4.2uw2* | sysv4.3*)
7938      lt_prog_compiler_wl='-Wl,'
7939      lt_prog_compiler_pic='-KPIC'
7940      lt_prog_compiler_static='-Bstatic'
7941      ;;
7942
7943    sysv4*MP*)
7944      if test -d /usr/nec ;then
7945	lt_prog_compiler_pic='-Kconform_pic'
7946	lt_prog_compiler_static='-Bstatic'
7947      fi
7948      ;;
7949
7950    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7951      lt_prog_compiler_wl='-Wl,'
7952      lt_prog_compiler_pic='-KPIC'
7953      lt_prog_compiler_static='-Bstatic'
7954      ;;
7955
7956    unicos*)
7957      lt_prog_compiler_wl='-Wl,'
7958      lt_prog_compiler_can_build_shared=no
7959      ;;
7960
7961    uts4*)
7962      lt_prog_compiler_pic='-pic'
7963      lt_prog_compiler_static='-Bstatic'
7964      ;;
7965
7966    *)
7967      lt_prog_compiler_can_build_shared=no
7968      ;;
7969    esac
7970  fi
7971
7972case $host_os in
7973  # For platforms which do not support PIC, -DPIC is meaningless:
7974  *djgpp*)
7975    lt_prog_compiler_pic=
7976    ;;
7977  *)
7978    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7979    ;;
7980esac
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7982$as_echo "$lt_prog_compiler_pic" >&6; }
7983
7984
7985
7986
7987
7988
7989#
7990# Check to make sure the PIC flag actually works.
7991#
7992if test -n "$lt_prog_compiler_pic"; then
7993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7994$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7995if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  lt_cv_prog_compiler_pic_works=no
7999   ac_outfile=conftest.$ac_objext
8000   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8001   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
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   # The option is referenced via a variable to avoid confusing sed.
8007   lt_compile=`echo "$ac_compile" | $SED \
8008   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8009   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8010   -e 's:$: $lt_compiler_flag:'`
8011   (eval echo "\"\$as_me:8011: $lt_compile\"" >&5)
8012   (eval "$lt_compile" 2>conftest.err)
8013   ac_status=$?
8014   cat conftest.err >&5
8015   echo "$as_me:8015: \$? = $ac_status" >&5
8016   if (exit $ac_status) && test -s "$ac_outfile"; then
8017     # The compiler can only warn and ignore the option if not recognized
8018     # So say no if there are warnings other than the usual output.
8019     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8020     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8021     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8022       lt_cv_prog_compiler_pic_works=yes
8023     fi
8024   fi
8025   $RM conftest*
8026
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8029$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8030
8031if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8032    case $lt_prog_compiler_pic in
8033     "" | " "*) ;;
8034     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8035     esac
8036else
8037    lt_prog_compiler_pic=
8038     lt_prog_compiler_can_build_shared=no
8039fi
8040
8041fi
8042
8043
8044
8045
8046
8047
8048#
8049# Check to make sure the static flag actually works.
8050#
8051wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8053$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8054if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8055  $as_echo_n "(cached) " >&6
8056else
8057  lt_cv_prog_compiler_static_works=no
8058   save_LDFLAGS="$LDFLAGS"
8059   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8060   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8061   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8062     # The linker can only warn and ignore the option if not recognized
8063     # So say no if there are warnings
8064     if test -s conftest.err; then
8065       # Append any errors to the config.log.
8066       cat conftest.err 1>&5
8067       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8068       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8069       if diff conftest.exp conftest.er2 >/dev/null; then
8070         lt_cv_prog_compiler_static_works=yes
8071       fi
8072     else
8073       lt_cv_prog_compiler_static_works=yes
8074     fi
8075   fi
8076   $RM -r conftest*
8077   LDFLAGS="$save_LDFLAGS"
8078
8079fi
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8081$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8082
8083if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8084    :
8085else
8086    lt_prog_compiler_static=
8087fi
8088
8089
8090
8091
8092
8093
8094
8095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8097if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8098  $as_echo_n "(cached) " >&6
8099else
8100  lt_cv_prog_compiler_c_o=no
8101   $RM -r conftest 2>/dev/null
8102   mkdir conftest
8103   cd conftest
8104   mkdir out
8105   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8106
8107   lt_compiler_flag="-o out/conftest2.$ac_objext"
8108   # Insert the option either (1) after the last *FLAGS variable, or
8109   # (2) before a word containing "conftest.", or (3) at the end.
8110   # Note that $ac_compile itself does not contain backslashes and begins
8111   # with a dollar sign (not a hyphen), so the echo should work correctly.
8112   lt_compile=`echo "$ac_compile" | $SED \
8113   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115   -e 's:$: $lt_compiler_flag:'`
8116   (eval echo "\"\$as_me:8116: $lt_compile\"" >&5)
8117   (eval "$lt_compile" 2>out/conftest.err)
8118   ac_status=$?
8119   cat out/conftest.err >&5
8120   echo "$as_me:8120: \$? = $ac_status" >&5
8121   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8122   then
8123     # The compiler can only warn and ignore the option if not recognized
8124     # So say no if there are warnings
8125     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8126     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8127     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8128       lt_cv_prog_compiler_c_o=yes
8129     fi
8130   fi
8131   chmod u+w . 2>&5
8132   $RM conftest*
8133   # SGI C++ compiler will create directory out/ii_files/ for
8134   # template instantiation
8135   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8136   $RM out/* && rmdir out
8137   cd ..
8138   $RM -r conftest
8139   $RM conftest*
8140
8141fi
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8143$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8144
8145
8146
8147
8148
8149
8150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8151$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8152if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  lt_cv_prog_compiler_c_o=no
8156   $RM -r conftest 2>/dev/null
8157   mkdir conftest
8158   cd conftest
8159   mkdir out
8160   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8161
8162   lt_compiler_flag="-o out/conftest2.$ac_objext"
8163   # Insert the option either (1) after the last *FLAGS variable, or
8164   # (2) before a word containing "conftest.", or (3) at the end.
8165   # Note that $ac_compile itself does not contain backslashes and begins
8166   # with a dollar sign (not a hyphen), so the echo should work correctly.
8167   lt_compile=`echo "$ac_compile" | $SED \
8168   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8169   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8170   -e 's:$: $lt_compiler_flag:'`
8171   (eval echo "\"\$as_me:8171: $lt_compile\"" >&5)
8172   (eval "$lt_compile" 2>out/conftest.err)
8173   ac_status=$?
8174   cat out/conftest.err >&5
8175   echo "$as_me:8175: \$? = $ac_status" >&5
8176   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8177   then
8178     # The compiler can only warn and ignore the option if not recognized
8179     # So say no if there are warnings
8180     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8181     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8182     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8183       lt_cv_prog_compiler_c_o=yes
8184     fi
8185   fi
8186   chmod u+w . 2>&5
8187   $RM conftest*
8188   # SGI C++ compiler will create directory out/ii_files/ for
8189   # template instantiation
8190   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8191   $RM out/* && rmdir out
8192   cd ..
8193   $RM -r conftest
8194   $RM conftest*
8195
8196fi
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8198$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8199
8200
8201
8202
8203hard_links="nottested"
8204if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8205  # do not overwrite the value of need_locks provided by the user
8206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8207$as_echo_n "checking if we can lock with hard links... " >&6; }
8208  hard_links=yes
8209  $RM conftest*
8210  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8211  touch conftest.a
8212  ln conftest.a conftest.b 2>&5 || hard_links=no
8213  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8215$as_echo "$hard_links" >&6; }
8216  if test "$hard_links" = no; then
8217    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8218$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8219    need_locks=warn
8220  fi
8221else
8222  need_locks=no
8223fi
8224
8225
8226
8227
8228
8229
8230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8231$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8232
8233  runpath_var=
8234  allow_undefined_flag=
8235  always_export_symbols=no
8236  archive_cmds=
8237  archive_expsym_cmds=
8238  compiler_needs_object=no
8239  enable_shared_with_static_runtimes=no
8240  export_dynamic_flag_spec=
8241  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8242  hardcode_automatic=no
8243  hardcode_direct=no
8244  hardcode_direct_absolute=no
8245  hardcode_libdir_flag_spec=
8246  hardcode_libdir_flag_spec_ld=
8247  hardcode_libdir_separator=
8248  hardcode_minus_L=no
8249  hardcode_shlibpath_var=unsupported
8250  inherit_rpath=no
8251  link_all_deplibs=unknown
8252  module_cmds=
8253  module_expsym_cmds=
8254  old_archive_from_new_cmds=
8255  old_archive_from_expsyms_cmds=
8256  thread_safe_flag_spec=
8257  whole_archive_flag_spec=
8258  # include_expsyms should be a list of space-separated symbols to be *always*
8259  # included in the symbol list
8260  include_expsyms=
8261  # exclude_expsyms can be an extended regexp of symbols to exclude
8262  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8263  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8264  # as well as any symbol that contains `d'.
8265  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8266  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8267  # platforms (ab)use it in PIC code, but their linkers get confused if
8268  # the symbol is explicitly referenced.  Since portable code cannot
8269  # rely on this symbol name, it's probably fine to never include it in
8270  # preloaded symbol tables.
8271  # Exclude shared library initialization/finalization symbols.
8272  extract_expsyms_cmds=
8273
8274  case $host_os in
8275  cygwin* | mingw* | pw32* | cegcc*)
8276    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8277    # When not using gcc, we currently assume that we are using
8278    # Microsoft Visual C++.
8279    if test "$GCC" != yes; then
8280      with_gnu_ld=no
8281    fi
8282    ;;
8283  interix*)
8284    # we just hope/assume this is gcc and not c89 (= MSVC++)
8285    with_gnu_ld=yes
8286    ;;
8287  openbsd*)
8288    with_gnu_ld=no
8289    ;;
8290  linux* | k*bsd*-gnu)
8291    link_all_deplibs=no
8292    ;;
8293  esac
8294
8295  ld_shlibs=yes
8296  if test "$with_gnu_ld" = yes; then
8297    # If archive_cmds runs LD, not CC, wlarc should be empty
8298    wlarc='${wl}'
8299
8300    # Set some defaults for GNU ld with shared library support. These
8301    # are reset later if shared libraries are not supported. Putting them
8302    # here allows them to be overridden if necessary.
8303    runpath_var=LD_RUN_PATH
8304    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8305    export_dynamic_flag_spec='${wl}--export-dynamic'
8306    # ancient GNU ld didn't support --whole-archive et. al.
8307    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8308      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8309    else
8310      whole_archive_flag_spec=
8311    fi
8312    supports_anon_versioning=no
8313    case `$LD -v 2>&1` in
8314      *GNU\ gold*) supports_anon_versioning=yes ;;
8315      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8316      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8317      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8318      *\ 2.11.*) ;; # other 2.11 versions
8319      *) supports_anon_versioning=yes ;;
8320    esac
8321
8322    # See if GNU ld supports shared libraries.
8323    case $host_os in
8324    aix[3-9]*)
8325      # On AIX/PPC, the GNU linker is very broken
8326      if test "$host_cpu" != ia64; then
8327	ld_shlibs=no
8328	cat <<_LT_EOF 1>&2
8329
8330*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8331*** to be unable to reliably create shared libraries on AIX.
8332*** Therefore, libtool is disabling shared libraries support.  If you
8333*** really care for shared libraries, you may want to modify your PATH
8334*** so that a non-GNU linker is found, and then restart.
8335
8336_LT_EOF
8337      fi
8338      ;;
8339
8340    amigaos*)
8341      case $host_cpu in
8342      powerpc)
8343            # see comment about AmigaOS4 .so support
8344            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8345            archive_expsym_cmds=''
8346        ;;
8347      m68k)
8348            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)'
8349            hardcode_libdir_flag_spec='-L$libdir'
8350            hardcode_minus_L=yes
8351        ;;
8352      esac
8353      ;;
8354
8355    beos*)
8356      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8357	allow_undefined_flag=unsupported
8358	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8359	# support --undefined.  This deserves some investigation.  FIXME
8360	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8361      else
8362	ld_shlibs=no
8363      fi
8364      ;;
8365
8366    cygwin* | mingw* | pw32* | cegcc*)
8367      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8368      # as there is no search path for DLLs.
8369      hardcode_libdir_flag_spec='-L$libdir'
8370      allow_undefined_flag=unsupported
8371      always_export_symbols=no
8372      enable_shared_with_static_runtimes=yes
8373      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8374
8375      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8376        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8377	# If the export-symbols file already is a .def file (1st line
8378	# is EXPORTS), use it as is; otherwise, prepend...
8379	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8380	  cp $export_symbols $output_objdir/$soname.def;
8381	else
8382	  echo EXPORTS > $output_objdir/$soname.def;
8383	  cat $export_symbols >> $output_objdir/$soname.def;
8384	fi~
8385	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8386      else
8387	ld_shlibs=no
8388      fi
8389      ;;
8390
8391    interix[3-9]*)
8392      hardcode_direct=no
8393      hardcode_shlibpath_var=no
8394      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8395      export_dynamic_flag_spec='${wl}-E'
8396      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8397      # Instead, shared libraries are loaded at an image base (0x10000000 by
8398      # default) and relocated if they conflict, which is a slow very memory
8399      # consuming and fragmenting process.  To avoid this, we pick a random,
8400      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8401      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8402      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8403      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'
8404      ;;
8405
8406    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8407      tmp_diet=no
8408      if test "$host_os" = linux-dietlibc; then
8409	case $cc_basename in
8410	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8411	esac
8412      fi
8413      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8414	 && test "$tmp_diet" = no
8415      then
8416	tmp_addflag=
8417	tmp_sharedflag='-shared'
8418	case $cc_basename,$host_cpu in
8419        pgcc*)				# Portland Group C compiler
8420	  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'
8421	  tmp_addflag=' $pic_flag'
8422	  ;;
8423	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8424	  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'
8425	  tmp_addflag=' $pic_flag -Mnomain' ;;
8426	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8427	  tmp_addflag=' -i_dynamic' ;;
8428	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8429	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8430	ifc* | ifort*)			# Intel Fortran compiler
8431	  tmp_addflag=' -nofor_main' ;;
8432	lf95*)				# Lahey Fortran 8.1
8433	  whole_archive_flag_spec=
8434	  tmp_sharedflag='--shared' ;;
8435	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8436	  tmp_sharedflag='-qmkshrobj'
8437	  tmp_addflag= ;;
8438	esac
8439	case `$CC -V 2>&1 | sed 5q` in
8440	*Sun\ C*)			# Sun C 5.9
8441	  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'
8442	  compiler_needs_object=yes
8443	  tmp_sharedflag='-G' ;;
8444	*Sun\ F*)			# Sun Fortran 8.3
8445	  tmp_sharedflag='-G' ;;
8446	esac
8447	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8448
8449        if test "x$supports_anon_versioning" = xyes; then
8450          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8451	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8452	    echo "local: *; };" >> $output_objdir/$libname.ver~
8453	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8454        fi
8455
8456	case $cc_basename in
8457	xlf*)
8458	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8459	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8460	  hardcode_libdir_flag_spec=
8461	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8462	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8463	  if test "x$supports_anon_versioning" = xyes; then
8464	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8465	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8466	      echo "local: *; };" >> $output_objdir/$libname.ver~
8467	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8468	  fi
8469	  ;;
8470	esac
8471      else
8472        ld_shlibs=no
8473      fi
8474      ;;
8475
8476    netbsd* | netbsdelf*-gnu)
8477      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8478	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8479	wlarc=
8480      else
8481	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8482	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8483      fi
8484      ;;
8485
8486    solaris*)
8487      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8488	ld_shlibs=no
8489	cat <<_LT_EOF 1>&2
8490
8491*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8492*** create shared libraries on Solaris systems.  Therefore, libtool
8493*** is disabling shared libraries support.  We urge you to upgrade GNU
8494*** binutils to release 2.9.1 or newer.  Another option is to modify
8495*** your PATH or compiler configuration so that the native linker is
8496*** used, and then restart.
8497
8498_LT_EOF
8499      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8500	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8501	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8502      else
8503	ld_shlibs=no
8504      fi
8505      ;;
8506
8507    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8508      case `$LD -v 2>&1` in
8509        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8510	ld_shlibs=no
8511	cat <<_LT_EOF 1>&2
8512
8513*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8514*** reliably create shared libraries on SCO systems.  Therefore, libtool
8515*** is disabling shared libraries support.  We urge you to upgrade GNU
8516*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8517*** your PATH or compiler configuration so that the native linker is
8518*** used, and then restart.
8519
8520_LT_EOF
8521	;;
8522	*)
8523	  # For security reasons, it is highly recommended that you always
8524	  # use absolute paths for naming shared libraries, and exclude the
8525	  # DT_RUNPATH tag from executables and libraries.  But doing so
8526	  # requires that you compile everything twice, which is a pain.
8527	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8528	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8529	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8531	  else
8532	    ld_shlibs=no
8533	  fi
8534	;;
8535      esac
8536      ;;
8537
8538    sunos4*)
8539      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8540      wlarc=
8541      hardcode_direct=yes
8542      hardcode_shlibpath_var=no
8543      ;;
8544
8545    *)
8546      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8547	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8549      else
8550	ld_shlibs=no
8551      fi
8552      ;;
8553    esac
8554
8555    if test "$ld_shlibs" = no; then
8556      runpath_var=
8557      hardcode_libdir_flag_spec=
8558      export_dynamic_flag_spec=
8559      whole_archive_flag_spec=
8560    fi
8561  else
8562    # PORTME fill in a description of your system's linker (not GNU ld)
8563    case $host_os in
8564    aix3*)
8565      allow_undefined_flag=unsupported
8566      always_export_symbols=yes
8567      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'
8568      # Note: this linker hardcodes the directories in LIBPATH if there
8569      # are no directories specified by -L.
8570      hardcode_minus_L=yes
8571      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8572	# Neither direct hardcoding nor static linking is supported with a
8573	# broken collect2.
8574	hardcode_direct=unsupported
8575      fi
8576      ;;
8577
8578    aix[4-9]*)
8579      if test "$host_cpu" = ia64; then
8580	# On IA64, the linker does run time linking by default, so we don't
8581	# have to do anything special.
8582	aix_use_runtimelinking=no
8583	exp_sym_flag='-Bexport'
8584	no_entry_flag=""
8585      else
8586	# If we're using GNU nm, then we don't want the "-C" option.
8587	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8588	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8589	  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'
8590	else
8591	  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'
8592	fi
8593	aix_use_runtimelinking=no
8594
8595	# Test if we are trying to use run time linking or normal
8596	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8597	# need to do runtime linking.
8598	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8599	  for ld_flag in $LDFLAGS; do
8600	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8601	    aix_use_runtimelinking=yes
8602	    break
8603	  fi
8604	  done
8605	  ;;
8606	esac
8607
8608	exp_sym_flag='-bexport'
8609	no_entry_flag='-bnoentry'
8610      fi
8611
8612      # When large executables or shared objects are built, AIX ld can
8613      # have problems creating the table of contents.  If linking a library
8614      # or program results in "error TOC overflow" add -mminimal-toc to
8615      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8616      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8617
8618      archive_cmds=''
8619      hardcode_direct=yes
8620      hardcode_direct_absolute=yes
8621      hardcode_libdir_separator=':'
8622      link_all_deplibs=yes
8623      file_list_spec='${wl}-f,'
8624
8625      if test "$GCC" = yes; then
8626	case $host_os in aix4.[012]|aix4.[012].*)
8627	# We only want to do this on AIX 4.2 and lower, the check
8628	# below for broken collect2 doesn't work under 4.3+
8629	  collect2name=`${CC} -print-prog-name=collect2`
8630	  if test -f "$collect2name" &&
8631	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8632	  then
8633	  # We have reworked collect2
8634	  :
8635	  else
8636	  # We have old collect2
8637	  hardcode_direct=unsupported
8638	  # It fails to find uninstalled libraries when the uninstalled
8639	  # path is not listed in the libpath.  Setting hardcode_minus_L
8640	  # to unsupported forces relinking
8641	  hardcode_minus_L=yes
8642	  hardcode_libdir_flag_spec='-L$libdir'
8643	  hardcode_libdir_separator=
8644	  fi
8645	  ;;
8646	esac
8647	shared_flag='-shared'
8648	if test "$aix_use_runtimelinking" = yes; then
8649	  shared_flag="$shared_flag "'${wl}-G'
8650	fi
8651	link_all_deplibs=no
8652      else
8653	# not using gcc
8654	if test "$host_cpu" = ia64; then
8655	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8656	# chokes on -Wl,-G. The following line is correct:
8657	  shared_flag='-G'
8658	else
8659	  if test "$aix_use_runtimelinking" = yes; then
8660	    shared_flag='${wl}-G'
8661	  else
8662	    shared_flag='${wl}-bM:SRE'
8663	  fi
8664	fi
8665      fi
8666
8667      export_dynamic_flag_spec='${wl}-bexpall'
8668      # It seems that -bexpall does not export symbols beginning with
8669      # underscore (_), so it is better to generate a list of symbols to export.
8670      always_export_symbols=yes
8671      if test "$aix_use_runtimelinking" = yes; then
8672	# Warning - without using the other runtime loading flags (-brtl),
8673	# -berok will link without error, but may produce a broken library.
8674	allow_undefined_flag='-berok'
8675        # Determine the default libpath from the value encoded in an
8676        # empty executable.
8677        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678/* end confdefs.h.  */
8679
8680int
8681main ()
8682{
8683
8684  ;
8685  return 0;
8686}
8687_ACEOF
8688if ac_fn_c_try_link "$LINENO"; then :
8689
8690lt_aix_libpath_sed='
8691    /Import File Strings/,/^$/ {
8692	/^0/ {
8693	    s/^0  *\(.*\)$/\1/
8694	    p
8695	}
8696    }'
8697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8698# Check for a 64-bit object if we didn't find anything.
8699if test -z "$aix_libpath"; then
8700  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8701fi
8702fi
8703rm -f core conftest.err conftest.$ac_objext \
8704    conftest$ac_exeext conftest.$ac_ext
8705if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8706
8707        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8708        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"
8709      else
8710	if test "$host_cpu" = ia64; then
8711	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8712	  allow_undefined_flag="-z nodefs"
8713	  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"
8714	else
8715	 # Determine the default libpath from the value encoded in an
8716	 # empty executable.
8717	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718/* end confdefs.h.  */
8719
8720int
8721main ()
8722{
8723
8724  ;
8725  return 0;
8726}
8727_ACEOF
8728if ac_fn_c_try_link "$LINENO"; then :
8729
8730lt_aix_libpath_sed='
8731    /Import File Strings/,/^$/ {
8732	/^0/ {
8733	    s/^0  *\(.*\)$/\1/
8734	    p
8735	}
8736    }'
8737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8738# Check for a 64-bit object if we didn't find anything.
8739if test -z "$aix_libpath"; then
8740  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8741fi
8742fi
8743rm -f core conftest.err conftest.$ac_objext \
8744    conftest$ac_exeext conftest.$ac_ext
8745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8746
8747	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8748	  # Warning - without using the other run time loading flags,
8749	  # -berok will link without error, but may produce a broken library.
8750	  no_undefined_flag=' ${wl}-bernotok'
8751	  allow_undefined_flag=' ${wl}-berok'
8752	  # Exported symbols can be pulled into shared objects from archives
8753	  whole_archive_flag_spec='$convenience'
8754	  archive_cmds_need_lc=yes
8755	  # This is similar to how AIX traditionally builds its shared libraries.
8756	  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'
8757	fi
8758      fi
8759      ;;
8760
8761    amigaos*)
8762      case $host_cpu in
8763      powerpc)
8764            # see comment about AmigaOS4 .so support
8765            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766            archive_expsym_cmds=''
8767        ;;
8768      m68k)
8769            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)'
8770            hardcode_libdir_flag_spec='-L$libdir'
8771            hardcode_minus_L=yes
8772        ;;
8773      esac
8774      ;;
8775
8776    bsdi[45]*)
8777      export_dynamic_flag_spec=-rdynamic
8778      ;;
8779
8780    cygwin* | mingw* | pw32* | cegcc*)
8781      # When not using gcc, we currently assume that we are using
8782      # Microsoft Visual C++.
8783      # hardcode_libdir_flag_spec is actually meaningless, as there is
8784      # no search path for DLLs.
8785      hardcode_libdir_flag_spec=' '
8786      allow_undefined_flag=unsupported
8787      # Tell ltmain to make .lib files, not .a files.
8788      libext=lib
8789      # Tell ltmain to make .dll files, not .so files.
8790      shrext_cmds=".dll"
8791      # FIXME: Setting linknames here is a bad hack.
8792      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8793      # The linker will automatically build a .lib file if we build a DLL.
8794      old_archive_from_new_cmds='true'
8795      # FIXME: Should let the user specify the lib program.
8796      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8797      fix_srcfile_path='`cygpath -w "$srcfile"`'
8798      enable_shared_with_static_runtimes=yes
8799      ;;
8800
8801    darwin* | rhapsody*)
8802
8803
8804  archive_cmds_need_lc=no
8805  hardcode_direct=no
8806  hardcode_automatic=yes
8807  hardcode_shlibpath_var=unsupported
8808  whole_archive_flag_spec=''
8809  link_all_deplibs=yes
8810  allow_undefined_flag="$_lt_dar_allow_undefined"
8811  case $cc_basename in
8812     ifort*) _lt_dar_can_shared=yes ;;
8813     *) _lt_dar_can_shared=$GCC ;;
8814  esac
8815  if test "$_lt_dar_can_shared" = "yes"; then
8816    output_verbose_link_cmd=echo
8817    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8818    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8819    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}"
8820    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}"
8821
8822  else
8823  ld_shlibs=no
8824  fi
8825
8826      ;;
8827
8828    dgux*)
8829      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8830      hardcode_libdir_flag_spec='-L$libdir'
8831      hardcode_shlibpath_var=no
8832      ;;
8833
8834    freebsd1*)
8835      ld_shlibs=no
8836      ;;
8837
8838    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8839    # support.  Future versions do this automatically, but an explicit c++rt0.o
8840    # does not break anything, and helps significantly (at the cost of a little
8841    # extra space).
8842    freebsd2.2*)
8843      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8844      hardcode_libdir_flag_spec='-R$libdir'
8845      hardcode_direct=yes
8846      hardcode_shlibpath_var=no
8847      ;;
8848
8849    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8850    freebsd2*)
8851      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8852      hardcode_direct=yes
8853      hardcode_minus_L=yes
8854      hardcode_shlibpath_var=no
8855      ;;
8856
8857    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8858    freebsd* | dragonfly*)
8859      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8860      hardcode_libdir_flag_spec='-R$libdir'
8861      hardcode_direct=yes
8862      hardcode_shlibpath_var=no
8863      ;;
8864
8865    hpux9*)
8866      if test "$GCC" = yes; then
8867	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'
8868      else
8869	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'
8870      fi
8871      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8872      hardcode_libdir_separator=:
8873      hardcode_direct=yes
8874
8875      # hardcode_minus_L: Not really in the search PATH,
8876      # but as the default location of the library.
8877      hardcode_minus_L=yes
8878      export_dynamic_flag_spec='${wl}-E'
8879      ;;
8880
8881    hpux10*)
8882      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8883	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8884      else
8885	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8886      fi
8887      if test "$with_gnu_ld" = no; then
8888	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8889	hardcode_libdir_flag_spec_ld='+b $libdir'
8890	hardcode_libdir_separator=:
8891	hardcode_direct=yes
8892	hardcode_direct_absolute=yes
8893	export_dynamic_flag_spec='${wl}-E'
8894	# hardcode_minus_L: Not really in the search PATH,
8895	# but as the default location of the library.
8896	hardcode_minus_L=yes
8897      fi
8898      ;;
8899
8900    hpux11*)
8901      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8902	case $host_cpu in
8903	hppa*64*)
8904	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8905	  ;;
8906	ia64*)
8907	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8908	  ;;
8909	*)
8910	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8911	  ;;
8912	esac
8913      else
8914	case $host_cpu in
8915	hppa*64*)
8916	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8917	  ;;
8918	ia64*)
8919	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8920	  ;;
8921	*)
8922	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8923	  ;;
8924	esac
8925      fi
8926      if test "$with_gnu_ld" = no; then
8927	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8928	hardcode_libdir_separator=:
8929
8930	case $host_cpu in
8931	hppa*64*|ia64*)
8932	  hardcode_direct=no
8933	  hardcode_shlibpath_var=no
8934	  ;;
8935	*)
8936	  hardcode_direct=yes
8937	  hardcode_direct_absolute=yes
8938	  export_dynamic_flag_spec='${wl}-E'
8939
8940	  # hardcode_minus_L: Not really in the search PATH,
8941	  # but as the default location of the library.
8942	  hardcode_minus_L=yes
8943	  ;;
8944	esac
8945      fi
8946      ;;
8947
8948    irix5* | irix6* | nonstopux*)
8949      if test "$GCC" = yes; then
8950	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'
8951	# Try to use the -exported_symbol ld option, if it does not
8952	# work, assume that -exports_file does not work either and
8953	# implicitly export all symbols.
8954        save_LDFLAGS="$LDFLAGS"
8955        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8956        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957/* end confdefs.h.  */
8958int foo(void) {}
8959_ACEOF
8960if ac_fn_c_try_link "$LINENO"; then :
8961  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'
8962
8963fi
8964rm -f core conftest.err conftest.$ac_objext \
8965    conftest$ac_exeext conftest.$ac_ext
8966        LDFLAGS="$save_LDFLAGS"
8967      else
8968	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'
8969	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'
8970      fi
8971      archive_cmds_need_lc='no'
8972      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8973      hardcode_libdir_separator=:
8974      inherit_rpath=yes
8975      link_all_deplibs=yes
8976      ;;
8977
8978    netbsd* | netbsdelf*-gnu)
8979      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8980	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8981      else
8982	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8983      fi
8984      hardcode_libdir_flag_spec='-R$libdir'
8985      hardcode_direct=yes
8986      hardcode_shlibpath_var=no
8987      ;;
8988
8989    newsos6)
8990      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991      hardcode_direct=yes
8992      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993      hardcode_libdir_separator=:
8994      hardcode_shlibpath_var=no
8995      ;;
8996
8997    *nto* | *qnx*)
8998      ;;
8999
9000    openbsd*)
9001      if test -f /usr/libexec/ld.so; then
9002	hardcode_direct=yes
9003	hardcode_shlibpath_var=no
9004	hardcode_direct_absolute=yes
9005	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9006	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9007	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9008	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9009	  export_dynamic_flag_spec='${wl}-E'
9010	else
9011	  case $host_os in
9012	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9013	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9014	     hardcode_libdir_flag_spec='-R$libdir'
9015	     ;;
9016	   *)
9017	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9018	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9019	     ;;
9020	  esac
9021	fi
9022      else
9023	ld_shlibs=no
9024      fi
9025      ;;
9026
9027    os2*)
9028      hardcode_libdir_flag_spec='-L$libdir'
9029      hardcode_minus_L=yes
9030      allow_undefined_flag=unsupported
9031      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'
9032      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9033      ;;
9034
9035    osf3*)
9036      if test "$GCC" = yes; then
9037	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9038	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'
9039      else
9040	allow_undefined_flag=' -expect_unresolved \*'
9041	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'
9042      fi
9043      archive_cmds_need_lc='no'
9044      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9045      hardcode_libdir_separator=:
9046      ;;
9047
9048    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9049      if test "$GCC" = yes; then
9050	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9051	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'
9052	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9053      else
9054	allow_undefined_flag=' -expect_unresolved \*'
9055	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'
9056	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~
9057	$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'
9058
9059	# Both c and cxx compiler support -rpath directly
9060	hardcode_libdir_flag_spec='-rpath $libdir'
9061      fi
9062      archive_cmds_need_lc='no'
9063      hardcode_libdir_separator=:
9064      ;;
9065
9066    solaris*)
9067      no_undefined_flag=' -z defs'
9068      if test "$GCC" = yes; then
9069	wlarc='${wl}'
9070	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9071	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9072	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9073      else
9074	case `$CC -V 2>&1` in
9075	*"Compilers 5.0"*)
9076	  wlarc=''
9077	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9078	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9079	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9080	  ;;
9081	*)
9082	  wlarc='${wl}'
9083	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9084	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9085	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9086	  ;;
9087	esac
9088      fi
9089      hardcode_libdir_flag_spec='-R$libdir'
9090      hardcode_shlibpath_var=no
9091      case $host_os in
9092      solaris2.[0-5] | solaris2.[0-5].*) ;;
9093      *)
9094	# The compiler driver will combine and reorder linker options,
9095	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9096	# but is careful enough not to reorder.
9097	# Supported since Solaris 2.6 (maybe 2.5.1?)
9098	if test "$GCC" = yes; then
9099	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9100	else
9101	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9102	fi
9103	;;
9104      esac
9105      link_all_deplibs=yes
9106      ;;
9107
9108    sunos4*)
9109      if test "x$host_vendor" = xsequent; then
9110	# Use $CC to link under sequent, because it throws in some extra .o
9111	# files that make .init and .fini sections work.
9112	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9113      else
9114	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9115      fi
9116      hardcode_libdir_flag_spec='-L$libdir'
9117      hardcode_direct=yes
9118      hardcode_minus_L=yes
9119      hardcode_shlibpath_var=no
9120      ;;
9121
9122    sysv4)
9123      case $host_vendor in
9124	sni)
9125	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126	  hardcode_direct=yes # is this really true???
9127	;;
9128	siemens)
9129	  ## LD is ld it makes a PLAMLIB
9130	  ## CC just makes a GrossModule.
9131	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9132	  reload_cmds='$CC -r -o $output$reload_objs'
9133	  hardcode_direct=no
9134        ;;
9135	motorola)
9136	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9137	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9138	;;
9139      esac
9140      runpath_var='LD_RUN_PATH'
9141      hardcode_shlibpath_var=no
9142      ;;
9143
9144    sysv4.3*)
9145      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9146      hardcode_shlibpath_var=no
9147      export_dynamic_flag_spec='-Bexport'
9148      ;;
9149
9150    sysv4*MP*)
9151      if test -d /usr/nec; then
9152	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9153	hardcode_shlibpath_var=no
9154	runpath_var=LD_RUN_PATH
9155	hardcode_runpath_var=yes
9156	ld_shlibs=yes
9157      fi
9158      ;;
9159
9160    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9161      no_undefined_flag='${wl}-z,text'
9162      archive_cmds_need_lc=no
9163      hardcode_shlibpath_var=no
9164      runpath_var='LD_RUN_PATH'
9165
9166      if test "$GCC" = yes; then
9167	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9168	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9169      else
9170	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172      fi
9173      ;;
9174
9175    sysv5* | sco3.2v5* | sco5v6*)
9176      # Note: We can NOT use -z defs as we might desire, because we do not
9177      # link with -lc, and that would cause any symbols used from libc to
9178      # always be unresolved, which means just about no library would
9179      # ever link correctly.  If we're not using GNU ld we use -z text
9180      # though, which does catch some bad symbols but isn't as heavy-handed
9181      # as -z defs.
9182      no_undefined_flag='${wl}-z,text'
9183      allow_undefined_flag='${wl}-z,nodefs'
9184      archive_cmds_need_lc=no
9185      hardcode_shlibpath_var=no
9186      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9187      hardcode_libdir_separator=':'
9188      link_all_deplibs=yes
9189      export_dynamic_flag_spec='${wl}-Bexport'
9190      runpath_var='LD_RUN_PATH'
9191
9192      if test "$GCC" = yes; then
9193	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9194	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9195      else
9196	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9197	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9198      fi
9199      ;;
9200
9201    uts4*)
9202      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9203      hardcode_libdir_flag_spec='-L$libdir'
9204      hardcode_shlibpath_var=no
9205      ;;
9206
9207    *)
9208      ld_shlibs=no
9209      ;;
9210    esac
9211
9212    if test x$host_vendor = xsni; then
9213      case $host in
9214      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9215	export_dynamic_flag_spec='${wl}-Blargedynsym'
9216	;;
9217      esac
9218    fi
9219  fi
9220
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9222$as_echo "$ld_shlibs" >&6; }
9223test "$ld_shlibs" = no && can_build_shared=no
9224
9225with_gnu_ld=$with_gnu_ld
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241#
9242# Do we need to explicitly link libc?
9243#
9244case "x$archive_cmds_need_lc" in
9245x|xyes)
9246  # Assume -lc should be added
9247  archive_cmds_need_lc=yes
9248
9249  if test "$enable_shared" = yes && test "$GCC" = yes; then
9250    case $archive_cmds in
9251    *'~'*)
9252      # FIXME: we may have to deal with multi-command sequences.
9253      ;;
9254    '$CC '*)
9255      # Test whether the compiler implicitly links with -lc since on some
9256      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9257      # to ld, don't add -lc before -lgcc.
9258      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9259$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9260      $RM conftest*
9261      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9262
9263      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9264  (eval $ac_compile) 2>&5
9265  ac_status=$?
9266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9267  test $ac_status = 0; } 2>conftest.err; then
9268        soname=conftest
9269        lib=conftest
9270        libobjs=conftest.$ac_objext
9271        deplibs=
9272        wl=$lt_prog_compiler_wl
9273	pic_flag=$lt_prog_compiler_pic
9274        compiler_flags=-v
9275        linker_flags=-v
9276        verstring=
9277        output_objdir=.
9278        libname=conftest
9279        lt_save_allow_undefined_flag=$allow_undefined_flag
9280        allow_undefined_flag=
9281        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9282  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9283  ac_status=$?
9284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9285  test $ac_status = 0; }
9286        then
9287	  archive_cmds_need_lc=no
9288        else
9289	  archive_cmds_need_lc=yes
9290        fi
9291        allow_undefined_flag=$lt_save_allow_undefined_flag
9292      else
9293        cat conftest.err 1>&5
9294      fi
9295      $RM conftest*
9296      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9297$as_echo "$archive_cmds_need_lc" >&6; }
9298      ;;
9299    esac
9300  fi
9301  ;;
9302esac
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9461$as_echo_n "checking dynamic linker characteristics... " >&6; }
9462
9463if test "$GCC" = yes; then
9464  case $host_os in
9465    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9466    *) lt_awk_arg="/^libraries:/" ;;
9467  esac
9468  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9469  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9470    # if the path contains ";" then we assume it to be the separator
9471    # otherwise default to the standard path separator (i.e. ":") - it is
9472    # assumed that no part of a normal pathname contains ";" but that should
9473    # okay in the real world where ";" in dirpaths is itself problematic.
9474    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9475  else
9476    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9477  fi
9478  # Ok, now we have the path, separated by spaces, we can step through it
9479  # and add multilib dir if necessary.
9480  lt_tmp_lt_search_path_spec=
9481  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9482  for lt_sys_path in $lt_search_path_spec; do
9483    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9484      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9485    else
9486      test -d "$lt_sys_path" && \
9487	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9488    fi
9489  done
9490  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9491BEGIN {RS=" "; FS="/|\n";} {
9492  lt_foo="";
9493  lt_count=0;
9494  for (lt_i = NF; lt_i > 0; lt_i--) {
9495    if ($lt_i != "" && $lt_i != ".") {
9496      if ($lt_i == "..") {
9497        lt_count++;
9498      } else {
9499        if (lt_count == 0) {
9500          lt_foo="/" $lt_i lt_foo;
9501        } else {
9502          lt_count--;
9503        }
9504      }
9505    }
9506  }
9507  if (lt_foo != "") { lt_freq[lt_foo]++; }
9508  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9509}'`
9510  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9511else
9512  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9513fi
9514library_names_spec=
9515libname_spec='lib$name'
9516soname_spec=
9517shrext_cmds=".so"
9518postinstall_cmds=
9519postuninstall_cmds=
9520finish_cmds=
9521finish_eval=
9522shlibpath_var=
9523shlibpath_overrides_runpath=unknown
9524version_type=none
9525dynamic_linker="$host_os ld.so"
9526sys_lib_dlsearch_path_spec="/lib /usr/lib"
9527need_lib_prefix=unknown
9528hardcode_into_libs=no
9529
9530# when you set need_version to no, make sure it does not cause -set_version
9531# flags to be left without arguments
9532need_version=unknown
9533
9534case $host_os in
9535aix3*)
9536  version_type=linux
9537  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9538  shlibpath_var=LIBPATH
9539
9540  # AIX 3 has no versioning support, so we append a major version to the name.
9541  soname_spec='${libname}${release}${shared_ext}$major'
9542  ;;
9543
9544aix[4-9]*)
9545  version_type=linux
9546  need_lib_prefix=no
9547  need_version=no
9548  hardcode_into_libs=yes
9549  if test "$host_cpu" = ia64; then
9550    # AIX 5 supports IA64
9551    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9552    shlibpath_var=LD_LIBRARY_PATH
9553  else
9554    # With GCC up to 2.95.x, collect2 would create an import file
9555    # for dependence libraries.  The import file would start with
9556    # the line `#! .'.  This would cause the generated library to
9557    # depend on `.', always an invalid library.  This was fixed in
9558    # development snapshots of GCC prior to 3.0.
9559    case $host_os in
9560      aix4 | aix4.[01] | aix4.[01].*)
9561      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9562	   echo ' yes '
9563	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9564	:
9565      else
9566	can_build_shared=no
9567      fi
9568      ;;
9569    esac
9570    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9571    # soname into executable. Probably we can add versioning support to
9572    # collect2, so additional links can be useful in future.
9573    if test "$aix_use_runtimelinking" = yes; then
9574      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9575      # instead of lib<name>.a to let people know that these are not
9576      # typical AIX shared libraries.
9577      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578    else
9579      # We preserve .a as extension for shared libraries through AIX4.2
9580      # and later when we are not doing run time linking.
9581      library_names_spec='${libname}${release}.a $libname.a'
9582      soname_spec='${libname}${release}${shared_ext}$major'
9583    fi
9584    shlibpath_var=LIBPATH
9585  fi
9586  ;;
9587
9588amigaos*)
9589  case $host_cpu in
9590  powerpc)
9591    # Since July 2007 AmigaOS4 officially supports .so libraries.
9592    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9593    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594    ;;
9595  m68k)
9596    library_names_spec='$libname.ixlibrary $libname.a'
9597    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9598    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'
9599    ;;
9600  esac
9601  ;;
9602
9603beos*)
9604  library_names_spec='${libname}${shared_ext}'
9605  dynamic_linker="$host_os ld.so"
9606  shlibpath_var=LIBRARY_PATH
9607  ;;
9608
9609bsdi[45]*)
9610  version_type=linux
9611  need_version=no
9612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613  soname_spec='${libname}${release}${shared_ext}$major'
9614  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9615  shlibpath_var=LD_LIBRARY_PATH
9616  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9617  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9618  # the default ld.so.conf also contains /usr/contrib/lib and
9619  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9620  # libtool to hard-code these into programs
9621  ;;
9622
9623cygwin* | mingw* | pw32* | cegcc*)
9624  version_type=windows
9625  shrext_cmds=".dll"
9626  need_version=no
9627  need_lib_prefix=no
9628
9629  case $GCC,$host_os in
9630  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9631    library_names_spec='$libname.dll.a'
9632    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9633    postinstall_cmds='base_file=`basename \${file}`~
9634      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9635      dldir=$destdir/`dirname \$dlpath`~
9636      test -d \$dldir || mkdir -p \$dldir~
9637      $install_prog $dir/$dlname \$dldir/$dlname~
9638      chmod a+x \$dldir/$dlname~
9639      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9640        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9641      fi'
9642    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9643      dlpath=$dir/\$dldll~
9644       $RM \$dlpath'
9645    shlibpath_overrides_runpath=yes
9646
9647    case $host_os in
9648    cygwin*)
9649      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9650      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9651      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9652      ;;
9653    mingw* | cegcc*)
9654      # MinGW DLLs use traditional 'lib' prefix
9655      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9656      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9658        # It is most probably a Windows format PATH printed by
9659        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9660        # path with ; separators, and with drive letters. We can handle the
9661        # drive letters (cygwin fileutils understands them), so leave them,
9662        # especially as we might pass files found there to a mingw objdump,
9663        # which wouldn't understand a cygwinified path. Ahh.
9664        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9665      else
9666        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9667      fi
9668      ;;
9669    pw32*)
9670      # pw32 DLLs use 'pw' prefix rather than 'lib'
9671      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9672      ;;
9673    esac
9674    ;;
9675
9676  *)
9677    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9678    ;;
9679  esac
9680  dynamic_linker='Win32 ld.exe'
9681  # FIXME: first we should search . and the directory the executable is in
9682  shlibpath_var=PATH
9683  ;;
9684
9685darwin* | rhapsody*)
9686  dynamic_linker="$host_os dyld"
9687  version_type=darwin
9688  need_lib_prefix=no
9689  need_version=no
9690  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9691  soname_spec='${libname}${release}${major}$shared_ext'
9692  shlibpath_overrides_runpath=yes
9693  shlibpath_var=DYLD_LIBRARY_PATH
9694  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9695
9696  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9697  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9698  ;;
9699
9700dgux*)
9701  version_type=linux
9702  need_lib_prefix=no
9703  need_version=no
9704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9705  soname_spec='${libname}${release}${shared_ext}$major'
9706  shlibpath_var=LD_LIBRARY_PATH
9707  ;;
9708
9709freebsd1*)
9710  dynamic_linker=no
9711  ;;
9712
9713freebsd* | dragonfly*)
9714  # DragonFly does not have aout.  When/if they implement a new
9715  # versioning mechanism, adjust this.
9716  if test -x /usr/bin/objformat; then
9717    objformat=`/usr/bin/objformat`
9718  else
9719    case $host_os in
9720    freebsd[123]*) objformat=aout ;;
9721    *) objformat=elf ;;
9722    esac
9723  fi
9724  version_type=freebsd-$objformat
9725  case $version_type in
9726    freebsd-elf*)
9727      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9728      need_version=no
9729      need_lib_prefix=no
9730      ;;
9731    freebsd-*)
9732      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9733      need_version=yes
9734      ;;
9735  esac
9736  shlibpath_var=LD_LIBRARY_PATH
9737  case $host_os in
9738  freebsd2*)
9739    shlibpath_overrides_runpath=yes
9740    ;;
9741  freebsd3.[01]* | freebsdelf3.[01]*)
9742    shlibpath_overrides_runpath=yes
9743    hardcode_into_libs=yes
9744    ;;
9745  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9746  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9747    shlibpath_overrides_runpath=no
9748    hardcode_into_libs=yes
9749    ;;
9750  *) # from 4.6 on, and DragonFly
9751    shlibpath_overrides_runpath=yes
9752    hardcode_into_libs=yes
9753    ;;
9754  esac
9755  ;;
9756
9757gnu*)
9758  version_type=linux
9759  need_lib_prefix=no
9760  need_version=no
9761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9762  soname_spec='${libname}${release}${shared_ext}$major'
9763  shlibpath_var=LD_LIBRARY_PATH
9764  hardcode_into_libs=yes
9765  ;;
9766
9767hpux9* | hpux10* | hpux11*)
9768  # Give a soname corresponding to the major version so that dld.sl refuses to
9769  # link against other versions.
9770  version_type=sunos
9771  need_lib_prefix=no
9772  need_version=no
9773  case $host_cpu in
9774  ia64*)
9775    shrext_cmds='.so'
9776    hardcode_into_libs=yes
9777    dynamic_linker="$host_os dld.so"
9778    shlibpath_var=LD_LIBRARY_PATH
9779    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9780    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781    soname_spec='${libname}${release}${shared_ext}$major'
9782    if test "X$HPUX_IA64_MODE" = X32; then
9783      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9784    else
9785      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9786    fi
9787    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9788    ;;
9789  hppa*64*)
9790    shrext_cmds='.sl'
9791    hardcode_into_libs=yes
9792    dynamic_linker="$host_os dld.sl"
9793    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9794    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9795    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796    soname_spec='${libname}${release}${shared_ext}$major'
9797    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9798    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9799    ;;
9800  *)
9801    shrext_cmds='.sl'
9802    dynamic_linker="$host_os dld.sl"
9803    shlibpath_var=SHLIB_PATH
9804    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9805    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806    soname_spec='${libname}${release}${shared_ext}$major'
9807    ;;
9808  esac
9809  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9810  postinstall_cmds='chmod 555 $lib'
9811  ;;
9812
9813interix[3-9]*)
9814  version_type=linux
9815  need_lib_prefix=no
9816  need_version=no
9817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9818  soname_spec='${libname}${release}${shared_ext}$major'
9819  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9820  shlibpath_var=LD_LIBRARY_PATH
9821  shlibpath_overrides_runpath=no
9822  hardcode_into_libs=yes
9823  ;;
9824
9825irix5* | irix6* | nonstopux*)
9826  case $host_os in
9827    nonstopux*) version_type=nonstopux ;;
9828    *)
9829	if test "$lt_cv_prog_gnu_ld" = yes; then
9830		version_type=linux
9831	else
9832		version_type=irix
9833	fi ;;
9834  esac
9835  need_lib_prefix=no
9836  need_version=no
9837  soname_spec='${libname}${release}${shared_ext}$major'
9838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9839  case $host_os in
9840  irix5* | nonstopux*)
9841    libsuff= shlibsuff=
9842    ;;
9843  *)
9844    case $LD in # libtool.m4 will add one of these switches to LD
9845    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9846      libsuff= shlibsuff= libmagic=32-bit;;
9847    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9848      libsuff=32 shlibsuff=N32 libmagic=N32;;
9849    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9850      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9851    *) libsuff= shlibsuff= libmagic=never-match;;
9852    esac
9853    ;;
9854  esac
9855  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9856  shlibpath_overrides_runpath=no
9857  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9858  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9859  hardcode_into_libs=yes
9860  ;;
9861
9862# No shared lib support for Linux oldld, aout, or coff.
9863linux*oldld* | linux*aout* | linux*coff*)
9864  dynamic_linker=no
9865  ;;
9866
9867# This must be Linux ELF.
9868linux* | k*bsd*-gnu | kopensolaris*-gnu)
9869  version_type=linux
9870  need_lib_prefix=no
9871  need_version=no
9872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873  soname_spec='${libname}${release}${shared_ext}$major'
9874  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9875  shlibpath_var=LD_LIBRARY_PATH
9876  shlibpath_overrides_runpath=no
9877  # Some binutils ld are patched to set DT_RUNPATH
9878  save_LDFLAGS=$LDFLAGS
9879  save_libdir=$libdir
9880  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9881       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883/* end confdefs.h.  */
9884
9885int
9886main ()
9887{
9888
9889  ;
9890  return 0;
9891}
9892_ACEOF
9893if ac_fn_c_try_link "$LINENO"; then :
9894  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9895  shlibpath_overrides_runpath=yes
9896fi
9897fi
9898rm -f core conftest.err conftest.$ac_objext \
9899    conftest$ac_exeext conftest.$ac_ext
9900  LDFLAGS=$save_LDFLAGS
9901  libdir=$save_libdir
9902
9903  # This implies no fast_install, which is unacceptable.
9904  # Some rework will be needed to allow for fast_install
9905  # before this can be enabled.
9906  hardcode_into_libs=yes
9907
9908  # Append ld.so.conf contents to the search path
9909  if test -f /etc/ld.so.conf; then
9910    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' ' '`
9911    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9912  fi
9913
9914  # We used to test for /lib/ld.so.1 and disable shared libraries on
9915  # powerpc, because MkLinux only supported shared libraries with the
9916  # GNU dynamic linker.  Since this was broken with cross compilers,
9917  # most powerpc-linux boxes support dynamic linking these days and
9918  # people can always --disable-shared, the test was removed, and we
9919  # assume the GNU/Linux dynamic linker is in use.
9920  dynamic_linker='GNU/Linux ld.so'
9921  ;;
9922
9923netbsdelf*-gnu)
9924  version_type=linux
9925  need_lib_prefix=no
9926  need_version=no
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  shlibpath_overrides_runpath=no
9931  hardcode_into_libs=yes
9932  dynamic_linker='NetBSD ld.elf_so'
9933  ;;
9934
9935netbsd*)
9936  version_type=sunos
9937  need_lib_prefix=no
9938  need_version=no
9939  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9940    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942    dynamic_linker='NetBSD (a.out) ld.so'
9943  else
9944    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9945    soname_spec='${libname}${release}${shared_ext}$major'
9946    dynamic_linker='NetBSD ld.elf_so'
9947  fi
9948  shlibpath_var=LD_LIBRARY_PATH
9949  shlibpath_overrides_runpath=yes
9950  hardcode_into_libs=yes
9951  ;;
9952
9953newsos6)
9954  version_type=linux
9955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956  shlibpath_var=LD_LIBRARY_PATH
9957  shlibpath_overrides_runpath=yes
9958  ;;
9959
9960*nto* | *qnx*)
9961  version_type=qnx
9962  need_lib_prefix=no
9963  need_version=no
9964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965  soname_spec='${libname}${release}${shared_ext}$major'
9966  shlibpath_var=LD_LIBRARY_PATH
9967  shlibpath_overrides_runpath=no
9968  hardcode_into_libs=yes
9969  dynamic_linker='ldqnx.so'
9970  ;;
9971
9972openbsd*)
9973  version_type=sunos
9974  sys_lib_dlsearch_path_spec="/usr/lib"
9975  need_lib_prefix=no
9976  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9977  case $host_os in
9978    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9979    *)				need_version=no  ;;
9980  esac
9981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9982  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9983  shlibpath_var=LD_LIBRARY_PATH
9984  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9985    case $host_os in
9986      openbsd2.[89] | openbsd2.[89].*)
9987	shlibpath_overrides_runpath=no
9988	;;
9989      *)
9990	shlibpath_overrides_runpath=yes
9991	;;
9992      esac
9993  else
9994    shlibpath_overrides_runpath=yes
9995  fi
9996  ;;
9997
9998os2*)
9999  libname_spec='$name'
10000  shrext_cmds=".dll"
10001  need_lib_prefix=no
10002  library_names_spec='$libname${shared_ext} $libname.a'
10003  dynamic_linker='OS/2 ld.exe'
10004  shlibpath_var=LIBPATH
10005  ;;
10006
10007osf3* | osf4* | osf5*)
10008  version_type=osf
10009  need_lib_prefix=no
10010  need_version=no
10011  soname_spec='${libname}${release}${shared_ext}$major'
10012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013  shlibpath_var=LD_LIBRARY_PATH
10014  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10015  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10016  ;;
10017
10018rdos*)
10019  dynamic_linker=no
10020  ;;
10021
10022solaris*)
10023  version_type=linux
10024  need_lib_prefix=no
10025  need_version=no
10026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027  soname_spec='${libname}${release}${shared_ext}$major'
10028  shlibpath_var=LD_LIBRARY_PATH
10029  shlibpath_overrides_runpath=yes
10030  hardcode_into_libs=yes
10031  # ldd complains unless libraries are executable
10032  postinstall_cmds='chmod +x $lib'
10033  ;;
10034
10035sunos4*)
10036  version_type=sunos
10037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10038  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10039  shlibpath_var=LD_LIBRARY_PATH
10040  shlibpath_overrides_runpath=yes
10041  if test "$with_gnu_ld" = yes; then
10042    need_lib_prefix=no
10043  fi
10044  need_version=yes
10045  ;;
10046
10047sysv4 | sysv4.3*)
10048  version_type=linux
10049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050  soname_spec='${libname}${release}${shared_ext}$major'
10051  shlibpath_var=LD_LIBRARY_PATH
10052  case $host_vendor in
10053    sni)
10054      shlibpath_overrides_runpath=no
10055      need_lib_prefix=no
10056      runpath_var=LD_RUN_PATH
10057      ;;
10058    siemens)
10059      need_lib_prefix=no
10060      ;;
10061    motorola)
10062      need_lib_prefix=no
10063      need_version=no
10064      shlibpath_overrides_runpath=no
10065      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10066      ;;
10067  esac
10068  ;;
10069
10070sysv4*MP*)
10071  if test -d /usr/nec ;then
10072    version_type=linux
10073    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10074    soname_spec='$libname${shared_ext}.$major'
10075    shlibpath_var=LD_LIBRARY_PATH
10076  fi
10077  ;;
10078
10079sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10080  version_type=freebsd-elf
10081  need_lib_prefix=no
10082  need_version=no
10083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10084  soname_spec='${libname}${release}${shared_ext}$major'
10085  shlibpath_var=LD_LIBRARY_PATH
10086  shlibpath_overrides_runpath=yes
10087  hardcode_into_libs=yes
10088  if test "$with_gnu_ld" = yes; then
10089    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10090  else
10091    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10092    case $host_os in
10093      sco3.2v5*)
10094        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10095	;;
10096    esac
10097  fi
10098  sys_lib_dlsearch_path_spec='/usr/lib'
10099  ;;
10100
10101tpf*)
10102  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10103  version_type=linux
10104  need_lib_prefix=no
10105  need_version=no
10106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107  shlibpath_var=LD_LIBRARY_PATH
10108  shlibpath_overrides_runpath=no
10109  hardcode_into_libs=yes
10110  ;;
10111
10112uts4*)
10113  version_type=linux
10114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115  soname_spec='${libname}${release}${shared_ext}$major'
10116  shlibpath_var=LD_LIBRARY_PATH
10117  ;;
10118
10119*)
10120  dynamic_linker=no
10121  ;;
10122esac
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10124$as_echo "$dynamic_linker" >&6; }
10125test "$dynamic_linker" = no && can_build_shared=no
10126
10127variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10128if test "$GCC" = yes; then
10129  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10130fi
10131
10132if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10133  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10134fi
10135if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10136  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10137fi
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10226$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10227hardcode_action=
10228if test -n "$hardcode_libdir_flag_spec" ||
10229   test -n "$runpath_var" ||
10230   test "X$hardcode_automatic" = "Xyes" ; then
10231
10232  # We can hardcode non-existent directories.
10233  if test "$hardcode_direct" != no &&
10234     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10235     # have to relink, otherwise we might link with an installed library
10236     # when we should be linking with a yet-to-be-installed one
10237     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10238     test "$hardcode_minus_L" != no; then
10239    # Linking always hardcodes the temporary library directory.
10240    hardcode_action=relink
10241  else
10242    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10243    hardcode_action=immediate
10244  fi
10245else
10246  # We cannot hardcode anything, or else we can only hardcode existing
10247  # directories.
10248  hardcode_action=unsupported
10249fi
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10251$as_echo "$hardcode_action" >&6; }
10252
10253if test "$hardcode_action" = relink ||
10254   test "$inherit_rpath" = yes; then
10255  # Fast installation is not supported
10256  enable_fast_install=no
10257elif test "$shlibpath_overrides_runpath" = yes ||
10258     test "$enable_shared" = no; then
10259  # Fast installation is not necessary
10260  enable_fast_install=needless
10261fi
10262
10263
10264
10265
10266
10267
10268  if test "x$enable_dlopen" != xyes; then
10269  enable_dlopen=unknown
10270  enable_dlopen_self=unknown
10271  enable_dlopen_self_static=unknown
10272else
10273  lt_cv_dlopen=no
10274  lt_cv_dlopen_libs=
10275
10276  case $host_os in
10277  beos*)
10278    lt_cv_dlopen="load_add_on"
10279    lt_cv_dlopen_libs=
10280    lt_cv_dlopen_self=yes
10281    ;;
10282
10283  mingw* | pw32* | cegcc*)
10284    lt_cv_dlopen="LoadLibrary"
10285    lt_cv_dlopen_libs=
10286    ;;
10287
10288  cygwin*)
10289    lt_cv_dlopen="dlopen"
10290    lt_cv_dlopen_libs=
10291    ;;
10292
10293  darwin*)
10294  # if libdl is installed we need to link against it
10295    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10296$as_echo_n "checking for dlopen in -ldl... " >&6; }
10297if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10298  $as_echo_n "(cached) " >&6
10299else
10300  ac_check_lib_save_LIBS=$LIBS
10301LIBS="-ldl  $LIBS"
10302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h.  */
10304
10305/* Override any GCC internal prototype to avoid an error.
10306   Use char because int might match the return type of a GCC
10307   builtin and then its argument prototype would still apply.  */
10308#ifdef __cplusplus
10309extern "C"
10310#endif
10311char dlopen ();
10312int
10313main ()
10314{
10315return dlopen ();
10316  ;
10317  return 0;
10318}
10319_ACEOF
10320if ac_fn_c_try_link "$LINENO"; then :
10321  ac_cv_lib_dl_dlopen=yes
10322else
10323  ac_cv_lib_dl_dlopen=no
10324fi
10325rm -f core conftest.err conftest.$ac_objext \
10326    conftest$ac_exeext conftest.$ac_ext
10327LIBS=$ac_check_lib_save_LIBS
10328fi
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10330$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10331if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10332  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10333else
10334
10335    lt_cv_dlopen="dyld"
10336    lt_cv_dlopen_libs=
10337    lt_cv_dlopen_self=yes
10338
10339fi
10340
10341    ;;
10342
10343  *)
10344    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10345if test "x$ac_cv_func_shl_load" = x""yes; then :
10346  lt_cv_dlopen="shl_load"
10347else
10348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10349$as_echo_n "checking for shl_load in -ldld... " >&6; }
10350if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10351  $as_echo_n "(cached) " >&6
10352else
10353  ac_check_lib_save_LIBS=$LIBS
10354LIBS="-ldld  $LIBS"
10355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356/* end confdefs.h.  */
10357
10358/* Override any GCC internal prototype to avoid an error.
10359   Use char because int might match the return type of a GCC
10360   builtin and then its argument prototype would still apply.  */
10361#ifdef __cplusplus
10362extern "C"
10363#endif
10364char shl_load ();
10365int
10366main ()
10367{
10368return shl_load ();
10369  ;
10370  return 0;
10371}
10372_ACEOF
10373if ac_fn_c_try_link "$LINENO"; then :
10374  ac_cv_lib_dld_shl_load=yes
10375else
10376  ac_cv_lib_dld_shl_load=no
10377fi
10378rm -f core conftest.err conftest.$ac_objext \
10379    conftest$ac_exeext conftest.$ac_ext
10380LIBS=$ac_check_lib_save_LIBS
10381fi
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10383$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10384if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10385  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10386else
10387  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10388if test "x$ac_cv_func_dlopen" = x""yes; then :
10389  lt_cv_dlopen="dlopen"
10390else
10391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10392$as_echo_n "checking for dlopen in -ldl... " >&6; }
10393if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10394  $as_echo_n "(cached) " >&6
10395else
10396  ac_check_lib_save_LIBS=$LIBS
10397LIBS="-ldl  $LIBS"
10398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399/* end confdefs.h.  */
10400
10401/* Override any GCC internal prototype to avoid an error.
10402   Use char because int might match the return type of a GCC
10403   builtin and then its argument prototype would still apply.  */
10404#ifdef __cplusplus
10405extern "C"
10406#endif
10407char dlopen ();
10408int
10409main ()
10410{
10411return dlopen ();
10412  ;
10413  return 0;
10414}
10415_ACEOF
10416if ac_fn_c_try_link "$LINENO"; then :
10417  ac_cv_lib_dl_dlopen=yes
10418else
10419  ac_cv_lib_dl_dlopen=no
10420fi
10421rm -f core conftest.err conftest.$ac_objext \
10422    conftest$ac_exeext conftest.$ac_ext
10423LIBS=$ac_check_lib_save_LIBS
10424fi
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10426$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10427if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10428  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10429else
10430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10431$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10432if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10433  $as_echo_n "(cached) " >&6
10434else
10435  ac_check_lib_save_LIBS=$LIBS
10436LIBS="-lsvld  $LIBS"
10437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h.  */
10439
10440/* Override any GCC internal prototype to avoid an error.
10441   Use char because int might match the return type of a GCC
10442   builtin and then its argument prototype would still apply.  */
10443#ifdef __cplusplus
10444extern "C"
10445#endif
10446char dlopen ();
10447int
10448main ()
10449{
10450return dlopen ();
10451  ;
10452  return 0;
10453}
10454_ACEOF
10455if ac_fn_c_try_link "$LINENO"; then :
10456  ac_cv_lib_svld_dlopen=yes
10457else
10458  ac_cv_lib_svld_dlopen=no
10459fi
10460rm -f core conftest.err conftest.$ac_objext \
10461    conftest$ac_exeext conftest.$ac_ext
10462LIBS=$ac_check_lib_save_LIBS
10463fi
10464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10465$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10466if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10467  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10468else
10469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10470$as_echo_n "checking for dld_link in -ldld... " >&6; }
10471if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10472  $as_echo_n "(cached) " >&6
10473else
10474  ac_check_lib_save_LIBS=$LIBS
10475LIBS="-ldld  $LIBS"
10476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477/* end confdefs.h.  */
10478
10479/* Override any GCC internal prototype to avoid an error.
10480   Use char because int might match the return type of a GCC
10481   builtin and then its argument prototype would still apply.  */
10482#ifdef __cplusplus
10483extern "C"
10484#endif
10485char dld_link ();
10486int
10487main ()
10488{
10489return dld_link ();
10490  ;
10491  return 0;
10492}
10493_ACEOF
10494if ac_fn_c_try_link "$LINENO"; then :
10495  ac_cv_lib_dld_dld_link=yes
10496else
10497  ac_cv_lib_dld_dld_link=no
10498fi
10499rm -f core conftest.err conftest.$ac_objext \
10500    conftest$ac_exeext conftest.$ac_ext
10501LIBS=$ac_check_lib_save_LIBS
10502fi
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10504$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10505if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10506  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10507fi
10508
10509
10510fi
10511
10512
10513fi
10514
10515
10516fi
10517
10518
10519fi
10520
10521
10522fi
10523
10524    ;;
10525  esac
10526
10527  if test "x$lt_cv_dlopen" != xno; then
10528    enable_dlopen=yes
10529  else
10530    enable_dlopen=no
10531  fi
10532
10533  case $lt_cv_dlopen in
10534  dlopen)
10535    save_CPPFLAGS="$CPPFLAGS"
10536    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10537
10538    save_LDFLAGS="$LDFLAGS"
10539    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10540
10541    save_LIBS="$LIBS"
10542    LIBS="$lt_cv_dlopen_libs $LIBS"
10543
10544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10545$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10546if test "${lt_cv_dlopen_self+set}" = set; then :
10547  $as_echo_n "(cached) " >&6
10548else
10549  	  if test "$cross_compiling" = yes; then :
10550  lt_cv_dlopen_self=cross
10551else
10552  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10553  lt_status=$lt_dlunknown
10554  cat > conftest.$ac_ext <<_LT_EOF
10555#line 10555 "configure"
10556#include "confdefs.h"
10557
10558#if HAVE_DLFCN_H
10559#include <dlfcn.h>
10560#endif
10561
10562#include <stdio.h>
10563
10564#ifdef RTLD_GLOBAL
10565#  define LT_DLGLOBAL		RTLD_GLOBAL
10566#else
10567#  ifdef DL_GLOBAL
10568#    define LT_DLGLOBAL		DL_GLOBAL
10569#  else
10570#    define LT_DLGLOBAL		0
10571#  endif
10572#endif
10573
10574/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10575   find out it does not work in some platform. */
10576#ifndef LT_DLLAZY_OR_NOW
10577#  ifdef RTLD_LAZY
10578#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10579#  else
10580#    ifdef DL_LAZY
10581#      define LT_DLLAZY_OR_NOW		DL_LAZY
10582#    else
10583#      ifdef RTLD_NOW
10584#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10585#      else
10586#        ifdef DL_NOW
10587#          define LT_DLLAZY_OR_NOW	DL_NOW
10588#        else
10589#          define LT_DLLAZY_OR_NOW	0
10590#        endif
10591#      endif
10592#    endif
10593#  endif
10594#endif
10595
10596void fnord() { int i=42;}
10597int main ()
10598{
10599  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10600  int status = $lt_dlunknown;
10601
10602  if (self)
10603    {
10604      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10605      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10606      /* dlclose (self); */
10607    }
10608  else
10609    puts (dlerror ());
10610
10611  return status;
10612}
10613_LT_EOF
10614  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10615  (eval $ac_link) 2>&5
10616  ac_status=$?
10617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10618  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10619    (./conftest; exit; ) >&5 2>/dev/null
10620    lt_status=$?
10621    case x$lt_status in
10622      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10623      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10624      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10625    esac
10626  else :
10627    # compilation failed
10628    lt_cv_dlopen_self=no
10629  fi
10630fi
10631rm -fr conftest*
10632
10633
10634fi
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10636$as_echo "$lt_cv_dlopen_self" >&6; }
10637
10638    if test "x$lt_cv_dlopen_self" = xyes; then
10639      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10640      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10641$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10642if test "${lt_cv_dlopen_self_static+set}" = set; then :
10643  $as_echo_n "(cached) " >&6
10644else
10645  	  if test "$cross_compiling" = yes; then :
10646  lt_cv_dlopen_self_static=cross
10647else
10648  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10649  lt_status=$lt_dlunknown
10650  cat > conftest.$ac_ext <<_LT_EOF
10651#line 10651 "configure"
10652#include "confdefs.h"
10653
10654#if HAVE_DLFCN_H
10655#include <dlfcn.h>
10656#endif
10657
10658#include <stdio.h>
10659
10660#ifdef RTLD_GLOBAL
10661#  define LT_DLGLOBAL		RTLD_GLOBAL
10662#else
10663#  ifdef DL_GLOBAL
10664#    define LT_DLGLOBAL		DL_GLOBAL
10665#  else
10666#    define LT_DLGLOBAL		0
10667#  endif
10668#endif
10669
10670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10671   find out it does not work in some platform. */
10672#ifndef LT_DLLAZY_OR_NOW
10673#  ifdef RTLD_LAZY
10674#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10675#  else
10676#    ifdef DL_LAZY
10677#      define LT_DLLAZY_OR_NOW		DL_LAZY
10678#    else
10679#      ifdef RTLD_NOW
10680#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10681#      else
10682#        ifdef DL_NOW
10683#          define LT_DLLAZY_OR_NOW	DL_NOW
10684#        else
10685#          define LT_DLLAZY_OR_NOW	0
10686#        endif
10687#      endif
10688#    endif
10689#  endif
10690#endif
10691
10692void fnord() { int i=42;}
10693int main ()
10694{
10695  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10696  int status = $lt_dlunknown;
10697
10698  if (self)
10699    {
10700      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10701      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10702      /* dlclose (self); */
10703    }
10704  else
10705    puts (dlerror ());
10706
10707  return status;
10708}
10709_LT_EOF
10710  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10711  (eval $ac_link) 2>&5
10712  ac_status=$?
10713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10714  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10715    (./conftest; exit; ) >&5 2>/dev/null
10716    lt_status=$?
10717    case x$lt_status in
10718      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10719      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10720      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10721    esac
10722  else :
10723    # compilation failed
10724    lt_cv_dlopen_self_static=no
10725  fi
10726fi
10727rm -fr conftest*
10728
10729
10730fi
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10732$as_echo "$lt_cv_dlopen_self_static" >&6; }
10733    fi
10734
10735    CPPFLAGS="$save_CPPFLAGS"
10736    LDFLAGS="$save_LDFLAGS"
10737    LIBS="$save_LIBS"
10738    ;;
10739  esac
10740
10741  case $lt_cv_dlopen_self in
10742  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10743  *) enable_dlopen_self=unknown ;;
10744  esac
10745
10746  case $lt_cv_dlopen_self_static in
10747  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10748  *) enable_dlopen_self_static=unknown ;;
10749  esac
10750fi
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768striplib=
10769old_striplib=
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10771$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10772if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10773  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10774  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10776$as_echo "yes" >&6; }
10777else
10778# FIXME - insert some real tests, host_os isn't really good enough
10779  case $host_os in
10780  darwin*)
10781    if test -n "$STRIP" ; then
10782      striplib="$STRIP -x"
10783      old_striplib="$STRIP -S"
10784      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10785$as_echo "yes" >&6; }
10786    else
10787      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788$as_echo "no" >&6; }
10789    fi
10790    ;;
10791  *)
10792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793$as_echo "no" >&6; }
10794    ;;
10795  esac
10796fi
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809  # Report which library types will actually be built
10810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10811$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10813$as_echo "$can_build_shared" >&6; }
10814
10815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10816$as_echo_n "checking whether to build shared libraries... " >&6; }
10817  test "$can_build_shared" = "no" && enable_shared=no
10818
10819  # On AIX, shared libraries and static libraries use the same namespace, and
10820  # are all built from PIC.
10821  case $host_os in
10822  aix3*)
10823    test "$enable_shared" = yes && enable_static=no
10824    if test -n "$RANLIB"; then
10825      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10826      postinstall_cmds='$RANLIB $lib'
10827    fi
10828    ;;
10829
10830  aix[4-9]*)
10831    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10832      test "$enable_shared" = yes && enable_static=no
10833    fi
10834    ;;
10835  esac
10836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10837$as_echo "$enable_shared" >&6; }
10838
10839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10840$as_echo_n "checking whether to build static libraries... " >&6; }
10841  # Make sure either enable_shared or enable_static is yes.
10842  test "$enable_shared" = yes || enable_static=yes
10843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10844$as_echo "$enable_static" >&6; }
10845
10846
10847
10848
10849fi
10850ac_ext=c
10851ac_cpp='$CPP $CPPFLAGS'
10852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10854ac_compiler_gnu=$ac_cv_c_compiler_gnu
10855
10856CC="$lt_save_CC"
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870        ac_config_commands="$ac_config_commands libtool"
10871
10872
10873
10874
10875# Only expand once:
10876
10877
10878
10879# Checks for header files.
10880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10881$as_echo_n "checking for ANSI C header files... " >&6; }
10882if test "${ac_cv_header_stdc+set}" = set; then :
10883  $as_echo_n "(cached) " >&6
10884else
10885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h.  */
10887#include <stdlib.h>
10888#include <stdarg.h>
10889#include <string.h>
10890#include <float.h>
10891
10892int
10893main ()
10894{
10895
10896  ;
10897  return 0;
10898}
10899_ACEOF
10900if ac_fn_c_try_compile "$LINENO"; then :
10901  ac_cv_header_stdc=yes
10902else
10903  ac_cv_header_stdc=no
10904fi
10905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906
10907if test $ac_cv_header_stdc = yes; then
10908  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910/* end confdefs.h.  */
10911#include <string.h>
10912
10913_ACEOF
10914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10915  $EGREP "memchr" >/dev/null 2>&1; then :
10916
10917else
10918  ac_cv_header_stdc=no
10919fi
10920rm -f conftest*
10921
10922fi
10923
10924if test $ac_cv_header_stdc = yes; then
10925  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h.  */
10928#include <stdlib.h>
10929
10930_ACEOF
10931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10932  $EGREP "free" >/dev/null 2>&1; then :
10933
10934else
10935  ac_cv_header_stdc=no
10936fi
10937rm -f conftest*
10938
10939fi
10940
10941if test $ac_cv_header_stdc = yes; then
10942  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10943  if test "$cross_compiling" = yes; then :
10944  :
10945else
10946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947/* end confdefs.h.  */
10948#include <ctype.h>
10949#include <stdlib.h>
10950#if ((' ' & 0x0FF) == 0x020)
10951# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10952# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10953#else
10954# define ISLOWER(c) \
10955		   (('a' <= (c) && (c) <= 'i') \
10956		     || ('j' <= (c) && (c) <= 'r') \
10957		     || ('s' <= (c) && (c) <= 'z'))
10958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10959#endif
10960
10961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10962int
10963main ()
10964{
10965  int i;
10966  for (i = 0; i < 256; i++)
10967    if (XOR (islower (i), ISLOWER (i))
10968	|| toupper (i) != TOUPPER (i))
10969      return 2;
10970  return 0;
10971}
10972_ACEOF
10973if ac_fn_c_try_run "$LINENO"; then :
10974
10975else
10976  ac_cv_header_stdc=no
10977fi
10978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10979  conftest.$ac_objext conftest.beam conftest.$ac_ext
10980fi
10981
10982fi
10983fi
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10985$as_echo "$ac_cv_header_stdc" >&6; }
10986if test $ac_cv_header_stdc = yes; then
10987
10988$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10989
10990fi
10991
10992for ac_header in complex.h locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h
10993do :
10994  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10995ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10996if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10997  cat >>confdefs.h <<_ACEOF
10998#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10999_ACEOF
11000
11001fi
11002
11003done
11004
11005
11006# Checks for typedefs, structures, and compiler characteristics.
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11008$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11009if test "${ac_cv_c_const+set}" = set; then :
11010  $as_echo_n "(cached) " >&6
11011else
11012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014
11015int
11016main ()
11017{
11018/* FIXME: Include the comments suggested by Paul. */
11019#ifndef __cplusplus
11020  /* Ultrix mips cc rejects this.  */
11021  typedef int charset[2];
11022  const charset cs;
11023  /* SunOS 4.1.1 cc rejects this.  */
11024  char const *const *pcpcc;
11025  char **ppc;
11026  /* NEC SVR4.0.2 mips cc rejects this.  */
11027  struct point {int x, y;};
11028  static struct point const zero = {0,0};
11029  /* AIX XL C 1.02.0.0 rejects this.
11030     It does not let you subtract one const X* pointer from another in
11031     an arm of an if-expression whose if-part is not a constant
11032     expression */
11033  const char *g = "string";
11034  pcpcc = &g + (g ? g-g : 0);
11035  /* HPUX 7.0 cc rejects these. */
11036  ++pcpcc;
11037  ppc = (char**) pcpcc;
11038  pcpcc = (char const *const *) ppc;
11039  { /* SCO 3.2v4 cc rejects this.  */
11040    char *t;
11041    char const *s = 0 ? (char *) 0 : (char const *) 0;
11042
11043    *t++ = 0;
11044    if (s) return 0;
11045  }
11046  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11047    int x[] = {25, 17};
11048    const int *foo = &x[0];
11049    ++foo;
11050  }
11051  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11052    typedef const int *iptr;
11053    iptr p = 0;
11054    ++p;
11055  }
11056  { /* AIX XL C 1.02.0.0 rejects this saying
11057       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11058    struct s { int j; const int *ap[3]; };
11059    struct s *b; b->j = 5;
11060  }
11061  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11062    const int foo = 10;
11063    if (!foo) return 0;
11064  }
11065  return !cs[0] && !zero.x;
11066#endif
11067
11068  ;
11069  return 0;
11070}
11071_ACEOF
11072if ac_fn_c_try_compile "$LINENO"; then :
11073  ac_cv_c_const=yes
11074else
11075  ac_cv_c_const=no
11076fi
11077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078fi
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11080$as_echo "$ac_cv_c_const" >&6; }
11081if test $ac_cv_c_const = no; then
11082
11083$as_echo "#define const /**/" >>confdefs.h
11084
11085fi
11086
11087ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11088if test "x$ac_cv_type_size_t" = x""yes; then :
11089
11090else
11091
11092cat >>confdefs.h <<_ACEOF
11093#define size_t unsigned int
11094_ACEOF
11095
11096fi
11097
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11099$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11100if test "${ac_cv_header_time+set}" = set; then :
11101  $as_echo_n "(cached) " >&6
11102else
11103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104/* end confdefs.h.  */
11105#include <sys/types.h>
11106#include <sys/time.h>
11107#include <time.h>
11108
11109int
11110main ()
11111{
11112if ((struct tm *) 0)
11113return 0;
11114  ;
11115  return 0;
11116}
11117_ACEOF
11118if ac_fn_c_try_compile "$LINENO"; then :
11119  ac_cv_header_time=yes
11120else
11121  ac_cv_header_time=no
11122fi
11123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124fi
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11126$as_echo "$ac_cv_header_time" >&6; }
11127if test $ac_cv_header_time = yes; then
11128
11129$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11130
11131fi
11132
11133
11134# Checks for libraries.
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for creal in -lm" >&5
11136$as_echo_n "checking for creal in -lm... " >&6; }
11137if test "${ac_cv_lib_m_creal+set}" = set; then :
11138  $as_echo_n "(cached) " >&6
11139else
11140  ac_check_lib_save_LIBS=$LIBS
11141LIBS="-lm  $LIBS"
11142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143/* end confdefs.h.  */
11144
11145/* Override any GCC internal prototype to avoid an error.
11146   Use char because int might match the return type of a GCC
11147   builtin and then its argument prototype would still apply.  */
11148#ifdef __cplusplus
11149extern "C"
11150#endif
11151char creal ();
11152int
11153main ()
11154{
11155return creal ();
11156  ;
11157  return 0;
11158}
11159_ACEOF
11160if ac_fn_c_try_link "$LINENO"; then :
11161  ac_cv_lib_m_creal=yes
11162else
11163  ac_cv_lib_m_creal=no
11164fi
11165rm -f core conftest.err conftest.$ac_objext \
11166    conftest$ac_exeext conftest.$ac_ext
11167LIBS=$ac_check_lib_save_LIBS
11168fi
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_creal" >&5
11170$as_echo "$ac_cv_lib_m_creal" >&6; }
11171if test "x$ac_cv_lib_m_creal" = x""yes; then :
11172  cat >>confdefs.h <<_ACEOF
11173#define HAVE_LIBM 1
11174_ACEOF
11175
11176  LIBS="-lm $LIBS"
11177
11178fi
11179
11180
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
11182$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
11183if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then :
11184  $as_echo_n "(cached) " >&6
11185else
11186  ac_check_lib_save_LIBS=$LIBS
11187LIBS="-lgmp  $LIBS"
11188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189/* end confdefs.h.  */
11190
11191/* Override any GCC internal prototype to avoid an error.
11192   Use char because int might match the return type of a GCC
11193   builtin and then its argument prototype would still apply.  */
11194#ifdef __cplusplus
11195extern "C"
11196#endif
11197char __gmpz_init ();
11198int
11199main ()
11200{
11201return __gmpz_init ();
11202  ;
11203  return 0;
11204}
11205_ACEOF
11206if ac_fn_c_try_link "$LINENO"; then :
11207  ac_cv_lib_gmp___gmpz_init=yes
11208else
11209  ac_cv_lib_gmp___gmpz_init=no
11210fi
11211rm -f core conftest.err conftest.$ac_objext \
11212    conftest$ac_exeext conftest.$ac_ext
11213LIBS=$ac_check_lib_save_LIBS
11214fi
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
11216$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
11217if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then :
11218  LIBS="-lgmp $LIBS"
11219else
11220  as_fn_error $? "libgmp not found or uses a different ABI." "$LINENO" 5
11221fi
11222
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPFR" >&5
11224$as_echo_n "checking for MPFR... " >&6; }
11225LIBS="-lmpfr $LIBS"
11226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227/* end confdefs.h.  */
11228#include "mpfr.h"
11229int
11230main ()
11231{
11232mpfr_t x;  mpfr_init(x) ; mpfr_clear(x);
11233
11234  ;
11235  return 0;
11236}
11237_ACEOF
11238if ac_fn_c_try_link "$LINENO"; then :
11239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240$as_echo "yes" >&6; }
11241else
11242
11243        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244$as_echo "no" >&6; }
11245        as_fn_error $? "libmpfr not found or uses a different ABI." "$LINENO" 5
11246
11247fi
11248rm -f core conftest.err conftest.$ac_objext \
11249    conftest$ac_exeext conftest.$ac_ext
11250
11251# Check for a recent GMP
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
11253$as_echo_n "checking for recent GMP... " >&6; }
11254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255/* end confdefs.h.  */
11256
11257#include "gmp.h"
11258#if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL < 432)
11259# error "Minimal GMP version is 4.3.2"
11260error
11261#endif
11262
11263_ACEOF
11264if ac_fn_c_try_compile "$LINENO"; then :
11265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11266$as_echo "yes" >&6; }
11267else
11268
11269        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270$as_echo "no" >&6; }
11271        as_fn_error $? "GMP version >= 4.3.2 required" "$LINENO" 5
11272
11273fi
11274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11275
11276# Check for a recent MPFR: we require MPFR 2.4.2 so that the tests
11277# in log.dat pass
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent MPFR" >&5
11279$as_echo_n "checking for recent MPFR... " >&6; }
11280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281/* end confdefs.h.  */
11282
11283#include "mpfr.h"
11284#if (MPFR_VERSION < MPFR_VERSION_NUM (2,4,2))
11285# error "Minimal MPFR version is 2.4.2"
11286error
11287#endif
11288
11289_ACEOF
11290if ac_fn_c_try_compile "$LINENO"; then :
11291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11292$as_echo "yes" >&6; }
11293else
11294
11295         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296$as_echo "no" >&6; }
11297         as_fn_error $? "MPFR version >= 2.4.2 required" "$LINENO" 5
11298
11299fi
11300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301
11302# Check for logging feature
11303if test "x$enable_logging" = "xyes"; then :
11304  for ac_header in dlfcn.h
11305do :
11306  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
11307if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11308  cat >>confdefs.h <<_ACEOF
11309#define HAVE_DLFCN_H 1
11310_ACEOF
11311
11312fi
11313
11314done
11315
11316        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
11317$as_echo_n "checking for dlsym in -ldl... " >&6; }
11318if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
11319  $as_echo_n "(cached) " >&6
11320else
11321  ac_check_lib_save_LIBS=$LIBS
11322LIBS="-ldl  $LIBS"
11323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324/* end confdefs.h.  */
11325
11326/* Override any GCC internal prototype to avoid an error.
11327   Use char because int might match the return type of a GCC
11328   builtin and then its argument prototype would still apply.  */
11329#ifdef __cplusplus
11330extern "C"
11331#endif
11332char dlsym ();
11333int
11334main ()
11335{
11336return dlsym ();
11337  ;
11338  return 0;
11339}
11340_ACEOF
11341if ac_fn_c_try_link "$LINENO"; then :
11342  ac_cv_lib_dl_dlsym=yes
11343else
11344  ac_cv_lib_dl_dlsym=no
11345fi
11346rm -f core conftest.err conftest.$ac_objext \
11347    conftest$ac_exeext conftest.$ac_ext
11348LIBS=$ac_check_lib_save_LIBS
11349fi
11350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
11351$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
11352if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
11353
11354
11355$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11356
11357            LIBS="-ldl $LIBS"
11358
11359  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11360if test "x$ac_cv_type_intptr_t" = x""yes; then :
11361
11362$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
11363
11364else
11365  for ac_type in 'int' 'long int' 'long long int'; do
11366       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367/* end confdefs.h.  */
11368$ac_includes_default
11369int
11370main ()
11371{
11372static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
11373test_array [0] = 0
11374
11375  ;
11376  return 0;
11377}
11378_ACEOF
11379if ac_fn_c_try_compile "$LINENO"; then :
11380
11381cat >>confdefs.h <<_ACEOF
11382#define intptr_t $ac_type
11383_ACEOF
11384
11385	  ac_type=
11386fi
11387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388       test -z "$ac_type" && break
11389     done
11390fi
11391
11392
11393            case " $LIBOBJS " in
11394  *" logging.$ac_objext "* ) ;;
11395  *) LIBOBJS="$LIBOBJS logging.$ac_objext"
11396 ;;
11397esac
11398
11399            MPC_LOG_H=src/mpc-log.h
11400
11401
11402else
11403  as_fn_error $? "Library dl not found, logging impossible" "$LINENO" 5
11404fi
11405
11406
11407
11408fi
11409
11410# Checks if compiler accepts warning flags.
11411
11412
11413  if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
11414    if test "x$GCC" = "xyes" -a "x$compiler" != "xicc" -a "x$compiler" != "xg++"; then
11415      case $host in
11416         *darwin*) ;;
11417         *)
11418
11419
11420
11421
11422  flag=`echo "-D_FORTIFY_SOURCE=2" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11423
11424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -D_FORTIFY_SOURCE=2 flag" >&5
11425$as_echo_n "checking whether the C compiler accepts the -D_FORTIFY_SOURCE=2 flag... " >&6; }
11426if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
11427  $as_echo_n "(cached) " >&6
11428else
11429
11430
11431    ac_ext=c
11432ac_cpp='$CPP $CPPFLAGS'
11433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11435ac_compiler_gnu=$ac_cv_c_compiler_gnu
11436
11437
11438    save_CFLAGS="$CFLAGS"
11439    CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
11440
11441    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442/* end confdefs.h.  */
11443
11444
11445int
11446main ()
11447{
11448
11449  ;
11450  return 0;
11451}
11452
11453_ACEOF
11454if ac_fn_c_try_link "$LINENO"; then :
11455
11456      eval "ax_cv_c_check_flag_$flag=yes"
11457
11458else
11459
11460      eval "ax_cv_c_check_flag_$flag=no"
11461
11462fi
11463rm -f core conftest.err conftest.$ac_objext \
11464    conftest$ac_exeext conftest.$ac_ext
11465
11466    CFLAGS="$save_CFLAGS"
11467
11468    ac_ext=c
11469ac_cpp='$CPP $CPPFLAGS'
11470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11472ac_compiler_gnu=$ac_cv_c_compiler_gnu
11473
11474
11475
11476fi
11477eval ac_res=\$ax_cv_c_check_flag_$flag
11478	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11479$as_echo "$ac_res" >&6; }
11480
11481  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
11482
11483   :
11484    WARNINGCFLAGS="$WARNINGCFLAGS -D_FORTIFY_SOURCE=2"
11485
11486else
11487
11488   :
11489
11490
11491fi
11492 ;;
11493      esac
11494
11495
11496
11497
11498
11499  flag=`echo "-g" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11500
11501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -g flag" >&5
11502$as_echo_n "checking whether the C compiler accepts the -g flag... " >&6; }
11503if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
11504  $as_echo_n "(cached) " >&6
11505else
11506
11507
11508    ac_ext=c
11509ac_cpp='$CPP $CPPFLAGS'
11510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11512ac_compiler_gnu=$ac_cv_c_compiler_gnu
11513
11514
11515    save_CFLAGS="$CFLAGS"
11516    CFLAGS="$CFLAGS -g"
11517
11518    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519/* end confdefs.h.  */
11520
11521
11522int
11523main ()
11524{
11525
11526  ;
11527  return 0;
11528}
11529
11530_ACEOF
11531if ac_fn_c_try_link "$LINENO"; then :
11532
11533      eval "ax_cv_c_check_flag_$flag=yes"
11534
11535else
11536
11537      eval "ax_cv_c_check_flag_$flag=no"
11538
11539fi
11540rm -f core conftest.err conftest.$ac_objext \
11541    conftest$ac_exeext conftest.$ac_ext
11542
11543    CFLAGS="$save_CFLAGS"
11544
11545    ac_ext=c
11546ac_cpp='$CPP $CPPFLAGS'
11547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11549ac_compiler_gnu=$ac_cv_c_compiler_gnu
11550
11551
11552
11553fi
11554eval ac_res=\$ax_cv_c_check_flag_$flag
11555	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11556$as_echo "$ac_res" >&6; }
11557
11558  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
11559
11560   :
11561    WARNINGCFLAGS="$WARNINGCFLAGS -g"
11562
11563else
11564
11565   :
11566
11567
11568fi
11569
11570
11571
11572
11573
11574
11575  flag=`echo "-pedantic" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11576
11577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -pedantic flag" >&5
11578$as_echo_n "checking whether the C compiler accepts the -pedantic flag... " >&6; }
11579if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
11580  $as_echo_n "(cached) " >&6
11581else
11582
11583
11584    ac_ext=c
11585ac_cpp='$CPP $CPPFLAGS'
11586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11588ac_compiler_gnu=$ac_cv_c_compiler_gnu
11589
11590
11591    save_CFLAGS="$CFLAGS"
11592    CFLAGS="$CFLAGS -pedantic"
11593
11594    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595/* end confdefs.h.  */
11596
11597
11598int
11599main ()
11600{
11601
11602  ;
11603  return 0;
11604}
11605
11606_ACEOF
11607if ac_fn_c_try_link "$LINENO"; then :
11608
11609      eval "ax_cv_c_check_flag_$flag=yes"
11610
11611else
11612
11613      eval "ax_cv_c_check_flag_$flag=no"
11614
11615fi
11616rm -f core conftest.err conftest.$ac_objext \
11617    conftest$ac_exeext conftest.$ac_ext
11618
11619    CFLAGS="$save_CFLAGS"
11620
11621    ac_ext=c
11622ac_cpp='$CPP $CPPFLAGS'
11623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625ac_compiler_gnu=$ac_cv_c_compiler_gnu
11626
11627
11628
11629fi
11630eval ac_res=\$ax_cv_c_check_flag_$flag
11631	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11632$as_echo "$ac_res" >&6; }
11633
11634  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
11635
11636   :
11637    WARNINGCFLAGS="$WARNINGCFLAGS -pedantic"
11638
11639else
11640
11641   :
11642
11643
11644fi
11645
11646
11647
11648
11649
11650
11651  flag=`echo "-Wno-long-long" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11652
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-long-long flag" >&5
11654$as_echo_n "checking whether the C compiler accepts the -Wno-long-long flag... " >&6; }
11655if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
11656  $as_echo_n "(cached) " >&6
11657else
11658
11659
11660    ac_ext=c
11661ac_cpp='$CPP $CPPFLAGS'
11662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11664ac_compiler_gnu=$ac_cv_c_compiler_gnu
11665
11666
11667    save_CFLAGS="$CFLAGS"
11668    CFLAGS="$CFLAGS -Wno-long-long"
11669
11670    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671/* end confdefs.h.  */
11672
11673
11674int
11675main ()
11676{
11677
11678  ;
11679  return 0;
11680}
11681
11682_ACEOF
11683if ac_fn_c_try_link "$LINENO"; then :
11684
11685      eval "ax_cv_c_check_flag_$flag=yes"
11686
11687else
11688
11689      eval "ax_cv_c_check_flag_$flag=no"
11690
11691fi
11692rm -f core conftest.err conftest.$ac_objext \
11693    conftest$ac_exeext conftest.$ac_ext
11694
11695    CFLAGS="$save_CFLAGS"
11696
11697    ac_ext=c
11698ac_cpp='$CPP $CPPFLAGS'
11699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701ac_compiler_gnu=$ac_cv_c_compiler_gnu
11702
11703
11704
11705fi
11706eval ac_res=\$ax_cv_c_check_flag_$flag
11707	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11708$as_echo "$ac_res" >&6; }
11709
11710  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
11711
11712   :
11713    WARNINGCFLAGS="$WARNINGCFLAGS -Wno-long-long"
11714
11715else
11716
11717   :
11718
11719
11720fi
11721
11722
11723
11724
11725
11726
11727  flag=`echo "-Wall" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11728
11729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wall flag" >&5
11730$as_echo_n "checking whether the C compiler accepts the -Wall flag... " >&6; }
11731if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
11732  $as_echo_n "(cached) " >&6
11733else
11734
11735
11736    ac_ext=c
11737ac_cpp='$CPP $CPPFLAGS'
11738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11740ac_compiler_gnu=$ac_cv_c_compiler_gnu
11741
11742
11743    save_CFLAGS="$CFLAGS"
11744    CFLAGS="$CFLAGS -Wall"
11745
11746    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747/* end confdefs.h.  */
11748
11749
11750int
11751main ()
11752{
11753
11754  ;
11755  return 0;
11756}
11757
11758_ACEOF
11759if ac_fn_c_try_link "$LINENO"; then :
11760
11761      eval "ax_cv_c_check_flag_$flag=yes"
11762
11763else
11764
11765      eval "ax_cv_c_check_flag_$flag=no"
11766
11767fi
11768rm -f core conftest.err conftest.$ac_objext \
11769    conftest$ac_exeext conftest.$ac_ext
11770
11771    CFLAGS="$save_CFLAGS"
11772
11773    ac_ext=c
11774ac_cpp='$CPP $CPPFLAGS'
11775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11777ac_compiler_gnu=$ac_cv_c_compiler_gnu
11778
11779
11780
11781fi
11782eval ac_res=\$ax_cv_c_check_flag_$flag
11783	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11784$as_echo "$ac_res" >&6; }
11785
11786  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
11787
11788   :
11789    WARNINGCFLAGS="$WARNINGCFLAGS -Wall"
11790
11791else
11792
11793   :
11794
11795
11796fi
11797
11798
11799
11800
11801
11802
11803  flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11804
11805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wextra flag" >&5
11806$as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
11807if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
11808  $as_echo_n "(cached) " >&6
11809else
11810
11811
11812    ac_ext=c
11813ac_cpp='$CPP $CPPFLAGS'
11814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816ac_compiler_gnu=$ac_cv_c_compiler_gnu
11817
11818
11819    save_CFLAGS="$CFLAGS"
11820    CFLAGS="$CFLAGS -Wextra"
11821
11822    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823/* end confdefs.h.  */
11824
11825
11826int
11827main ()
11828{
11829
11830  ;
11831  return 0;
11832}
11833
11834_ACEOF
11835if ac_fn_c_try_link "$LINENO"; then :
11836
11837      eval "ax_cv_c_check_flag_$flag=yes"
11838
11839else
11840
11841      eval "ax_cv_c_check_flag_$flag=no"
11842
11843fi
11844rm -f core conftest.err conftest.$ac_objext \
11845    conftest$ac_exeext conftest.$ac_ext
11846
11847    CFLAGS="$save_CFLAGS"
11848
11849    ac_ext=c
11850ac_cpp='$CPP $CPPFLAGS'
11851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11853ac_compiler_gnu=$ac_cv_c_compiler_gnu
11854
11855
11856
11857fi
11858eval ac_res=\$ax_cv_c_check_flag_$flag
11859	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11860$as_echo "$ac_res" >&6; }
11861
11862  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
11863
11864   :
11865    WARNINGCFLAGS="$WARNINGCFLAGS -Wextra"
11866
11867else
11868
11869   :
11870
11871
11872fi
11873
11874
11875
11876
11877
11878
11879  flag=`echo "-Werror" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11880
11881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Werror flag" >&5
11882$as_echo_n "checking whether the C compiler accepts the -Werror flag... " >&6; }
11883if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
11884  $as_echo_n "(cached) " >&6
11885else
11886
11887
11888    ac_ext=c
11889ac_cpp='$CPP $CPPFLAGS'
11890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892ac_compiler_gnu=$ac_cv_c_compiler_gnu
11893
11894
11895    save_CFLAGS="$CFLAGS"
11896    CFLAGS="$CFLAGS -Werror"
11897
11898    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899/* end confdefs.h.  */
11900
11901
11902int
11903main ()
11904{
11905
11906  ;
11907  return 0;
11908}
11909
11910_ACEOF
11911if ac_fn_c_try_link "$LINENO"; then :
11912
11913      eval "ax_cv_c_check_flag_$flag=yes"
11914
11915else
11916
11917      eval "ax_cv_c_check_flag_$flag=no"
11918
11919fi
11920rm -f core conftest.err conftest.$ac_objext \
11921    conftest$ac_exeext conftest.$ac_ext
11922
11923    CFLAGS="$save_CFLAGS"
11924
11925    ac_ext=c
11926ac_cpp='$CPP $CPPFLAGS'
11927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11929ac_compiler_gnu=$ac_cv_c_compiler_gnu
11930
11931
11932
11933fi
11934eval ac_res=\$ax_cv_c_check_flag_$flag
11935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11936$as_echo "$ac_res" >&6; }
11937
11938  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
11939
11940   :
11941    WARNINGCFLAGS="$WARNINGCFLAGS -Werror"
11942
11943else
11944
11945   :
11946
11947
11948fi
11949
11950
11951
11952
11953
11954
11955  flag=`echo "-Wdeclaration-after-statement" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
11956
11957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wdeclaration-after-statement flag" >&5
11958$as_echo_n "checking whether the C compiler accepts the -Wdeclaration-after-statement flag... " >&6; }
11959if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
11960  $as_echo_n "(cached) " >&6
11961else
11962
11963
11964    ac_ext=c
11965ac_cpp='$CPP $CPPFLAGS'
11966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11968ac_compiler_gnu=$ac_cv_c_compiler_gnu
11969
11970
11971    save_CFLAGS="$CFLAGS"
11972    CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11973
11974    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975/* end confdefs.h.  */
11976
11977
11978int
11979main ()
11980{
11981
11982  ;
11983  return 0;
11984}
11985
11986_ACEOF
11987if ac_fn_c_try_link "$LINENO"; then :
11988
11989      eval "ax_cv_c_check_flag_$flag=yes"
11990
11991else
11992
11993      eval "ax_cv_c_check_flag_$flag=no"
11994
11995fi
11996rm -f core conftest.err conftest.$ac_objext \
11997    conftest$ac_exeext conftest.$ac_ext
11998
11999    CFLAGS="$save_CFLAGS"
12000
12001    ac_ext=c
12002ac_cpp='$CPP $CPPFLAGS'
12003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12005ac_compiler_gnu=$ac_cv_c_compiler_gnu
12006
12007
12008
12009fi
12010eval ac_res=\$ax_cv_c_check_flag_$flag
12011	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12012$as_echo "$ac_res" >&6; }
12013
12014  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12015
12016   :
12017    WARNINGCFLAGS="$WARNINGCFLAGS -Wdeclaration-after-statement"
12018
12019else
12020
12021   :
12022
12023
12024fi
12025
12026
12027
12028
12029
12030
12031  flag=`echo "-Wundef" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12032
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wundef flag" >&5
12034$as_echo_n "checking whether the C compiler accepts the -Wundef flag... " >&6; }
12035if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038
12039
12040    ac_ext=c
12041ac_cpp='$CPP $CPPFLAGS'
12042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044ac_compiler_gnu=$ac_cv_c_compiler_gnu
12045
12046
12047    save_CFLAGS="$CFLAGS"
12048    CFLAGS="$CFLAGS -Wundef"
12049
12050    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051/* end confdefs.h.  */
12052
12053
12054int
12055main ()
12056{
12057
12058  ;
12059  return 0;
12060}
12061
12062_ACEOF
12063if ac_fn_c_try_link "$LINENO"; then :
12064
12065      eval "ax_cv_c_check_flag_$flag=yes"
12066
12067else
12068
12069      eval "ax_cv_c_check_flag_$flag=no"
12070
12071fi
12072rm -f core conftest.err conftest.$ac_objext \
12073    conftest$ac_exeext conftest.$ac_ext
12074
12075    CFLAGS="$save_CFLAGS"
12076
12077    ac_ext=c
12078ac_cpp='$CPP $CPPFLAGS'
12079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12081ac_compiler_gnu=$ac_cv_c_compiler_gnu
12082
12083
12084
12085fi
12086eval ac_res=\$ax_cv_c_check_flag_$flag
12087	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12088$as_echo "$ac_res" >&6; }
12089
12090  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12091
12092   :
12093    WARNINGCFLAGS="$WARNINGCFLAGS -Wundef"
12094
12095else
12096
12097   :
12098
12099
12100fi
12101
12102
12103
12104
12105
12106
12107  flag=`echo "-Wshadow" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12108
12109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wshadow flag" >&5
12110$as_echo_n "checking whether the C compiler accepts the -Wshadow flag... " >&6; }
12111if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
12112  $as_echo_n "(cached) " >&6
12113else
12114
12115
12116    ac_ext=c
12117ac_cpp='$CPP $CPPFLAGS'
12118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12120ac_compiler_gnu=$ac_cv_c_compiler_gnu
12121
12122
12123    save_CFLAGS="$CFLAGS"
12124    CFLAGS="$CFLAGS -Wshadow"
12125
12126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127/* end confdefs.h.  */
12128
12129
12130int
12131main ()
12132{
12133
12134  ;
12135  return 0;
12136}
12137
12138_ACEOF
12139if ac_fn_c_try_link "$LINENO"; then :
12140
12141      eval "ax_cv_c_check_flag_$flag=yes"
12142
12143else
12144
12145      eval "ax_cv_c_check_flag_$flag=no"
12146
12147fi
12148rm -f core conftest.err conftest.$ac_objext \
12149    conftest$ac_exeext conftest.$ac_ext
12150
12151    CFLAGS="$save_CFLAGS"
12152
12153    ac_ext=c
12154ac_cpp='$CPP $CPPFLAGS'
12155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157ac_compiler_gnu=$ac_cv_c_compiler_gnu
12158
12159
12160
12161fi
12162eval ac_res=\$ax_cv_c_check_flag_$flag
12163	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12164$as_echo "$ac_res" >&6; }
12165
12166  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12167
12168   :
12169    WARNINGCFLAGS="$WARNINGCFLAGS -Wshadow"
12170
12171else
12172
12173   :
12174
12175
12176fi
12177
12178
12179
12180
12181
12182
12183  flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12184
12185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
12186$as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
12187if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
12188  $as_echo_n "(cached) " >&6
12189else
12190
12191
12192    ac_ext=c
12193ac_cpp='$CPP $CPPFLAGS'
12194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196ac_compiler_gnu=$ac_cv_c_compiler_gnu
12197
12198
12199    save_CFLAGS="$CFLAGS"
12200    CFLAGS="$CFLAGS -Wstrict-prototypes"
12201
12202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203/* end confdefs.h.  */
12204
12205
12206int
12207main ()
12208{
12209
12210  ;
12211  return 0;
12212}
12213
12214_ACEOF
12215if ac_fn_c_try_link "$LINENO"; then :
12216
12217      eval "ax_cv_c_check_flag_$flag=yes"
12218
12219else
12220
12221      eval "ax_cv_c_check_flag_$flag=no"
12222
12223fi
12224rm -f core conftest.err conftest.$ac_objext \
12225    conftest$ac_exeext conftest.$ac_ext
12226
12227    CFLAGS="$save_CFLAGS"
12228
12229    ac_ext=c
12230ac_cpp='$CPP $CPPFLAGS'
12231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12233ac_compiler_gnu=$ac_cv_c_compiler_gnu
12234
12235
12236
12237fi
12238eval ac_res=\$ax_cv_c_check_flag_$flag
12239	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12240$as_echo "$ac_res" >&6; }
12241
12242  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12243
12244   :
12245    WARNINGCFLAGS="$WARNINGCFLAGS -Wstrict-prototypes"
12246
12247else
12248
12249   :
12250
12251
12252fi
12253
12254
12255
12256
12257
12258
12259  flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12260
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
12262$as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
12263if eval "test \"\${ax_cv_c_check_flag_$flag+set}\"" = set; then :
12264  $as_echo_n "(cached) " >&6
12265else
12266
12267
12268    ac_ext=c
12269ac_cpp='$CPP $CPPFLAGS'
12270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272ac_compiler_gnu=$ac_cv_c_compiler_gnu
12273
12274
12275    save_CFLAGS="$CFLAGS"
12276    CFLAGS="$CFLAGS -Wmissing-prototypes"
12277
12278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279/* end confdefs.h.  */
12280
12281
12282int
12283main ()
12284{
12285
12286  ;
12287  return 0;
12288}
12289
12290_ACEOF
12291if ac_fn_c_try_link "$LINENO"; then :
12292
12293      eval "ax_cv_c_check_flag_$flag=yes"
12294
12295else
12296
12297      eval "ax_cv_c_check_flag_$flag=no"
12298
12299fi
12300rm -f core conftest.err conftest.$ac_objext \
12301    conftest$ac_exeext conftest.$ac_ext
12302
12303    CFLAGS="$save_CFLAGS"
12304
12305    ac_ext=c
12306ac_cpp='$CPP $CPPFLAGS'
12307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12309ac_compiler_gnu=$ac_cv_c_compiler_gnu
12310
12311
12312
12313fi
12314eval ac_res=\$ax_cv_c_check_flag_$flag
12315	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12316$as_echo "$ac_res" >&6; }
12317
12318  if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12319
12320   :
12321    WARNINGCFLAGS="$WARNINGCFLAGS -Wmissing-prototypes"
12322
12323else
12324
12325   :
12326
12327
12328fi
12329
12330
12331    fi
12332  fi
12333
12334
12335# Checks for library functions with warning flags.
12336old_cflags=$CFLAGS
12337CFLAGS="$CFLAGS $WARNINGCFLAGS"
12338for ac_func in gettimeofday localeconv setlocale
12339do :
12340  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12341ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12342if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12343  cat >>confdefs.h <<_ACEOF
12344#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12345_ACEOF
12346
12347fi
12348done
12349
12350for ac_func in dup dup2 fileno
12351do :
12352  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12353ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12354if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12355  cat >>confdefs.h <<_ACEOF
12356#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12357_ACEOF
12358
12359else
12360
12361$as_echo "#define NO_STREAM_REDIRECTION 1" >>confdefs.h
12362
12363fi
12364done
12365
12366CFLAGS=$old_cflags
12367
12368ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile"
12369
12370cat >confcache <<\_ACEOF
12371# This file is a shell script that caches the results of configure
12372# tests run on this system so they can be shared between configure
12373# scripts and configure runs, see configure's option --config-cache.
12374# It is not useful on other systems.  If it contains results you don't
12375# want to keep, you may remove or edit it.
12376#
12377# config.status only pays attention to the cache file if you give it
12378# the --recheck option to rerun configure.
12379#
12380# `ac_cv_env_foo' variables (set or unset) will be overridden when
12381# loading this file, other *unset* `ac_cv_foo' will be assigned the
12382# following values.
12383
12384_ACEOF
12385
12386# The following way of writing the cache mishandles newlines in values,
12387# but we know of no workaround that is simple, portable, and efficient.
12388# So, we kill variables containing newlines.
12389# Ultrix sh set writes to stderr and can't be redirected directly,
12390# and sets the high bit in the cache file unless we assign to the vars.
12391(
12392  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12393    eval ac_val=\$$ac_var
12394    case $ac_val in #(
12395    *${as_nl}*)
12396      case $ac_var in #(
12397      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12398$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12399      esac
12400      case $ac_var in #(
12401      _ | IFS | as_nl) ;; #(
12402      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12403      *) { eval $ac_var=; unset $ac_var;} ;;
12404      esac ;;
12405    esac
12406  done
12407
12408  (set) 2>&1 |
12409    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12410    *${as_nl}ac_space=\ *)
12411      # `set' does not quote correctly, so add quotes: double-quote
12412      # substitution turns \\\\ into \\, and sed turns \\ into \.
12413      sed -n \
12414	"s/'/'\\\\''/g;
12415	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12416      ;; #(
12417    *)
12418      # `set' quotes correctly as required by POSIX, so do not add quotes.
12419      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12420      ;;
12421    esac |
12422    sort
12423) |
12424  sed '
12425     /^ac_cv_env_/b end
12426     t clear
12427     :clear
12428     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12429     t end
12430     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12431     :end' >>confcache
12432if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12433  if test -w "$cache_file"; then
12434    test "x$cache_file" != "x/dev/null" &&
12435      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12436$as_echo "$as_me: updating cache $cache_file" >&6;}
12437    cat confcache >$cache_file
12438  else
12439    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12440$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12441  fi
12442fi
12443rm -f confcache
12444
12445test "x$prefix" = xNONE && prefix=$ac_default_prefix
12446# Let make expand exec_prefix.
12447test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12448
12449DEFS=-DHAVE_CONFIG_H
12450
12451ac_libobjs=
12452ac_ltlibobjs=
12453U=
12454for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12455  # 1. Remove the extension, and $U if already installed.
12456  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12457  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12458  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12459  #    will be set to the directory where LIBOBJS objects are built.
12460  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12461  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12462done
12463LIBOBJS=$ac_libobjs
12464
12465LTLIBOBJS=$ac_ltlibobjs
12466
12467
12468 if test -n "$EXEEXT"; then
12469  am__EXEEXT_TRUE=
12470  am__EXEEXT_FALSE='#'
12471else
12472  am__EXEEXT_TRUE='#'
12473  am__EXEEXT_FALSE=
12474fi
12475
12476if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12477  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12478Usually this means the macro was only invoked conditionally." "$LINENO" 5
12479fi
12480if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12481  as_fn_error $? "conditional \"AMDEP\" was never defined.
12482Usually this means the macro was only invoked conditionally." "$LINENO" 5
12483fi
12484if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12485  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12486Usually this means the macro was only invoked conditionally." "$LINENO" 5
12487fi
12488
12489: ${CONFIG_STATUS=./config.status}
12490ac_write_fail=0
12491ac_clean_files_save=$ac_clean_files
12492ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12494$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12495as_write_fail=0
12496cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12497#! $SHELL
12498# Generated by $as_me.
12499# Run this file to recreate the current configuration.
12500# Compiler output produced by configure, useful for debugging
12501# configure, is in config.log if it exists.
12502
12503debug=false
12504ac_cs_recheck=false
12505ac_cs_silent=false
12506
12507SHELL=\${CONFIG_SHELL-$SHELL}
12508export SHELL
12509_ASEOF
12510cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12511## -------------------- ##
12512## M4sh Initialization. ##
12513## -------------------- ##
12514
12515# Be more Bourne compatible
12516DUALCASE=1; export DUALCASE # for MKS sh
12517if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12518  emulate sh
12519  NULLCMD=:
12520  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12521  # is contrary to our usage.  Disable this feature.
12522  alias -g '${1+"$@"}'='"$@"'
12523  setopt NO_GLOB_SUBST
12524else
12525  case `(set -o) 2>/dev/null` in #(
12526  *posix*) :
12527    set -o posix ;; #(
12528  *) :
12529     ;;
12530esac
12531fi
12532
12533
12534as_nl='
12535'
12536export as_nl
12537# Printing a long string crashes Solaris 7 /usr/bin/printf.
12538as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12539as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12540as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12541# Prefer a ksh shell builtin over an external printf program on Solaris,
12542# but without wasting forks for bash or zsh.
12543if test -z "$BASH_VERSION$ZSH_VERSION" \
12544    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12545  as_echo='print -r --'
12546  as_echo_n='print -rn --'
12547elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12548  as_echo='printf %s\n'
12549  as_echo_n='printf %s'
12550else
12551  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12552    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12553    as_echo_n='/usr/ucb/echo -n'
12554  else
12555    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12556    as_echo_n_body='eval
12557      arg=$1;
12558      case $arg in #(
12559      *"$as_nl"*)
12560	expr "X$arg" : "X\\(.*\\)$as_nl";
12561	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12562      esac;
12563      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12564    '
12565    export as_echo_n_body
12566    as_echo_n='sh -c $as_echo_n_body as_echo'
12567  fi
12568  export as_echo_body
12569  as_echo='sh -c $as_echo_body as_echo'
12570fi
12571
12572# The user is always right.
12573if test "${PATH_SEPARATOR+set}" != set; then
12574  PATH_SEPARATOR=:
12575  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12576    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12577      PATH_SEPARATOR=';'
12578  }
12579fi
12580
12581
12582# IFS
12583# We need space, tab and new line, in precisely that order.  Quoting is
12584# there to prevent editors from complaining about space-tab.
12585# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12586# splitting by setting IFS to empty value.)
12587IFS=" ""	$as_nl"
12588
12589# Find who we are.  Look in the path if we contain no directory separator.
12590case $0 in #((
12591  *[\\/]* ) as_myself=$0 ;;
12592  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593for as_dir in $PATH
12594do
12595  IFS=$as_save_IFS
12596  test -z "$as_dir" && as_dir=.
12597    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12598  done
12599IFS=$as_save_IFS
12600
12601     ;;
12602esac
12603# We did not find ourselves, most probably we were run as `sh COMMAND'
12604# in which case we are not to be found in the path.
12605if test "x$as_myself" = x; then
12606  as_myself=$0
12607fi
12608if test ! -f "$as_myself"; then
12609  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12610  exit 1
12611fi
12612
12613# Unset variables that we do not need and which cause bugs (e.g. in
12614# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12615# suppresses any "Segmentation fault" message there.  '((' could
12616# trigger a bug in pdksh 5.2.14.
12617for as_var in BASH_ENV ENV MAIL MAILPATH
12618do eval test x\${$as_var+set} = xset \
12619  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12620done
12621PS1='$ '
12622PS2='> '
12623PS4='+ '
12624
12625# NLS nuisances.
12626LC_ALL=C
12627export LC_ALL
12628LANGUAGE=C
12629export LANGUAGE
12630
12631# CDPATH.
12632(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12633
12634
12635# as_fn_error STATUS ERROR [LINENO LOG_FD]
12636# ----------------------------------------
12637# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12638# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12639# script with STATUS, using 1 if that was 0.
12640as_fn_error ()
12641{
12642  as_status=$1; test $as_status -eq 0 && as_status=1
12643  if test "$4"; then
12644    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12645    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12646  fi
12647  $as_echo "$as_me: error: $2" >&2
12648  as_fn_exit $as_status
12649} # as_fn_error
12650
12651
12652# as_fn_set_status STATUS
12653# -----------------------
12654# Set $? to STATUS, without forking.
12655as_fn_set_status ()
12656{
12657  return $1
12658} # as_fn_set_status
12659
12660# as_fn_exit STATUS
12661# -----------------
12662# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12663as_fn_exit ()
12664{
12665  set +e
12666  as_fn_set_status $1
12667  exit $1
12668} # as_fn_exit
12669
12670# as_fn_unset VAR
12671# ---------------
12672# Portably unset VAR.
12673as_fn_unset ()
12674{
12675  { eval $1=; unset $1;}
12676}
12677as_unset=as_fn_unset
12678# as_fn_append VAR VALUE
12679# ----------------------
12680# Append the text in VALUE to the end of the definition contained in VAR. Take
12681# advantage of any shell optimizations that allow amortized linear growth over
12682# repeated appends, instead of the typical quadratic growth present in naive
12683# implementations.
12684if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12685  eval 'as_fn_append ()
12686  {
12687    eval $1+=\$2
12688  }'
12689else
12690  as_fn_append ()
12691  {
12692    eval $1=\$$1\$2
12693  }
12694fi # as_fn_append
12695
12696# as_fn_arith ARG...
12697# ------------------
12698# Perform arithmetic evaluation on the ARGs, and store the result in the
12699# global $as_val. Take advantage of shells that can avoid forks. The arguments
12700# must be portable across $(()) and expr.
12701if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12702  eval 'as_fn_arith ()
12703  {
12704    as_val=$(( $* ))
12705  }'
12706else
12707  as_fn_arith ()
12708  {
12709    as_val=`expr "$@" || test $? -eq 1`
12710  }
12711fi # as_fn_arith
12712
12713
12714if expr a : '\(a\)' >/dev/null 2>&1 &&
12715   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12716  as_expr=expr
12717else
12718  as_expr=false
12719fi
12720
12721if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12722  as_basename=basename
12723else
12724  as_basename=false
12725fi
12726
12727if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12728  as_dirname=dirname
12729else
12730  as_dirname=false
12731fi
12732
12733as_me=`$as_basename -- "$0" ||
12734$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12735	 X"$0" : 'X\(//\)$' \| \
12736	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12737$as_echo X/"$0" |
12738    sed '/^.*\/\([^/][^/]*\)\/*$/{
12739	    s//\1/
12740	    q
12741	  }
12742	  /^X\/\(\/\/\)$/{
12743	    s//\1/
12744	    q
12745	  }
12746	  /^X\/\(\/\).*/{
12747	    s//\1/
12748	    q
12749	  }
12750	  s/.*/./; q'`
12751
12752# Avoid depending upon Character Ranges.
12753as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12754as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12755as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12756as_cr_digits='0123456789'
12757as_cr_alnum=$as_cr_Letters$as_cr_digits
12758
12759ECHO_C= ECHO_N= ECHO_T=
12760case `echo -n x` in #(((((
12761-n*)
12762  case `echo 'xy\c'` in
12763  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12764  xy)  ECHO_C='\c';;
12765  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12766       ECHO_T='	';;
12767  esac;;
12768*)
12769  ECHO_N='-n';;
12770esac
12771
12772rm -f conf$$ conf$$.exe conf$$.file
12773if test -d conf$$.dir; then
12774  rm -f conf$$.dir/conf$$.file
12775else
12776  rm -f conf$$.dir
12777  mkdir conf$$.dir 2>/dev/null
12778fi
12779if (echo >conf$$.file) 2>/dev/null; then
12780  if ln -s conf$$.file conf$$ 2>/dev/null; then
12781    as_ln_s='ln -s'
12782    # ... but there are two gotchas:
12783    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12784    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12785    # In both cases, we have to default to `cp -p'.
12786    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12787      as_ln_s='cp -p'
12788  elif ln conf$$.file conf$$ 2>/dev/null; then
12789    as_ln_s=ln
12790  else
12791    as_ln_s='cp -p'
12792  fi
12793else
12794  as_ln_s='cp -p'
12795fi
12796rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12797rmdir conf$$.dir 2>/dev/null
12798
12799
12800# as_fn_mkdir_p
12801# -------------
12802# Create "$as_dir" as a directory, including parents if necessary.
12803as_fn_mkdir_p ()
12804{
12805
12806  case $as_dir in #(
12807  -*) as_dir=./$as_dir;;
12808  esac
12809  test -d "$as_dir" || eval $as_mkdir_p || {
12810    as_dirs=
12811    while :; do
12812      case $as_dir in #(
12813      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12814      *) as_qdir=$as_dir;;
12815      esac
12816      as_dirs="'$as_qdir' $as_dirs"
12817      as_dir=`$as_dirname -- "$as_dir" ||
12818$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12819	 X"$as_dir" : 'X\(//\)[^/]' \| \
12820	 X"$as_dir" : 'X\(//\)$' \| \
12821	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12822$as_echo X"$as_dir" |
12823    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12824	    s//\1/
12825	    q
12826	  }
12827	  /^X\(\/\/\)[^/].*/{
12828	    s//\1/
12829	    q
12830	  }
12831	  /^X\(\/\/\)$/{
12832	    s//\1/
12833	    q
12834	  }
12835	  /^X\(\/\).*/{
12836	    s//\1/
12837	    q
12838	  }
12839	  s/.*/./; q'`
12840      test -d "$as_dir" && break
12841    done
12842    test -z "$as_dirs" || eval "mkdir $as_dirs"
12843  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12844
12845
12846} # as_fn_mkdir_p
12847if mkdir -p . 2>/dev/null; then
12848  as_mkdir_p='mkdir -p "$as_dir"'
12849else
12850  test -d ./-p && rmdir ./-p
12851  as_mkdir_p=false
12852fi
12853
12854if test -x / >/dev/null 2>&1; then
12855  as_test_x='test -x'
12856else
12857  if ls -dL / >/dev/null 2>&1; then
12858    as_ls_L_option=L
12859  else
12860    as_ls_L_option=
12861  fi
12862  as_test_x='
12863    eval sh -c '\''
12864      if test -d "$1"; then
12865	test -d "$1/.";
12866      else
12867	case $1 in #(
12868	-*)set "./$1";;
12869	esac;
12870	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12871	???[sx]*):;;*)false;;esac;fi
12872    '\'' sh
12873  '
12874fi
12875as_executable_p=$as_test_x
12876
12877# Sed expression to map a string onto a valid CPP name.
12878as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12879
12880# Sed expression to map a string onto a valid variable name.
12881as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12882
12883
12884exec 6>&1
12885## ----------------------------------- ##
12886## Main body of $CONFIG_STATUS script. ##
12887## ----------------------------------- ##
12888_ASEOF
12889test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12890
12891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892# Save the log message, to keep $0 and so on meaningful, and to
12893# report actual input values of CONFIG_FILES etc. instead of their
12894# values after options handling.
12895ac_log="
12896This file was extended by mpc $as_me 0.9, which was
12897generated by GNU Autoconf 2.67.  Invocation command line was
12898
12899  CONFIG_FILES    = $CONFIG_FILES
12900  CONFIG_HEADERS  = $CONFIG_HEADERS
12901  CONFIG_LINKS    = $CONFIG_LINKS
12902  CONFIG_COMMANDS = $CONFIG_COMMANDS
12903  $ $0 $@
12904
12905on `(hostname || uname -n) 2>/dev/null | sed 1q`
12906"
12907
12908_ACEOF
12909
12910case $ac_config_files in *"
12911"*) set x $ac_config_files; shift; ac_config_files=$*;;
12912esac
12913
12914case $ac_config_headers in *"
12915"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12916esac
12917
12918
12919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12920# Files that config.status was made for.
12921config_files="$ac_config_files"
12922config_headers="$ac_config_headers"
12923config_commands="$ac_config_commands"
12924
12925_ACEOF
12926
12927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12928ac_cs_usage="\
12929\`$as_me' instantiates files and other configuration actions
12930from templates according to the current configuration.  Unless the files
12931and actions are specified as TAGs, all are instantiated by default.
12932
12933Usage: $0 [OPTION]... [TAG]...
12934
12935  -h, --help       print this help, then exit
12936  -V, --version    print version number and configuration settings, then exit
12937      --config     print configuration, then exit
12938  -q, --quiet, --silent
12939                   do not print progress messages
12940  -d, --debug      don't remove temporary files
12941      --recheck    update $as_me by reconfiguring in the same conditions
12942      --file=FILE[:TEMPLATE]
12943                   instantiate the configuration file FILE
12944      --header=FILE[:TEMPLATE]
12945                   instantiate the configuration header FILE
12946
12947Configuration files:
12948$config_files
12949
12950Configuration headers:
12951$config_headers
12952
12953Configuration commands:
12954$config_commands
12955
12956Report bugs to <mpc-discuss@lists.gforge.inria.fr>."
12957
12958_ACEOF
12959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12960ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12961ac_cs_version="\\
12962mpc config.status 0.9
12963configured by $0, generated by GNU Autoconf 2.67,
12964  with options \\"\$ac_cs_config\\"
12965
12966Copyright (C) 2010 Free Software Foundation, Inc.
12967This config.status script is free software; the Free Software Foundation
12968gives unlimited permission to copy, distribute and modify it."
12969
12970ac_pwd='$ac_pwd'
12971srcdir='$srcdir'
12972INSTALL='$INSTALL'
12973MKDIR_P='$MKDIR_P'
12974AWK='$AWK'
12975test -n "\$AWK" || AWK=awk
12976_ACEOF
12977
12978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12979# The default lists apply if the user does not specify any file.
12980ac_need_defaults=:
12981while test $# != 0
12982do
12983  case $1 in
12984  --*=?*)
12985    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12986    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12987    ac_shift=:
12988    ;;
12989  --*=)
12990    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12991    ac_optarg=
12992    ac_shift=:
12993    ;;
12994  *)
12995    ac_option=$1
12996    ac_optarg=$2
12997    ac_shift=shift
12998    ;;
12999  esac
13000
13001  case $ac_option in
13002  # Handling of the options.
13003  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13004    ac_cs_recheck=: ;;
13005  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13006    $as_echo "$ac_cs_version"; exit ;;
13007  --config | --confi | --conf | --con | --co | --c )
13008    $as_echo "$ac_cs_config"; exit ;;
13009  --debug | --debu | --deb | --de | --d | -d )
13010    debug=: ;;
13011  --file | --fil | --fi | --f )
13012    $ac_shift
13013    case $ac_optarg in
13014    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13015    '') as_fn_error $? "missing file argument" ;;
13016    esac
13017    as_fn_append CONFIG_FILES " '$ac_optarg'"
13018    ac_need_defaults=false;;
13019  --header | --heade | --head | --hea )
13020    $ac_shift
13021    case $ac_optarg in
13022    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13023    esac
13024    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13025    ac_need_defaults=false;;
13026  --he | --h)
13027    # Conflict between --help and --header
13028    as_fn_error $? "ambiguous option: \`$1'
13029Try \`$0 --help' for more information.";;
13030  --help | --hel | -h )
13031    $as_echo "$ac_cs_usage"; exit ;;
13032  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13033  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13034    ac_cs_silent=: ;;
13035
13036  # This is an error.
13037  -*) as_fn_error $? "unrecognized option: \`$1'
13038Try \`$0 --help' for more information." ;;
13039
13040  *) as_fn_append ac_config_targets " $1"
13041     ac_need_defaults=false ;;
13042
13043  esac
13044  shift
13045done
13046
13047ac_configure_extra_args=
13048
13049if $ac_cs_silent; then
13050  exec 6>/dev/null
13051  ac_configure_extra_args="$ac_configure_extra_args --silent"
13052fi
13053
13054_ACEOF
13055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13056if \$ac_cs_recheck; then
13057  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13058  shift
13059  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13060  CONFIG_SHELL='$SHELL'
13061  export CONFIG_SHELL
13062  exec "\$@"
13063fi
13064
13065_ACEOF
13066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13067exec 5>>config.log
13068{
13069  echo
13070  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13071## Running $as_me. ##
13072_ASBOX
13073  $as_echo "$ac_log"
13074} >&5
13075
13076_ACEOF
13077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13078#
13079# INIT-COMMANDS
13080#
13081AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13082
13083
13084# The HP-UX ksh and POSIX shell print the target directory to stdout
13085# if CDPATH is set.
13086(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13087
13088sed_quote_subst='$sed_quote_subst'
13089double_quote_subst='$double_quote_subst'
13090delay_variable_subst='$delay_variable_subst'
13091macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13092macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13093enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13094enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13095pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13096enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13097host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13098host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13099host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13100build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13101build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13102build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13103SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13104Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13105GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13106EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13107FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13108LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13109NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13110LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13111max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13112ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13113exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13114lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13115lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13116lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13117reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13118reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13119OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13120deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13121file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13122AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13123AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13124STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13125RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13126old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13127old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13128old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13129CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13130CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13131compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13132GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13133lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13134lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13135lt_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"`'
13136lt_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"`'
13137objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13138SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13139ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13140MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13141lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13142lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13143lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13144lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13145lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13146need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13147DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13148NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13149LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13150OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13151OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13152libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13153shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13154extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13155archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13156enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13157export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13158whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13159compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13160old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13161old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13162archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13163archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13164module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13165module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13166with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13167allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13168no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13169hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13170hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13171hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13172hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13173hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13174hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13175hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13176hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13177inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13178link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13179fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13180always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13181export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13182exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13183include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13184prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13185file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13186variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13187need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13188need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13189version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13190runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13191shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13192shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13193libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13194library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13195soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13196postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13197postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13198finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13199finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13200hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13201sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13202sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13203hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13204enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13205enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13206enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13207old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13208striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13209
13210LTCC='$LTCC'
13211LTCFLAGS='$LTCFLAGS'
13212compiler='$compiler_DEFAULT'
13213
13214# Quote evaled strings.
13215for var in SED \
13216GREP \
13217EGREP \
13218FGREP \
13219LD \
13220NM \
13221LN_S \
13222lt_SP2NL \
13223lt_NL2SP \
13224reload_flag \
13225OBJDUMP \
13226deplibs_check_method \
13227file_magic_cmd \
13228AR \
13229AR_FLAGS \
13230STRIP \
13231RANLIB \
13232CC \
13233CFLAGS \
13234compiler \
13235lt_cv_sys_global_symbol_pipe \
13236lt_cv_sys_global_symbol_to_cdecl \
13237lt_cv_sys_global_symbol_to_c_name_address \
13238lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13239SHELL \
13240ECHO \
13241lt_prog_compiler_no_builtin_flag \
13242lt_prog_compiler_wl \
13243lt_prog_compiler_pic \
13244lt_prog_compiler_static \
13245lt_cv_prog_compiler_c_o \
13246need_locks \
13247DSYMUTIL \
13248NMEDIT \
13249LIPO \
13250OTOOL \
13251OTOOL64 \
13252shrext_cmds \
13253export_dynamic_flag_spec \
13254whole_archive_flag_spec \
13255compiler_needs_object \
13256with_gnu_ld \
13257allow_undefined_flag \
13258no_undefined_flag \
13259hardcode_libdir_flag_spec \
13260hardcode_libdir_flag_spec_ld \
13261hardcode_libdir_separator \
13262fix_srcfile_path \
13263exclude_expsyms \
13264include_expsyms \
13265file_list_spec \
13266variables_saved_for_relink \
13267libname_spec \
13268library_names_spec \
13269soname_spec \
13270finish_eval \
13271old_striplib \
13272striplib; do
13273    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13274    *[\\\\\\\`\\"\\\$]*)
13275      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13276      ;;
13277    *)
13278      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13279      ;;
13280    esac
13281done
13282
13283# Double-quote double-evaled strings.
13284for var in reload_cmds \
13285old_postinstall_cmds \
13286old_postuninstall_cmds \
13287old_archive_cmds \
13288extract_expsyms_cmds \
13289old_archive_from_new_cmds \
13290old_archive_from_expsyms_cmds \
13291archive_cmds \
13292archive_expsym_cmds \
13293module_cmds \
13294module_expsym_cmds \
13295export_symbols_cmds \
13296prelink_cmds \
13297postinstall_cmds \
13298postuninstall_cmds \
13299finish_cmds \
13300sys_lib_search_path_spec \
13301sys_lib_dlsearch_path_spec; do
13302    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13303    *[\\\\\\\`\\"\\\$]*)
13304      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13305      ;;
13306    *)
13307      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13308      ;;
13309    esac
13310done
13311
13312# Fix-up fallback echo if it was mangled by the above quoting rules.
13313case \$lt_ECHO in
13314*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13315  ;;
13316esac
13317
13318ac_aux_dir='$ac_aux_dir'
13319xsi_shell='$xsi_shell'
13320lt_shell_append='$lt_shell_append'
13321
13322# See if we are running on zsh, and set the options which allow our
13323# commands through without removal of \ escapes INIT.
13324if test -n "\${ZSH_VERSION+set}" ; then
13325   setopt NO_GLOB_SUBST
13326fi
13327
13328
13329    PACKAGE='$PACKAGE'
13330    VERSION='$VERSION'
13331    TIMESTAMP='$TIMESTAMP'
13332    RM='$RM'
13333    ofile='$ofile'
13334
13335
13336
13337
13338_ACEOF
13339
13340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341
13342# Handling of arguments.
13343for ac_config_target in $ac_config_targets
13344do
13345  case $ac_config_target in
13346    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13347    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13348    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13349    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13350    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13351    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13352    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13353
13354  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13355  esac
13356done
13357
13358
13359# If the user did not use the arguments to specify the items to instantiate,
13360# then the envvar interface is used.  Set only those that are not.
13361# We use the long form for the default assignment because of an extremely
13362# bizarre bug on SunOS 4.1.3.
13363if $ac_need_defaults; then
13364  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13365  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13366  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13367fi
13368
13369# Have a temporary directory for convenience.  Make it in the build tree
13370# simply because there is no reason against having it here, and in addition,
13371# creating and moving files from /tmp can sometimes cause problems.
13372# Hook for its removal unless debugging.
13373# Note that there is a small window in which the directory will not be cleaned:
13374# after its creation but before its name has been assigned to `$tmp'.
13375$debug ||
13376{
13377  tmp=
13378  trap 'exit_status=$?
13379  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13380' 0
13381  trap 'as_fn_exit 1' 1 2 13 15
13382}
13383# Create a (secure) tmp directory for tmp files.
13384
13385{
13386  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13387  test -n "$tmp" && test -d "$tmp"
13388}  ||
13389{
13390  tmp=./conf$$-$RANDOM
13391  (umask 077 && mkdir "$tmp")
13392} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13393
13394# Set up the scripts for CONFIG_FILES section.
13395# No need to generate them if there are no CONFIG_FILES.
13396# This happens for instance with `./config.status config.h'.
13397if test -n "$CONFIG_FILES"; then
13398
13399
13400ac_cr=`echo X | tr X '\015'`
13401# On cygwin, bash can eat \r inside `` if the user requested igncr.
13402# But we know of no other shell where ac_cr would be empty at this
13403# point, so we can use a bashism as a fallback.
13404if test "x$ac_cr" = x; then
13405  eval ac_cr=\$\'\\r\'
13406fi
13407ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13408if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13409  ac_cs_awk_cr='\\r'
13410else
13411  ac_cs_awk_cr=$ac_cr
13412fi
13413
13414echo 'BEGIN {' >"$tmp/subs1.awk" &&
13415_ACEOF
13416
13417
13418{
13419  echo "cat >conf$$subs.awk <<_ACEOF" &&
13420  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13421  echo "_ACEOF"
13422} >conf$$subs.sh ||
13423  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13424ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13425ac_delim='%!_!# '
13426for ac_last_try in false false false false false :; do
13427  . ./conf$$subs.sh ||
13428    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13429
13430  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13431  if test $ac_delim_n = $ac_delim_num; then
13432    break
13433  elif $ac_last_try; then
13434    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13435  else
13436    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13437  fi
13438done
13439rm -f conf$$subs.sh
13440
13441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13442cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13443_ACEOF
13444sed -n '
13445h
13446s/^/S["/; s/!.*/"]=/
13447p
13448g
13449s/^[^!]*!//
13450:repl
13451t repl
13452s/'"$ac_delim"'$//
13453t delim
13454:nl
13455h
13456s/\(.\{148\}\)..*/\1/
13457t more1
13458s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13459p
13460n
13461b repl
13462:more1
13463s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13464p
13465g
13466s/.\{148\}//
13467t nl
13468:delim
13469h
13470s/\(.\{148\}\)..*/\1/
13471t more2
13472s/["\\]/\\&/g; s/^/"/; s/$/"/
13473p
13474b
13475:more2
13476s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13477p
13478g
13479s/.\{148\}//
13480t delim
13481' <conf$$subs.awk | sed '
13482/^[^""]/{
13483  N
13484  s/\n//
13485}
13486' >>$CONFIG_STATUS || ac_write_fail=1
13487rm -f conf$$subs.awk
13488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489_ACAWK
13490cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13491  for (key in S) S_is_set[key] = 1
13492  FS = ""
13493
13494}
13495{
13496  line = $ 0
13497  nfields = split(line, field, "@")
13498  substed = 0
13499  len = length(field[1])
13500  for (i = 2; i < nfields; i++) {
13501    key = field[i]
13502    keylen = length(key)
13503    if (S_is_set[key]) {
13504      value = S[key]
13505      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13506      len += length(value) + length(field[++i])
13507      substed = 1
13508    } else
13509      len += 1 + keylen
13510  }
13511
13512  print line
13513}
13514
13515_ACAWK
13516_ACEOF
13517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13518if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13519  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13520else
13521  cat
13522fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13523  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13524_ACEOF
13525
13526# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13527# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13528# trailing colons and then remove the whole line if VPATH becomes empty
13529# (actually we leave an empty line to preserve line numbers).
13530if test "x$srcdir" = x.; then
13531  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13532h
13533s///
13534s/^/:/
13535s/[	 ]*$/:/
13536s/:\$(srcdir):/:/g
13537s/:\${srcdir}:/:/g
13538s/:@srcdir@:/:/g
13539s/^:*//
13540s/:*$//
13541x
13542s/\(=[	 ]*\).*/\1/
13543G
13544s/\n//
13545s/^[^=]*=[	 ]*$//
13546}'
13547fi
13548
13549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13550fi # test -n "$CONFIG_FILES"
13551
13552# Set up the scripts for CONFIG_HEADERS section.
13553# No need to generate them if there are no CONFIG_HEADERS.
13554# This happens for instance with `./config.status Makefile'.
13555if test -n "$CONFIG_HEADERS"; then
13556cat >"$tmp/defines.awk" <<\_ACAWK ||
13557BEGIN {
13558_ACEOF
13559
13560# Transform confdefs.h into an awk script `defines.awk', embedded as
13561# here-document in config.status, that substitutes the proper values into
13562# config.h.in to produce config.h.
13563
13564# Create a delimiter string that does not exist in confdefs.h, to ease
13565# handling of long lines.
13566ac_delim='%!_!# '
13567for ac_last_try in false false :; do
13568  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13569  if test -z "$ac_t"; then
13570    break
13571  elif $ac_last_try; then
13572    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13573  else
13574    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13575  fi
13576done
13577
13578# For the awk script, D is an array of macro values keyed by name,
13579# likewise P contains macro parameters if any.  Preserve backslash
13580# newline sequences.
13581
13582ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13583sed -n '
13584s/.\{148\}/&'"$ac_delim"'/g
13585t rset
13586:rset
13587s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13588t def
13589d
13590:def
13591s/\\$//
13592t bsnl
13593s/["\\]/\\&/g
13594s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13595D["\1"]=" \3"/p
13596s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13597d
13598:bsnl
13599s/["\\]/\\&/g
13600s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13601D["\1"]=" \3\\\\\\n"\\/p
13602t cont
13603s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13604t cont
13605d
13606:cont
13607n
13608s/.\{148\}/&'"$ac_delim"'/g
13609t clear
13610:clear
13611s/\\$//
13612t bsnlc
13613s/["\\]/\\&/g; s/^/"/; s/$/"/p
13614d
13615:bsnlc
13616s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13617b cont
13618' <confdefs.h | sed '
13619s/'"$ac_delim"'/"\\\
13620"/g' >>$CONFIG_STATUS || ac_write_fail=1
13621
13622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13623  for (key in D) D_is_set[key] = 1
13624  FS = ""
13625}
13626/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13627  line = \$ 0
13628  split(line, arg, " ")
13629  if (arg[1] == "#") {
13630    defundef = arg[2]
13631    mac1 = arg[3]
13632  } else {
13633    defundef = substr(arg[1], 2)
13634    mac1 = arg[2]
13635  }
13636  split(mac1, mac2, "(") #)
13637  macro = mac2[1]
13638  prefix = substr(line, 1, index(line, defundef) - 1)
13639  if (D_is_set[macro]) {
13640    # Preserve the white space surrounding the "#".
13641    print prefix "define", macro P[macro] D[macro]
13642    next
13643  } else {
13644    # Replace #undef with comments.  This is necessary, for example,
13645    # in the case of _POSIX_SOURCE, which is predefined and required
13646    # on some systems where configure will not decide to define it.
13647    if (defundef == "undef") {
13648      print "/*", prefix defundef, macro, "*/"
13649      next
13650    }
13651  }
13652}
13653{ print }
13654_ACAWK
13655_ACEOF
13656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13657  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13658fi # test -n "$CONFIG_HEADERS"
13659
13660
13661eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13662shift
13663for ac_tag
13664do
13665  case $ac_tag in
13666  :[FHLC]) ac_mode=$ac_tag; continue;;
13667  esac
13668  case $ac_mode$ac_tag in
13669  :[FHL]*:*);;
13670  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13671  :[FH]-) ac_tag=-:-;;
13672  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13673  esac
13674  ac_save_IFS=$IFS
13675  IFS=:
13676  set x $ac_tag
13677  IFS=$ac_save_IFS
13678  shift
13679  ac_file=$1
13680  shift
13681
13682  case $ac_mode in
13683  :L) ac_source=$1;;
13684  :[FH])
13685    ac_file_inputs=
13686    for ac_f
13687    do
13688      case $ac_f in
13689      -) ac_f="$tmp/stdin";;
13690      *) # Look for the file first in the build tree, then in the source tree
13691	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13692	 # because $ac_f cannot contain `:'.
13693	 test -f "$ac_f" ||
13694	   case $ac_f in
13695	   [\\/$]*) false;;
13696	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13697	   esac ||
13698	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13699      esac
13700      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13701      as_fn_append ac_file_inputs " '$ac_f'"
13702    done
13703
13704    # Let's still pretend it is `configure' which instantiates (i.e., don't
13705    # use $as_me), people would be surprised to read:
13706    #    /* config.h.  Generated by config.status.  */
13707    configure_input='Generated from '`
13708	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13709	`' by configure.'
13710    if test x"$ac_file" != x-; then
13711      configure_input="$ac_file.  $configure_input"
13712      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13713$as_echo "$as_me: creating $ac_file" >&6;}
13714    fi
13715    # Neutralize special characters interpreted by sed in replacement strings.
13716    case $configure_input in #(
13717    *\&* | *\|* | *\\* )
13718       ac_sed_conf_input=`$as_echo "$configure_input" |
13719       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13720    *) ac_sed_conf_input=$configure_input;;
13721    esac
13722
13723    case $ac_tag in
13724    *:-:* | *:-) cat >"$tmp/stdin" \
13725      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
13726    esac
13727    ;;
13728  esac
13729
13730  ac_dir=`$as_dirname -- "$ac_file" ||
13731$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13732	 X"$ac_file" : 'X\(//\)[^/]' \| \
13733	 X"$ac_file" : 'X\(//\)$' \| \
13734	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13735$as_echo X"$ac_file" |
13736    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13737	    s//\1/
13738	    q
13739	  }
13740	  /^X\(\/\/\)[^/].*/{
13741	    s//\1/
13742	    q
13743	  }
13744	  /^X\(\/\/\)$/{
13745	    s//\1/
13746	    q
13747	  }
13748	  /^X\(\/\).*/{
13749	    s//\1/
13750	    q
13751	  }
13752	  s/.*/./; q'`
13753  as_dir="$ac_dir"; as_fn_mkdir_p
13754  ac_builddir=.
13755
13756case "$ac_dir" in
13757.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13758*)
13759  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13760  # A ".." for each directory in $ac_dir_suffix.
13761  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13762  case $ac_top_builddir_sub in
13763  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13764  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13765  esac ;;
13766esac
13767ac_abs_top_builddir=$ac_pwd
13768ac_abs_builddir=$ac_pwd$ac_dir_suffix
13769# for backward compatibility:
13770ac_top_builddir=$ac_top_build_prefix
13771
13772case $srcdir in
13773  .)  # We are building in place.
13774    ac_srcdir=.
13775    ac_top_srcdir=$ac_top_builddir_sub
13776    ac_abs_top_srcdir=$ac_pwd ;;
13777  [\\/]* | ?:[\\/]* )  # Absolute name.
13778    ac_srcdir=$srcdir$ac_dir_suffix;
13779    ac_top_srcdir=$srcdir
13780    ac_abs_top_srcdir=$srcdir ;;
13781  *) # Relative name.
13782    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13783    ac_top_srcdir=$ac_top_build_prefix$srcdir
13784    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13785esac
13786ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13787
13788
13789  case $ac_mode in
13790  :F)
13791  #
13792  # CONFIG_FILE
13793  #
13794
13795  case $INSTALL in
13796  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13797  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13798  esac
13799  ac_MKDIR_P=$MKDIR_P
13800  case $MKDIR_P in
13801  [\\/$]* | ?:[\\/]* ) ;;
13802  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13803  esac
13804_ACEOF
13805
13806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13807# If the template does not know about datarootdir, expand it.
13808# FIXME: This hack should be removed a few years after 2.60.
13809ac_datarootdir_hack=; ac_datarootdir_seen=
13810ac_sed_dataroot='
13811/datarootdir/ {
13812  p
13813  q
13814}
13815/@datadir@/p
13816/@docdir@/p
13817/@infodir@/p
13818/@localedir@/p
13819/@mandir@/p'
13820case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13821*datarootdir*) ac_datarootdir_seen=yes;;
13822*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13823  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13824$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13825_ACEOF
13826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827  ac_datarootdir_hack='
13828  s&@datadir@&$datadir&g
13829  s&@docdir@&$docdir&g
13830  s&@infodir@&$infodir&g
13831  s&@localedir@&$localedir&g
13832  s&@mandir@&$mandir&g
13833  s&\\\${datarootdir}&$datarootdir&g' ;;
13834esac
13835_ACEOF
13836
13837# Neutralize VPATH when `$srcdir' = `.'.
13838# Shell code in configure.ac might set extrasub.
13839# FIXME: do we really want to maintain this feature?
13840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13841ac_sed_extra="$ac_vpsub
13842$extrasub
13843_ACEOF
13844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13845:t
13846/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13847s|@configure_input@|$ac_sed_conf_input|;t t
13848s&@top_builddir@&$ac_top_builddir_sub&;t t
13849s&@top_build_prefix@&$ac_top_build_prefix&;t t
13850s&@srcdir@&$ac_srcdir&;t t
13851s&@abs_srcdir@&$ac_abs_srcdir&;t t
13852s&@top_srcdir@&$ac_top_srcdir&;t t
13853s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13854s&@builddir@&$ac_builddir&;t t
13855s&@abs_builddir@&$ac_abs_builddir&;t t
13856s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13857s&@INSTALL@&$ac_INSTALL&;t t
13858s&@MKDIR_P@&$ac_MKDIR_P&;t t
13859$ac_datarootdir_hack
13860"
13861eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13862  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13863
13864test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13865  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13866  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13867  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13868which seems to be undefined.  Please make sure it is defined" >&5
13869$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13870which seems to be undefined.  Please make sure it is defined" >&2;}
13871
13872  rm -f "$tmp/stdin"
13873  case $ac_file in
13874  -) cat "$tmp/out" && rm -f "$tmp/out";;
13875  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13876  esac \
13877  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13878 ;;
13879  :H)
13880  #
13881  # CONFIG_HEADER
13882  #
13883  if test x"$ac_file" != x-; then
13884    {
13885      $as_echo "/* $configure_input  */" \
13886      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13887    } >"$tmp/config.h" \
13888      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13889    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13890      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13891$as_echo "$as_me: $ac_file is unchanged" >&6;}
13892    else
13893      rm -f "$ac_file"
13894      mv "$tmp/config.h" "$ac_file" \
13895	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13896    fi
13897  else
13898    $as_echo "/* $configure_input  */" \
13899      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13900      || as_fn_error $? "could not create -" "$LINENO" 5
13901  fi
13902# Compute "$ac_file"'s index in $config_headers.
13903_am_arg="$ac_file"
13904_am_stamp_count=1
13905for _am_header in $config_headers :; do
13906  case $_am_header in
13907    $_am_arg | $_am_arg:* )
13908      break ;;
13909    * )
13910      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13911  esac
13912done
13913echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13914$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13915	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13916	 X"$_am_arg" : 'X\(//\)$' \| \
13917	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13918$as_echo X"$_am_arg" |
13919    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13920	    s//\1/
13921	    q
13922	  }
13923	  /^X\(\/\/\)[^/].*/{
13924	    s//\1/
13925	    q
13926	  }
13927	  /^X\(\/\/\)$/{
13928	    s//\1/
13929	    q
13930	  }
13931	  /^X\(\/\).*/{
13932	    s//\1/
13933	    q
13934	  }
13935	  s/.*/./; q'`/stamp-h$_am_stamp_count
13936 ;;
13937
13938  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13939$as_echo "$as_me: executing $ac_file commands" >&6;}
13940 ;;
13941  esac
13942
13943
13944  case $ac_file$ac_mode in
13945    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13946  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13947  # are listed without --file.  Let's play safe and only enable the eval
13948  # if we detect the quoting.
13949  case $CONFIG_FILES in
13950  *\'*) eval set x "$CONFIG_FILES" ;;
13951  *)   set x $CONFIG_FILES ;;
13952  esac
13953  shift
13954  for mf
13955  do
13956    # Strip MF so we end up with the name of the file.
13957    mf=`echo "$mf" | sed -e 's/:.*$//'`
13958    # Check whether this is an Automake generated Makefile or not.
13959    # We used to match only the files named `Makefile.in', but
13960    # some people rename them; so instead we look at the file content.
13961    # Grep'ing the first line is not enough: some people post-process
13962    # each Makefile.in and add a new line on top of each file to say so.
13963    # Grep'ing the whole file is not good either: AIX grep has a line
13964    # limit of 2048, but all sed's we know have understand at least 4000.
13965    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13966      dirpart=`$as_dirname -- "$mf" ||
13967$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13968	 X"$mf" : 'X\(//\)[^/]' \| \
13969	 X"$mf" : 'X\(//\)$' \| \
13970	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13971$as_echo X"$mf" |
13972    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13973	    s//\1/
13974	    q
13975	  }
13976	  /^X\(\/\/\)[^/].*/{
13977	    s//\1/
13978	    q
13979	  }
13980	  /^X\(\/\/\)$/{
13981	    s//\1/
13982	    q
13983	  }
13984	  /^X\(\/\).*/{
13985	    s//\1/
13986	    q
13987	  }
13988	  s/.*/./; q'`
13989    else
13990      continue
13991    fi
13992    # Extract the definition of DEPDIR, am__include, and am__quote
13993    # from the Makefile without running `make'.
13994    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13995    test -z "$DEPDIR" && continue
13996    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13997    test -z "am__include" && continue
13998    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13999    # When using ansi2knr, U may be empty or an underscore; expand it
14000    U=`sed -n 's/^U = //p' < "$mf"`
14001    # Find all dependency output files, they are included files with
14002    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14003    # simplest approach to changing $(DEPDIR) to its actual value in the
14004    # expansion.
14005    for file in `sed -n "
14006      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14007	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14008      # Make sure the directory exists.
14009      test -f "$dirpart/$file" && continue
14010      fdir=`$as_dirname -- "$file" ||
14011$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14012	 X"$file" : 'X\(//\)[^/]' \| \
14013	 X"$file" : 'X\(//\)$' \| \
14014	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14015$as_echo X"$file" |
14016    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14017	    s//\1/
14018	    q
14019	  }
14020	  /^X\(\/\/\)[^/].*/{
14021	    s//\1/
14022	    q
14023	  }
14024	  /^X\(\/\/\)$/{
14025	    s//\1/
14026	    q
14027	  }
14028	  /^X\(\/\).*/{
14029	    s//\1/
14030	    q
14031	  }
14032	  s/.*/./; q'`
14033      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14034      # echo "creating $dirpart/$file"
14035      echo '# dummy' > "$dirpart/$file"
14036    done
14037  done
14038}
14039 ;;
14040    "libtool":C)
14041
14042    # See if we are running on zsh, and set the options which allow our
14043    # commands through without removal of \ escapes.
14044    if test -n "${ZSH_VERSION+set}" ; then
14045      setopt NO_GLOB_SUBST
14046    fi
14047
14048    cfgfile="${ofile}T"
14049    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14050    $RM "$cfgfile"
14051
14052    cat <<_LT_EOF >> "$cfgfile"
14053#! $SHELL
14054
14055# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14056# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14057# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14058# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14059#
14060#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14061#                 2006, 2007, 2008 Free Software Foundation, Inc.
14062#   Written by Gordon Matzigkeit, 1996
14063#
14064#   This file is part of GNU Libtool.
14065#
14066# GNU Libtool is free software; you can redistribute it and/or
14067# modify it under the terms of the GNU General Public License as
14068# published by the Free Software Foundation; either version 2 of
14069# the License, or (at your option) any later version.
14070#
14071# As a special exception to the GNU General Public License,
14072# if you distribute this file as part of a program or library that
14073# is built using GNU Libtool, you may include this file under the
14074# same distribution terms that you use for the rest of that program.
14075#
14076# GNU Libtool is distributed in the hope that it will be useful,
14077# but WITHOUT ANY WARRANTY; without even the implied warranty of
14078# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14079# GNU General Public License for more details.
14080#
14081# You should have received a copy of the GNU General Public License
14082# along with GNU Libtool; see the file COPYING.  If not, a copy
14083# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14084# obtained by writing to the Free Software Foundation, Inc.,
14085# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14086
14087
14088# The names of the tagged configurations supported by this script.
14089available_tags=""
14090
14091# ### BEGIN LIBTOOL CONFIG
14092
14093# Which release of libtool.m4 was used?
14094macro_version=$macro_version
14095macro_revision=$macro_revision
14096
14097# Whether or not to build shared libraries.
14098build_libtool_libs=$enable_shared
14099
14100# Whether or not to build static libraries.
14101build_old_libs=$enable_static
14102
14103# What type of objects to build.
14104pic_mode=$pic_mode
14105
14106# Whether or not to optimize for fast installation.
14107fast_install=$enable_fast_install
14108
14109# The host system.
14110host_alias=$host_alias
14111host=$host
14112host_os=$host_os
14113
14114# The build system.
14115build_alias=$build_alias
14116build=$build
14117build_os=$build_os
14118
14119# A sed program that does not truncate output.
14120SED=$lt_SED
14121
14122# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14123Xsed="\$SED -e 1s/^X//"
14124
14125# A grep program that handles long lines.
14126GREP=$lt_GREP
14127
14128# An ERE matcher.
14129EGREP=$lt_EGREP
14130
14131# A literal string matcher.
14132FGREP=$lt_FGREP
14133
14134# A BSD- or MS-compatible name lister.
14135NM=$lt_NM
14136
14137# Whether we need soft or hard links.
14138LN_S=$lt_LN_S
14139
14140# What is the maximum length of a command?
14141max_cmd_len=$max_cmd_len
14142
14143# Object file suffix (normally "o").
14144objext=$ac_objext
14145
14146# Executable file suffix (normally "").
14147exeext=$exeext
14148
14149# whether the shell understands "unset".
14150lt_unset=$lt_unset
14151
14152# turn spaces into newlines.
14153SP2NL=$lt_lt_SP2NL
14154
14155# turn newlines into spaces.
14156NL2SP=$lt_lt_NL2SP
14157
14158# How to create reloadable object files.
14159reload_flag=$lt_reload_flag
14160reload_cmds=$lt_reload_cmds
14161
14162# An object symbol dumper.
14163OBJDUMP=$lt_OBJDUMP
14164
14165# Method to check whether dependent libraries are shared objects.
14166deplibs_check_method=$lt_deplibs_check_method
14167
14168# Command to use when deplibs_check_method == "file_magic".
14169file_magic_cmd=$lt_file_magic_cmd
14170
14171# The archiver.
14172AR=$lt_AR
14173AR_FLAGS=$lt_AR_FLAGS
14174
14175# A symbol stripping program.
14176STRIP=$lt_STRIP
14177
14178# Commands used to install an old-style archive.
14179RANLIB=$lt_RANLIB
14180old_postinstall_cmds=$lt_old_postinstall_cmds
14181old_postuninstall_cmds=$lt_old_postuninstall_cmds
14182
14183# A C compiler.
14184LTCC=$lt_CC
14185
14186# LTCC compiler flags.
14187LTCFLAGS=$lt_CFLAGS
14188
14189# Take the output of nm and produce a listing of raw symbols and C names.
14190global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14191
14192# Transform the output of nm in a proper C declaration.
14193global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14194
14195# Transform the output of nm in a C name address pair.
14196global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14197
14198# Transform the output of nm in a C name address pair when lib prefix is needed.
14199global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14200
14201# The name of the directory that contains temporary libtool files.
14202objdir=$objdir
14203
14204# Shell to use when invoking shell scripts.
14205SHELL=$lt_SHELL
14206
14207# An echo program that does not interpret backslashes.
14208ECHO=$lt_ECHO
14209
14210# Used to examine libraries when file_magic_cmd begins with "file".
14211MAGIC_CMD=$MAGIC_CMD
14212
14213# Must we lock files when doing compilation?
14214need_locks=$lt_need_locks
14215
14216# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14217DSYMUTIL=$lt_DSYMUTIL
14218
14219# Tool to change global to local symbols on Mac OS X.
14220NMEDIT=$lt_NMEDIT
14221
14222# Tool to manipulate fat objects and archives on Mac OS X.
14223LIPO=$lt_LIPO
14224
14225# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14226OTOOL=$lt_OTOOL
14227
14228# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14229OTOOL64=$lt_OTOOL64
14230
14231# Old archive suffix (normally "a").
14232libext=$libext
14233
14234# Shared library suffix (normally ".so").
14235shrext_cmds=$lt_shrext_cmds
14236
14237# The commands to extract the exported symbol list from a shared archive.
14238extract_expsyms_cmds=$lt_extract_expsyms_cmds
14239
14240# Variables whose values should be saved in libtool wrapper scripts and
14241# restored at link time.
14242variables_saved_for_relink=$lt_variables_saved_for_relink
14243
14244# Do we need the "lib" prefix for modules?
14245need_lib_prefix=$need_lib_prefix
14246
14247# Do we need a version for libraries?
14248need_version=$need_version
14249
14250# Library versioning type.
14251version_type=$version_type
14252
14253# Shared library runtime path variable.
14254runpath_var=$runpath_var
14255
14256# Shared library path variable.
14257shlibpath_var=$shlibpath_var
14258
14259# Is shlibpath searched before the hard-coded library search path?
14260shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14261
14262# Format of library name prefix.
14263libname_spec=$lt_libname_spec
14264
14265# List of archive names.  First name is the real one, the rest are links.
14266# The last name is the one that the linker finds with -lNAME
14267library_names_spec=$lt_library_names_spec
14268
14269# The coded name of the library, if different from the real name.
14270soname_spec=$lt_soname_spec
14271
14272# Command to use after installation of a shared archive.
14273postinstall_cmds=$lt_postinstall_cmds
14274
14275# Command to use after uninstallation of a shared archive.
14276postuninstall_cmds=$lt_postuninstall_cmds
14277
14278# Commands used to finish a libtool library installation in a directory.
14279finish_cmds=$lt_finish_cmds
14280
14281# As "finish_cmds", except a single script fragment to be evaled but
14282# not shown.
14283finish_eval=$lt_finish_eval
14284
14285# Whether we should hardcode library paths into libraries.
14286hardcode_into_libs=$hardcode_into_libs
14287
14288# Compile-time system search path for libraries.
14289sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14290
14291# Run-time system search path for libraries.
14292sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14293
14294# Whether dlopen is supported.
14295dlopen_support=$enable_dlopen
14296
14297# Whether dlopen of programs is supported.
14298dlopen_self=$enable_dlopen_self
14299
14300# Whether dlopen of statically linked programs is supported.
14301dlopen_self_static=$enable_dlopen_self_static
14302
14303# Commands to strip libraries.
14304old_striplib=$lt_old_striplib
14305striplib=$lt_striplib
14306
14307
14308# The linker used to build libraries.
14309LD=$lt_LD
14310
14311# Commands used to build an old-style archive.
14312old_archive_cmds=$lt_old_archive_cmds
14313
14314# A language specific compiler.
14315CC=$lt_compiler
14316
14317# Is the compiler the GNU compiler?
14318with_gcc=$GCC
14319
14320# Compiler flag to turn off builtin functions.
14321no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14322
14323# How to pass a linker flag through the compiler.
14324wl=$lt_lt_prog_compiler_wl
14325
14326# Additional compiler flags for building library objects.
14327pic_flag=$lt_lt_prog_compiler_pic
14328
14329# Compiler flag to prevent dynamic linking.
14330link_static_flag=$lt_lt_prog_compiler_static
14331
14332# Does compiler simultaneously support -c and -o options?
14333compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14334
14335# Whether or not to add -lc for building shared libraries.
14336build_libtool_need_lc=$archive_cmds_need_lc
14337
14338# Whether or not to disallow shared libs when runtime libs are static.
14339allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14340
14341# Compiler flag to allow reflexive dlopens.
14342export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14343
14344# Compiler flag to generate shared objects directly from archives.
14345whole_archive_flag_spec=$lt_whole_archive_flag_spec
14346
14347# Whether the compiler copes with passing no objects directly.
14348compiler_needs_object=$lt_compiler_needs_object
14349
14350# Create an old-style archive from a shared archive.
14351old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14352
14353# Create a temporary old-style archive to link instead of a shared archive.
14354old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14355
14356# Commands used to build a shared archive.
14357archive_cmds=$lt_archive_cmds
14358archive_expsym_cmds=$lt_archive_expsym_cmds
14359
14360# Commands used to build a loadable module if different from building
14361# a shared archive.
14362module_cmds=$lt_module_cmds
14363module_expsym_cmds=$lt_module_expsym_cmds
14364
14365# Whether we are building with GNU ld or not.
14366with_gnu_ld=$lt_with_gnu_ld
14367
14368# Flag that allows shared libraries with undefined symbols to be built.
14369allow_undefined_flag=$lt_allow_undefined_flag
14370
14371# Flag that enforces no undefined symbols.
14372no_undefined_flag=$lt_no_undefined_flag
14373
14374# Flag to hardcode \$libdir into a binary during linking.
14375# This must work even if \$libdir does not exist
14376hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14377
14378# If ld is used when linking, flag to hardcode \$libdir into a binary
14379# during linking.  This must work even if \$libdir does not exist.
14380hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14381
14382# Whether we need a single "-rpath" flag with a separated argument.
14383hardcode_libdir_separator=$lt_hardcode_libdir_separator
14384
14385# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14386# DIR into the resulting binary.
14387hardcode_direct=$hardcode_direct
14388
14389# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14390# DIR into the resulting binary and the resulting library dependency is
14391# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14392# library is relocated.
14393hardcode_direct_absolute=$hardcode_direct_absolute
14394
14395# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14396# into the resulting binary.
14397hardcode_minus_L=$hardcode_minus_L
14398
14399# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14400# into the resulting binary.
14401hardcode_shlibpath_var=$hardcode_shlibpath_var
14402
14403# Set to "yes" if building a shared library automatically hardcodes DIR
14404# into the library and all subsequent libraries and executables linked
14405# against it.
14406hardcode_automatic=$hardcode_automatic
14407
14408# Set to yes if linker adds runtime paths of dependent libraries
14409# to runtime path list.
14410inherit_rpath=$inherit_rpath
14411
14412# Whether libtool must link a program against all its dependency libraries.
14413link_all_deplibs=$link_all_deplibs
14414
14415# Fix the shell variable \$srcfile for the compiler.
14416fix_srcfile_path=$lt_fix_srcfile_path
14417
14418# Set to "yes" if exported symbols are required.
14419always_export_symbols=$always_export_symbols
14420
14421# The commands to list exported symbols.
14422export_symbols_cmds=$lt_export_symbols_cmds
14423
14424# Symbols that should not be listed in the preloaded symbols.
14425exclude_expsyms=$lt_exclude_expsyms
14426
14427# Symbols that must always be exported.
14428include_expsyms=$lt_include_expsyms
14429
14430# Commands necessary for linking programs (against libraries) with templates.
14431prelink_cmds=$lt_prelink_cmds
14432
14433# Specify filename containing input files.
14434file_list_spec=$lt_file_list_spec
14435
14436# How to hardcode a shared library path into an executable.
14437hardcode_action=$hardcode_action
14438
14439# ### END LIBTOOL CONFIG
14440
14441_LT_EOF
14442
14443  case $host_os in
14444  aix3*)
14445    cat <<\_LT_EOF >> "$cfgfile"
14446# AIX sometimes has problems with the GCC collect2 program.  For some
14447# reason, if we set the COLLECT_NAMES environment variable, the problems
14448# vanish in a puff of smoke.
14449if test "X${COLLECT_NAMES+set}" != Xset; then
14450  COLLECT_NAMES=
14451  export COLLECT_NAMES
14452fi
14453_LT_EOF
14454    ;;
14455  esac
14456
14457
14458ltmain="$ac_aux_dir/ltmain.sh"
14459
14460
14461  # We use sed instead of cat because bash on DJGPP gets confused if
14462  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14463  # text mode, it properly converts lines to CR/LF.  This bash problem
14464  # is reportedly fixed, but why not run on old versions too?
14465  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14466    || (rm -f "$cfgfile"; exit 1)
14467
14468  case $xsi_shell in
14469  yes)
14470    cat << \_LT_EOF >> "$cfgfile"
14471
14472# func_dirname file append nondir_replacement
14473# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14474# otherwise set result to NONDIR_REPLACEMENT.
14475func_dirname ()
14476{
14477  case ${1} in
14478    */*) func_dirname_result="${1%/*}${2}" ;;
14479    *  ) func_dirname_result="${3}" ;;
14480  esac
14481}
14482
14483# func_basename file
14484func_basename ()
14485{
14486  func_basename_result="${1##*/}"
14487}
14488
14489# func_dirname_and_basename file append nondir_replacement
14490# perform func_basename and func_dirname in a single function
14491# call:
14492#   dirname:  Compute the dirname of FILE.  If nonempty,
14493#             add APPEND to the result, otherwise set result
14494#             to NONDIR_REPLACEMENT.
14495#             value returned in "$func_dirname_result"
14496#   basename: Compute filename of FILE.
14497#             value retuned in "$func_basename_result"
14498# Implementation must be kept synchronized with func_dirname
14499# and func_basename. For efficiency, we do not delegate to
14500# those functions but instead duplicate the functionality here.
14501func_dirname_and_basename ()
14502{
14503  case ${1} in
14504    */*) func_dirname_result="${1%/*}${2}" ;;
14505    *  ) func_dirname_result="${3}" ;;
14506  esac
14507  func_basename_result="${1##*/}"
14508}
14509
14510# func_stripname prefix suffix name
14511# strip PREFIX and SUFFIX off of NAME.
14512# PREFIX and SUFFIX must not contain globbing or regex special
14513# characters, hashes, percent signs, but SUFFIX may contain a leading
14514# dot (in which case that matches only a dot).
14515func_stripname ()
14516{
14517  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14518  # positional parameters, so assign one to ordinary parameter first.
14519  func_stripname_result=${3}
14520  func_stripname_result=${func_stripname_result#"${1}"}
14521  func_stripname_result=${func_stripname_result%"${2}"}
14522}
14523
14524# func_opt_split
14525func_opt_split ()
14526{
14527  func_opt_split_opt=${1%%=*}
14528  func_opt_split_arg=${1#*=}
14529}
14530
14531# func_lo2o object
14532func_lo2o ()
14533{
14534  case ${1} in
14535    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14536    *)    func_lo2o_result=${1} ;;
14537  esac
14538}
14539
14540# func_xform libobj-or-source
14541func_xform ()
14542{
14543  func_xform_result=${1%.*}.lo
14544}
14545
14546# func_arith arithmetic-term...
14547func_arith ()
14548{
14549  func_arith_result=$(( $* ))
14550}
14551
14552# func_len string
14553# STRING may not start with a hyphen.
14554func_len ()
14555{
14556  func_len_result=${#1}
14557}
14558
14559_LT_EOF
14560    ;;
14561  *) # Bourne compatible functions.
14562    cat << \_LT_EOF >> "$cfgfile"
14563
14564# func_dirname file append nondir_replacement
14565# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14566# otherwise set result to NONDIR_REPLACEMENT.
14567func_dirname ()
14568{
14569  # Extract subdirectory from the argument.
14570  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14571  if test "X$func_dirname_result" = "X${1}"; then
14572    func_dirname_result="${3}"
14573  else
14574    func_dirname_result="$func_dirname_result${2}"
14575  fi
14576}
14577
14578# func_basename file
14579func_basename ()
14580{
14581  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14582}
14583
14584
14585# func_stripname prefix suffix name
14586# strip PREFIX and SUFFIX off of NAME.
14587# PREFIX and SUFFIX must not contain globbing or regex special
14588# characters, hashes, percent signs, but SUFFIX may contain a leading
14589# dot (in which case that matches only a dot).
14590# func_strip_suffix prefix name
14591func_stripname ()
14592{
14593  case ${2} in
14594    .*) func_stripname_result=`$ECHO "X${3}" \
14595           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14596    *)  func_stripname_result=`$ECHO "X${3}" \
14597           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14598  esac
14599}
14600
14601# sed scripts:
14602my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14603my_sed_long_arg='1s/^-[^=]*=//'
14604
14605# func_opt_split
14606func_opt_split ()
14607{
14608  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14609  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14610}
14611
14612# func_lo2o object
14613func_lo2o ()
14614{
14615  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14616}
14617
14618# func_xform libobj-or-source
14619func_xform ()
14620{
14621  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14622}
14623
14624# func_arith arithmetic-term...
14625func_arith ()
14626{
14627  func_arith_result=`expr "$@"`
14628}
14629
14630# func_len string
14631# STRING may not start with a hyphen.
14632func_len ()
14633{
14634  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14635}
14636
14637_LT_EOF
14638esac
14639
14640case $lt_shell_append in
14641  yes)
14642    cat << \_LT_EOF >> "$cfgfile"
14643
14644# func_append var value
14645# Append VALUE to the end of shell variable VAR.
14646func_append ()
14647{
14648  eval "$1+=\$2"
14649}
14650_LT_EOF
14651    ;;
14652  *)
14653    cat << \_LT_EOF >> "$cfgfile"
14654
14655# func_append var value
14656# Append VALUE to the end of shell variable VAR.
14657func_append ()
14658{
14659  eval "$1=\$$1\$2"
14660}
14661
14662_LT_EOF
14663    ;;
14664  esac
14665
14666
14667  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14668    || (rm -f "$cfgfile"; exit 1)
14669
14670  mv -f "$cfgfile" "$ofile" ||
14671    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14672  chmod +x "$ofile"
14673
14674 ;;
14675
14676  esac
14677done # for ac_tag
14678
14679
14680as_fn_exit 0
14681_ACEOF
14682ac_clean_files=$ac_clean_files_save
14683
14684test $ac_write_fail = 0 ||
14685  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14686
14687
14688# configure is writing to config.log, and then calls config.status.
14689# config.status does its own redirection, appending to config.log.
14690# Unfortunately, on DOS this fails, as config.log is still kept open
14691# by configure, so config.status won't be able to write to it; its
14692# output is simply discarded.  So we exec the FD to /dev/null,
14693# effectively closing config.log, so it can be properly (re)opened and
14694# appended to by config.status.  When coming back to configure, we
14695# need to make the FD available again.
14696if test "$no_create" != yes; then
14697  ac_cs_success=:
14698  ac_config_status_args=
14699  test "$silent" = yes &&
14700    ac_config_status_args="$ac_config_status_args --quiet"
14701  exec 5>/dev/null
14702  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14703  exec 5>>config.log
14704  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14705  # would make configure fail if this is the last instruction.
14706  $ac_cs_success || as_fn_exit 1
14707fi
14708if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14709  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14710$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14711fi
14712
14713