1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for mcsim 6.2.0.
4#
5# Report bugs to <bug-mcsim@gnu.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-mcsim@gnu.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='mcsim'
592PACKAGE_TARNAME='mcsim'
593PACKAGE_VERSION='6.2.0'
594PACKAGE_STRING='mcsim 6.2.0'
595PACKAGE_BUGREPORT='bug-mcsim@gnu.org'
596PACKAGE_URL=''
597
598ac_unique_file="mod/mod.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639PLOT_FOUND
640WISH_FOUND
641ac_ct_MPICC
642MPICC
643CPP
644LT_SYS_LIBRARY_PATH
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
650MANIFEST_TOOL
651RANLIB
652DLLTOOL
653OBJDUMP
654LN_S
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660EGREP
661GREP
662SED
663host_os
664host_vendor
665host_cpu
666host
667build_os
668build_vendor
669build_cpu
670build
671LIBTOOL
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675am__nodep
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
689ac_ct_AR
690AR
691AM_BACKSLASH
692AM_DEFAULT_VERBOSITY
693AM_DEFAULT_V
694AM_V
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_alias
719host_alias
720build_alias
721LIBS
722ECHO_T
723ECHO_N
724ECHO_C
725DEFS
726mandir
727localedir
728libdir
729psdir
730pdfdir
731dvidir
732htmldir
733infodir
734docdir
735oldincludedir
736includedir
737runstatedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
749PACKAGE_URL
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
757ac_subst_files=''
758ac_user_opts='
759enable_option_checking
760enable_silent_rules
761enable_dependency_tracking
762enable_shared
763enable_static
764with_pic
765enable_fast_install
766with_aix_soname
767with_gnu_ld
768with_sysroot
769enable_libtool_lock
770with_mpi
771'
772      ac_precious_vars='build_alias
773host_alias
774target_alias
775CC
776CFLAGS
777LDFLAGS
778LIBS
779CPPFLAGS
780LT_SYS_LIBRARY_PATH
781CPP
782MPICC'
783
784
785# Initialize some variables set by options.
786ac_init_help=
787ac_init_version=false
788ac_unrecognized_opts=
789ac_unrecognized_sep=
790# The variables have the same names as the options, with
791# dashes changed to underlines.
792cache_file=/dev/null
793exec_prefix=NONE
794no_create=
795no_recursion=
796prefix=NONE
797program_prefix=NONE
798program_suffix=NONE
799program_transform_name=s,x,x,
800silent=
801site=
802srcdir=
803verbose=
804x_includes=NONE
805x_libraries=NONE
806
807# Installation directory options.
808# These are left unexpanded so users can "make install exec_prefix=/foo"
809# and all the variables that are supposed to be based on exec_prefix
810# by default will actually change.
811# Use braces instead of parens because sh, perl, etc. also accept them.
812# (The list follows the same order as the GNU Coding Standards.)
813bindir='${exec_prefix}/bin'
814sbindir='${exec_prefix}/sbin'
815libexecdir='${exec_prefix}/libexec'
816datarootdir='${prefix}/share'
817datadir='${datarootdir}'
818sysconfdir='${prefix}/etc'
819sharedstatedir='${prefix}/com'
820localstatedir='${prefix}/var'
821runstatedir='${localstatedir}/run'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838  # If the previous option needs an argument, assign it.
839  if test -n "$ac_prev"; then
840    eval $ac_prev=\$ac_option
841    ac_prev=
842    continue
843  fi
844
845  case $ac_option in
846  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847  *=)   ac_optarg= ;;
848  *)    ac_optarg=yes ;;
849  esac
850
851  # Accept the important Cygnus configure options, so we can diagnose typos.
852
853  case $ac_dashdash$ac_option in
854  --)
855    ac_dashdash=yes ;;
856
857  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858    ac_prev=bindir ;;
859  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860    bindir=$ac_optarg ;;
861
862  -build | --build | --buil | --bui | --bu)
863    ac_prev=build_alias ;;
864  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865    build_alias=$ac_optarg ;;
866
867  -cache-file | --cache-file | --cache-fil | --cache-fi \
868  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869    ac_prev=cache_file ;;
870  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872    cache_file=$ac_optarg ;;
873
874  --config-cache | -C)
875    cache_file=config.cache ;;
876
877  -datadir | --datadir | --datadi | --datad)
878    ac_prev=datadir ;;
879  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880    datadir=$ac_optarg ;;
881
882  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883  | --dataroo | --dataro | --datar)
884    ac_prev=datarootdir ;;
885  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887    datarootdir=$ac_optarg ;;
888
889  -disable-* | --disable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=no ;;
904
905  -docdir | --docdir | --docdi | --doc | --do)
906    ac_prev=docdir ;;
907  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908    docdir=$ac_optarg ;;
909
910  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911    ac_prev=dvidir ;;
912  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913    dvidir=$ac_optarg ;;
914
915  -enable-* | --enable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error $? "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -runstatedir | --runstatedir | --runstatedi | --runstated \
1075  | --runstate | --runstat | --runsta | --runst | --runs \
1076  | --run | --ru | --r)
1077    ac_prev=runstatedir ;;
1078  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1079  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1080  | --run=* | --ru=* | --r=*)
1081    runstatedir=$ac_optarg ;;
1082
1083  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084    ac_prev=sbindir ;;
1085  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086  | --sbi=* | --sb=*)
1087    sbindir=$ac_optarg ;;
1088
1089  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091  | --sharedst | --shareds | --shared | --share | --shar \
1092  | --sha | --sh)
1093    ac_prev=sharedstatedir ;;
1094  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097  | --sha=* | --sh=*)
1098    sharedstatedir=$ac_optarg ;;
1099
1100  -site | --site | --sit)
1101    ac_prev=site ;;
1102  -site=* | --site=* | --sit=*)
1103    site=$ac_optarg ;;
1104
1105  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106    ac_prev=srcdir ;;
1107  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108    srcdir=$ac_optarg ;;
1109
1110  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111  | --syscon | --sysco | --sysc | --sys | --sy)
1112    ac_prev=sysconfdir ;;
1113  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115    sysconfdir=$ac_optarg ;;
1116
1117  -target | --target | --targe | --targ | --tar | --ta | --t)
1118    ac_prev=target_alias ;;
1119  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120    target_alias=$ac_optarg ;;
1121
1122  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123    verbose=yes ;;
1124
1125  -version | --version | --versio | --versi | --vers | -V)
1126    ac_init_version=: ;;
1127
1128  -with-* | --with-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid package name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"with_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval with_$ac_useropt=\$ac_optarg ;;
1143
1144  -without-* | --without-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error $? "invalid package name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"with_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval with_$ac_useropt=no ;;
1159
1160  --x)
1161    # Obsolete; use --with-x.
1162    with_x=yes ;;
1163
1164  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165  | --x-incl | --x-inc | --x-in | --x-i)
1166    ac_prev=x_includes ;;
1167  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169    x_includes=$ac_optarg ;;
1170
1171  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173    ac_prev=x_libraries ;;
1174  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176    x_libraries=$ac_optarg ;;
1177
1178  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179Try \`$0 --help' for more information"
1180    ;;
1181
1182  *=*)
1183    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184    # Reject names that are not valid shell variable names.
1185    case $ac_envvar in #(
1186      '' | [0-9]* | *[!_$as_cr_alnum]* )
1187      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188    esac
1189    eval $ac_envvar=\$ac_optarg
1190    export $ac_envvar ;;
1191
1192  *)
1193    # FIXME: should be removed in autoconf 3.0.
1194    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198    ;;
1199
1200  esac
1201done
1202
1203if test -n "$ac_prev"; then
1204  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205  as_fn_error $? "missing argument to $ac_option"
1206fi
1207
1208if test -n "$ac_unrecognized_opts"; then
1209  case $enable_option_checking in
1210    no) ;;
1211    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213  esac
1214fi
1215
1216# Check all directory arguments for consistency.
1217for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218		datadir sysconfdir sharedstatedir localstatedir includedir \
1219		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220		libdir localedir mandir runstatedir
1221do
1222  eval ac_val=\$$ac_var
1223  # Remove trailing slashes.
1224  case $ac_val in
1225    */ )
1226      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227      eval $ac_var=\$ac_val;;
1228  esac
1229  # Be sure to have absolute directory names.
1230  case $ac_val in
1231    [\\/$]* | ?:[\\/]* )  continue;;
1232    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233  esac
1234  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235done
1236
1237# There might be people who depend on the old broken behavior: `$host'
1238# used to hold the argument of --host etc.
1239# FIXME: To remove some day.
1240build=$build_alias
1241host=$host_alias
1242target=$target_alias
1243
1244# FIXME: To remove some day.
1245if test "x$host_alias" != x; then
1246  if test "x$build_alias" = x; then
1247    cross_compiling=maybe
1248  elif test "x$build_alias" != "x$host_alias"; then
1249    cross_compiling=yes
1250  fi
1251fi
1252
1253ac_tool_prefix=
1254test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256test "$silent" = yes && exec 6>/dev/null
1257
1258
1259ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260ac_ls_di=`ls -di .` &&
1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262  as_fn_error $? "working directory cannot be determined"
1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264  as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267# Find the source files, if location was not specified.
1268if test -z "$srcdir"; then
1269  ac_srcdir_defaulted=yes
1270  # Try the directory containing this script, then the parent directory.
1271  ac_confdir=`$as_dirname -- "$as_myself" ||
1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273	 X"$as_myself" : 'X\(//\)[^/]' \| \
1274	 X"$as_myself" : 'X\(//\)$' \| \
1275	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276$as_echo X"$as_myself" |
1277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\/\)[^/].*/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)$/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\).*/{
1290	    s//\1/
1291	    q
1292	  }
1293	  s/.*/./; q'`
1294  srcdir=$ac_confdir
1295  if test ! -r "$srcdir/$ac_unique_file"; then
1296    srcdir=..
1297  fi
1298else
1299  ac_srcdir_defaulted=no
1300fi
1301if test ! -r "$srcdir/$ac_unique_file"; then
1302  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304fi
1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306ac_abs_confdir=`(
1307	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308	pwd)`
1309# When building in place, set srcdir=.
1310if test "$ac_abs_confdir" = "$ac_pwd"; then
1311  srcdir=.
1312fi
1313# Remove unnecessary trailing slashes from srcdir.
1314# Double slashes in file names in object file debugging info
1315# mess up M-x gdb in Emacs.
1316case $srcdir in
1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318esac
1319for ac_var in $ac_precious_vars; do
1320  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_env_${ac_var}_value=\$${ac_var}
1322  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324done
1325
1326#
1327# Report the --help message.
1328#
1329if test "$ac_init_help" = "long"; then
1330  # Omit some internal or obsolete options to make the list less imposing.
1331  # This message is too long to be a string in the A/UX 3.1 sh.
1332  cat <<_ACEOF
1333\`configure' configures mcsim 6.2.0 to adapt to many kinds of systems.
1334
1335Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340Defaults for the options are specified in brackets.
1341
1342Configuration:
1343  -h, --help              display this help and exit
1344      --help=short        display options specific to this package
1345      --help=recursive    display the short help of all the included packages
1346  -V, --version           display version information and exit
1347  -q, --quiet, --silent   do not print \`checking ...' messages
1348      --cache-file=FILE   cache test results in FILE [disabled]
1349  -C, --config-cache      alias for \`--cache-file=config.cache'
1350  -n, --no-create         do not create output files
1351      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353Installation directories:
1354  --prefix=PREFIX         install architecture-independent files in PREFIX
1355                          [$ac_default_prefix]
1356  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357                          [PREFIX]
1358
1359By default, \`make install' will install all the files in
1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362for instance \`--prefix=\$HOME'.
1363
1364For better control, use the options below.
1365
1366Fine tuning of the installation directories:
1367  --bindir=DIR            user executables [EPREFIX/bin]
1368  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1369  --libexecdir=DIR        program executables [EPREFIX/libexec]
1370  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1371  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1372  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1373  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1374  --libdir=DIR            object code libraries [EPREFIX/lib]
1375  --includedir=DIR        C header files [PREFIX/include]
1376  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1377  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1378  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1379  --infodir=DIR           info documentation [DATAROOTDIR/info]
1380  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1381  --mandir=DIR            man documentation [DATAROOTDIR/man]
1382  --docdir=DIR            documentation root [DATAROOTDIR/doc/mcsim]
1383  --htmldir=DIR           html documentation [DOCDIR]
1384  --dvidir=DIR            dvi documentation [DOCDIR]
1385  --pdfdir=DIR            pdf documentation [DOCDIR]
1386  --psdir=DIR             ps documentation [DOCDIR]
1387_ACEOF
1388
1389  cat <<\_ACEOF
1390
1391Program names:
1392  --program-prefix=PREFIX            prepend PREFIX to installed program names
1393  --program-suffix=SUFFIX            append SUFFIX to installed program names
1394  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1395
1396System types:
1397  --build=BUILD     configure for building on BUILD [guessed]
1398  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1399_ACEOF
1400fi
1401
1402if test -n "$ac_init_help"; then
1403  case $ac_init_help in
1404     short | recursive ) echo "Configuration of mcsim 6.2.0:";;
1405   esac
1406  cat <<\_ACEOF
1407
1408Optional Features:
1409  --disable-option-checking  ignore unrecognized --enable/--with options
1410  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1411  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1412  --enable-silent-rules   less verbose build output (undo: "make V=1")
1413  --disable-silent-rules  verbose build output (undo: "make V=0")
1414  --enable-dependency-tracking
1415                          do not reject slow dependency extractors
1416  --disable-dependency-tracking
1417                          speeds up one-time build
1418  --enable-shared[=PKGS]  build shared libraries [default=yes]
1419  --enable-static[=PKGS]  build static libraries [default=yes]
1420  --enable-fast-install[=PKGS]
1421                          optimize for fast installation [default=yes]
1422  --disable-libtool-lock  avoid locking (might break parallel builds)
1423
1424Optional Packages:
1425  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1426  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1427  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1428                          both]
1429  --with-aix-soname=aix|svr4|both
1430                          shared library versioning (aka "SONAME") variant to
1431                          provide on AIX, [default=aix].
1432  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1434                          compiler's sysroot if not specified).
1435  --with-mpi              compile with MPI (parallelization) support. If none
1436                          is found, MPI is not used. Default: auto
1437
1438
1439Some influential environment variables:
1440  CC          C compiler command
1441  CFLAGS      C compiler flags
1442  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1443              nonstandard directory <lib dir>
1444  LIBS        libraries to pass to the linker, e.g. -l<library>
1445  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446              you have headers in a nonstandard directory <include dir>
1447  LT_SYS_LIBRARY_PATH
1448              User-defined run-time library search path.
1449  CPP         C preprocessor
1450  MPICC       MPI C compiler command
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
1455Report bugs to <bug-mcsim@gnu.org>.
1456_ACEOF
1457ac_status=$?
1458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461  # If there are subdirs, report their specific --help.
1462  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463    test -d "$ac_dir" ||
1464      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465      continue
1466    ac_builddir=.
1467
1468case "$ac_dir" in
1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470*)
1471  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472  # A ".." for each directory in $ac_dir_suffix.
1473  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474  case $ac_top_builddir_sub in
1475  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477  esac ;;
1478esac
1479ac_abs_top_builddir=$ac_pwd
1480ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481# for backward compatibility:
1482ac_top_builddir=$ac_top_build_prefix
1483
1484case $srcdir in
1485  .)  # We are building in place.
1486    ac_srcdir=.
1487    ac_top_srcdir=$ac_top_builddir_sub
1488    ac_abs_top_srcdir=$ac_pwd ;;
1489  [\\/]* | ?:[\\/]* )  # Absolute name.
1490    ac_srcdir=$srcdir$ac_dir_suffix;
1491    ac_top_srcdir=$srcdir
1492    ac_abs_top_srcdir=$srcdir ;;
1493  *) # Relative name.
1494    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495    ac_top_srcdir=$ac_top_build_prefix$srcdir
1496    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497esac
1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500    cd "$ac_dir" || { ac_status=$?; continue; }
1501    # Check for guested configure.
1502    if test -f "$ac_srcdir/configure.gnu"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505    elif test -f "$ac_srcdir/configure"; then
1506      echo &&
1507      $SHELL "$ac_srcdir/configure" --help=recursive
1508    else
1509      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510    fi || ac_status=$?
1511    cd "$ac_pwd" || { ac_status=$?; break; }
1512  done
1513fi
1514
1515test -n "$ac_init_help" && exit $ac_status
1516if $ac_init_version; then
1517  cat <<\_ACEOF
1518mcsim configure 6.2.0
1519generated by GNU Autoconf 2.69
1520
1521Copyright (C) 2012 Free Software Foundation, Inc.
1522This configure script is free software; the Free Software Foundation
1523gives unlimited permission to copy, distribute and modify it.
1524_ACEOF
1525  exit
1526fi
1527
1528## ------------------------ ##
1529## Autoconf initialization. ##
1530## ------------------------ ##
1531
1532# ac_fn_c_try_compile LINENO
1533# --------------------------
1534# Try to compile conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_compile ()
1536{
1537  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538  rm -f conftest.$ac_objext
1539  if { { ac_try="$ac_compile"
1540case "(($ac_try" in
1541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542  *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546  (eval "$ac_compile") 2>conftest.err
1547  ac_status=$?
1548  if test -s conftest.err; then
1549    grep -v '^ *+' conftest.err >conftest.er1
1550    cat conftest.er1 >&5
1551    mv -f conftest.er1 conftest.err
1552  fi
1553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554  test $ac_status = 0; } && {
1555	 test -z "$ac_c_werror_flag" ||
1556	 test ! -s conftest.err
1557       } && test -s conftest.$ac_objext; then :
1558  ac_retval=0
1559else
1560  $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563	ac_retval=1
1564fi
1565  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566  as_fn_set_status $ac_retval
1567
1568} # ac_fn_c_try_compile
1569
1570# ac_fn_c_try_link LINENO
1571# -----------------------
1572# Try to link conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_link ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  rm -f conftest.$ac_objext conftest$ac_exeext
1577  if { { ac_try="$ac_link"
1578case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584  (eval "$ac_link") 2>conftest.err
1585  ac_status=$?
1586  if test -s conftest.err; then
1587    grep -v '^ *+' conftest.err >conftest.er1
1588    cat conftest.er1 >&5
1589    mv -f conftest.er1 conftest.err
1590  fi
1591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592  test $ac_status = 0; } && {
1593	 test -z "$ac_c_werror_flag" ||
1594	 test ! -s conftest.err
1595       } && test -s conftest$ac_exeext && {
1596	 test "$cross_compiling" = yes ||
1597	 test -x conftest$ac_exeext
1598       }; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608  # interfere with the next link command; also delete a directory that is
1609  # left behind by Apple's compiler.  We do this before executing the actions.
1610  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612  as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_link
1615
1616# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617# -------------------------------------------------------
1618# Tests whether HEADER exists and can be compiled using the include files in
1619# INCLUDES, setting the cache variable VAR accordingly.
1620ac_fn_c_check_header_compile ()
1621{
1622  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624$as_echo_n "checking for $2... " >&6; }
1625if eval \${$3+:} false; then :
1626  $as_echo_n "(cached) " >&6
1627else
1628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629/* end confdefs.h.  */
1630$4
1631#include <$2>
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"; then :
1634  eval "$3=yes"
1635else
1636  eval "$3=no"
1637fi
1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639fi
1640eval ac_res=\$$3
1641	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642$as_echo "$ac_res" >&6; }
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645} # ac_fn_c_check_header_compile
1646
1647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } > conftest.i && {
1669	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       }; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677    ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_cpp
1683
1684# ac_fn_c_try_run LINENO
1685# ----------------------
1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687# that executables *can* be run.
1688ac_fn_c_try_run ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { { ac_try="$ac_link"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_link") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702  { { case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_try") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; }; }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: program exited with status $ac_status" >&5
1715       $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718       ac_retval=$ac_status
1719fi
1720  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_run
1725
1726# ac_fn_c_check_func LINENO FUNC VAR
1727# ----------------------------------
1728# Tests whether FUNC exists, setting the cache variable VAR accordingly
1729ac_fn_c_check_func ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if eval \${$3+:} false; then :
1735  $as_echo_n "(cached) " >&6
1736else
1737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h.  */
1739/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1740   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1741#define $2 innocuous_$2
1742
1743/* System header to define __stub macros and hopefully few prototypes,
1744    which can conflict with char $2 (); below.
1745    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1746    <limits.h> exists even on freestanding compilers.  */
1747
1748#ifdef __STDC__
1749# include <limits.h>
1750#else
1751# include <assert.h>
1752#endif
1753
1754#undef $2
1755
1756/* Override any GCC internal prototype to avoid an error.
1757   Use char because int might match the return type of a GCC
1758   builtin and then its argument prototype would still apply.  */
1759#ifdef __cplusplus
1760extern "C"
1761#endif
1762char $2 ();
1763/* The GNU C library defines this for functions which it implements
1764    to always fail with ENOSYS.  Some functions are actually named
1765    something starting with __ and the normal name is an alias.  */
1766#if defined __stub_$2 || defined __stub___$2
1767choke me
1768#endif
1769
1770int
1771main ()
1772{
1773return $2 ();
1774  ;
1775  return 0;
1776}
1777_ACEOF
1778if ac_fn_c_try_link "$LINENO"; then :
1779  eval "$3=yes"
1780else
1781  eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext \
1784    conftest$ac_exeext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791} # ac_fn_c_check_func
1792
1793# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1794# -------------------------------------------------------
1795# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1796# the include files in INCLUDES and setting the cache variable VAR
1797# accordingly.
1798ac_fn_c_check_header_mongrel ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  if eval \${$3+:} false; then :
1802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803$as_echo_n "checking for $2... " >&6; }
1804if eval \${$3+:} false; then :
1805  $as_echo_n "(cached) " >&6
1806fi
1807eval ac_res=\$$3
1808	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
1810else
1811  # Is the header compilable?
1812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1813$as_echo_n "checking $2 usability... " >&6; }
1814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h.  */
1816$4
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_compile "$LINENO"; then :
1820  ac_header_compiler=yes
1821else
1822  ac_header_compiler=no
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1826$as_echo "$ac_header_compiler" >&6; }
1827
1828# Is the header present?
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1830$as_echo_n "checking $2 presence... " >&6; }
1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833#include <$2>
1834_ACEOF
1835if ac_fn_c_try_cpp "$LINENO"; then :
1836  ac_header_preproc=yes
1837else
1838  ac_header_preproc=no
1839fi
1840rm -f conftest.err conftest.i conftest.$ac_ext
1841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1842$as_echo "$ac_header_preproc" >&6; }
1843
1844# So?  What about this header?
1845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1846  yes:no: )
1847    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1848$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851    ;;
1852  no:yes:* )
1853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1854$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1856$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1858$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1860$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863( $as_echo "## -------------------------------- ##
1864## Report this to bug-mcsim@gnu.org ##
1865## -------------------------------- ##"
1866     ) | sed "s/^/$as_me: WARNING:     /" >&2
1867    ;;
1868esac
1869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
1871if eval \${$3+:} false; then :
1872  $as_echo_n "(cached) " >&6
1873else
1874  eval "$3=\$ac_header_compiler"
1875fi
1876eval ac_res=\$$3
1877	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
1879fi
1880  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882} # ac_fn_c_check_header_mongrel
1883cat >config.log <<_ACEOF
1884This file contains any messages produced by compilers while
1885running configure, to aid debugging if configure makes a mistake.
1886
1887It was created by mcsim $as_me 6.2.0, which was
1888generated by GNU Autoconf 2.69.  Invocation command line was
1889
1890  $ $0 $@
1891
1892_ACEOF
1893exec 5>>config.log
1894{
1895cat <<_ASUNAME
1896## --------- ##
1897## Platform. ##
1898## --------- ##
1899
1900hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905
1906/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1908
1909/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1910/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1911/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1913/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1914/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1915/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1916
1917_ASUNAME
1918
1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922  IFS=$as_save_IFS
1923  test -z "$as_dir" && as_dir=.
1924    $as_echo "PATH: $as_dir"
1925  done
1926IFS=$as_save_IFS
1927
1928} >&5
1929
1930cat >&5 <<_ACEOF
1931
1932
1933## ----------- ##
1934## Core tests. ##
1935## ----------- ##
1936
1937_ACEOF
1938
1939
1940# Keep a trace of the command line.
1941# Strip out --no-create and --no-recursion so they do not pile up.
1942# Strip out --silent because we don't want to record it for future runs.
1943# Also quote any args containing shell meta-characters.
1944# Make two passes to allow for proper duplicate-argument suppression.
1945ac_configure_args=
1946ac_configure_args0=
1947ac_configure_args1=
1948ac_must_keep_next=false
1949for ac_pass in 1 2
1950do
1951  for ac_arg
1952  do
1953    case $ac_arg in
1954    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956    | -silent | --silent | --silen | --sile | --sil)
1957      continue ;;
1958    *\'*)
1959      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960    esac
1961    case $ac_pass in
1962    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963    2)
1964      as_fn_append ac_configure_args1 " '$ac_arg'"
1965      if test $ac_must_keep_next = true; then
1966	ac_must_keep_next=false # Got value, back to normal.
1967      else
1968	case $ac_arg in
1969	  *=* | --config-cache | -C | -disable-* | --disable-* \
1970	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972	  | -with-* | --with-* | -without-* | --without-* | --x)
1973	    case "$ac_configure_args0 " in
1974	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975	    esac
1976	    ;;
1977	  -* ) ac_must_keep_next=true ;;
1978	esac
1979      fi
1980      as_fn_append ac_configure_args " '$ac_arg'"
1981      ;;
1982    esac
1983  done
1984done
1985{ ac_configure_args0=; unset ac_configure_args0;}
1986{ ac_configure_args1=; unset ac_configure_args1;}
1987
1988# When interrupted or exit'd, cleanup temporary files, and complete
1989# config.log.  We remove comments because anyway the quotes in there
1990# would cause problems or look ugly.
1991# WARNING: Use '\'' to represent an apostrophe within the trap.
1992# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1993trap 'exit_status=$?
1994  # Save into config.log some information that might help in debugging.
1995  {
1996    echo
1997
1998    $as_echo "## ---------------- ##
1999## Cache variables. ##
2000## ---------------- ##"
2001    echo
2002    # The following way of writing the cache mishandles newlines in values,
2003(
2004  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005    eval ac_val=\$$ac_var
2006    case $ac_val in #(
2007    *${as_nl}*)
2008      case $ac_var in #(
2009      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011      esac
2012      case $ac_var in #(
2013      _ | IFS | as_nl) ;; #(
2014      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015      *) { eval $ac_var=; unset $ac_var;} ;;
2016      esac ;;
2017    esac
2018  done
2019  (set) 2>&1 |
2020    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021    *${as_nl}ac_space=\ *)
2022      sed -n \
2023	"s/'\''/'\''\\\\'\'''\''/g;
2024	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025      ;; #(
2026    *)
2027      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028      ;;
2029    esac |
2030    sort
2031)
2032    echo
2033
2034    $as_echo "## ----------------- ##
2035## Output variables. ##
2036## ----------------- ##"
2037    echo
2038    for ac_var in $ac_subst_vars
2039    do
2040      eval ac_val=\$$ac_var
2041      case $ac_val in
2042      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043      esac
2044      $as_echo "$ac_var='\''$ac_val'\''"
2045    done | sort
2046    echo
2047
2048    if test -n "$ac_subst_files"; then
2049      $as_echo "## ------------------- ##
2050## File substitutions. ##
2051## ------------------- ##"
2052      echo
2053      for ac_var in $ac_subst_files
2054      do
2055	eval ac_val=\$$ac_var
2056	case $ac_val in
2057	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058	esac
2059	$as_echo "$ac_var='\''$ac_val'\''"
2060      done | sort
2061      echo
2062    fi
2063
2064    if test -s confdefs.h; then
2065      $as_echo "## ----------- ##
2066## confdefs.h. ##
2067## ----------- ##"
2068      echo
2069      cat confdefs.h
2070      echo
2071    fi
2072    test "$ac_signal" != 0 &&
2073      $as_echo "$as_me: caught signal $ac_signal"
2074    $as_echo "$as_me: exit $exit_status"
2075  } >&5
2076  rm -f core *.core core.conftest.* &&
2077    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2078    exit $exit_status
2079' 0
2080for ac_signal in 1 2 13 15; do
2081  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2082done
2083ac_signal=0
2084
2085# confdefs.h avoids OS command line length limits that DEFS can exceed.
2086rm -f -r conftest* confdefs.h
2087
2088$as_echo "/* confdefs.h */" > confdefs.h
2089
2090# Predefined preprocessor variables.
2091
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_NAME "$PACKAGE_NAME"
2094_ACEOF
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2098_ACEOF
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_VERSION "$PACKAGE_VERSION"
2102_ACEOF
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_STRING "$PACKAGE_STRING"
2106_ACEOF
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2110_ACEOF
2111
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_URL "$PACKAGE_URL"
2114_ACEOF
2115
2116
2117# Let the site file select an alternate cache file if it wants to.
2118# Prefer an explicitly selected file to automatically selected ones.
2119ac_site_file1=NONE
2120ac_site_file2=NONE
2121if test -n "$CONFIG_SITE"; then
2122  # We do not want a PATH search for config.site.
2123  case $CONFIG_SITE in #((
2124    -*)  ac_site_file1=./$CONFIG_SITE;;
2125    */*) ac_site_file1=$CONFIG_SITE;;
2126    *)   ac_site_file1=./$CONFIG_SITE;;
2127  esac
2128elif test "x$prefix" != xNONE; then
2129  ac_site_file1=$prefix/share/config.site
2130  ac_site_file2=$prefix/etc/config.site
2131else
2132  ac_site_file1=$ac_default_prefix/share/config.site
2133  ac_site_file2=$ac_default_prefix/etc/config.site
2134fi
2135for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136do
2137  test "x$ac_site_file" = xNONE && continue
2138  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2139    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2140$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2141    sed 's/^/| /' "$ac_site_file" >&5
2142    . "$ac_site_file" \
2143      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145as_fn_error $? "failed to load site script $ac_site_file
2146See \`config.log' for more details" "$LINENO" 5; }
2147  fi
2148done
2149
2150if test -r "$cache_file"; then
2151  # Some versions of bash will fail to source /dev/null (special files
2152  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2153  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2154    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2155$as_echo "$as_me: loading cache $cache_file" >&6;}
2156    case $cache_file in
2157      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2158      *)                      . "./$cache_file";;
2159    esac
2160  fi
2161else
2162  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2163$as_echo "$as_me: creating cache $cache_file" >&6;}
2164  >$cache_file
2165fi
2166
2167# Check that the precious variables saved in the cache have kept the same
2168# value.
2169ac_cache_corrupted=false
2170for ac_var in $ac_precious_vars; do
2171  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2172  eval ac_new_set=\$ac_env_${ac_var}_set
2173  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2174  eval ac_new_val=\$ac_env_${ac_var}_value
2175  case $ac_old_set,$ac_new_set in
2176    set,)
2177      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2178$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2179      ac_cache_corrupted=: ;;
2180    ,set)
2181      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2182$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2183      ac_cache_corrupted=: ;;
2184    ,);;
2185    *)
2186      if test "x$ac_old_val" != "x$ac_new_val"; then
2187	# differences in whitespace do not lead to failure.
2188	ac_old_val_w=`echo x $ac_old_val`
2189	ac_new_val_w=`echo x $ac_new_val`
2190	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2191	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2192$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2193	  ac_cache_corrupted=:
2194	else
2195	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2196$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2197	  eval $ac_var=\$ac_old_val
2198	fi
2199	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2200$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2201	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2202$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2203      fi;;
2204  esac
2205  # Pass precious variables to config.status.
2206  if test "$ac_new_set" = set; then
2207    case $ac_new_val in
2208    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2209    *) ac_arg=$ac_var=$ac_new_val ;;
2210    esac
2211    case " $ac_configure_args " in
2212      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2213      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2214    esac
2215  fi
2216done
2217if $ac_cache_corrupted; then
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2221$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2222  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2223fi
2224## -------------------- ##
2225## Main body of script. ##
2226## -------------------- ##
2227
2228ac_ext=c
2229ac_cpp='$CPP $CPPFLAGS'
2230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233
2234
2235
2236                   # requires at least autoconf v...
2237     # safety check for configure run */
2238
2239am__api_version='1.15'
2240
2241ac_aux_dir=
2242for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2243  if test -f "$ac_dir/install-sh"; then
2244    ac_aux_dir=$ac_dir
2245    ac_install_sh="$ac_aux_dir/install-sh -c"
2246    break
2247  elif test -f "$ac_dir/install.sh"; then
2248    ac_aux_dir=$ac_dir
2249    ac_install_sh="$ac_aux_dir/install.sh -c"
2250    break
2251  elif test -f "$ac_dir/shtool"; then
2252    ac_aux_dir=$ac_dir
2253    ac_install_sh="$ac_aux_dir/shtool install -c"
2254    break
2255  fi
2256done
2257if test -z "$ac_aux_dir"; then
2258  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2259fi
2260
2261# These three variables are undocumented and unsupported,
2262# and are intended to be withdrawn in a future Autoconf release.
2263# They can cause serious problems if a builder's source tree is in a directory
2264# whose full name contains unusual characters.
2265ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2266ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2267ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2268
2269
2270# Find a good install program.  We prefer a C program (faster),
2271# so one script is as good as another.  But avoid the broken or
2272# incompatible versions:
2273# SysV /etc/install, /usr/sbin/install
2274# SunOS /usr/etc/install
2275# IRIX /sbin/install
2276# AIX /bin/install
2277# AmigaOS /C/install, which installs bootblocks on floppy discs
2278# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2279# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2280# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2281# OS/2's system install, which has a completely different semantic
2282# ./install, which can be erroneously created by make from ./install.sh.
2283# Reject install programs that cannot install multiple files.
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2285$as_echo_n "checking for a BSD-compatible install... " >&6; }
2286if test -z "$INSTALL"; then
2287if ${ac_cv_path_install+:} false; then :
2288  $as_echo_n "(cached) " >&6
2289else
2290  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291for as_dir in $PATH
2292do
2293  IFS=$as_save_IFS
2294  test -z "$as_dir" && as_dir=.
2295    # Account for people who put trailing slashes in PATH elements.
2296case $as_dir/ in #((
2297  ./ | .// | /[cC]/* | \
2298  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2299  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2300  /usr/ucb/* ) ;;
2301  *)
2302    # OSF1 and SCO ODT 3.0 have their own names for install.
2303    # Don't use installbsd from OSF since it installs stuff as root
2304    # by default.
2305    for ac_prog in ginstall scoinst install; do
2306      for ac_exec_ext in '' $ac_executable_extensions; do
2307	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2308	  if test $ac_prog = install &&
2309	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310	    # AIX install.  It has an incompatible calling convention.
2311	    :
2312	  elif test $ac_prog = install &&
2313	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314	    # program-specific install script used by HP pwplus--don't use.
2315	    :
2316	  else
2317	    rm -rf conftest.one conftest.two conftest.dir
2318	    echo one > conftest.one
2319	    echo two > conftest.two
2320	    mkdir conftest.dir
2321	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2322	      test -s conftest.one && test -s conftest.two &&
2323	      test -s conftest.dir/conftest.one &&
2324	      test -s conftest.dir/conftest.two
2325	    then
2326	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2327	      break 3
2328	    fi
2329	  fi
2330	fi
2331      done
2332    done
2333    ;;
2334esac
2335
2336  done
2337IFS=$as_save_IFS
2338
2339rm -rf conftest.one conftest.two conftest.dir
2340
2341fi
2342  if test "${ac_cv_path_install+set}" = set; then
2343    INSTALL=$ac_cv_path_install
2344  else
2345    # As a last resort, use the slow shell script.  Don't cache a
2346    # value for INSTALL within a source directory, because that will
2347    # break other packages using the cache if that directory is
2348    # removed, or if the value is a relative name.
2349    INSTALL=$ac_install_sh
2350  fi
2351fi
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2353$as_echo "$INSTALL" >&6; }
2354
2355# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2356# It thinks the first close brace ends the variable substitution.
2357test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2358
2359test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2360
2361test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2362
2363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2364$as_echo_n "checking whether build environment is sane... " >&6; }
2365# Reject unsafe characters in $srcdir or the absolute working directory
2366# name.  Accept space and tab only in the latter.
2367am_lf='
2368'
2369case `pwd` in
2370  *[\\\"\#\$\&\'\`$am_lf]*)
2371    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2372esac
2373case $srcdir in
2374  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2375    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2376esac
2377
2378# Do 'set' in a subshell so we don't clobber the current shell's
2379# arguments.  Must try -L first in case configure is actually a
2380# symlink; some systems play weird games with the mod time of symlinks
2381# (eg FreeBSD returns the mod time of the symlink's containing
2382# directory).
2383if (
2384   am_has_slept=no
2385   for am_try in 1 2; do
2386     echo "timestamp, slept: $am_has_slept" > conftest.file
2387     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2388     if test "$*" = "X"; then
2389	# -L didn't work.
2390	set X `ls -t "$srcdir/configure" conftest.file`
2391     fi
2392     if test "$*" != "X $srcdir/configure conftest.file" \
2393	&& test "$*" != "X conftest.file $srcdir/configure"; then
2394
2395	# If neither matched, then we have a broken ls.  This can happen
2396	# if, for instance, CONFIG_SHELL is bash and it inherits a
2397	# broken ls alias from the environment.  This has actually
2398	# happened.  Such a system could not be considered "sane".
2399	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2400  alias in your environment" "$LINENO" 5
2401     fi
2402     if test "$2" = conftest.file || test $am_try -eq 2; then
2403       break
2404     fi
2405     # Just in case.
2406     sleep 1
2407     am_has_slept=yes
2408   done
2409   test "$2" = conftest.file
2410   )
2411then
2412   # Ok.
2413   :
2414else
2415   as_fn_error $? "newly created file is older than distributed files!
2416Check your system clock" "$LINENO" 5
2417fi
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2419$as_echo "yes" >&6; }
2420# If we didn't sleep, we still need to ensure time stamps of config.status and
2421# generated files are strictly newer.
2422am_sleep_pid=
2423if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2424  ( sleep 1 ) &
2425  am_sleep_pid=$!
2426fi
2427
2428rm -f conftest.file
2429
2430test "$program_prefix" != NONE &&
2431  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2432# Use a double $ so make ignores it.
2433test "$program_suffix" != NONE &&
2434  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2435# Double any \ or $.
2436# By default was `s,x,x', remove it if useless.
2437ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2438program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2439
2440# Expand $ac_aux_dir to an absolute path.
2441am_aux_dir=`cd "$ac_aux_dir" && pwd`
2442
2443if test x"${MISSING+set}" != xset; then
2444  case $am_aux_dir in
2445  *\ * | *\	*)
2446    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2447  *)
2448    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2449  esac
2450fi
2451# Use eval to expand $SHELL
2452if eval "$MISSING --is-lightweight"; then
2453  am_missing_run="$MISSING "
2454else
2455  am_missing_run=
2456  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2457$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2458fi
2459
2460if test x"${install_sh+set}" != xset; then
2461  case $am_aux_dir in
2462  *\ * | *\	*)
2463    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2464  *)
2465    install_sh="\${SHELL} $am_aux_dir/install-sh"
2466  esac
2467fi
2468
2469# Installed binaries are usually stripped using 'strip' when the user
2470# run "make install-strip".  However 'strip' might not be the right
2471# tool to use in cross-compilation environments, therefore Automake
2472# will honor the 'STRIP' environment variable to overrule this program.
2473if test "$cross_compiling" != no; then
2474  if test -n "$ac_tool_prefix"; then
2475  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2476set dummy ${ac_tool_prefix}strip; ac_word=$2
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478$as_echo_n "checking for $ac_word... " >&6; }
2479if ${ac_cv_prog_STRIP+:} false; then :
2480  $as_echo_n "(cached) " >&6
2481else
2482  if test -n "$STRIP"; then
2483  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488  IFS=$as_save_IFS
2489  test -z "$as_dir" && as_dir=.
2490    for ac_exec_ext in '' $ac_executable_extensions; do
2491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494    break 2
2495  fi
2496done
2497  done
2498IFS=$as_save_IFS
2499
2500fi
2501fi
2502STRIP=$ac_cv_prog_STRIP
2503if test -n "$STRIP"; then
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2505$as_echo "$STRIP" >&6; }
2506else
2507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508$as_echo "no" >&6; }
2509fi
2510
2511
2512fi
2513if test -z "$ac_cv_prog_STRIP"; then
2514  ac_ct_STRIP=$STRIP
2515  # Extract the first word of "strip", so it can be a program name with args.
2516set dummy strip; ac_word=$2
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2520  $as_echo_n "(cached) " >&6
2521else
2522  if test -n "$ac_ct_STRIP"; then
2523  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528  IFS=$as_save_IFS
2529  test -z "$as_dir" && as_dir=.
2530    for ac_exec_ext in '' $ac_executable_extensions; do
2531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532    ac_cv_prog_ac_ct_STRIP="strip"
2533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534    break 2
2535  fi
2536done
2537  done
2538IFS=$as_save_IFS
2539
2540fi
2541fi
2542ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2543if test -n "$ac_ct_STRIP"; then
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2545$as_echo "$ac_ct_STRIP" >&6; }
2546else
2547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
2549fi
2550
2551  if test "x$ac_ct_STRIP" = x; then
2552    STRIP=":"
2553  else
2554    case $cross_compiling:$ac_tool_warned in
2555yes:)
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2558ac_tool_warned=yes ;;
2559esac
2560    STRIP=$ac_ct_STRIP
2561  fi
2562else
2563  STRIP="$ac_cv_prog_STRIP"
2564fi
2565
2566fi
2567INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2568
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2570$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2571if test -z "$MKDIR_P"; then
2572  if ${ac_cv_path_mkdir+:} false; then :
2573  $as_echo_n "(cached) " >&6
2574else
2575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2577do
2578  IFS=$as_save_IFS
2579  test -z "$as_dir" && as_dir=.
2580    for ac_prog in mkdir gmkdir; do
2581	 for ac_exec_ext in '' $ac_executable_extensions; do
2582	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2583	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2584	     'mkdir (GNU coreutils) '* | \
2585	     'mkdir (coreutils) '* | \
2586	     'mkdir (fileutils) '4.1*)
2587	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2588	       break 3;;
2589	   esac
2590	 done
2591       done
2592  done
2593IFS=$as_save_IFS
2594
2595fi
2596
2597  test -d ./--version && rmdir ./--version
2598  if test "${ac_cv_path_mkdir+set}" = set; then
2599    MKDIR_P="$ac_cv_path_mkdir -p"
2600  else
2601    # As a last resort, use the slow shell script.  Don't cache a
2602    # value for MKDIR_P within a source directory, because that will
2603    # break other packages using the cache if that directory is
2604    # removed, or if the value is a relative name.
2605    MKDIR_P="$ac_install_sh -d"
2606  fi
2607fi
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2609$as_echo "$MKDIR_P" >&6; }
2610
2611for ac_prog in gawk mawk nawk awk
2612do
2613  # Extract the first word of "$ac_prog", so it can be a program name with args.
2614set dummy $ac_prog; ac_word=$2
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616$as_echo_n "checking for $ac_word... " >&6; }
2617if ${ac_cv_prog_AWK+:} false; then :
2618  $as_echo_n "(cached) " >&6
2619else
2620  if test -n "$AWK"; then
2621  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626  IFS=$as_save_IFS
2627  test -z "$as_dir" && as_dir=.
2628    for ac_exec_ext in '' $ac_executable_extensions; do
2629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630    ac_cv_prog_AWK="$ac_prog"
2631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632    break 2
2633  fi
2634done
2635  done
2636IFS=$as_save_IFS
2637
2638fi
2639fi
2640AWK=$ac_cv_prog_AWK
2641if test -n "$AWK"; then
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2643$as_echo "$AWK" >&6; }
2644else
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
2647fi
2648
2649
2650  test -n "$AWK" && break
2651done
2652
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2654$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2655set x ${MAKE-make}
2656ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2657if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2658  $as_echo_n "(cached) " >&6
2659else
2660  cat >conftest.make <<\_ACEOF
2661SHELL = /bin/sh
2662all:
2663	@echo '@@@%%%=$(MAKE)=@@@%%%'
2664_ACEOF
2665# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2666case `${MAKE-make} -f conftest.make 2>/dev/null` in
2667  *@@@%%%=?*=@@@%%%*)
2668    eval ac_cv_prog_make_${ac_make}_set=yes;;
2669  *)
2670    eval ac_cv_prog_make_${ac_make}_set=no;;
2671esac
2672rm -f conftest.make
2673fi
2674if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2676$as_echo "yes" >&6; }
2677  SET_MAKE=
2678else
2679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680$as_echo "no" >&6; }
2681  SET_MAKE="MAKE=${MAKE-make}"
2682fi
2683
2684rm -rf .tst 2>/dev/null
2685mkdir .tst 2>/dev/null
2686if test -d .tst; then
2687  am__leading_dot=.
2688else
2689  am__leading_dot=_
2690fi
2691rmdir .tst 2>/dev/null
2692
2693# Check whether --enable-silent-rules was given.
2694if test "${enable_silent_rules+set}" = set; then :
2695  enableval=$enable_silent_rules;
2696fi
2697
2698case $enable_silent_rules in # (((
2699  yes) AM_DEFAULT_VERBOSITY=0;;
2700   no) AM_DEFAULT_VERBOSITY=1;;
2701    *) AM_DEFAULT_VERBOSITY=1;;
2702esac
2703am_make=${MAKE-make}
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2705$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2706if ${am_cv_make_support_nested_variables+:} false; then :
2707  $as_echo_n "(cached) " >&6
2708else
2709  if $as_echo 'TRUE=$(BAR$(V))
2710BAR0=false
2711BAR1=true
2712V=1
2713am__doit:
2714	@$(TRUE)
2715.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2716  am_cv_make_support_nested_variables=yes
2717else
2718  am_cv_make_support_nested_variables=no
2719fi
2720fi
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2722$as_echo "$am_cv_make_support_nested_variables" >&6; }
2723if test $am_cv_make_support_nested_variables = yes; then
2724    AM_V='$(V)'
2725  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2726else
2727  AM_V=$AM_DEFAULT_VERBOSITY
2728  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2729fi
2730AM_BACKSLASH='\'
2731
2732if test "`cd $srcdir && pwd`" != "`pwd`"; then
2733  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2734  # is not polluted with repeated "-I."
2735  am__isrc=' -I$(srcdir)'
2736  # test to see if srcdir already configured
2737  if test -f $srcdir/config.status; then
2738    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2739  fi
2740fi
2741
2742# test whether we have cygpath
2743if test -z "$CYGPATH_W"; then
2744  if (cygpath --version) >/dev/null 2>/dev/null; then
2745    CYGPATH_W='cygpath -w'
2746  else
2747    CYGPATH_W=echo
2748  fi
2749fi
2750
2751
2752# Define the identity of the package.
2753 PACKAGE='mcsim'
2754 VERSION='6.2.0'
2755
2756
2757cat >>confdefs.h <<_ACEOF
2758#define PACKAGE "$PACKAGE"
2759_ACEOF
2760
2761
2762cat >>confdefs.h <<_ACEOF
2763#define VERSION "$VERSION"
2764_ACEOF
2765
2766# Some tools Automake needs.
2767
2768ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2769
2770
2771AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2772
2773
2774AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2775
2776
2777AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2778
2779
2780MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2781
2782# For better backward compatibility.  To be removed once Automake 1.9.x
2783# dies out for good.  For more background, see:
2784# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2785# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2786mkdir_p='$(MKDIR_P)'
2787
2788# We need awk for the "check" target (and possibly the TAP driver).  The
2789# system "awk" is bad on some platforms.
2790# Always define AMTAR for backward compatibility.  Yes, it's still used
2791# in the wild :-(  We should find a proper way to deprecate it ...
2792AMTAR='$${TAR-tar}'
2793
2794
2795# We'll loop over all known methods to create a tar archive until one works.
2796_am_tools='gnutar  pax cpio none'
2797
2798am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2799
2800
2801
2802
2803
2804
2805# POSIX will say in a future version that running "rm -f" with no argument
2806# is OK; and we want to be able to make that assumption in our Makefile
2807# recipes.  So use an aggressive probe to check that the usage we want is
2808# actually supported "in the wild" to an acceptable degree.
2809# See automake bug#10828.
2810# To make any issue more visible, cause the running configure to be aborted
2811# by default if the 'rm' program in use doesn't match our expectations; the
2812# user can still override this though.
2813if rm -f && rm -fr && rm -rf; then : OK; else
2814  cat >&2 <<'END'
2815Oops!
2816
2817Your 'rm' program seems unable to run without file operands specified
2818on the command line, even when the '-f' option is present.  This is contrary
2819to the behaviour of most rm programs out there, and not conforming with
2820the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2821
2822Please tell bug-automake@gnu.org about your system, including the value
2823of your $PATH and any error possibly output before this message.  This
2824can help us improve future automake versions.
2825
2826END
2827  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2828    echo 'Configuration will proceed anyway, since you have set the' >&2
2829    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2830    echo >&2
2831  else
2832    cat >&2 <<'END'
2833Aborting the configuration process, to ensure you take notice of the issue.
2834
2835You can download and install GNU coreutils to get an 'rm' implementation
2836that behaves properly: <http://www.gnu.org/software/coreutils/>.
2837
2838If you want to complete the configuration process using your problematic
2839'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2840to "yes", and re-run configure.
2841
2842END
2843    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2844  fi
2845fi
2846
2847DEPDIR="${am__leading_dot}deps"
2848
2849ac_config_commands="$ac_config_commands depfiles"
2850
2851
2852am_make=${MAKE-make}
2853cat > confinc << 'END'
2854am__doit:
2855	@echo this is the am__doit target
2856.PHONY: am__doit
2857END
2858# If we don't find an include directive, just comment out the code.
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2860$as_echo_n "checking for style of include used by $am_make... " >&6; }
2861am__include="#"
2862am__quote=
2863_am_result=none
2864# First try GNU make style include.
2865echo "include confinc" > confmf
2866# Ignore all kinds of additional output from 'make'.
2867case `$am_make -s -f confmf 2> /dev/null` in #(
2868*the\ am__doit\ target*)
2869  am__include=include
2870  am__quote=
2871  _am_result=GNU
2872  ;;
2873esac
2874# Now try BSD make style include.
2875if test "$am__include" = "#"; then
2876   echo '.include "confinc"' > confmf
2877   case `$am_make -s -f confmf 2> /dev/null` in #(
2878   *the\ am__doit\ target*)
2879     am__include=.include
2880     am__quote="\""
2881     _am_result=BSD
2882     ;;
2883   esac
2884fi
2885
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2888$as_echo "$_am_result" >&6; }
2889rm -f confinc confmf
2890
2891# Check whether --enable-dependency-tracking was given.
2892if test "${enable_dependency_tracking+set}" = set; then :
2893  enableval=$enable_dependency_tracking;
2894fi
2895
2896if test "x$enable_dependency_tracking" != xno; then
2897  am_depcomp="$ac_aux_dir/depcomp"
2898  AMDEPBACKSLASH='\'
2899  am__nodep='_no'
2900fi
2901 if test "x$enable_dependency_tracking" != xno; then
2902  AMDEP_TRUE=
2903  AMDEP_FALSE='#'
2904else
2905  AMDEP_TRUE='#'
2906  AMDEP_FALSE=
2907fi
2908
2909
2910ac_ext=c
2911ac_cpp='$CPP $CPPFLAGS'
2912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915if test -n "$ac_tool_prefix"; then
2916  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2917set dummy ${ac_tool_prefix}gcc; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if ${ac_cv_prog_CC+:} false; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  if test -n "$CC"; then
2924  ac_cv_prog_CC="$CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929  IFS=$as_save_IFS
2930  test -z "$as_dir" && as_dir=.
2931    for ac_exec_ext in '' $ac_executable_extensions; do
2932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935    break 2
2936  fi
2937done
2938  done
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943CC=$ac_cv_prog_CC
2944if test -n "$CC"; then
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946$as_echo "$CC" >&6; }
2947else
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
2951
2952
2953fi
2954if test -z "$ac_cv_prog_CC"; then
2955  ac_ct_CC=$CC
2956  # Extract the first word of "gcc", so it can be a program name with args.
2957set dummy gcc; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if ${ac_cv_prog_ac_ct_CC+:} false; then :
2961  $as_echo_n "(cached) " >&6
2962else
2963  if test -n "$ac_ct_CC"; then
2964  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969  IFS=$as_save_IFS
2970  test -z "$as_dir" && as_dir=.
2971    for ac_exec_ext in '' $ac_executable_extensions; do
2972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973    ac_cv_prog_ac_ct_CC="gcc"
2974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975    break 2
2976  fi
2977done
2978  done
2979IFS=$as_save_IFS
2980
2981fi
2982fi
2983ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984if test -n "$ac_ct_CC"; then
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2986$as_echo "$ac_ct_CC" >&6; }
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
2992  if test "x$ac_ct_CC" = x; then
2993    CC=""
2994  else
2995    case $cross_compiling:$ac_tool_warned in
2996yes:)
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999ac_tool_warned=yes ;;
3000esac
3001    CC=$ac_ct_CC
3002  fi
3003else
3004  CC="$ac_cv_prog_CC"
3005fi
3006
3007if test -z "$CC"; then
3008          if test -n "$ac_tool_prefix"; then
3009    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010set dummy ${ac_tool_prefix}cc; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if ${ac_cv_prog_CC+:} false; then :
3014  $as_echo_n "(cached) " >&6
3015else
3016  if test -n "$CC"; then
3017  ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  test -z "$as_dir" && as_dir=.
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026    ac_cv_prog_CC="${ac_tool_prefix}cc"
3027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039$as_echo "$CC" >&6; }
3040else
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045
3046  fi
3047fi
3048if test -z "$CC"; then
3049  # Extract the first word of "cc", so it can be a program name with args.
3050set dummy cc; ac_word=$2
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052$as_echo_n "checking for $ac_word... " >&6; }
3053if ${ac_cv_prog_CC+:} false; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  if test -n "$CC"; then
3057  ac_cv_prog_CC="$CC" # Let the user override the test.
3058else
3059  ac_prog_rejected=no
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  test -z "$as_dir" && as_dir=.
3065    for ac_exec_ext in '' $ac_executable_extensions; do
3066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068       ac_prog_rejected=yes
3069       continue
3070     fi
3071    ac_cv_prog_CC="cc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079if test $ac_prog_rejected = yes; then
3080  # We found a bogon in the path, so make sure we never use it.
3081  set dummy $ac_cv_prog_CC
3082  shift
3083  if test $# != 0; then
3084    # We chose a different compiler from the bogus one.
3085    # However, it has the same basename, so the bogon will be chosen
3086    # first if we set CC to just the basename; use the full file name.
3087    shift
3088    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089  fi
3090fi
3091fi
3092fi
3093CC=$ac_cv_prog_CC
3094if test -n "$CC"; then
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096$as_echo "$CC" >&6; }
3097else
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100fi
3101
3102
3103fi
3104if test -z "$CC"; then
3105  if test -n "$ac_tool_prefix"; then
3106  for ac_prog in cl.exe
3107  do
3108    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
3112if ${ac_cv_prog_CC+:} false; then :
3113  $as_echo_n "(cached) " >&6
3114else
3115  if test -n "$CC"; then
3116  ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121  IFS=$as_save_IFS
3122  test -z "$as_dir" && as_dir=.
3123    for ac_exec_ext in '' $ac_executable_extensions; do
3124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127    break 2
3128  fi
3129done
3130  done
3131IFS=$as_save_IFS
3132
3133fi
3134fi
3135CC=$ac_cv_prog_CC
3136if test -n "$CC"; then
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138$as_echo "$CC" >&6; }
3139else
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145    test -n "$CC" && break
3146  done
3147fi
3148if test -z "$CC"; then
3149  ac_ct_CC=$CC
3150  for ac_prog in cl.exe
3151do
3152  # Extract the first word of "$ac_prog", so it can be a program name with args.
3153set dummy $ac_prog; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if ${ac_cv_prog_ac_ct_CC+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$ac_ct_CC"; then
3160  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    for ac_exec_ext in '' $ac_executable_extensions; do
3168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169    ac_cv_prog_ac_ct_CC="$ac_prog"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180if test -n "$ac_ct_CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182$as_echo "$ac_ct_CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189  test -n "$ac_ct_CC" && break
3190done
3191
3192  if test "x$ac_ct_CC" = x; then
3193    CC=""
3194  else
3195    case $cross_compiling:$ac_tool_warned in
3196yes:)
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199ac_tool_warned=yes ;;
3200esac
3201    CC=$ac_ct_CC
3202  fi
3203fi
3204
3205fi
3206
3207
3208test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error $? "no acceptable C compiler found in \$PATH
3211See \`config.log' for more details" "$LINENO" 5; }
3212
3213# Provide some information about the compiler.
3214$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3215set X $ac_compile
3216ac_compiler=$2
3217for ac_option in --version -v -V -qversion; do
3218  { { ac_try="$ac_compiler $ac_option >&5"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3226  ac_status=$?
3227  if test -s conftest.err; then
3228    sed '10a\
3229... rest of stderr output deleted ...
3230         10q' conftest.err >conftest.er1
3231    cat conftest.er1 >&5
3232  fi
3233  rm -f conftest.er1 conftest.err
3234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235  test $ac_status = 0; }
3236done
3237
3238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h.  */
3240
3241int
3242main ()
3243{
3244
3245  ;
3246  return 0;
3247}
3248_ACEOF
3249ac_clean_files_save=$ac_clean_files
3250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3251# Try to create an executable without -o first, disregard a.out.
3252# It will help us diagnose broken compilers, and finding out an intuition
3253# of exeext.
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255$as_echo_n "checking whether the C compiler works... " >&6; }
3256ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3257
3258# The possible output files:
3259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3260
3261ac_rmfiles=
3262for ac_file in $ac_files
3263do
3264  case $ac_file in
3265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267  esac
3268done
3269rm -f $ac_rmfiles
3270
3271if { { ac_try="$ac_link_default"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277$as_echo "$ac_try_echo"; } >&5
3278  (eval "$ac_link_default") 2>&5
3279  ac_status=$?
3280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281  test $ac_status = 0; }; then :
3282  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3283# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3284# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3285# so that the user can short-circuit this test for compilers unknown to
3286# Autoconf.
3287for ac_file in $ac_files ''
3288do
3289  test -f "$ac_file" || continue
3290  case $ac_file in
3291    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3292	;;
3293    [ab].out )
3294	# We found the default executable, but exeext='' is most
3295	# certainly right.
3296	break;;
3297    *.* )
3298	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3299	then :; else
3300	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301	fi
3302	# We set ac_cv_exeext here because the later test for it is not
3303	# safe: cross compilers may not add the suffix if given an `-o'
3304	# argument, so we may need to know it at that point already.
3305	# Even if this section looks crufty: it has the advantage of
3306	# actually working.
3307	break;;
3308    * )
3309	break;;
3310  esac
3311done
3312test "$ac_cv_exeext" = no && ac_cv_exeext=
3313
3314else
3315  ac_file=''
3316fi
3317if test -z "$ac_file"; then :
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320$as_echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325as_fn_error 77 "C compiler cannot create executables
3326See \`config.log' for more details" "$LINENO" 5; }
3327else
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329$as_echo "yes" >&6; }
3330fi
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3332$as_echo_n "checking for C compiler default output file name... " >&6; }
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3334$as_echo "$ac_file" >&6; }
3335ac_exeext=$ac_cv_exeext
3336
3337rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3338ac_clean_files=$ac_clean_files_save
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3340$as_echo_n "checking for suffix of executables... " >&6; }
3341if { { ac_try="$ac_link"
3342case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348  (eval "$ac_link") 2>&5
3349  ac_status=$?
3350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351  test $ac_status = 0; }; then :
3352  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3353# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3354# work properly (i.e., refer to `conftest.exe'), while it won't with
3355# `rm'.
3356for ac_file in conftest.exe conftest conftest.*; do
3357  test -f "$ac_file" || continue
3358  case $ac_file in
3359    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3360    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361	  break;;
3362    * ) break;;
3363  esac
3364done
3365else
3366  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3369See \`config.log' for more details" "$LINENO" 5; }
3370fi
3371rm -f conftest conftest$ac_cv_exeext
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3373$as_echo "$ac_cv_exeext" >&6; }
3374
3375rm -f conftest.$ac_ext
3376EXEEXT=$ac_cv_exeext
3377ac_exeext=$EXEEXT
3378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379/* end confdefs.h.  */
3380#include <stdio.h>
3381int
3382main ()
3383{
3384FILE *f = fopen ("conftest.out", "w");
3385 return ferror (f) || fclose (f) != 0;
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391ac_clean_files="$ac_clean_files conftest.out"
3392# Check that the compiler produces executables we can run.  If not, either
3393# the compiler is broken, or we cross compile.
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3395$as_echo_n "checking whether we are cross compiling... " >&6; }
3396if test "$cross_compiling" != yes; then
3397  { { ac_try="$ac_link"
3398case "(($ac_try" in
3399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400  *) ac_try_echo=$ac_try;;
3401esac
3402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403$as_echo "$ac_try_echo"; } >&5
3404  (eval "$ac_link") 2>&5
3405  ac_status=$?
3406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407  test $ac_status = 0; }
3408  if { ac_try='./conftest$ac_cv_exeext'
3409  { { case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_try") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }; }; then
3419    cross_compiling=no
3420  else
3421    if test "$cross_compiling" = maybe; then
3422	cross_compiling=yes
3423    else
3424	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426as_fn_error $? "cannot run C compiled programs.
3427If you meant to cross compile, use \`--host'.
3428See \`config.log' for more details" "$LINENO" 5; }
3429    fi
3430  fi
3431fi
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3433$as_echo "$cross_compiling" >&6; }
3434
3435rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3436ac_clean_files=$ac_clean_files_save
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3438$as_echo_n "checking for suffix of object files... " >&6; }
3439if ${ac_cv_objext+:} false; then :
3440  $as_echo_n "(cached) " >&6
3441else
3442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h.  */
3444
3445int
3446main ()
3447{
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.o conftest.obj
3454if { { ac_try="$ac_compile"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461  (eval "$ac_compile") 2>&5
3462  ac_status=$?
3463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464  test $ac_status = 0; }; then :
3465  for ac_file in conftest.o conftest.obj conftest.*; do
3466  test -f "$ac_file" || continue;
3467  case $ac_file in
3468    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3469    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3470       break;;
3471  esac
3472done
3473else
3474  $as_echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
3477{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479as_fn_error $? "cannot compute suffix of object files: cannot compile
3480See \`config.log' for more details" "$LINENO" 5; }
3481fi
3482rm -f conftest.$ac_cv_objext conftest.$ac_ext
3483fi
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3485$as_echo "$ac_cv_objext" >&6; }
3486OBJEXT=$ac_cv_objext
3487ac_objext=$OBJEXT
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3489$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3490if ${ac_cv_c_compiler_gnu+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495
3496int
3497main ()
3498{
3499#ifndef __GNUC__
3500       choke me
3501#endif
3502
3503  ;
3504  return 0;
3505}
3506_ACEOF
3507if ac_fn_c_try_compile "$LINENO"; then :
3508  ac_compiler_gnu=yes
3509else
3510  ac_compiler_gnu=no
3511fi
3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513ac_cv_c_compiler_gnu=$ac_compiler_gnu
3514
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3517$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3518if test $ac_compiler_gnu = yes; then
3519  GCC=yes
3520else
3521  GCC=
3522fi
3523ac_test_CFLAGS=${CFLAGS+set}
3524ac_save_CFLAGS=$CFLAGS
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3526$as_echo_n "checking whether $CC accepts -g... " >&6; }
3527if ${ac_cv_prog_cc_g+:} false; then :
3528  $as_echo_n "(cached) " >&6
3529else
3530  ac_save_c_werror_flag=$ac_c_werror_flag
3531   ac_c_werror_flag=yes
3532   ac_cv_prog_cc_g=no
3533   CFLAGS="-g"
3534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h.  */
3536
3537int
3538main ()
3539{
3540
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545if ac_fn_c_try_compile "$LINENO"; then :
3546  ac_cv_prog_cc_g=yes
3547else
3548  CFLAGS=""
3549      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551
3552int
3553main ()
3554{
3555
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560if ac_fn_c_try_compile "$LINENO"; then :
3561
3562else
3563  ac_c_werror_flag=$ac_save_c_werror_flag
3564	 CFLAGS="-g"
3565	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h.  */
3567
3568int
3569main ()
3570{
3571
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577  ac_cv_prog_cc_g=yes
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580fi
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582fi
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584   ac_c_werror_flag=$ac_save_c_werror_flag
3585fi
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3587$as_echo "$ac_cv_prog_cc_g" >&6; }
3588if test "$ac_test_CFLAGS" = set; then
3589  CFLAGS=$ac_save_CFLAGS
3590elif test $ac_cv_prog_cc_g = yes; then
3591  if test "$GCC" = yes; then
3592    CFLAGS="-g -O2"
3593  else
3594    CFLAGS="-g"
3595  fi
3596else
3597  if test "$GCC" = yes; then
3598    CFLAGS="-O2"
3599  else
3600    CFLAGS=
3601  fi
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3604$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3605if ${ac_cv_prog_cc_c89+:} false; then :
3606  $as_echo_n "(cached) " >&6
3607else
3608  ac_cv_prog_cc_c89=no
3609ac_save_CC=$CC
3610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612#include <stdarg.h>
3613#include <stdio.h>
3614struct stat;
3615/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3616struct buf { int x; };
3617FILE * (*rcsopen) (struct buf *, struct stat *, int);
3618static char *e (p, i)
3619     char **p;
3620     int i;
3621{
3622  return p[i];
3623}
3624static char *f (char * (*g) (char **, int), char **p, ...)
3625{
3626  char *s;
3627  va_list v;
3628  va_start (v,p);
3629  s = g (p, va_arg (v,int));
3630  va_end (v);
3631  return s;
3632}
3633
3634/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3635   function prototypes and stuff, but not '\xHH' hex character constants.
3636   These don't provoke an error unfortunately, instead are silently treated
3637   as 'x'.  The following induces an error, until -std is added to get
3638   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3639   array size at least.  It's necessary to write '\x00'==0 to get something
3640   that's true only with -std.  */
3641int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3642
3643/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3644   inside strings and character constants.  */
3645#define FOO(x) 'x'
3646int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3647
3648int test (int i, double x);
3649struct s1 {int (*f) (int a);};
3650struct s2 {int (*f) (double a);};
3651int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652int argc;
3653char **argv;
3654int
3655main ()
3656{
3657return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3663	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3664do
3665  CC="$ac_save_CC $ac_arg"
3666  if ac_fn_c_try_compile "$LINENO"; then :
3667  ac_cv_prog_cc_c89=$ac_arg
3668fi
3669rm -f core conftest.err conftest.$ac_objext
3670  test "x$ac_cv_prog_cc_c89" != "xno" && break
3671done
3672rm -f conftest.$ac_ext
3673CC=$ac_save_CC
3674
3675fi
3676# AC_CACHE_VAL
3677case "x$ac_cv_prog_cc_c89" in
3678  x)
3679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3680$as_echo "none needed" >&6; } ;;
3681  xno)
3682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3683$as_echo "unsupported" >&6; } ;;
3684  *)
3685    CC="$CC $ac_cv_prog_cc_c89"
3686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3687$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3688esac
3689if test "x$ac_cv_prog_cc_c89" != xno; then :
3690
3691fi
3692
3693ac_ext=c
3694ac_cpp='$CPP $CPPFLAGS'
3695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699ac_ext=c
3700ac_cpp='$CPP $CPPFLAGS'
3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3705$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3706if ${am_cv_prog_cc_c_o+:} false; then :
3707  $as_echo_n "(cached) " >&6
3708else
3709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h.  */
3711
3712int
3713main ()
3714{
3715
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720  # Make sure it works both with $CC and with simple cc.
3721  # Following AC_PROG_CC_C_O, we do the test twice because some
3722  # compilers refuse to overwrite an existing .o file with -o,
3723  # though they will create one.
3724  am_cv_prog_cc_c_o=yes
3725  for am_i in 1 2; do
3726    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3727   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); } \
3731         && test -f conftest2.$ac_objext; then
3732      : OK
3733    else
3734      am_cv_prog_cc_c_o=no
3735      break
3736    fi
3737  done
3738  rm -f core conftest*
3739  unset am_i
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3742$as_echo "$am_cv_prog_cc_c_o" >&6; }
3743if test "$am_cv_prog_cc_c_o" != yes; then
3744   # Losing compiler, so override with the script.
3745   # FIXME: It is wrong to rewrite CC.
3746   # But if we don't then we get into trouble of one sort or another.
3747   # A longer-term fix would be to have automake use am__CC in this case,
3748   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3749   CC="$am_aux_dir/compile $CC"
3750fi
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
3757
3758depcc="$CC"   am_compiler_list=
3759
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3761$as_echo_n "checking dependency style of $depcc... " >&6; }
3762if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3763  $as_echo_n "(cached) " >&6
3764else
3765  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3766  # We make a subdir and do the tests there.  Otherwise we can end up
3767  # making bogus files that we don't know about and never remove.  For
3768  # instance it was reported that on HP-UX the gcc test will end up
3769  # making a dummy file named 'D' -- because '-MD' means "put the output
3770  # in D".
3771  rm -rf conftest.dir
3772  mkdir conftest.dir
3773  # Copy depcomp to subdir because otherwise we won't find it if we're
3774  # using a relative directory.
3775  cp "$am_depcomp" conftest.dir
3776  cd conftest.dir
3777  # We will build objects and dependencies in a subdirectory because
3778  # it helps to detect inapplicable dependency modes.  For instance
3779  # both Tru64's cc and ICC support -MD to output dependencies as a
3780  # side effect of compilation, but ICC will put the dependencies in
3781  # the current directory while Tru64 will put them in the object
3782  # directory.
3783  mkdir sub
3784
3785  am_cv_CC_dependencies_compiler_type=none
3786  if test "$am_compiler_list" = ""; then
3787     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3788  fi
3789  am__universal=false
3790  case " $depcc " in #(
3791     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3792     esac
3793
3794  for depmode in $am_compiler_list; do
3795    # Setup a source with many dependencies, because some compilers
3796    # like to wrap large dependency lists on column 80 (with \), and
3797    # we should not choose a depcomp mode which is confused by this.
3798    #
3799    # We need to recreate these files for each test, as the compiler may
3800    # overwrite some of them when testing with obscure command lines.
3801    # This happens at least with the AIX C compiler.
3802    : > sub/conftest.c
3803    for i in 1 2 3 4 5 6; do
3804      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3805      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3806      # Solaris 10 /bin/sh.
3807      echo '/* dummy */' > sub/conftst$i.h
3808    done
3809    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3810
3811    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3812    # mode.  It turns out that the SunPro C++ compiler does not properly
3813    # handle '-M -o', and we need to detect this.  Also, some Intel
3814    # versions had trouble with output in subdirs.
3815    am__obj=sub/conftest.${OBJEXT-o}
3816    am__minus_obj="-o $am__obj"
3817    case $depmode in
3818    gcc)
3819      # This depmode causes a compiler race in universal mode.
3820      test "$am__universal" = false || continue
3821      ;;
3822    nosideeffect)
3823      # After this tag, mechanisms are not by side-effect, so they'll
3824      # only be used when explicitly requested.
3825      if test "x$enable_dependency_tracking" = xyes; then
3826	continue
3827      else
3828	break
3829      fi
3830      ;;
3831    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3832      # This compiler won't grok '-c -o', but also, the minuso test has
3833      # not run yet.  These depmodes are late enough in the game, and
3834      # so weak that their functioning should not be impacted.
3835      am__obj=conftest.${OBJEXT-o}
3836      am__minus_obj=
3837      ;;
3838    none) break ;;
3839    esac
3840    if depmode=$depmode \
3841       source=sub/conftest.c object=$am__obj \
3842       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3843       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3844         >/dev/null 2>conftest.err &&
3845       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3846       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3847       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3848       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3849      # icc doesn't choke on unknown options, it will just issue warnings
3850      # or remarks (even with -Werror).  So we grep stderr for any message
3851      # that says an option was ignored or not supported.
3852      # When given -MP, icc 7.0 and 7.1 complain thusly:
3853      #   icc: Command line warning: ignoring option '-M'; no argument required
3854      # The diagnosis changed in icc 8.0:
3855      #   icc: Command line remark: option '-MP' not supported
3856      if (grep 'ignoring option' conftest.err ||
3857          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3858        am_cv_CC_dependencies_compiler_type=$depmode
3859        break
3860      fi
3861    fi
3862  done
3863
3864  cd ..
3865  rm -rf conftest.dir
3866else
3867  am_cv_CC_dependencies_compiler_type=none
3868fi
3869
3870fi
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3872$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3873CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3874
3875 if
3876  test "x$enable_dependency_tracking" != xno \
3877  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3878  am__fastdepCC_TRUE=
3879  am__fastdepCC_FALSE='#'
3880else
3881  am__fastdepCC_TRUE='#'
3882  am__fastdepCC_FALSE=
3883fi
3884
3885
3886
3887if test -n "$ac_tool_prefix"; then
3888  for ac_prog in ar lib "link -lib"
3889  do
3890    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3891set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893$as_echo_n "checking for $ac_word... " >&6; }
3894if ${ac_cv_prog_AR+:} false; then :
3895  $as_echo_n "(cached) " >&6
3896else
3897  if test -n "$AR"; then
3898  ac_cv_prog_AR="$AR" # Let the user override the test.
3899else
3900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901for as_dir in $PATH
3902do
3903  IFS=$as_save_IFS
3904  test -z "$as_dir" && as_dir=.
3905    for ac_exec_ext in '' $ac_executable_extensions; do
3906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909    break 2
3910  fi
3911done
3912  done
3913IFS=$as_save_IFS
3914
3915fi
3916fi
3917AR=$ac_cv_prog_AR
3918if test -n "$AR"; then
3919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3920$as_echo "$AR" >&6; }
3921else
3922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923$as_echo "no" >&6; }
3924fi
3925
3926
3927    test -n "$AR" && break
3928  done
3929fi
3930if test -z "$AR"; then
3931  ac_ct_AR=$AR
3932  for ac_prog in ar lib "link -lib"
3933do
3934  # Extract the first word of "$ac_prog", so it can be a program name with args.
3935set dummy $ac_prog; ac_word=$2
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937$as_echo_n "checking for $ac_word... " >&6; }
3938if ${ac_cv_prog_ac_ct_AR+:} false; then :
3939  $as_echo_n "(cached) " >&6
3940else
3941  if test -n "$ac_ct_AR"; then
3942  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3943else
3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947  IFS=$as_save_IFS
3948  test -z "$as_dir" && as_dir=.
3949    for ac_exec_ext in '' $ac_executable_extensions; do
3950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951    ac_cv_prog_ac_ct_AR="$ac_prog"
3952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953    break 2
3954  fi
3955done
3956  done
3957IFS=$as_save_IFS
3958
3959fi
3960fi
3961ac_ct_AR=$ac_cv_prog_ac_ct_AR
3962if test -n "$ac_ct_AR"; then
3963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3964$as_echo "$ac_ct_AR" >&6; }
3965else
3966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967$as_echo "no" >&6; }
3968fi
3969
3970
3971  test -n "$ac_ct_AR" && break
3972done
3973
3974  if test "x$ac_ct_AR" = x; then
3975    AR="false"
3976  else
3977    case $cross_compiling:$ac_tool_warned in
3978yes:)
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981ac_tool_warned=yes ;;
3982esac
3983    AR=$ac_ct_AR
3984  fi
3985fi
3986
3987: ${AR=ar}
3988
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3990$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3991if ${am_cv_ar_interface+:} false; then :
3992  $as_echo_n "(cached) " >&6
3993else
3994  ac_ext=c
3995ac_cpp='$CPP $CPPFLAGS'
3996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999
4000   am_cv_ar_interface=ar
4001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h.  */
4003int some_variable = 0;
4004_ACEOF
4005if ac_fn_c_try_compile "$LINENO"; then :
4006  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4007      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4008  (eval $am_ar_try) 2>&5
4009  ac_status=$?
4010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011  test $ac_status = 0; }
4012      if test "$ac_status" -eq 0; then
4013        am_cv_ar_interface=ar
4014      else
4015        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4016        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4017  (eval $am_ar_try) 2>&5
4018  ac_status=$?
4019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020  test $ac_status = 0; }
4021        if test "$ac_status" -eq 0; then
4022          am_cv_ar_interface=lib
4023        else
4024          am_cv_ar_interface=unknown
4025        fi
4026      fi
4027      rm -f conftest.lib libconftest.a
4028
4029fi
4030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031   ac_ext=c
4032ac_cpp='$CPP $CPPFLAGS'
4033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037fi
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4039$as_echo "$am_cv_ar_interface" >&6; }
4040
4041case $am_cv_ar_interface in
4042ar)
4043  ;;
4044lib)
4045  # Microsoft lib, so override with the ar-lib wrapper script.
4046  # FIXME: It is wrong to rewrite AR.
4047  # But if we don't then we get into trouble of one sort or another.
4048  # A longer-term fix would be to have automake use am__AR in this case,
4049  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4050  # similar.
4051  AR="$am_aux_dir/ar-lib $AR"
4052  ;;
4053unknown)
4054  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4055  ;;
4056esac
4057
4058case `pwd` in
4059  *\ * | *\	*)
4060    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4061$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4062esac
4063
4064
4065
4066macro_version='2.4.6'
4067macro_revision='2.4.6'
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081ltmain=$ac_aux_dir/ltmain.sh
4082
4083# Make sure we can run config.sub.
4084$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4085  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4086
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4088$as_echo_n "checking build system type... " >&6; }
4089if ${ac_cv_build+:} false; then :
4090  $as_echo_n "(cached) " >&6
4091else
4092  ac_build_alias=$build_alias
4093test "x$ac_build_alias" = x &&
4094  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4095test "x$ac_build_alias" = x &&
4096  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4097ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4098  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4099
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4102$as_echo "$ac_cv_build" >&6; }
4103case $ac_cv_build in
4104*-*-*) ;;
4105*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4106esac
4107build=$ac_cv_build
4108ac_save_IFS=$IFS; IFS='-'
4109set x $ac_cv_build
4110shift
4111build_cpu=$1
4112build_vendor=$2
4113shift; shift
4114# Remember, the first character of IFS is used to create $*,
4115# except with old shells:
4116build_os=$*
4117IFS=$ac_save_IFS
4118case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4119
4120
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4122$as_echo_n "checking host system type... " >&6; }
4123if ${ac_cv_host+:} false; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126  if test "x$host_alias" = x; then
4127  ac_cv_host=$ac_cv_build
4128else
4129  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4130    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4131fi
4132
4133fi
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4135$as_echo "$ac_cv_host" >&6; }
4136case $ac_cv_host in
4137*-*-*) ;;
4138*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4139esac
4140host=$ac_cv_host
4141ac_save_IFS=$IFS; IFS='-'
4142set x $ac_cv_host
4143shift
4144host_cpu=$1
4145host_vendor=$2
4146shift; shift
4147# Remember, the first character of IFS is used to create $*,
4148# except with old shells:
4149host_os=$*
4150IFS=$ac_save_IFS
4151case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4152
4153
4154# Backslashify metacharacters that are still active within
4155# double-quoted strings.
4156sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4157
4158# Same as above, but do not quote variable references.
4159double_quote_subst='s/\(["`\\]\)/\\\1/g'
4160
4161# Sed substitution to delay expansion of an escaped shell variable in a
4162# double_quote_subst'ed string.
4163delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4164
4165# Sed substitution to delay expansion of an escaped single quote.
4166delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4167
4168# Sed substitution to avoid accidental globbing in evaled expressions
4169no_glob_subst='s/\*/\\\*/g'
4170
4171ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4172ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4173ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4174
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4176$as_echo_n "checking how to print strings... " >&6; }
4177# Test print first, because it will be a builtin if present.
4178if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4179   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4180  ECHO='print -r --'
4181elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4182  ECHO='printf %s\n'
4183else
4184  # Use this function as a fallback that always works.
4185  func_fallback_echo ()
4186  {
4187    eval 'cat <<_LTECHO_EOF
4188$1
4189_LTECHO_EOF'
4190  }
4191  ECHO='func_fallback_echo'
4192fi
4193
4194# func_echo_all arg...
4195# Invoke $ECHO with all args, space-separated.
4196func_echo_all ()
4197{
4198    $ECHO ""
4199}
4200
4201case $ECHO in
4202  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4203$as_echo "printf" >&6; } ;;
4204  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4205$as_echo "print -r" >&6; } ;;
4206  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4207$as_echo "cat" >&6; } ;;
4208esac
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4224$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4225if ${ac_cv_path_SED+:} false; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4229     for ac_i in 1 2 3 4 5 6 7; do
4230       ac_script="$ac_script$as_nl$ac_script"
4231     done
4232     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4233     { ac_script=; unset ac_script;}
4234     if test -z "$SED"; then
4235  ac_path_SED_found=false
4236  # Loop through the user's path and test for each of PROGNAME-LIST
4237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240  IFS=$as_save_IFS
4241  test -z "$as_dir" && as_dir=.
4242    for ac_prog in sed gsed; do
4243    for ac_exec_ext in '' $ac_executable_extensions; do
4244      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4245      as_fn_executable_p "$ac_path_SED" || continue
4246# Check for GNU ac_path_SED and select it if it is found.
4247  # Check for GNU $ac_path_SED
4248case `"$ac_path_SED" --version 2>&1` in
4249*GNU*)
4250  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4251*)
4252  ac_count=0
4253  $as_echo_n 0123456789 >"conftest.in"
4254  while :
4255  do
4256    cat "conftest.in" "conftest.in" >"conftest.tmp"
4257    mv "conftest.tmp" "conftest.in"
4258    cp "conftest.in" "conftest.nl"
4259    $as_echo '' >> "conftest.nl"
4260    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262    as_fn_arith $ac_count + 1 && ac_count=$as_val
4263    if test $ac_count -gt ${ac_path_SED_max-0}; then
4264      # Best one so far, save it but keep looking for a better one
4265      ac_cv_path_SED="$ac_path_SED"
4266      ac_path_SED_max=$ac_count
4267    fi
4268    # 10*(2^10) chars as input seems more than enough
4269    test $ac_count -gt 10 && break
4270  done
4271  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272esac
4273
4274      $ac_path_SED_found && break 3
4275    done
4276  done
4277  done
4278IFS=$as_save_IFS
4279  if test -z "$ac_cv_path_SED"; then
4280    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4281  fi
4282else
4283  ac_cv_path_SED=$SED
4284fi
4285
4286fi
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4288$as_echo "$ac_cv_path_SED" >&6; }
4289 SED="$ac_cv_path_SED"
4290  rm -f conftest.sed
4291
4292test -z "$SED" && SED=sed
4293Xsed="$SED -e 1s/^X//"
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4306$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4307if ${ac_cv_path_GREP+:} false; then :
4308  $as_echo_n "(cached) " >&6
4309else
4310  if test -z "$GREP"; then
4311  ac_path_GREP_found=false
4312  # Loop through the user's path and test for each of PROGNAME-LIST
4313  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4315do
4316  IFS=$as_save_IFS
4317  test -z "$as_dir" && as_dir=.
4318    for ac_prog in grep ggrep; do
4319    for ac_exec_ext in '' $ac_executable_extensions; do
4320      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4321      as_fn_executable_p "$ac_path_GREP" || continue
4322# Check for GNU ac_path_GREP and select it if it is found.
4323  # Check for GNU $ac_path_GREP
4324case `"$ac_path_GREP" --version 2>&1` in
4325*GNU*)
4326  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4327*)
4328  ac_count=0
4329  $as_echo_n 0123456789 >"conftest.in"
4330  while :
4331  do
4332    cat "conftest.in" "conftest.in" >"conftest.tmp"
4333    mv "conftest.tmp" "conftest.in"
4334    cp "conftest.in" "conftest.nl"
4335    $as_echo 'GREP' >> "conftest.nl"
4336    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4338    as_fn_arith $ac_count + 1 && ac_count=$as_val
4339    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4340      # Best one so far, save it but keep looking for a better one
4341      ac_cv_path_GREP="$ac_path_GREP"
4342      ac_path_GREP_max=$ac_count
4343    fi
4344    # 10*(2^10) chars as input seems more than enough
4345    test $ac_count -gt 10 && break
4346  done
4347  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348esac
4349
4350      $ac_path_GREP_found && break 3
4351    done
4352  done
4353  done
4354IFS=$as_save_IFS
4355  if test -z "$ac_cv_path_GREP"; then
4356    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4357  fi
4358else
4359  ac_cv_path_GREP=$GREP
4360fi
4361
4362fi
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4364$as_echo "$ac_cv_path_GREP" >&6; }
4365 GREP="$ac_cv_path_GREP"
4366
4367
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4369$as_echo_n "checking for egrep... " >&6; }
4370if ${ac_cv_path_EGREP+:} false; then :
4371  $as_echo_n "(cached) " >&6
4372else
4373  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4374   then ac_cv_path_EGREP="$GREP -E"
4375   else
4376     if test -z "$EGREP"; then
4377  ac_path_EGREP_found=false
4378  # Loop through the user's path and test for each of PROGNAME-LIST
4379  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381do
4382  IFS=$as_save_IFS
4383  test -z "$as_dir" && as_dir=.
4384    for ac_prog in egrep; do
4385    for ac_exec_ext in '' $ac_executable_extensions; do
4386      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4387      as_fn_executable_p "$ac_path_EGREP" || continue
4388# Check for GNU ac_path_EGREP and select it if it is found.
4389  # Check for GNU $ac_path_EGREP
4390case `"$ac_path_EGREP" --version 2>&1` in
4391*GNU*)
4392  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4393*)
4394  ac_count=0
4395  $as_echo_n 0123456789 >"conftest.in"
4396  while :
4397  do
4398    cat "conftest.in" "conftest.in" >"conftest.tmp"
4399    mv "conftest.tmp" "conftest.in"
4400    cp "conftest.in" "conftest.nl"
4401    $as_echo 'EGREP' >> "conftest.nl"
4402    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404    as_fn_arith $ac_count + 1 && ac_count=$as_val
4405    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4406      # Best one so far, save it but keep looking for a better one
4407      ac_cv_path_EGREP="$ac_path_EGREP"
4408      ac_path_EGREP_max=$ac_count
4409    fi
4410    # 10*(2^10) chars as input seems more than enough
4411    test $ac_count -gt 10 && break
4412  done
4413  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414esac
4415
4416      $ac_path_EGREP_found && break 3
4417    done
4418  done
4419  done
4420IFS=$as_save_IFS
4421  if test -z "$ac_cv_path_EGREP"; then
4422    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4423  fi
4424else
4425  ac_cv_path_EGREP=$EGREP
4426fi
4427
4428   fi
4429fi
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4431$as_echo "$ac_cv_path_EGREP" >&6; }
4432 EGREP="$ac_cv_path_EGREP"
4433
4434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4436$as_echo_n "checking for fgrep... " >&6; }
4437if ${ac_cv_path_FGREP+:} false; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4441   then ac_cv_path_FGREP="$GREP -F"
4442   else
4443     if test -z "$FGREP"; then
4444  ac_path_FGREP_found=false
4445  # Loop through the user's path and test for each of PROGNAME-LIST
4446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448do
4449  IFS=$as_save_IFS
4450  test -z "$as_dir" && as_dir=.
4451    for ac_prog in fgrep; do
4452    for ac_exec_ext in '' $ac_executable_extensions; do
4453      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4454      as_fn_executable_p "$ac_path_FGREP" || continue
4455# Check for GNU ac_path_FGREP and select it if it is found.
4456  # Check for GNU $ac_path_FGREP
4457case `"$ac_path_FGREP" --version 2>&1` in
4458*GNU*)
4459  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4460*)
4461  ac_count=0
4462  $as_echo_n 0123456789 >"conftest.in"
4463  while :
4464  do
4465    cat "conftest.in" "conftest.in" >"conftest.tmp"
4466    mv "conftest.tmp" "conftest.in"
4467    cp "conftest.in" "conftest.nl"
4468    $as_echo 'FGREP' >> "conftest.nl"
4469    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471    as_fn_arith $ac_count + 1 && ac_count=$as_val
4472    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4473      # Best one so far, save it but keep looking for a better one
4474      ac_cv_path_FGREP="$ac_path_FGREP"
4475      ac_path_FGREP_max=$ac_count
4476    fi
4477    # 10*(2^10) chars as input seems more than enough
4478    test $ac_count -gt 10 && break
4479  done
4480  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481esac
4482
4483      $ac_path_FGREP_found && break 3
4484    done
4485  done
4486  done
4487IFS=$as_save_IFS
4488  if test -z "$ac_cv_path_FGREP"; then
4489    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490  fi
4491else
4492  ac_cv_path_FGREP=$FGREP
4493fi
4494
4495   fi
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4498$as_echo "$ac_cv_path_FGREP" >&6; }
4499 FGREP="$ac_cv_path_FGREP"
4500
4501
4502test -z "$GREP" && GREP=grep
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522# Check whether --with-gnu-ld was given.
4523if test "${with_gnu_ld+set}" = set; then :
4524  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4525else
4526  with_gnu_ld=no
4527fi
4528
4529ac_prog=ld
4530if test yes = "$GCC"; then
4531  # Check if gcc -print-prog-name=ld gives a path.
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4533$as_echo_n "checking for ld used by $CC... " >&6; }
4534  case $host in
4535  *-*-mingw*)
4536    # gcc leaves a trailing carriage return, which upsets mingw
4537    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4538  *)
4539    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4540  esac
4541  case $ac_prog in
4542    # Accept absolute paths.
4543    [\\/]* | ?:[\\/]*)
4544      re_direlt='/[^/][^/]*/\.\./'
4545      # Canonicalize the pathname of ld
4546      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4547      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4548	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4549      done
4550      test -z "$LD" && LD=$ac_prog
4551      ;;
4552  "")
4553    # If it fails, then pretend we aren't using GCC.
4554    ac_prog=ld
4555    ;;
4556  *)
4557    # If it is relative, then search for the first ld in PATH.
4558    with_gnu_ld=unknown
4559    ;;
4560  esac
4561elif test yes = "$with_gnu_ld"; then
4562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4563$as_echo_n "checking for GNU ld... " >&6; }
4564else
4565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4566$as_echo_n "checking for non-GNU ld... " >&6; }
4567fi
4568if ${lt_cv_path_LD+:} false; then :
4569  $as_echo_n "(cached) " >&6
4570else
4571  if test -z "$LD"; then
4572  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4573  for ac_dir in $PATH; do
4574    IFS=$lt_save_ifs
4575    test -z "$ac_dir" && ac_dir=.
4576    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4577      lt_cv_path_LD=$ac_dir/$ac_prog
4578      # Check to see if the program is GNU ld.  I'd rather use --version,
4579      # but apparently some variants of GNU ld only accept -v.
4580      # Break only if it was the GNU/non-GNU ld that we prefer.
4581      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4582      *GNU* | *'with BFD'*)
4583	test no != "$with_gnu_ld" && break
4584	;;
4585      *)
4586	test yes != "$with_gnu_ld" && break
4587	;;
4588      esac
4589    fi
4590  done
4591  IFS=$lt_save_ifs
4592else
4593  lt_cv_path_LD=$LD # Let the user override the test with a path.
4594fi
4595fi
4596
4597LD=$lt_cv_path_LD
4598if test -n "$LD"; then
4599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4600$as_echo "$LD" >&6; }
4601else
4602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603$as_echo "no" >&6; }
4604fi
4605test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4607$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4608if ${lt_cv_prog_gnu_ld+:} false; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4612case `$LD -v 2>&1 </dev/null` in
4613*GNU* | *'with BFD'*)
4614  lt_cv_prog_gnu_ld=yes
4615  ;;
4616*)
4617  lt_cv_prog_gnu_ld=no
4618  ;;
4619esac
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4622$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4623with_gnu_ld=$lt_cv_prog_gnu_ld
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4634$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4635if ${lt_cv_path_NM+:} false; then :
4636  $as_echo_n "(cached) " >&6
4637else
4638  if test -n "$NM"; then
4639  # Let the user override the test.
4640  lt_cv_path_NM=$NM
4641else
4642  lt_nm_to_check=${ac_tool_prefix}nm
4643  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4644    lt_nm_to_check="$lt_nm_to_check nm"
4645  fi
4646  for lt_tmp_nm in $lt_nm_to_check; do
4647    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4648    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4649      IFS=$lt_save_ifs
4650      test -z "$ac_dir" && ac_dir=.
4651      tmp_nm=$ac_dir/$lt_tmp_nm
4652      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4653	# Check to see if the nm accepts a BSD-compat flag.
4654	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4655	#   nm: unknown option "B" ignored
4656	# Tru64's nm complains that /dev/null is an invalid object file
4657	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4658	case $build_os in
4659	mingw*) lt_bad_file=conftest.nm/nofile ;;
4660	*) lt_bad_file=/dev/null ;;
4661	esac
4662	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4663	*$lt_bad_file* | *'Invalid file or object type'*)
4664	  lt_cv_path_NM="$tmp_nm -B"
4665	  break 2
4666	  ;;
4667	*)
4668	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4669	  */dev/null*)
4670	    lt_cv_path_NM="$tmp_nm -p"
4671	    break 2
4672	    ;;
4673	  *)
4674	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4675	    continue # so that we can try to find one that supports BSD flags
4676	    ;;
4677	  esac
4678	  ;;
4679	esac
4680      fi
4681    done
4682    IFS=$lt_save_ifs
4683  done
4684  : ${lt_cv_path_NM=no}
4685fi
4686fi
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4688$as_echo "$lt_cv_path_NM" >&6; }
4689if test no != "$lt_cv_path_NM"; then
4690  NM=$lt_cv_path_NM
4691else
4692  # Didn't find any BSD compatible name lister, look for dumpbin.
4693  if test -n "$DUMPBIN"; then :
4694    # Let the user override the test.
4695  else
4696    if test -n "$ac_tool_prefix"; then
4697  for ac_prog in dumpbin "link -dump"
4698  do
4699    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4700set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702$as_echo_n "checking for $ac_word... " >&6; }
4703if ${ac_cv_prog_DUMPBIN+:} false; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706  if test -n "$DUMPBIN"; then
4707  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712  IFS=$as_save_IFS
4713  test -z "$as_dir" && as_dir=.
4714    for ac_exec_ext in '' $ac_executable_extensions; do
4715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718    break 2
4719  fi
4720done
4721  done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726DUMPBIN=$ac_cv_prog_DUMPBIN
4727if test -n "$DUMPBIN"; then
4728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4729$as_echo "$DUMPBIN" >&6; }
4730else
4731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
4733fi
4734
4735
4736    test -n "$DUMPBIN" && break
4737  done
4738fi
4739if test -z "$DUMPBIN"; then
4740  ac_ct_DUMPBIN=$DUMPBIN
4741  for ac_prog in dumpbin "link -dump"
4742do
4743  # Extract the first word of "$ac_prog", so it can be a program name with args.
4744set dummy $ac_prog; ac_word=$2
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4748  $as_echo_n "(cached) " >&6
4749else
4750  if test -n "$ac_ct_DUMPBIN"; then
4751  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756  IFS=$as_save_IFS
4757  test -z "$as_dir" && as_dir=.
4758    for ac_exec_ext in '' $ac_executable_extensions; do
4759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762    break 2
4763  fi
4764done
4765  done
4766IFS=$as_save_IFS
4767
4768fi
4769fi
4770ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4771if test -n "$ac_ct_DUMPBIN"; then
4772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4773$as_echo "$ac_ct_DUMPBIN" >&6; }
4774else
4775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
4777fi
4778
4779
4780  test -n "$ac_ct_DUMPBIN" && break
4781done
4782
4783  if test "x$ac_ct_DUMPBIN" = x; then
4784    DUMPBIN=":"
4785  else
4786    case $cross_compiling:$ac_tool_warned in
4787yes:)
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4790ac_tool_warned=yes ;;
4791esac
4792    DUMPBIN=$ac_ct_DUMPBIN
4793  fi
4794fi
4795
4796    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4797    *COFF*)
4798      DUMPBIN="$DUMPBIN -symbols -headers"
4799      ;;
4800    *)
4801      DUMPBIN=:
4802      ;;
4803    esac
4804  fi
4805
4806  if test : != "$DUMPBIN"; then
4807    NM=$DUMPBIN
4808  fi
4809fi
4810test -z "$NM" && NM=nm
4811
4812
4813
4814
4815
4816
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4818$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4819if ${lt_cv_nm_interface+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  lt_cv_nm_interface="BSD nm"
4823  echo "int some_variable = 0;" > conftest.$ac_ext
4824  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4825  (eval "$ac_compile" 2>conftest.err)
4826  cat conftest.err >&5
4827  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4828  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4829  cat conftest.err >&5
4830  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4831  cat conftest.out >&5
4832  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4833    lt_cv_nm_interface="MS dumpbin"
4834  fi
4835  rm -f conftest*
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4838$as_echo "$lt_cv_nm_interface" >&6; }
4839
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4841$as_echo_n "checking whether ln -s works... " >&6; }
4842LN_S=$as_ln_s
4843if test "$LN_S" = "ln -s"; then
4844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4845$as_echo "yes" >&6; }
4846else
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4848$as_echo "no, using $LN_S" >&6; }
4849fi
4850
4851# find the maximum length of command line arguments
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4853$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4854if ${lt_cv_sys_max_cmd_len+:} false; then :
4855  $as_echo_n "(cached) " >&6
4856else
4857    i=0
4858  teststring=ABCD
4859
4860  case $build_os in
4861  msdosdjgpp*)
4862    # On DJGPP, this test can blow up pretty badly due to problems in libc
4863    # (any single argument exceeding 2000 bytes causes a buffer overrun
4864    # during glob expansion).  Even if it were fixed, the result of this
4865    # check would be larger than it should be.
4866    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4867    ;;
4868
4869  gnu*)
4870    # Under GNU Hurd, this test is not required because there is
4871    # no limit to the length of command line arguments.
4872    # Libtool will interpret -1 as no limit whatsoever
4873    lt_cv_sys_max_cmd_len=-1;
4874    ;;
4875
4876  cygwin* | mingw* | cegcc*)
4877    # On Win9x/ME, this test blows up -- it succeeds, but takes
4878    # about 5 minutes as the teststring grows exponentially.
4879    # Worse, since 9x/ME are not pre-emptively multitasking,
4880    # you end up with a "frozen" computer, even though with patience
4881    # the test eventually succeeds (with a max line length of 256k).
4882    # Instead, let's just punt: use the minimum linelength reported by
4883    # all of the supported platforms: 8192 (on NT/2K/XP).
4884    lt_cv_sys_max_cmd_len=8192;
4885    ;;
4886
4887  mint*)
4888    # On MiNT this can take a long time and run out of memory.
4889    lt_cv_sys_max_cmd_len=8192;
4890    ;;
4891
4892  amigaos*)
4893    # On AmigaOS with pdksh, this test takes hours, literally.
4894    # So we just punt and use a minimum line length of 8192.
4895    lt_cv_sys_max_cmd_len=8192;
4896    ;;
4897
4898  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4899    # This has been around since 386BSD, at least.  Likely further.
4900    if test -x /sbin/sysctl; then
4901      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4902    elif test -x /usr/sbin/sysctl; then
4903      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4904    else
4905      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4906    fi
4907    # And add a safety zone
4908    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4909    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4910    ;;
4911
4912  interix*)
4913    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4914    lt_cv_sys_max_cmd_len=196608
4915    ;;
4916
4917  os2*)
4918    # The test takes a long time on OS/2.
4919    lt_cv_sys_max_cmd_len=8192
4920    ;;
4921
4922  osf*)
4923    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4924    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4925    # nice to cause kernel panics so lets avoid the loop below.
4926    # First set a reasonable default.
4927    lt_cv_sys_max_cmd_len=16384
4928    #
4929    if test -x /sbin/sysconfig; then
4930      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4931        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4932      esac
4933    fi
4934    ;;
4935  sco3.2v5*)
4936    lt_cv_sys_max_cmd_len=102400
4937    ;;
4938  sysv5* | sco5v6* | sysv4.2uw2*)
4939    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4940    if test -n "$kargmax"; then
4941      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4942    else
4943      lt_cv_sys_max_cmd_len=32768
4944    fi
4945    ;;
4946  *)
4947    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4948    if test -n "$lt_cv_sys_max_cmd_len" && \
4949       test undefined != "$lt_cv_sys_max_cmd_len"; then
4950      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4951      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4952    else
4953      # Make teststring a little bigger before we do anything with it.
4954      # a 1K string should be a reasonable start.
4955      for i in 1 2 3 4 5 6 7 8; do
4956        teststring=$teststring$teststring
4957      done
4958      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4959      # If test is not a shell built-in, we'll probably end up computing a
4960      # maximum length that is only half of the actual maximum length, but
4961      # we can't tell.
4962      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4963	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4964	      test 17 != "$i" # 1/2 MB should be enough
4965      do
4966        i=`expr $i + 1`
4967        teststring=$teststring$teststring
4968      done
4969      # Only check the string length outside the loop.
4970      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4971      teststring=
4972      # Add a significant safety factor because C++ compilers can tack on
4973      # massive amounts of additional arguments before passing them to the
4974      # linker.  It appears as though 1/2 is a usable value.
4975      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4976    fi
4977    ;;
4978  esac
4979
4980fi
4981
4982if test -n "$lt_cv_sys_max_cmd_len"; then
4983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4984$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4985else
4986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4987$as_echo "none" >&6; }
4988fi
4989max_cmd_len=$lt_cv_sys_max_cmd_len
4990
4991
4992
4993
4994
4995
4996: ${CP="cp -f"}
4997: ${MV="mv -f"}
4998: ${RM="rm -f"}
4999
5000if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5001  lt_unset=unset
5002else
5003  lt_unset=false
5004fi
5005
5006
5007
5008
5009
5010# test EBCDIC or ASCII
5011case `echo X|tr X '\101'` in
5012 A) # ASCII based system
5013    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5014  lt_SP2NL='tr \040 \012'
5015  lt_NL2SP='tr \015\012 \040\040'
5016  ;;
5017 *) # EBCDIC based system
5018  lt_SP2NL='tr \100 \n'
5019  lt_NL2SP='tr \r\n \100\100'
5020  ;;
5021esac
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5032$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5033if ${lt_cv_to_host_file_cmd+:} false; then :
5034  $as_echo_n "(cached) " >&6
5035else
5036  case $host in
5037  *-*-mingw* )
5038    case $build in
5039      *-*-mingw* ) # actually msys
5040        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5041        ;;
5042      *-*-cygwin* )
5043        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5044        ;;
5045      * ) # otherwise, assume *nix
5046        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5047        ;;
5048    esac
5049    ;;
5050  *-*-cygwin* )
5051    case $build in
5052      *-*-mingw* ) # actually msys
5053        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5054        ;;
5055      *-*-cygwin* )
5056        lt_cv_to_host_file_cmd=func_convert_file_noop
5057        ;;
5058      * ) # otherwise, assume *nix
5059        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5060        ;;
5061    esac
5062    ;;
5063  * ) # unhandled hosts (and "normal" native builds)
5064    lt_cv_to_host_file_cmd=func_convert_file_noop
5065    ;;
5066esac
5067
5068fi
5069
5070to_host_file_cmd=$lt_cv_to_host_file_cmd
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5072$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5073
5074
5075
5076
5077
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5079$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5080if ${lt_cv_to_tool_file_cmd+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  #assume ordinary cross tools, or native build.
5084lt_cv_to_tool_file_cmd=func_convert_file_noop
5085case $host in
5086  *-*-mingw* )
5087    case $build in
5088      *-*-mingw* ) # actually msys
5089        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5090        ;;
5091    esac
5092    ;;
5093esac
5094
5095fi
5096
5097to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5099$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5100
5101
5102
5103
5104
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5106$as_echo_n "checking for $LD option to reload object files... " >&6; }
5107if ${lt_cv_ld_reload_flag+:} false; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110  lt_cv_ld_reload_flag='-r'
5111fi
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5113$as_echo "$lt_cv_ld_reload_flag" >&6; }
5114reload_flag=$lt_cv_ld_reload_flag
5115case $reload_flag in
5116"" | " "*) ;;
5117*) reload_flag=" $reload_flag" ;;
5118esac
5119reload_cmds='$LD$reload_flag -o $output$reload_objs'
5120case $host_os in
5121  cygwin* | mingw* | pw32* | cegcc*)
5122    if test yes != "$GCC"; then
5123      reload_cmds=false
5124    fi
5125    ;;
5126  darwin*)
5127    if test yes = "$GCC"; then
5128      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5129    else
5130      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5131    fi
5132    ;;
5133esac
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143if test -n "$ac_tool_prefix"; then
5144  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5145set dummy ${ac_tool_prefix}objdump; ac_word=$2
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147$as_echo_n "checking for $ac_word... " >&6; }
5148if ${ac_cv_prog_OBJDUMP+:} false; then :
5149  $as_echo_n "(cached) " >&6
5150else
5151  if test -n "$OBJDUMP"; then
5152  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5153else
5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157  IFS=$as_save_IFS
5158  test -z "$as_dir" && as_dir=.
5159    for ac_exec_ext in '' $ac_executable_extensions; do
5160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163    break 2
5164  fi
5165done
5166  done
5167IFS=$as_save_IFS
5168
5169fi
5170fi
5171OBJDUMP=$ac_cv_prog_OBJDUMP
5172if test -n "$OBJDUMP"; then
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5174$as_echo "$OBJDUMP" >&6; }
5175else
5176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177$as_echo "no" >&6; }
5178fi
5179
5180
5181fi
5182if test -z "$ac_cv_prog_OBJDUMP"; then
5183  ac_ct_OBJDUMP=$OBJDUMP
5184  # Extract the first word of "objdump", so it can be a program name with args.
5185set dummy objdump; ac_word=$2
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187$as_echo_n "checking for $ac_word... " >&6; }
5188if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5189  $as_echo_n "(cached) " >&6
5190else
5191  if test -n "$ac_ct_OBJDUMP"; then
5192  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5193else
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197  IFS=$as_save_IFS
5198  test -z "$as_dir" && as_dir=.
5199    for ac_exec_ext in '' $ac_executable_extensions; do
5200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203    break 2
5204  fi
5205done
5206  done
5207IFS=$as_save_IFS
5208
5209fi
5210fi
5211ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5212if test -n "$ac_ct_OBJDUMP"; then
5213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5214$as_echo "$ac_ct_OBJDUMP" >&6; }
5215else
5216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217$as_echo "no" >&6; }
5218fi
5219
5220  if test "x$ac_ct_OBJDUMP" = x; then
5221    OBJDUMP="false"
5222  else
5223    case $cross_compiling:$ac_tool_warned in
5224yes:)
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227ac_tool_warned=yes ;;
5228esac
5229    OBJDUMP=$ac_ct_OBJDUMP
5230  fi
5231else
5232  OBJDUMP="$ac_cv_prog_OBJDUMP"
5233fi
5234
5235test -z "$OBJDUMP" && OBJDUMP=objdump
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5246$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5247if ${lt_cv_deplibs_check_method+:} false; then :
5248  $as_echo_n "(cached) " >&6
5249else
5250  lt_cv_file_magic_cmd='$MAGIC_CMD'
5251lt_cv_file_magic_test_file=
5252lt_cv_deplibs_check_method='unknown'
5253# Need to set the preceding variable on all platforms that support
5254# interlibrary dependencies.
5255# 'none' -- dependencies not supported.
5256# 'unknown' -- same as none, but documents that we really don't know.
5257# 'pass_all' -- all dependencies passed with no checks.
5258# 'test_compile' -- check by making test program.
5259# 'file_magic [[regex]]' -- check by looking for files in library path
5260# that responds to the $file_magic_cmd with a given extended regex.
5261# If you have 'file' or equivalent on your system and you're not sure
5262# whether 'pass_all' will *always* work, you probably want this one.
5263
5264case $host_os in
5265aix[4-9]*)
5266  lt_cv_deplibs_check_method=pass_all
5267  ;;
5268
5269beos*)
5270  lt_cv_deplibs_check_method=pass_all
5271  ;;
5272
5273bsdi[45]*)
5274  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5275  lt_cv_file_magic_cmd='/usr/bin/file -L'
5276  lt_cv_file_magic_test_file=/shlib/libc.so
5277  ;;
5278
5279cygwin*)
5280  # func_win32_libid is a shell function defined in ltmain.sh
5281  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5282  lt_cv_file_magic_cmd='func_win32_libid'
5283  ;;
5284
5285mingw* | pw32*)
5286  # Base MSYS/MinGW do not provide the 'file' command needed by
5287  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5288  # unless we find 'file', for example because we are cross-compiling.
5289  if ( file / ) >/dev/null 2>&1; then
5290    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5291    lt_cv_file_magic_cmd='func_win32_libid'
5292  else
5293    # Keep this pattern in sync with the one in func_win32_libid.
5294    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5295    lt_cv_file_magic_cmd='$OBJDUMP -f'
5296  fi
5297  ;;
5298
5299cegcc*)
5300  # use the weaker test based on 'objdump'. See mingw*.
5301  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5302  lt_cv_file_magic_cmd='$OBJDUMP -f'
5303  ;;
5304
5305darwin* | rhapsody*)
5306  lt_cv_deplibs_check_method=pass_all
5307  ;;
5308
5309freebsd* | dragonfly*)
5310  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5311    case $host_cpu in
5312    i*86 )
5313      # Not sure whether the presence of OpenBSD here was a mistake.
5314      # Let's accept both of them until this is cleared up.
5315      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5316      lt_cv_file_magic_cmd=/usr/bin/file
5317      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5318      ;;
5319    esac
5320  else
5321    lt_cv_deplibs_check_method=pass_all
5322  fi
5323  ;;
5324
5325haiku*)
5326  lt_cv_deplibs_check_method=pass_all
5327  ;;
5328
5329hpux10.20* | hpux11*)
5330  lt_cv_file_magic_cmd=/usr/bin/file
5331  case $host_cpu in
5332  ia64*)
5333    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5334    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5335    ;;
5336  hppa*64*)
5337    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5338    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5339    ;;
5340  *)
5341    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5342    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5343    ;;
5344  esac
5345  ;;
5346
5347interix[3-9]*)
5348  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5349  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5350  ;;
5351
5352irix5* | irix6* | nonstopux*)
5353  case $LD in
5354  *-32|*"-32 ") libmagic=32-bit;;
5355  *-n32|*"-n32 ") libmagic=N32;;
5356  *-64|*"-64 ") libmagic=64-bit;;
5357  *) libmagic=never-match;;
5358  esac
5359  lt_cv_deplibs_check_method=pass_all
5360  ;;
5361
5362# This must be glibc/ELF.
5363linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5364  lt_cv_deplibs_check_method=pass_all
5365  ;;
5366
5367netbsd* | netbsdelf*-gnu)
5368  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5369    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5370  else
5371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5372  fi
5373  ;;
5374
5375newos6*)
5376  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5377  lt_cv_file_magic_cmd=/usr/bin/file
5378  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5379  ;;
5380
5381*nto* | *qnx*)
5382  lt_cv_deplibs_check_method=pass_all
5383  ;;
5384
5385openbsd* | bitrig*)
5386  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5387    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5388  else
5389    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5390  fi
5391  ;;
5392
5393osf3* | osf4* | osf5*)
5394  lt_cv_deplibs_check_method=pass_all
5395  ;;
5396
5397rdos*)
5398  lt_cv_deplibs_check_method=pass_all
5399  ;;
5400
5401solaris*)
5402  lt_cv_deplibs_check_method=pass_all
5403  ;;
5404
5405sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5406  lt_cv_deplibs_check_method=pass_all
5407  ;;
5408
5409sysv4 | sysv4.3*)
5410  case $host_vendor in
5411  motorola)
5412    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]'
5413    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5414    ;;
5415  ncr)
5416    lt_cv_deplibs_check_method=pass_all
5417    ;;
5418  sequent)
5419    lt_cv_file_magic_cmd='/bin/file'
5420    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5421    ;;
5422  sni)
5423    lt_cv_file_magic_cmd='/bin/file'
5424    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5425    lt_cv_file_magic_test_file=/lib/libc.so
5426    ;;
5427  siemens)
5428    lt_cv_deplibs_check_method=pass_all
5429    ;;
5430  pc)
5431    lt_cv_deplibs_check_method=pass_all
5432    ;;
5433  esac
5434  ;;
5435
5436tpf*)
5437  lt_cv_deplibs_check_method=pass_all
5438  ;;
5439os2*)
5440  lt_cv_deplibs_check_method=pass_all
5441  ;;
5442esac
5443
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5446$as_echo "$lt_cv_deplibs_check_method" >&6; }
5447
5448file_magic_glob=
5449want_nocaseglob=no
5450if test "$build" = "$host"; then
5451  case $host_os in
5452  mingw* | pw32*)
5453    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5454      want_nocaseglob=yes
5455    else
5456      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5457    fi
5458    ;;
5459  esac
5460fi
5461
5462file_magic_cmd=$lt_cv_file_magic_cmd
5463deplibs_check_method=$lt_cv_deplibs_check_method
5464test -z "$deplibs_check_method" && deplibs_check_method=unknown
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487if test -n "$ac_tool_prefix"; then
5488  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5489set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
5492if ${ac_cv_prog_DLLTOOL+:} false; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  if test -n "$DLLTOOL"; then
5496  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501  IFS=$as_save_IFS
5502  test -z "$as_dir" && as_dir=.
5503    for ac_exec_ext in '' $ac_executable_extensions; do
5504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507    break 2
5508  fi
5509done
5510  done
5511IFS=$as_save_IFS
5512
5513fi
5514fi
5515DLLTOOL=$ac_cv_prog_DLLTOOL
5516if test -n "$DLLTOOL"; then
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5518$as_echo "$DLLTOOL" >&6; }
5519else
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523
5524
5525fi
5526if test -z "$ac_cv_prog_DLLTOOL"; then
5527  ac_ct_DLLTOOL=$DLLTOOL
5528  # Extract the first word of "dlltool", so it can be a program name with args.
5529set dummy dlltool; ac_word=$2
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531$as_echo_n "checking for $ac_word... " >&6; }
5532if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  if test -n "$ac_ct_DLLTOOL"; then
5536  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5537else
5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541  IFS=$as_save_IFS
5542  test -z "$as_dir" && as_dir=.
5543    for ac_exec_ext in '' $ac_executable_extensions; do
5544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547    break 2
5548  fi
5549done
5550  done
5551IFS=$as_save_IFS
5552
5553fi
5554fi
5555ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5556if test -n "$ac_ct_DLLTOOL"; then
5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5558$as_echo "$ac_ct_DLLTOOL" >&6; }
5559else
5560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561$as_echo "no" >&6; }
5562fi
5563
5564  if test "x$ac_ct_DLLTOOL" = x; then
5565    DLLTOOL="false"
5566  else
5567    case $cross_compiling:$ac_tool_warned in
5568yes:)
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5571ac_tool_warned=yes ;;
5572esac
5573    DLLTOOL=$ac_ct_DLLTOOL
5574  fi
5575else
5576  DLLTOOL="$ac_cv_prog_DLLTOOL"
5577fi
5578
5579test -z "$DLLTOOL" && DLLTOOL=dlltool
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5591$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5592if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595  lt_cv_sharedlib_from_linklib_cmd='unknown'
5596
5597case $host_os in
5598cygwin* | mingw* | pw32* | cegcc*)
5599  # two different shell functions defined in ltmain.sh;
5600  # decide which one to use based on capabilities of $DLLTOOL
5601  case `$DLLTOOL --help 2>&1` in
5602  *--identify-strict*)
5603    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5604    ;;
5605  *)
5606    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5607    ;;
5608  esac
5609  ;;
5610*)
5611  # fallback: assume linklib IS sharedlib
5612  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5613  ;;
5614esac
5615
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5618$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5619sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5620test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5621
5622
5623
5624
5625
5626
5627
5628if test -n "$ac_tool_prefix"; then
5629  for ac_prog in ar
5630  do
5631    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634$as_echo_n "checking for $ac_word... " >&6; }
5635if ${ac_cv_prog_AR+:} false; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638  if test -n "$AR"; then
5639  ac_cv_prog_AR="$AR" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644  IFS=$as_save_IFS
5645  test -z "$as_dir" && as_dir=.
5646    for ac_exec_ext in '' $ac_executable_extensions; do
5647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650    break 2
5651  fi
5652done
5653  done
5654IFS=$as_save_IFS
5655
5656fi
5657fi
5658AR=$ac_cv_prog_AR
5659if test -n "$AR"; then
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5661$as_echo "$AR" >&6; }
5662else
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664$as_echo "no" >&6; }
5665fi
5666
5667
5668    test -n "$AR" && break
5669  done
5670fi
5671if test -z "$AR"; then
5672  ac_ct_AR=$AR
5673  for ac_prog in ar
5674do
5675  # Extract the first word of "$ac_prog", so it can be a program name with args.
5676set dummy $ac_prog; ac_word=$2
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678$as_echo_n "checking for $ac_word... " >&6; }
5679if ${ac_cv_prog_ac_ct_AR+:} false; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682  if test -n "$ac_ct_AR"; then
5683  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688  IFS=$as_save_IFS
5689  test -z "$as_dir" && as_dir=.
5690    for ac_exec_ext in '' $ac_executable_extensions; do
5691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692    ac_cv_prog_ac_ct_AR="$ac_prog"
5693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694    break 2
5695  fi
5696done
5697  done
5698IFS=$as_save_IFS
5699
5700fi
5701fi
5702ac_ct_AR=$ac_cv_prog_ac_ct_AR
5703if test -n "$ac_ct_AR"; then
5704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5705$as_echo "$ac_ct_AR" >&6; }
5706else
5707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708$as_echo "no" >&6; }
5709fi
5710
5711
5712  test -n "$ac_ct_AR" && break
5713done
5714
5715  if test "x$ac_ct_AR" = x; then
5716    AR="false"
5717  else
5718    case $cross_compiling:$ac_tool_warned in
5719yes:)
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722ac_tool_warned=yes ;;
5723esac
5724    AR=$ac_ct_AR
5725  fi
5726fi
5727
5728: ${AR=ar}
5729: ${AR_FLAGS=cru}
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5742$as_echo_n "checking for archiver @FILE support... " >&6; }
5743if ${lt_cv_ar_at_file+:} false; then :
5744  $as_echo_n "(cached) " >&6
5745else
5746  lt_cv_ar_at_file=no
5747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h.  */
5749
5750int
5751main ()
5752{
5753
5754  ;
5755  return 0;
5756}
5757_ACEOF
5758if ac_fn_c_try_compile "$LINENO"; then :
5759  echo conftest.$ac_objext > conftest.lst
5760      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5761      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5762  (eval $lt_ar_try) 2>&5
5763  ac_status=$?
5764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765  test $ac_status = 0; }
5766      if test 0 -eq "$ac_status"; then
5767	# Ensure the archiver fails upon bogus file names.
5768	rm -f conftest.$ac_objext libconftest.a
5769	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5770  (eval $lt_ar_try) 2>&5
5771  ac_status=$?
5772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5773  test $ac_status = 0; }
5774	if test 0 -ne "$ac_status"; then
5775          lt_cv_ar_at_file=@
5776        fi
5777      fi
5778      rm -f conftest.* libconftest.a
5779
5780fi
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782
5783fi
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5785$as_echo "$lt_cv_ar_at_file" >&6; }
5786
5787if test no = "$lt_cv_ar_at_file"; then
5788  archiver_list_spec=
5789else
5790  archiver_list_spec=$lt_cv_ar_at_file
5791fi
5792
5793
5794
5795
5796
5797
5798
5799if test -n "$ac_tool_prefix"; then
5800  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5801set dummy ${ac_tool_prefix}strip; ac_word=$2
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803$as_echo_n "checking for $ac_word... " >&6; }
5804if ${ac_cv_prog_STRIP+:} false; then :
5805  $as_echo_n "(cached) " >&6
5806else
5807  if test -n "$STRIP"; then
5808  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5809else
5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813  IFS=$as_save_IFS
5814  test -z "$as_dir" && as_dir=.
5815    for ac_exec_ext in '' $ac_executable_extensions; do
5816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819    break 2
5820  fi
5821done
5822  done
5823IFS=$as_save_IFS
5824
5825fi
5826fi
5827STRIP=$ac_cv_prog_STRIP
5828if test -n "$STRIP"; then
5829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5830$as_echo "$STRIP" >&6; }
5831else
5832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833$as_echo "no" >&6; }
5834fi
5835
5836
5837fi
5838if test -z "$ac_cv_prog_STRIP"; then
5839  ac_ct_STRIP=$STRIP
5840  # Extract the first word of "strip", so it can be a program name with args.
5841set dummy strip; ac_word=$2
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843$as_echo_n "checking for $ac_word... " >&6; }
5844if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  if test -n "$ac_ct_STRIP"; then
5848  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853  IFS=$as_save_IFS
5854  test -z "$as_dir" && as_dir=.
5855    for ac_exec_ext in '' $ac_executable_extensions; do
5856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857    ac_cv_prog_ac_ct_STRIP="strip"
5858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859    break 2
5860  fi
5861done
5862  done
5863IFS=$as_save_IFS
5864
5865fi
5866fi
5867ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5868if test -n "$ac_ct_STRIP"; then
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5870$as_echo "$ac_ct_STRIP" >&6; }
5871else
5872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873$as_echo "no" >&6; }
5874fi
5875
5876  if test "x$ac_ct_STRIP" = x; then
5877    STRIP=":"
5878  else
5879    case $cross_compiling:$ac_tool_warned in
5880yes:)
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883ac_tool_warned=yes ;;
5884esac
5885    STRIP=$ac_ct_STRIP
5886  fi
5887else
5888  STRIP="$ac_cv_prog_STRIP"
5889fi
5890
5891test -z "$STRIP" && STRIP=:
5892
5893
5894
5895
5896
5897
5898if test -n "$ac_tool_prefix"; then
5899  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5900set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902$as_echo_n "checking for $ac_word... " >&6; }
5903if ${ac_cv_prog_RANLIB+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  if test -n "$RANLIB"; then
5907  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912  IFS=$as_save_IFS
5913  test -z "$as_dir" && as_dir=.
5914    for ac_exec_ext in '' $ac_executable_extensions; do
5915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918    break 2
5919  fi
5920done
5921  done
5922IFS=$as_save_IFS
5923
5924fi
5925fi
5926RANLIB=$ac_cv_prog_RANLIB
5927if test -n "$RANLIB"; then
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5929$as_echo "$RANLIB" >&6; }
5930else
5931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932$as_echo "no" >&6; }
5933fi
5934
5935
5936fi
5937if test -z "$ac_cv_prog_RANLIB"; then
5938  ac_ct_RANLIB=$RANLIB
5939  # Extract the first word of "ranlib", so it can be a program name with args.
5940set dummy ranlib; ac_word=$2
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942$as_echo_n "checking for $ac_word... " >&6; }
5943if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5944  $as_echo_n "(cached) " >&6
5945else
5946  if test -n "$ac_ct_RANLIB"; then
5947  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5948else
5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH
5951do
5952  IFS=$as_save_IFS
5953  test -z "$as_dir" && as_dir=.
5954    for ac_exec_ext in '' $ac_executable_extensions; do
5955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956    ac_cv_prog_ac_ct_RANLIB="ranlib"
5957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958    break 2
5959  fi
5960done
5961  done
5962IFS=$as_save_IFS
5963
5964fi
5965fi
5966ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5967if test -n "$ac_ct_RANLIB"; then
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5969$as_echo "$ac_ct_RANLIB" >&6; }
5970else
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972$as_echo "no" >&6; }
5973fi
5974
5975  if test "x$ac_ct_RANLIB" = x; then
5976    RANLIB=":"
5977  else
5978    case $cross_compiling:$ac_tool_warned in
5979yes:)
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982ac_tool_warned=yes ;;
5983esac
5984    RANLIB=$ac_ct_RANLIB
5985  fi
5986else
5987  RANLIB="$ac_cv_prog_RANLIB"
5988fi
5989
5990test -z "$RANLIB" && RANLIB=:
5991
5992
5993
5994
5995
5996
5997# Determine commands to create old-style static archives.
5998old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5999old_postinstall_cmds='chmod 644 $oldlib'
6000old_postuninstall_cmds=
6001
6002if test -n "$RANLIB"; then
6003  case $host_os in
6004  bitrig* | openbsd*)
6005    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6006    ;;
6007  *)
6008    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6009    ;;
6010  esac
6011  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6012fi
6013
6014case $host_os in
6015  darwin*)
6016    lock_old_archive_extraction=yes ;;
6017  *)
6018    lock_old_archive_extraction=no ;;
6019esac
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059# If no C compiler was specified, use CC.
6060LTCC=${LTCC-"$CC"}
6061
6062# If no C compiler flags were specified, use CFLAGS.
6063LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6064
6065# Allow CC to be a program name with arguments.
6066compiler=$CC
6067
6068
6069# Check for command to grab the raw symbol name followed by C symbol from nm.
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6071$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6072if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6073  $as_echo_n "(cached) " >&6
6074else
6075
6076# These are sane defaults that work on at least a few old systems.
6077# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6078
6079# Character class describing NM global symbol codes.
6080symcode='[BCDEGRST]'
6081
6082# Regexp to match symbols that can be accessed directly from C.
6083sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6084
6085# Define system-specific variables.
6086case $host_os in
6087aix*)
6088  symcode='[BCDT]'
6089  ;;
6090cygwin* | mingw* | pw32* | cegcc*)
6091  symcode='[ABCDGISTW]'
6092  ;;
6093hpux*)
6094  if test ia64 = "$host_cpu"; then
6095    symcode='[ABCDEGRST]'
6096  fi
6097  ;;
6098irix* | nonstopux*)
6099  symcode='[BCDEGRST]'
6100  ;;
6101osf*)
6102  symcode='[BCDEGQRST]'
6103  ;;
6104solaris*)
6105  symcode='[BDRT]'
6106  ;;
6107sco3.2v5*)
6108  symcode='[DT]'
6109  ;;
6110sysv4.2uw2*)
6111  symcode='[DT]'
6112  ;;
6113sysv5* | sco5v6* | unixware* | OpenUNIX*)
6114  symcode='[ABDT]'
6115  ;;
6116sysv4)
6117  symcode='[DFNSTU]'
6118  ;;
6119esac
6120
6121# If we're using GNU nm, then use its standard symbol codes.
6122case `$NM -V 2>&1` in
6123*GNU* | *'with BFD'*)
6124  symcode='[ABCDGIRSTW]' ;;
6125esac
6126
6127if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6128  # Gets list of data symbols to import.
6129  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6130  # Adjust the below global symbol transforms to fixup imported variables.
6131  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6132  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6133  lt_c_name_lib_hook="\
6134  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6135  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6136else
6137  # Disable hooks by default.
6138  lt_cv_sys_global_symbol_to_import=
6139  lt_cdecl_hook=
6140  lt_c_name_hook=
6141  lt_c_name_lib_hook=
6142fi
6143
6144# Transform an extracted symbol line into a proper C declaration.
6145# Some systems (esp. on ia64) link data and code symbols differently,
6146# so use this general approach.
6147lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6148$lt_cdecl_hook\
6149" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6150" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6151
6152# Transform an extracted symbol line into symbol name and symbol address
6153lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6154$lt_c_name_hook\
6155" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6156" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6157
6158# Transform an extracted symbol line into symbol name with lib prefix and
6159# symbol address.
6160lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6161$lt_c_name_lib_hook\
6162" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6163" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6164" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6165
6166# Handle CRLF in mingw tool chain
6167opt_cr=
6168case $build_os in
6169mingw*)
6170  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6171  ;;
6172esac
6173
6174# Try without a prefix underscore, then with it.
6175for ac_symprfx in "" "_"; do
6176
6177  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6178  symxfrm="\\1 $ac_symprfx\\2 \\2"
6179
6180  # Write the raw and C identifiers.
6181  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6182    # Fake it for dumpbin and say T for any non-static function,
6183    # D for any global variable and I for any imported variable.
6184    # Also find C++ and __fastcall symbols from MSVC++,
6185    # which start with @ or ?.
6186    lt_cv_sys_global_symbol_pipe="$AWK '"\
6187"     {last_section=section; section=\$ 3};"\
6188"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6189"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6190"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6191"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6192"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6193"     \$ 0!~/External *\|/{next};"\
6194"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6195"     {if(hide[section]) next};"\
6196"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6197"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6198"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6199"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6200"     ' prfx=^$ac_symprfx"
6201  else
6202    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6203  fi
6204  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6205
6206  # Check to see that the pipe works correctly.
6207  pipe_works=no
6208
6209  rm -f conftest*
6210  cat > conftest.$ac_ext <<_LT_EOF
6211#ifdef __cplusplus
6212extern "C" {
6213#endif
6214char nm_test_var;
6215void nm_test_func(void);
6216void nm_test_func(void){}
6217#ifdef __cplusplus
6218}
6219#endif
6220int main(){nm_test_var='a';nm_test_func();return(0);}
6221_LT_EOF
6222
6223  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6224  (eval $ac_compile) 2>&5
6225  ac_status=$?
6226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6227  test $ac_status = 0; }; then
6228    # Now try to grab the symbols.
6229    nlist=conftest.nm
6230    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6231  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6232  ac_status=$?
6233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6234  test $ac_status = 0; } && test -s "$nlist"; then
6235      # Try sorting and uniquifying the output.
6236      if sort "$nlist" | uniq > "$nlist"T; then
6237	mv -f "$nlist"T "$nlist"
6238      else
6239	rm -f "$nlist"T
6240      fi
6241
6242      # Make sure that we snagged all the symbols we need.
6243      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6244	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6245	  cat <<_LT_EOF > conftest.$ac_ext
6246/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6247#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6248/* DATA imports from DLLs on WIN32 can't be const, because runtime
6249   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6250# define LT_DLSYM_CONST
6251#elif defined __osf__
6252/* This system does not cope well with relocations in const data.  */
6253# define LT_DLSYM_CONST
6254#else
6255# define LT_DLSYM_CONST const
6256#endif
6257
6258#ifdef __cplusplus
6259extern "C" {
6260#endif
6261
6262_LT_EOF
6263	  # Now generate the symbol file.
6264	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6265
6266	  cat <<_LT_EOF >> conftest.$ac_ext
6267
6268/* The mapping between symbol names and symbols.  */
6269LT_DLSYM_CONST struct {
6270  const char *name;
6271  void       *address;
6272}
6273lt__PROGRAM__LTX_preloaded_symbols[] =
6274{
6275  { "@PROGRAM@", (void *) 0 },
6276_LT_EOF
6277	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6278	  cat <<\_LT_EOF >> conftest.$ac_ext
6279  {0, (void *) 0}
6280};
6281
6282/* This works around a problem in FreeBSD linker */
6283#ifdef FREEBSD_WORKAROUND
6284static const void *lt_preloaded_setup() {
6285  return lt__PROGRAM__LTX_preloaded_symbols;
6286}
6287#endif
6288
6289#ifdef __cplusplus
6290}
6291#endif
6292_LT_EOF
6293	  # Now try linking the two files.
6294	  mv conftest.$ac_objext conftstm.$ac_objext
6295	  lt_globsym_save_LIBS=$LIBS
6296	  lt_globsym_save_CFLAGS=$CFLAGS
6297	  LIBS=conftstm.$ac_objext
6298	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6299	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6300  (eval $ac_link) 2>&5
6301  ac_status=$?
6302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6303  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6304	    pipe_works=yes
6305	  fi
6306	  LIBS=$lt_globsym_save_LIBS
6307	  CFLAGS=$lt_globsym_save_CFLAGS
6308	else
6309	  echo "cannot find nm_test_func in $nlist" >&5
6310	fi
6311      else
6312	echo "cannot find nm_test_var in $nlist" >&5
6313      fi
6314    else
6315      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6316    fi
6317  else
6318    echo "$progname: failed program was:" >&5
6319    cat conftest.$ac_ext >&5
6320  fi
6321  rm -rf conftest* conftst*
6322
6323  # Do not use the global_symbol_pipe unless it works.
6324  if test yes = "$pipe_works"; then
6325    break
6326  else
6327    lt_cv_sys_global_symbol_pipe=
6328  fi
6329done
6330
6331fi
6332
6333if test -z "$lt_cv_sys_global_symbol_pipe"; then
6334  lt_cv_sys_global_symbol_to_cdecl=
6335fi
6336if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6338$as_echo "failed" >&6; }
6339else
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6341$as_echo "ok" >&6; }
6342fi
6343
6344# Response file support.
6345if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6346  nm_file_list_spec='@'
6347elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6348  nm_file_list_spec='@'
6349fi
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6388$as_echo_n "checking for sysroot... " >&6; }
6389
6390# Check whether --with-sysroot was given.
6391if test "${with_sysroot+set}" = set; then :
6392  withval=$with_sysroot;
6393else
6394  with_sysroot=no
6395fi
6396
6397
6398lt_sysroot=
6399case $with_sysroot in #(
6400 yes)
6401   if test yes = "$GCC"; then
6402     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6403   fi
6404   ;; #(
6405 /*)
6406   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6407   ;; #(
6408 no|'')
6409   ;; #(
6410 *)
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6412$as_echo "$with_sysroot" >&6; }
6413   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6414   ;;
6415esac
6416
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6418$as_echo "${lt_sysroot:-no}" >&6; }
6419
6420
6421
6422
6423
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6425$as_echo_n "checking for a working dd... " >&6; }
6426if ${ac_cv_path_lt_DD+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  printf 0123456789abcdef0123456789abcdef >conftest.i
6430cat conftest.i conftest.i >conftest2.i
6431: ${lt_DD:=$DD}
6432if test -z "$lt_DD"; then
6433  ac_path_lt_DD_found=false
6434  # Loop through the user's path and test for each of PROGNAME-LIST
6435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436for as_dir in $PATH
6437do
6438  IFS=$as_save_IFS
6439  test -z "$as_dir" && as_dir=.
6440    for ac_prog in dd; do
6441    for ac_exec_ext in '' $ac_executable_extensions; do
6442      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6443      as_fn_executable_p "$ac_path_lt_DD" || continue
6444if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6445  cmp -s conftest.i conftest.out \
6446  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6447fi
6448      $ac_path_lt_DD_found && break 3
6449    done
6450  done
6451  done
6452IFS=$as_save_IFS
6453  if test -z "$ac_cv_path_lt_DD"; then
6454    :
6455  fi
6456else
6457  ac_cv_path_lt_DD=$lt_DD
6458fi
6459
6460rm -f conftest.i conftest2.i conftest.out
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6463$as_echo "$ac_cv_path_lt_DD" >&6; }
6464
6465
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6467$as_echo_n "checking how to truncate binary pipes... " >&6; }
6468if ${lt_cv_truncate_bin+:} false; then :
6469  $as_echo_n "(cached) " >&6
6470else
6471  printf 0123456789abcdef0123456789abcdef >conftest.i
6472cat conftest.i conftest.i >conftest2.i
6473lt_cv_truncate_bin=
6474if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6475  cmp -s conftest.i conftest.out \
6476  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6477fi
6478rm -f conftest.i conftest2.i conftest.out
6479test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6482$as_echo "$lt_cv_truncate_bin" >&6; }
6483
6484
6485
6486
6487
6488
6489
6490# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6491func_cc_basename ()
6492{
6493    for cc_temp in $*""; do
6494      case $cc_temp in
6495        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6496        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6497        \-*) ;;
6498        *) break;;
6499      esac
6500    done
6501    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6502}
6503
6504# Check whether --enable-libtool-lock was given.
6505if test "${enable_libtool_lock+set}" = set; then :
6506  enableval=$enable_libtool_lock;
6507fi
6508
6509test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6510
6511# Some flags need to be propagated to the compiler or linker for good
6512# libtool support.
6513case $host in
6514ia64-*-hpux*)
6515  # Find out what ABI is being produced by ac_compile, and set mode
6516  # options accordingly.
6517  echo 'int i;' > conftest.$ac_ext
6518  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6519  (eval $ac_compile) 2>&5
6520  ac_status=$?
6521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522  test $ac_status = 0; }; then
6523    case `/usr/bin/file conftest.$ac_objext` in
6524      *ELF-32*)
6525	HPUX_IA64_MODE=32
6526	;;
6527      *ELF-64*)
6528	HPUX_IA64_MODE=64
6529	;;
6530    esac
6531  fi
6532  rm -rf conftest*
6533  ;;
6534*-*-irix6*)
6535  # Find out what ABI is being produced by ac_compile, and set linker
6536  # options accordingly.
6537  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6538  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6539  (eval $ac_compile) 2>&5
6540  ac_status=$?
6541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6542  test $ac_status = 0; }; then
6543    if test yes = "$lt_cv_prog_gnu_ld"; then
6544      case `/usr/bin/file conftest.$ac_objext` in
6545	*32-bit*)
6546	  LD="${LD-ld} -melf32bsmip"
6547	  ;;
6548	*N32*)
6549	  LD="${LD-ld} -melf32bmipn32"
6550	  ;;
6551	*64-bit*)
6552	  LD="${LD-ld} -melf64bmip"
6553	;;
6554      esac
6555    else
6556      case `/usr/bin/file conftest.$ac_objext` in
6557	*32-bit*)
6558	  LD="${LD-ld} -32"
6559	  ;;
6560	*N32*)
6561	  LD="${LD-ld} -n32"
6562	  ;;
6563	*64-bit*)
6564	  LD="${LD-ld} -64"
6565	  ;;
6566      esac
6567    fi
6568  fi
6569  rm -rf conftest*
6570  ;;
6571
6572mips64*-*linux*)
6573  # Find out what ABI is being produced by ac_compile, and set linker
6574  # options accordingly.
6575  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6576  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6577  (eval $ac_compile) 2>&5
6578  ac_status=$?
6579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6580  test $ac_status = 0; }; then
6581    emul=elf
6582    case `/usr/bin/file conftest.$ac_objext` in
6583      *32-bit*)
6584	emul="${emul}32"
6585	;;
6586      *64-bit*)
6587	emul="${emul}64"
6588	;;
6589    esac
6590    case `/usr/bin/file conftest.$ac_objext` in
6591      *MSB*)
6592	emul="${emul}btsmip"
6593	;;
6594      *LSB*)
6595	emul="${emul}ltsmip"
6596	;;
6597    esac
6598    case `/usr/bin/file conftest.$ac_objext` in
6599      *N32*)
6600	emul="${emul}n32"
6601	;;
6602    esac
6603    LD="${LD-ld} -m $emul"
6604  fi
6605  rm -rf conftest*
6606  ;;
6607
6608x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6609s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6610  # Find out what ABI is being produced by ac_compile, and set linker
6611  # options accordingly.  Note that the listed cases only cover the
6612  # situations where additional linker options are needed (such as when
6613  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6614  # vice versa); the common cases where no linker options are needed do
6615  # not appear in the list.
6616  echo 'int i;' > conftest.$ac_ext
6617  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6618  (eval $ac_compile) 2>&5
6619  ac_status=$?
6620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621  test $ac_status = 0; }; then
6622    case `/usr/bin/file conftest.o` in
6623      *32-bit*)
6624	case $host in
6625	  x86_64-*kfreebsd*-gnu)
6626	    LD="${LD-ld} -m elf_i386_fbsd"
6627	    ;;
6628	  x86_64-*linux*)
6629	    case `/usr/bin/file conftest.o` in
6630	      *x86-64*)
6631		LD="${LD-ld} -m elf32_x86_64"
6632		;;
6633	      *)
6634		LD="${LD-ld} -m elf_i386"
6635		;;
6636	    esac
6637	    ;;
6638	  powerpc64le-*linux*)
6639	    LD="${LD-ld} -m elf32lppclinux"
6640	    ;;
6641	  powerpc64-*linux*)
6642	    LD="${LD-ld} -m elf32ppclinux"
6643	    ;;
6644	  s390x-*linux*)
6645	    LD="${LD-ld} -m elf_s390"
6646	    ;;
6647	  sparc64-*linux*)
6648	    LD="${LD-ld} -m elf32_sparc"
6649	    ;;
6650	esac
6651	;;
6652      *64-bit*)
6653	case $host in
6654	  x86_64-*kfreebsd*-gnu)
6655	    LD="${LD-ld} -m elf_x86_64_fbsd"
6656	    ;;
6657	  x86_64-*linux*)
6658	    LD="${LD-ld} -m elf_x86_64"
6659	    ;;
6660	  powerpcle-*linux*)
6661	    LD="${LD-ld} -m elf64lppc"
6662	    ;;
6663	  powerpc-*linux*)
6664	    LD="${LD-ld} -m elf64ppc"
6665	    ;;
6666	  s390*-*linux*|s390*-*tpf*)
6667	    LD="${LD-ld} -m elf64_s390"
6668	    ;;
6669	  sparc*-*linux*)
6670	    LD="${LD-ld} -m elf64_sparc"
6671	    ;;
6672	esac
6673	;;
6674    esac
6675  fi
6676  rm -rf conftest*
6677  ;;
6678
6679*-*-sco3.2v5*)
6680  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6681  SAVE_CFLAGS=$CFLAGS
6682  CFLAGS="$CFLAGS -belf"
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6684$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6685if ${lt_cv_cc_needs_belf+:} false; then :
6686  $as_echo_n "(cached) " >&6
6687else
6688  ac_ext=c
6689ac_cpp='$CPP $CPPFLAGS'
6690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692ac_compiler_gnu=$ac_cv_c_compiler_gnu
6693
6694     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695/* end confdefs.h.  */
6696
6697int
6698main ()
6699{
6700
6701  ;
6702  return 0;
6703}
6704_ACEOF
6705if ac_fn_c_try_link "$LINENO"; then :
6706  lt_cv_cc_needs_belf=yes
6707else
6708  lt_cv_cc_needs_belf=no
6709fi
6710rm -f core conftest.err conftest.$ac_objext \
6711    conftest$ac_exeext conftest.$ac_ext
6712     ac_ext=c
6713ac_cpp='$CPP $CPPFLAGS'
6714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716ac_compiler_gnu=$ac_cv_c_compiler_gnu
6717
6718fi
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6720$as_echo "$lt_cv_cc_needs_belf" >&6; }
6721  if test yes != "$lt_cv_cc_needs_belf"; then
6722    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6723    CFLAGS=$SAVE_CFLAGS
6724  fi
6725  ;;
6726*-*solaris*)
6727  # Find out what ABI is being produced by ac_compile, and set linker
6728  # options accordingly.
6729  echo 'int i;' > conftest.$ac_ext
6730  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731  (eval $ac_compile) 2>&5
6732  ac_status=$?
6733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734  test $ac_status = 0; }; then
6735    case `/usr/bin/file conftest.o` in
6736    *64-bit*)
6737      case $lt_cv_prog_gnu_ld in
6738      yes*)
6739        case $host in
6740        i?86-*-solaris*|x86_64-*-solaris*)
6741          LD="${LD-ld} -m elf_x86_64"
6742          ;;
6743        sparc*-*-solaris*)
6744          LD="${LD-ld} -m elf64_sparc"
6745          ;;
6746        esac
6747        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6748        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6749          LD=${LD-ld}_sol2
6750        fi
6751        ;;
6752      *)
6753	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6754	  LD="${LD-ld} -64"
6755	fi
6756	;;
6757      esac
6758      ;;
6759    esac
6760  fi
6761  rm -rf conftest*
6762  ;;
6763esac
6764
6765need_locks=$enable_libtool_lock
6766
6767if test -n "$ac_tool_prefix"; then
6768  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6769set dummy ${ac_tool_prefix}mt; ac_word=$2
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
6772if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  if test -n "$MANIFEST_TOOL"; then
6776  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781  IFS=$as_save_IFS
6782  test -z "$as_dir" && as_dir=.
6783    for ac_exec_ext in '' $ac_executable_extensions; do
6784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787    break 2
6788  fi
6789done
6790  done
6791IFS=$as_save_IFS
6792
6793fi
6794fi
6795MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6796if test -n "$MANIFEST_TOOL"; then
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6798$as_echo "$MANIFEST_TOOL" >&6; }
6799else
6800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
6802fi
6803
6804
6805fi
6806if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6807  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6808  # Extract the first word of "mt", so it can be a program name with args.
6809set dummy mt; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$ac_ct_MANIFEST_TOOL"; then
6816  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823    for ac_exec_ext in '' $ac_executable_extensions; do
6824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830  done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6836if test -n "$ac_ct_MANIFEST_TOOL"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6838$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6845    MANIFEST_TOOL=":"
6846  else
6847    case $cross_compiling:$ac_tool_warned in
6848yes:)
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851ac_tool_warned=yes ;;
6852esac
6853    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6854  fi
6855else
6856  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6857fi
6858
6859test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6861$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6862if ${lt_cv_path_mainfest_tool+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865  lt_cv_path_mainfest_tool=no
6866  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6867  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6868  cat conftest.err >&5
6869  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6870    lt_cv_path_mainfest_tool=yes
6871  fi
6872  rm -f conftest*
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6875$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6876if test yes != "$lt_cv_path_mainfest_tool"; then
6877  MANIFEST_TOOL=:
6878fi
6879
6880
6881
6882
6883
6884
6885  case $host_os in
6886    rhapsody* | darwin*)
6887    if test -n "$ac_tool_prefix"; then
6888  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if ${ac_cv_prog_DSYMUTIL+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  if test -n "$DSYMUTIL"; then
6896  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901  IFS=$as_save_IFS
6902  test -z "$as_dir" && as_dir=.
6903    for ac_exec_ext in '' $ac_executable_extensions; do
6904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910  done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915DSYMUTIL=$ac_cv_prog_DSYMUTIL
6916if test -n "$DSYMUTIL"; then
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6918$as_echo "$DSYMUTIL" >&6; }
6919else
6920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924
6925fi
6926if test -z "$ac_cv_prog_DSYMUTIL"; then
6927  ac_ct_DSYMUTIL=$DSYMUTIL
6928  # Extract the first word of "dsymutil", so it can be a program name with args.
6929set dummy dsymutil; ac_word=$2
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
6932if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  if test -n "$ac_ct_DSYMUTIL"; then
6936  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941  IFS=$as_save_IFS
6942  test -z "$as_dir" && as_dir=.
6943    for ac_exec_ext in '' $ac_executable_extensions; do
6944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947    break 2
6948  fi
6949done
6950  done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
6955ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6956if test -n "$ac_ct_DSYMUTIL"; then
6957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6958$as_echo "$ac_ct_DSYMUTIL" >&6; }
6959else
6960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
6962fi
6963
6964  if test "x$ac_ct_DSYMUTIL" = x; then
6965    DSYMUTIL=":"
6966  else
6967    case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971ac_tool_warned=yes ;;
6972esac
6973    DSYMUTIL=$ac_ct_DSYMUTIL
6974  fi
6975else
6976  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6977fi
6978
6979    if test -n "$ac_tool_prefix"; then
6980  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6981set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if ${ac_cv_prog_NMEDIT+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  if test -n "$NMEDIT"; then
6988  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993  IFS=$as_save_IFS
6994  test -z "$as_dir" && as_dir=.
6995    for ac_exec_ext in '' $ac_executable_extensions; do
6996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999    break 2
7000  fi
7001done
7002  done
7003IFS=$as_save_IFS
7004
7005fi
7006fi
7007NMEDIT=$ac_cv_prog_NMEDIT
7008if test -n "$NMEDIT"; then
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7010$as_echo "$NMEDIT" >&6; }
7011else
7012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
7014fi
7015
7016
7017fi
7018if test -z "$ac_cv_prog_NMEDIT"; then
7019  ac_ct_NMEDIT=$NMEDIT
7020  # Extract the first word of "nmedit", so it can be a program name with args.
7021set dummy nmedit; ac_word=$2
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023$as_echo_n "checking for $ac_word... " >&6; }
7024if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  if test -n "$ac_ct_NMEDIT"; then
7028  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033  IFS=$as_save_IFS
7034  test -z "$as_dir" && as_dir=.
7035    for ac_exec_ext in '' $ac_executable_extensions; do
7036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039    break 2
7040  fi
7041done
7042  done
7043IFS=$as_save_IFS
7044
7045fi
7046fi
7047ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7048if test -n "$ac_ct_NMEDIT"; then
7049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7050$as_echo "$ac_ct_NMEDIT" >&6; }
7051else
7052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053$as_echo "no" >&6; }
7054fi
7055
7056  if test "x$ac_ct_NMEDIT" = x; then
7057    NMEDIT=":"
7058  else
7059    case $cross_compiling:$ac_tool_warned in
7060yes:)
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063ac_tool_warned=yes ;;
7064esac
7065    NMEDIT=$ac_ct_NMEDIT
7066  fi
7067else
7068  NMEDIT="$ac_cv_prog_NMEDIT"
7069fi
7070
7071    if test -n "$ac_tool_prefix"; then
7072  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7073set dummy ${ac_tool_prefix}lipo; ac_word=$2
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
7076if ${ac_cv_prog_LIPO+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  if test -n "$LIPO"; then
7080  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087    for ac_exec_ext in '' $ac_executable_extensions; do
7088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094  done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099LIPO=$ac_cv_prog_LIPO
7100if test -n "$LIPO"; then
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7102$as_echo "$LIPO" >&6; }
7103else
7104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
7106fi
7107
7108
7109fi
7110if test -z "$ac_cv_prog_LIPO"; then
7111  ac_ct_LIPO=$LIPO
7112  # Extract the first word of "lipo", so it can be a program name with args.
7113set dummy lipo; ac_word=$2
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115$as_echo_n "checking for $ac_word... " >&6; }
7116if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  if test -n "$ac_ct_LIPO"; then
7120  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125  IFS=$as_save_IFS
7126  test -z "$as_dir" && as_dir=.
7127    for ac_exec_ext in '' $ac_executable_extensions; do
7128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129    ac_cv_prog_ac_ct_LIPO="lipo"
7130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131    break 2
7132  fi
7133done
7134  done
7135IFS=$as_save_IFS
7136
7137fi
7138fi
7139ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7140if test -n "$ac_ct_LIPO"; then
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7142$as_echo "$ac_ct_LIPO" >&6; }
7143else
7144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148  if test "x$ac_ct_LIPO" = x; then
7149    LIPO=":"
7150  else
7151    case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155ac_tool_warned=yes ;;
7156esac
7157    LIPO=$ac_ct_LIPO
7158  fi
7159else
7160  LIPO="$ac_cv_prog_LIPO"
7161fi
7162
7163    if test -n "$ac_tool_prefix"; then
7164  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7165set dummy ${ac_tool_prefix}otool; ac_word=$2
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167$as_echo_n "checking for $ac_word... " >&6; }
7168if ${ac_cv_prog_OTOOL+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  if test -n "$OTOOL"; then
7172  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177  IFS=$as_save_IFS
7178  test -z "$as_dir" && as_dir=.
7179    for ac_exec_ext in '' $ac_executable_extensions; do
7180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183    break 2
7184  fi
7185done
7186  done
7187IFS=$as_save_IFS
7188
7189fi
7190fi
7191OTOOL=$ac_cv_prog_OTOOL
7192if test -n "$OTOOL"; then
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7194$as_echo "$OTOOL" >&6; }
7195else
7196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197$as_echo "no" >&6; }
7198fi
7199
7200
7201fi
7202if test -z "$ac_cv_prog_OTOOL"; then
7203  ac_ct_OTOOL=$OTOOL
7204  # Extract the first word of "otool", so it can be a program name with args.
7205set dummy otool; ac_word=$2
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207$as_echo_n "checking for $ac_word... " >&6; }
7208if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7209  $as_echo_n "(cached) " >&6
7210else
7211  if test -n "$ac_ct_OTOOL"; then
7212  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7213else
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217  IFS=$as_save_IFS
7218  test -z "$as_dir" && as_dir=.
7219    for ac_exec_ext in '' $ac_executable_extensions; do
7220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221    ac_cv_prog_ac_ct_OTOOL="otool"
7222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223    break 2
7224  fi
7225done
7226  done
7227IFS=$as_save_IFS
7228
7229fi
7230fi
7231ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7232if test -n "$ac_ct_OTOOL"; then
7233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7234$as_echo "$ac_ct_OTOOL" >&6; }
7235else
7236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237$as_echo "no" >&6; }
7238fi
7239
7240  if test "x$ac_ct_OTOOL" = x; then
7241    OTOOL=":"
7242  else
7243    case $cross_compiling:$ac_tool_warned in
7244yes:)
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247ac_tool_warned=yes ;;
7248esac
7249    OTOOL=$ac_ct_OTOOL
7250  fi
7251else
7252  OTOOL="$ac_cv_prog_OTOOL"
7253fi
7254
7255    if test -n "$ac_tool_prefix"; then
7256  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7257set dummy ${ac_tool_prefix}otool64; ac_word=$2
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if ${ac_cv_prog_OTOOL64+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  if test -n "$OTOOL64"; then
7264  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269  IFS=$as_save_IFS
7270  test -z "$as_dir" && as_dir=.
7271    for ac_exec_ext in '' $ac_executable_extensions; do
7272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275    break 2
7276  fi
7277done
7278  done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283OTOOL64=$ac_cv_prog_OTOOL64
7284if test -n "$OTOOL64"; then
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7286$as_echo "$OTOOL64" >&6; }
7287else
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292
7293fi
7294if test -z "$ac_cv_prog_OTOOL64"; then
7295  ac_ct_OTOOL64=$OTOOL64
7296  # Extract the first word of "otool64", so it can be a program name with args.
7297set dummy otool64; ac_word=$2
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299$as_echo_n "checking for $ac_word... " >&6; }
7300if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7301  $as_echo_n "(cached) " >&6
7302else
7303  if test -n "$ac_ct_OTOOL64"; then
7304  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309  IFS=$as_save_IFS
7310  test -z "$as_dir" && as_dir=.
7311    for ac_exec_ext in '' $ac_executable_extensions; do
7312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313    ac_cv_prog_ac_ct_OTOOL64="otool64"
7314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315    break 2
7316  fi
7317done
7318  done
7319IFS=$as_save_IFS
7320
7321fi
7322fi
7323ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7324if test -n "$ac_ct_OTOOL64"; then
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7326$as_echo "$ac_ct_OTOOL64" >&6; }
7327else
7328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330fi
7331
7332  if test "x$ac_ct_OTOOL64" = x; then
7333    OTOOL64=":"
7334  else
7335    case $cross_compiling:$ac_tool_warned in
7336yes:)
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339ac_tool_warned=yes ;;
7340esac
7341    OTOOL64=$ac_ct_OTOOL64
7342  fi
7343else
7344  OTOOL64="$ac_cv_prog_OTOOL64"
7345fi
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7374$as_echo_n "checking for -single_module linker flag... " >&6; }
7375if ${lt_cv_apple_cc_single_mod+:} false; then :
7376  $as_echo_n "(cached) " >&6
7377else
7378  lt_cv_apple_cc_single_mod=no
7379      if test -z "$LT_MULTI_MODULE"; then
7380	# By default we will add the -single_module flag. You can override
7381	# by either setting the environment variable LT_MULTI_MODULE
7382	# non-empty at configure time, or by adding -multi_module to the
7383	# link flags.
7384	rm -rf libconftest.dylib*
7385	echo "int foo(void){return 1;}" > conftest.c
7386	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7387-dynamiclib -Wl,-single_module conftest.c" >&5
7388	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7389	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7390        _lt_result=$?
7391	# If there is a non-empty error log, and "single_module"
7392	# appears in it, assume the flag caused a linker warning
7393        if test -s conftest.err && $GREP single_module conftest.err; then
7394	  cat conftest.err >&5
7395	# Otherwise, if the output was created with a 0 exit code from
7396	# the compiler, it worked.
7397	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7398	  lt_cv_apple_cc_single_mod=yes
7399	else
7400	  cat conftest.err >&5
7401	fi
7402	rm -rf libconftest.dylib*
7403	rm -f conftest.*
7404      fi
7405fi
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7407$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7408
7409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7410$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7411if ${lt_cv_ld_exported_symbols_list+:} false; then :
7412  $as_echo_n "(cached) " >&6
7413else
7414  lt_cv_ld_exported_symbols_list=no
7415      save_LDFLAGS=$LDFLAGS
7416      echo "_main" > conftest.sym
7417      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7418      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419/* end confdefs.h.  */
7420
7421int
7422main ()
7423{
7424
7425  ;
7426  return 0;
7427}
7428_ACEOF
7429if ac_fn_c_try_link "$LINENO"; then :
7430  lt_cv_ld_exported_symbols_list=yes
7431else
7432  lt_cv_ld_exported_symbols_list=no
7433fi
7434rm -f core conftest.err conftest.$ac_objext \
7435    conftest$ac_exeext conftest.$ac_ext
7436	LDFLAGS=$save_LDFLAGS
7437
7438fi
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7440$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7441
7442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7443$as_echo_n "checking for -force_load linker flag... " >&6; }
7444if ${lt_cv_ld_force_load+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  lt_cv_ld_force_load=no
7448      cat > conftest.c << _LT_EOF
7449int forced_loaded() { return 2;}
7450_LT_EOF
7451      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7452      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7453      echo "$AR cru libconftest.a conftest.o" >&5
7454      $AR cru libconftest.a conftest.o 2>&5
7455      echo "$RANLIB libconftest.a" >&5
7456      $RANLIB libconftest.a 2>&5
7457      cat > conftest.c << _LT_EOF
7458int main() { return 0;}
7459_LT_EOF
7460      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7461      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7462      _lt_result=$?
7463      if test -s conftest.err && $GREP force_load conftest.err; then
7464	cat conftest.err >&5
7465      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7466	lt_cv_ld_force_load=yes
7467      else
7468	cat conftest.err >&5
7469      fi
7470        rm -f conftest.err libconftest.a conftest conftest.c
7471        rm -rf conftest.dSYM
7472
7473fi
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7475$as_echo "$lt_cv_ld_force_load" >&6; }
7476    case $host_os in
7477    rhapsody* | darwin1.[012])
7478      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7479    darwin1.*)
7480      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7481    darwin*) # darwin 5.x on
7482      # if running on 10.5 or later, the deployment target defaults
7483      # to the OS version, if on x86, and 10.4, the deployment
7484      # target defaults to 10.4. Don't you love it?
7485      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7486	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7487	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7488	10.[012][,.]*)
7489	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7490	10.*)
7491	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7492      esac
7493    ;;
7494  esac
7495    if test yes = "$lt_cv_apple_cc_single_mod"; then
7496      _lt_dar_single_mod='$single_module'
7497    fi
7498    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7499      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7500    else
7501      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7502    fi
7503    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7504      _lt_dsymutil='~$DSYMUTIL $lib || :'
7505    else
7506      _lt_dsymutil=
7507    fi
7508    ;;
7509  esac
7510
7511# func_munge_path_list VARIABLE PATH
7512# -----------------------------------
7513# VARIABLE is name of variable containing _space_ separated list of
7514# directories to be munged by the contents of PATH, which is string
7515# having a format:
7516# "DIR[:DIR]:"
7517#       string "DIR[ DIR]" will be prepended to VARIABLE
7518# ":DIR[:DIR]"
7519#       string "DIR[ DIR]" will be appended to VARIABLE
7520# "DIRP[:DIRP]::[DIRA:]DIRA"
7521#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7522#       "DIRA[ DIRA]" will be appended to VARIABLE
7523# "DIR[:DIR]"
7524#       VARIABLE will be replaced by "DIR[ DIR]"
7525func_munge_path_list ()
7526{
7527    case x$2 in
7528    x)
7529        ;;
7530    *:)
7531        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7532        ;;
7533    x:*)
7534        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7535        ;;
7536    *::*)
7537        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7538        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7539        ;;
7540    *)
7541        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7542        ;;
7543    esac
7544}
7545
7546ac_ext=c
7547ac_cpp='$CPP $CPPFLAGS'
7548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550ac_compiler_gnu=$ac_cv_c_compiler_gnu
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7552$as_echo_n "checking how to run the C preprocessor... " >&6; }
7553# On Suns, sometimes $CPP names a directory.
7554if test -n "$CPP" && test -d "$CPP"; then
7555  CPP=
7556fi
7557if test -z "$CPP"; then
7558  if ${ac_cv_prog_CPP+:} false; then :
7559  $as_echo_n "(cached) " >&6
7560else
7561      # Double quotes because CPP needs to be expanded
7562    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7563    do
7564      ac_preproc_ok=false
7565for ac_c_preproc_warn_flag in '' yes
7566do
7567  # Use a header file that comes with gcc, so configuring glibc
7568  # with a fresh cross-compiler works.
7569  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7570  # <limits.h> exists even on freestanding compilers.
7571  # On the NeXT, cc -E runs the code through the compiler's parser,
7572  # not just through cpp. "Syntax error" is here to catch this case.
7573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h.  */
7575#ifdef __STDC__
7576# include <limits.h>
7577#else
7578# include <assert.h>
7579#endif
7580		     Syntax error
7581_ACEOF
7582if ac_fn_c_try_cpp "$LINENO"; then :
7583
7584else
7585  # Broken: fails on valid input.
7586continue
7587fi
7588rm -f conftest.err conftest.i conftest.$ac_ext
7589
7590  # OK, works on sane cases.  Now check whether nonexistent headers
7591  # can be detected and how.
7592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594#include <ac_nonexistent.h>
7595_ACEOF
7596if ac_fn_c_try_cpp "$LINENO"; then :
7597  # Broken: success on invalid input.
7598continue
7599else
7600  # Passes both tests.
7601ac_preproc_ok=:
7602break
7603fi
7604rm -f conftest.err conftest.i conftest.$ac_ext
7605
7606done
7607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7608rm -f conftest.i conftest.err conftest.$ac_ext
7609if $ac_preproc_ok; then :
7610  break
7611fi
7612
7613    done
7614    ac_cv_prog_CPP=$CPP
7615
7616fi
7617  CPP=$ac_cv_prog_CPP
7618else
7619  ac_cv_prog_CPP=$CPP
7620fi
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7622$as_echo "$CPP" >&6; }
7623ac_preproc_ok=false
7624for ac_c_preproc_warn_flag in '' yes
7625do
7626  # Use a header file that comes with gcc, so configuring glibc
7627  # with a fresh cross-compiler works.
7628  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7629  # <limits.h> exists even on freestanding compilers.
7630  # On the NeXT, cc -E runs the code through the compiler's parser,
7631  # not just through cpp. "Syntax error" is here to catch this case.
7632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633/* end confdefs.h.  */
7634#ifdef __STDC__
7635# include <limits.h>
7636#else
7637# include <assert.h>
7638#endif
7639		     Syntax error
7640_ACEOF
7641if ac_fn_c_try_cpp "$LINENO"; then :
7642
7643else
7644  # Broken: fails on valid input.
7645continue
7646fi
7647rm -f conftest.err conftest.i conftest.$ac_ext
7648
7649  # OK, works on sane cases.  Now check whether nonexistent headers
7650  # can be detected and how.
7651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652/* end confdefs.h.  */
7653#include <ac_nonexistent.h>
7654_ACEOF
7655if ac_fn_c_try_cpp "$LINENO"; then :
7656  # Broken: success on invalid input.
7657continue
7658else
7659  # Passes both tests.
7660ac_preproc_ok=:
7661break
7662fi
7663rm -f conftest.err conftest.i conftest.$ac_ext
7664
7665done
7666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7667rm -f conftest.i conftest.err conftest.$ac_ext
7668if $ac_preproc_ok; then :
7669
7670else
7671  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7673as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7674See \`config.log' for more details" "$LINENO" 5; }
7675fi
7676
7677ac_ext=c
7678ac_cpp='$CPP $CPPFLAGS'
7679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7681ac_compiler_gnu=$ac_cv_c_compiler_gnu
7682
7683
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7685$as_echo_n "checking for ANSI C header files... " >&6; }
7686if ${ac_cv_header_stdc+:} false; then :
7687  $as_echo_n "(cached) " >&6
7688else
7689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h.  */
7691#include <stdlib.h>
7692#include <stdarg.h>
7693#include <string.h>
7694#include <float.h>
7695
7696int
7697main ()
7698{
7699
7700  ;
7701  return 0;
7702}
7703_ACEOF
7704if ac_fn_c_try_compile "$LINENO"; then :
7705  ac_cv_header_stdc=yes
7706else
7707  ac_cv_header_stdc=no
7708fi
7709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710
7711if test $ac_cv_header_stdc = yes; then
7712  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h.  */
7715#include <string.h>
7716
7717_ACEOF
7718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7719  $EGREP "memchr" >/dev/null 2>&1; then :
7720
7721else
7722  ac_cv_header_stdc=no
7723fi
7724rm -f conftest*
7725
7726fi
7727
7728if test $ac_cv_header_stdc = yes; then
7729  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731/* end confdefs.h.  */
7732#include <stdlib.h>
7733
7734_ACEOF
7735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7736  $EGREP "free" >/dev/null 2>&1; then :
7737
7738else
7739  ac_cv_header_stdc=no
7740fi
7741rm -f conftest*
7742
7743fi
7744
7745if test $ac_cv_header_stdc = yes; then
7746  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7747  if test "$cross_compiling" = yes; then :
7748  :
7749else
7750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752#include <ctype.h>
7753#include <stdlib.h>
7754#if ((' ' & 0x0FF) == 0x020)
7755# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7756# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7757#else
7758# define ISLOWER(c) \
7759		   (('a' <= (c) && (c) <= 'i') \
7760		     || ('j' <= (c) && (c) <= 'r') \
7761		     || ('s' <= (c) && (c) <= 'z'))
7762# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7763#endif
7764
7765#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7766int
7767main ()
7768{
7769  int i;
7770  for (i = 0; i < 256; i++)
7771    if (XOR (islower (i), ISLOWER (i))
7772	|| toupper (i) != TOUPPER (i))
7773      return 2;
7774  return 0;
7775}
7776_ACEOF
7777if ac_fn_c_try_run "$LINENO"; then :
7778
7779else
7780  ac_cv_header_stdc=no
7781fi
7782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7783  conftest.$ac_objext conftest.beam conftest.$ac_ext
7784fi
7785
7786fi
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7789$as_echo "$ac_cv_header_stdc" >&6; }
7790if test $ac_cv_header_stdc = yes; then
7791
7792$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7793
7794fi
7795
7796# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7797for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7798		  inttypes.h stdint.h unistd.h
7799do :
7800  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7801ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7802"
7803if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7804  cat >>confdefs.h <<_ACEOF
7805#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7806_ACEOF
7807
7808fi
7809
7810done
7811
7812
7813for ac_header in dlfcn.h
7814do :
7815  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7816"
7817if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7818  cat >>confdefs.h <<_ACEOF
7819#define HAVE_DLFCN_H 1
7820_ACEOF
7821
7822fi
7823
7824done
7825
7826
7827
7828
7829
7830# Set options
7831
7832
7833
7834        enable_dlopen=no
7835
7836
7837  enable_win32_dll=no
7838
7839
7840            # Check whether --enable-shared was given.
7841if test "${enable_shared+set}" = set; then :
7842  enableval=$enable_shared; p=${PACKAGE-default}
7843    case $enableval in
7844    yes) enable_shared=yes ;;
7845    no) enable_shared=no ;;
7846    *)
7847      enable_shared=no
7848      # Look at the argument we got.  We use all the common list separators.
7849      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7850      for pkg in $enableval; do
7851	IFS=$lt_save_ifs
7852	if test "X$pkg" = "X$p"; then
7853	  enable_shared=yes
7854	fi
7855      done
7856      IFS=$lt_save_ifs
7857      ;;
7858    esac
7859else
7860  enable_shared=yes
7861fi
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871  # Check whether --enable-static was given.
7872if test "${enable_static+set}" = set; then :
7873  enableval=$enable_static; p=${PACKAGE-default}
7874    case $enableval in
7875    yes) enable_static=yes ;;
7876    no) enable_static=no ;;
7877    *)
7878     enable_static=no
7879      # Look at the argument we got.  We use all the common list separators.
7880      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7881      for pkg in $enableval; do
7882	IFS=$lt_save_ifs
7883	if test "X$pkg" = "X$p"; then
7884	  enable_static=yes
7885	fi
7886      done
7887      IFS=$lt_save_ifs
7888      ;;
7889    esac
7890else
7891  enable_static=yes
7892fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903# Check whether --with-pic was given.
7904if test "${with_pic+set}" = set; then :
7905  withval=$with_pic; lt_p=${PACKAGE-default}
7906    case $withval in
7907    yes|no) pic_mode=$withval ;;
7908    *)
7909      pic_mode=default
7910      # Look at the argument we got.  We use all the common list separators.
7911      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7912      for lt_pkg in $withval; do
7913	IFS=$lt_save_ifs
7914	if test "X$lt_pkg" = "X$lt_p"; then
7915	  pic_mode=yes
7916	fi
7917      done
7918      IFS=$lt_save_ifs
7919      ;;
7920    esac
7921else
7922  pic_mode=default
7923fi
7924
7925
7926
7927
7928
7929
7930
7931
7932  # Check whether --enable-fast-install was given.
7933if test "${enable_fast_install+set}" = set; then :
7934  enableval=$enable_fast_install; p=${PACKAGE-default}
7935    case $enableval in
7936    yes) enable_fast_install=yes ;;
7937    no) enable_fast_install=no ;;
7938    *)
7939      enable_fast_install=no
7940      # Look at the argument we got.  We use all the common list separators.
7941      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7942      for pkg in $enableval; do
7943	IFS=$lt_save_ifs
7944	if test "X$pkg" = "X$p"; then
7945	  enable_fast_install=yes
7946	fi
7947      done
7948      IFS=$lt_save_ifs
7949      ;;
7950    esac
7951else
7952  enable_fast_install=yes
7953fi
7954
7955
7956
7957
7958
7959
7960
7961
7962  shared_archive_member_spec=
7963case $host,$enable_shared in
7964power*-*-aix[5-9]*,yes)
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7966$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7967
7968# Check whether --with-aix-soname was given.
7969if test "${with_aix_soname+set}" = set; then :
7970  withval=$with_aix_soname; case $withval in
7971    aix|svr4|both)
7972      ;;
7973    *)
7974      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7975      ;;
7976    esac
7977    lt_cv_with_aix_soname=$with_aix_soname
7978else
7979  if ${lt_cv_with_aix_soname+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  lt_cv_with_aix_soname=aix
7983fi
7984
7985    with_aix_soname=$lt_cv_with_aix_soname
7986fi
7987
7988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7989$as_echo "$with_aix_soname" >&6; }
7990  if test aix != "$with_aix_soname"; then
7991    # For the AIX way of multilib, we name the shared archive member
7992    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7993    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7994    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7995    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7996    if test 64 = "${OBJECT_MODE-32}"; then
7997      shared_archive_member_spec=shr_64
7998    else
7999      shared_archive_member_spec=shr
8000    fi
8001  fi
8002  ;;
8003*)
8004  with_aix_soname=aix
8005  ;;
8006esac
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017# This can be used to rebuild libtool when needed
8018LIBTOOL_DEPS=$ltmain
8019
8020# Always use our own libtool.
8021LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052test -z "$LN_S" && LN_S="ln -s"
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067if test -n "${ZSH_VERSION+set}"; then
8068   setopt NO_GLOB_SUBST
8069fi
8070
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8072$as_echo_n "checking for objdir... " >&6; }
8073if ${lt_cv_objdir+:} false; then :
8074  $as_echo_n "(cached) " >&6
8075else
8076  rm -f .libs 2>/dev/null
8077mkdir .libs 2>/dev/null
8078if test -d .libs; then
8079  lt_cv_objdir=.libs
8080else
8081  # MS-DOS does not allow filenames that begin with a dot.
8082  lt_cv_objdir=_libs
8083fi
8084rmdir .libs 2>/dev/null
8085fi
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8087$as_echo "$lt_cv_objdir" >&6; }
8088objdir=$lt_cv_objdir
8089
8090
8091
8092
8093
8094cat >>confdefs.h <<_ACEOF
8095#define LT_OBJDIR "$lt_cv_objdir/"
8096_ACEOF
8097
8098
8099
8100
8101case $host_os in
8102aix3*)
8103  # AIX sometimes has problems with the GCC collect2 program.  For some
8104  # reason, if we set the COLLECT_NAMES environment variable, the problems
8105  # vanish in a puff of smoke.
8106  if test set != "${COLLECT_NAMES+set}"; then
8107    COLLECT_NAMES=
8108    export COLLECT_NAMES
8109  fi
8110  ;;
8111esac
8112
8113# Global variables:
8114ofile=libtool
8115can_build_shared=yes
8116
8117# All known linkers require a '.a' archive for static linking (except MSVC,
8118# which needs '.lib').
8119libext=a
8120
8121with_gnu_ld=$lt_cv_prog_gnu_ld
8122
8123old_CC=$CC
8124old_CFLAGS=$CFLAGS
8125
8126# Set sane defaults for various variables
8127test -z "$CC" && CC=cc
8128test -z "$LTCC" && LTCC=$CC
8129test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8130test -z "$LD" && LD=ld
8131test -z "$ac_objext" && ac_objext=o
8132
8133func_cc_basename $compiler
8134cc_basename=$func_cc_basename_result
8135
8136
8137# Only perform the check for file, if the check method requires it
8138test -z "$MAGIC_CMD" && MAGIC_CMD=file
8139case $deplibs_check_method in
8140file_magic*)
8141  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8143$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8144if ${lt_cv_path_MAGIC_CMD+:} false; then :
8145  $as_echo_n "(cached) " >&6
8146else
8147  case $MAGIC_CMD in
8148[\\/*] |  ?:[\\/]*)
8149  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8150  ;;
8151*)
8152  lt_save_MAGIC_CMD=$MAGIC_CMD
8153  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8154  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8155  for ac_dir in $ac_dummy; do
8156    IFS=$lt_save_ifs
8157    test -z "$ac_dir" && ac_dir=.
8158    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8159      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8160      if test -n "$file_magic_test_file"; then
8161	case $deplibs_check_method in
8162	"file_magic "*)
8163	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8164	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8165	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8166	    $EGREP "$file_magic_regex" > /dev/null; then
8167	    :
8168	  else
8169	    cat <<_LT_EOF 1>&2
8170
8171*** Warning: the command libtool uses to detect shared libraries,
8172*** $file_magic_cmd, produces output that libtool cannot recognize.
8173*** The result is that libtool may fail to recognize shared libraries
8174*** as such.  This will affect the creation of libtool libraries that
8175*** depend on shared libraries, but programs linked with such libtool
8176*** libraries will work regardless of this problem.  Nevertheless, you
8177*** may want to report the problem to your system manager and/or to
8178*** bug-libtool@gnu.org
8179
8180_LT_EOF
8181	  fi ;;
8182	esac
8183      fi
8184      break
8185    fi
8186  done
8187  IFS=$lt_save_ifs
8188  MAGIC_CMD=$lt_save_MAGIC_CMD
8189  ;;
8190esac
8191fi
8192
8193MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8194if test -n "$MAGIC_CMD"; then
8195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8196$as_echo "$MAGIC_CMD" >&6; }
8197else
8198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199$as_echo "no" >&6; }
8200fi
8201
8202
8203
8204
8205
8206if test -z "$lt_cv_path_MAGIC_CMD"; then
8207  if test -n "$ac_tool_prefix"; then
8208    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8209$as_echo_n "checking for file... " >&6; }
8210if ${lt_cv_path_MAGIC_CMD+:} false; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  case $MAGIC_CMD in
8214[\\/*] |  ?:[\\/]*)
8215  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8216  ;;
8217*)
8218  lt_save_MAGIC_CMD=$MAGIC_CMD
8219  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8220  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8221  for ac_dir in $ac_dummy; do
8222    IFS=$lt_save_ifs
8223    test -z "$ac_dir" && ac_dir=.
8224    if test -f "$ac_dir/file"; then
8225      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8226      if test -n "$file_magic_test_file"; then
8227	case $deplibs_check_method in
8228	"file_magic "*)
8229	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8230	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8231	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8232	    $EGREP "$file_magic_regex" > /dev/null; then
8233	    :
8234	  else
8235	    cat <<_LT_EOF 1>&2
8236
8237*** Warning: the command libtool uses to detect shared libraries,
8238*** $file_magic_cmd, produces output that libtool cannot recognize.
8239*** The result is that libtool may fail to recognize shared libraries
8240*** as such.  This will affect the creation of libtool libraries that
8241*** depend on shared libraries, but programs linked with such libtool
8242*** libraries will work regardless of this problem.  Nevertheless, you
8243*** may want to report the problem to your system manager and/or to
8244*** bug-libtool@gnu.org
8245
8246_LT_EOF
8247	  fi ;;
8248	esac
8249      fi
8250      break
8251    fi
8252  done
8253  IFS=$lt_save_ifs
8254  MAGIC_CMD=$lt_save_MAGIC_CMD
8255  ;;
8256esac
8257fi
8258
8259MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8260if test -n "$MAGIC_CMD"; then
8261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8262$as_echo "$MAGIC_CMD" >&6; }
8263else
8264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
8266fi
8267
8268
8269  else
8270    MAGIC_CMD=:
8271  fi
8272fi
8273
8274  fi
8275  ;;
8276esac
8277
8278# Use C for the default configuration in the libtool script
8279
8280lt_save_CC=$CC
8281ac_ext=c
8282ac_cpp='$CPP $CPPFLAGS'
8283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285ac_compiler_gnu=$ac_cv_c_compiler_gnu
8286
8287
8288# Source file extension for C test sources.
8289ac_ext=c
8290
8291# Object file extension for compiled C test sources.
8292objext=o
8293objext=$objext
8294
8295# Code to be used in simple compile tests
8296lt_simple_compile_test_code="int some_variable = 0;"
8297
8298# Code to be used in simple link tests
8299lt_simple_link_test_code='int main(){return(0);}'
8300
8301
8302
8303
8304
8305
8306
8307# If no C compiler was specified, use CC.
8308LTCC=${LTCC-"$CC"}
8309
8310# If no C compiler flags were specified, use CFLAGS.
8311LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8312
8313# Allow CC to be a program name with arguments.
8314compiler=$CC
8315
8316# Save the default compiler, since it gets overwritten when the other
8317# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8318compiler_DEFAULT=$CC
8319
8320# save warnings/boilerplate of simple test code
8321ac_outfile=conftest.$ac_objext
8322echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8323eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8324_lt_compiler_boilerplate=`cat conftest.err`
8325$RM conftest*
8326
8327ac_outfile=conftest.$ac_objext
8328echo "$lt_simple_link_test_code" >conftest.$ac_ext
8329eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8330_lt_linker_boilerplate=`cat conftest.err`
8331$RM -r conftest*
8332
8333
8334## CAVEAT EMPTOR:
8335## There is no encapsulation within the following macros, do not change
8336## the running order or otherwise move them around unless you know exactly
8337## what you are doing...
8338if test -n "$compiler"; then
8339
8340lt_prog_compiler_no_builtin_flag=
8341
8342if test yes = "$GCC"; then
8343  case $cc_basename in
8344  nvcc*)
8345    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8346  *)
8347    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8348  esac
8349
8350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8351$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8352if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8353  $as_echo_n "(cached) " >&6
8354else
8355  lt_cv_prog_compiler_rtti_exceptions=no
8356   ac_outfile=conftest.$ac_objext
8357   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8358   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8359   # Insert the option either (1) after the last *FLAGS variable, or
8360   # (2) before a word containing "conftest.", or (3) at the end.
8361   # Note that $ac_compile itself does not contain backslashes and begins
8362   # with a dollar sign (not a hyphen), so the echo should work correctly.
8363   # The option is referenced via a variable to avoid confusing sed.
8364   lt_compile=`echo "$ac_compile" | $SED \
8365   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8366   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8367   -e 's:$: $lt_compiler_flag:'`
8368   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8369   (eval "$lt_compile" 2>conftest.err)
8370   ac_status=$?
8371   cat conftest.err >&5
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   if (exit $ac_status) && test -s "$ac_outfile"; then
8374     # The compiler can only warn and ignore the option if not recognized
8375     # So say no if there are warnings other than the usual output.
8376     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8377     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8378     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8379       lt_cv_prog_compiler_rtti_exceptions=yes
8380     fi
8381   fi
8382   $RM conftest*
8383
8384fi
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8386$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8387
8388if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8389    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8390else
8391    :
8392fi
8393
8394fi
8395
8396
8397
8398
8399
8400
8401  lt_prog_compiler_wl=
8402lt_prog_compiler_pic=
8403lt_prog_compiler_static=
8404
8405
8406  if test yes = "$GCC"; then
8407    lt_prog_compiler_wl='-Wl,'
8408    lt_prog_compiler_static='-static'
8409
8410    case $host_os in
8411      aix*)
8412      # All AIX code is PIC.
8413      if test ia64 = "$host_cpu"; then
8414	# AIX 5 now supports IA64 processor
8415	lt_prog_compiler_static='-Bstatic'
8416      fi
8417      lt_prog_compiler_pic='-fPIC'
8418      ;;
8419
8420    amigaos*)
8421      case $host_cpu in
8422      powerpc)
8423            # see comment about AmigaOS4 .so support
8424            lt_prog_compiler_pic='-fPIC'
8425        ;;
8426      m68k)
8427            # FIXME: we need at least 68020 code to build shared libraries, but
8428            # adding the '-m68020' flag to GCC prevents building anything better,
8429            # like '-m68040'.
8430            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8431        ;;
8432      esac
8433      ;;
8434
8435    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8436      # PIC is the default for these OSes.
8437      ;;
8438
8439    mingw* | cygwin* | pw32* | os2* | cegcc*)
8440      # This hack is so that the source file can tell whether it is being
8441      # built for inclusion in a dll (and should export symbols for example).
8442      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8443      # (--disable-auto-import) libraries
8444      lt_prog_compiler_pic='-DDLL_EXPORT'
8445      case $host_os in
8446      os2*)
8447	lt_prog_compiler_static='$wl-static'
8448	;;
8449      esac
8450      ;;
8451
8452    darwin* | rhapsody*)
8453      # PIC is the default on this platform
8454      # Common symbols not allowed in MH_DYLIB files
8455      lt_prog_compiler_pic='-fno-common'
8456      ;;
8457
8458    haiku*)
8459      # PIC is the default for Haiku.
8460      # The "-static" flag exists, but is broken.
8461      lt_prog_compiler_static=
8462      ;;
8463
8464    hpux*)
8465      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8466      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8467      # sets the default TLS model and affects inlining.
8468      case $host_cpu in
8469      hppa*64*)
8470	# +Z the default
8471	;;
8472      *)
8473	lt_prog_compiler_pic='-fPIC'
8474	;;
8475      esac
8476      ;;
8477
8478    interix[3-9]*)
8479      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8480      # Instead, we relocate shared libraries at runtime.
8481      ;;
8482
8483    msdosdjgpp*)
8484      # Just because we use GCC doesn't mean we suddenly get shared libraries
8485      # on systems that don't support them.
8486      lt_prog_compiler_can_build_shared=no
8487      enable_shared=no
8488      ;;
8489
8490    *nto* | *qnx*)
8491      # QNX uses GNU C++, but need to define -shared option too, otherwise
8492      # it will coredump.
8493      lt_prog_compiler_pic='-fPIC -shared'
8494      ;;
8495
8496    sysv4*MP*)
8497      if test -d /usr/nec; then
8498	lt_prog_compiler_pic=-Kconform_pic
8499      fi
8500      ;;
8501
8502    *)
8503      lt_prog_compiler_pic='-fPIC'
8504      ;;
8505    esac
8506
8507    case $cc_basename in
8508    nvcc*) # Cuda Compiler Driver 2.2
8509      lt_prog_compiler_wl='-Xlinker '
8510      if test -n "$lt_prog_compiler_pic"; then
8511        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8512      fi
8513      ;;
8514    esac
8515  else
8516    # PORTME Check for flag to pass linker flags through the system compiler.
8517    case $host_os in
8518    aix*)
8519      lt_prog_compiler_wl='-Wl,'
8520      if test ia64 = "$host_cpu"; then
8521	# AIX 5 now supports IA64 processor
8522	lt_prog_compiler_static='-Bstatic'
8523      else
8524	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8525      fi
8526      ;;
8527
8528    darwin* | rhapsody*)
8529      # PIC is the default on this platform
8530      # Common symbols not allowed in MH_DYLIB files
8531      lt_prog_compiler_pic='-fno-common'
8532      case $cc_basename in
8533      nagfor*)
8534        # NAG Fortran compiler
8535        lt_prog_compiler_wl='-Wl,-Wl,,'
8536        lt_prog_compiler_pic='-PIC'
8537        lt_prog_compiler_static='-Bstatic'
8538        ;;
8539      esac
8540      ;;
8541
8542    mingw* | cygwin* | pw32* | os2* | cegcc*)
8543      # This hack is so that the source file can tell whether it is being
8544      # built for inclusion in a dll (and should export symbols for example).
8545      lt_prog_compiler_pic='-DDLL_EXPORT'
8546      case $host_os in
8547      os2*)
8548	lt_prog_compiler_static='$wl-static'
8549	;;
8550      esac
8551      ;;
8552
8553    hpux9* | hpux10* | hpux11*)
8554      lt_prog_compiler_wl='-Wl,'
8555      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8556      # not for PA HP-UX.
8557      case $host_cpu in
8558      hppa*64*|ia64*)
8559	# +Z the default
8560	;;
8561      *)
8562	lt_prog_compiler_pic='+Z'
8563	;;
8564      esac
8565      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8566      lt_prog_compiler_static='$wl-a ${wl}archive'
8567      ;;
8568
8569    irix5* | irix6* | nonstopux*)
8570      lt_prog_compiler_wl='-Wl,'
8571      # PIC (with -KPIC) is the default.
8572      lt_prog_compiler_static='-non_shared'
8573      ;;
8574
8575    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8576      case $cc_basename in
8577      # old Intel for x86_64, which still supported -KPIC.
8578      ecc*)
8579	lt_prog_compiler_wl='-Wl,'
8580	lt_prog_compiler_pic='-KPIC'
8581	lt_prog_compiler_static='-static'
8582        ;;
8583      # icc used to be incompatible with GCC.
8584      # ICC 10 doesn't accept -KPIC any more.
8585      icc* | ifort*)
8586	lt_prog_compiler_wl='-Wl,'
8587	lt_prog_compiler_pic='-fPIC'
8588	lt_prog_compiler_static='-static'
8589        ;;
8590      # Lahey Fortran 8.1.
8591      lf95*)
8592	lt_prog_compiler_wl='-Wl,'
8593	lt_prog_compiler_pic='--shared'
8594	lt_prog_compiler_static='--static'
8595	;;
8596      nagfor*)
8597	# NAG Fortran compiler
8598	lt_prog_compiler_wl='-Wl,-Wl,,'
8599	lt_prog_compiler_pic='-PIC'
8600	lt_prog_compiler_static='-Bstatic'
8601	;;
8602      tcc*)
8603	# Fabrice Bellard et al's Tiny C Compiler
8604	lt_prog_compiler_wl='-Wl,'
8605	lt_prog_compiler_pic='-fPIC'
8606	lt_prog_compiler_static='-static'
8607	;;
8608      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8609        # Portland Group compilers (*not* the Pentium gcc compiler,
8610	# which looks to be a dead project)
8611	lt_prog_compiler_wl='-Wl,'
8612	lt_prog_compiler_pic='-fpic'
8613	lt_prog_compiler_static='-Bstatic'
8614        ;;
8615      ccc*)
8616        lt_prog_compiler_wl='-Wl,'
8617        # All Alpha code is PIC.
8618        lt_prog_compiler_static='-non_shared'
8619        ;;
8620      xl* | bgxl* | bgf* | mpixl*)
8621	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8622	lt_prog_compiler_wl='-Wl,'
8623	lt_prog_compiler_pic='-qpic'
8624	lt_prog_compiler_static='-qstaticlink'
8625	;;
8626      *)
8627	case `$CC -V 2>&1 | sed 5q` in
8628	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8629	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8630	  lt_prog_compiler_pic='-KPIC'
8631	  lt_prog_compiler_static='-Bstatic'
8632	  lt_prog_compiler_wl=''
8633	  ;;
8634	*Sun\ F* | *Sun*Fortran*)
8635	  lt_prog_compiler_pic='-KPIC'
8636	  lt_prog_compiler_static='-Bstatic'
8637	  lt_prog_compiler_wl='-Qoption ld '
8638	  ;;
8639	*Sun\ C*)
8640	  # Sun C 5.9
8641	  lt_prog_compiler_pic='-KPIC'
8642	  lt_prog_compiler_static='-Bstatic'
8643	  lt_prog_compiler_wl='-Wl,'
8644	  ;;
8645        *Intel*\ [CF]*Compiler*)
8646	  lt_prog_compiler_wl='-Wl,'
8647	  lt_prog_compiler_pic='-fPIC'
8648	  lt_prog_compiler_static='-static'
8649	  ;;
8650	*Portland\ Group*)
8651	  lt_prog_compiler_wl='-Wl,'
8652	  lt_prog_compiler_pic='-fpic'
8653	  lt_prog_compiler_static='-Bstatic'
8654	  ;;
8655	esac
8656	;;
8657      esac
8658      ;;
8659
8660    newsos6)
8661      lt_prog_compiler_pic='-KPIC'
8662      lt_prog_compiler_static='-Bstatic'
8663      ;;
8664
8665    *nto* | *qnx*)
8666      # QNX uses GNU C++, but need to define -shared option too, otherwise
8667      # it will coredump.
8668      lt_prog_compiler_pic='-fPIC -shared'
8669      ;;
8670
8671    osf3* | osf4* | osf5*)
8672      lt_prog_compiler_wl='-Wl,'
8673      # All OSF/1 code is PIC.
8674      lt_prog_compiler_static='-non_shared'
8675      ;;
8676
8677    rdos*)
8678      lt_prog_compiler_static='-non_shared'
8679      ;;
8680
8681    solaris*)
8682      lt_prog_compiler_pic='-KPIC'
8683      lt_prog_compiler_static='-Bstatic'
8684      case $cc_basename in
8685      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8686	lt_prog_compiler_wl='-Qoption ld ';;
8687      *)
8688	lt_prog_compiler_wl='-Wl,';;
8689      esac
8690      ;;
8691
8692    sunos4*)
8693      lt_prog_compiler_wl='-Qoption ld '
8694      lt_prog_compiler_pic='-PIC'
8695      lt_prog_compiler_static='-Bstatic'
8696      ;;
8697
8698    sysv4 | sysv4.2uw2* | sysv4.3*)
8699      lt_prog_compiler_wl='-Wl,'
8700      lt_prog_compiler_pic='-KPIC'
8701      lt_prog_compiler_static='-Bstatic'
8702      ;;
8703
8704    sysv4*MP*)
8705      if test -d /usr/nec; then
8706	lt_prog_compiler_pic='-Kconform_pic'
8707	lt_prog_compiler_static='-Bstatic'
8708      fi
8709      ;;
8710
8711    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8712      lt_prog_compiler_wl='-Wl,'
8713      lt_prog_compiler_pic='-KPIC'
8714      lt_prog_compiler_static='-Bstatic'
8715      ;;
8716
8717    unicos*)
8718      lt_prog_compiler_wl='-Wl,'
8719      lt_prog_compiler_can_build_shared=no
8720      ;;
8721
8722    uts4*)
8723      lt_prog_compiler_pic='-pic'
8724      lt_prog_compiler_static='-Bstatic'
8725      ;;
8726
8727    *)
8728      lt_prog_compiler_can_build_shared=no
8729      ;;
8730    esac
8731  fi
8732
8733case $host_os in
8734  # For platforms that do not support PIC, -DPIC is meaningless:
8735  *djgpp*)
8736    lt_prog_compiler_pic=
8737    ;;
8738  *)
8739    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8740    ;;
8741esac
8742
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8744$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8745if ${lt_cv_prog_compiler_pic+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8749fi
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8751$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8752lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8753
8754#
8755# Check to make sure the PIC flag actually works.
8756#
8757if test -n "$lt_prog_compiler_pic"; then
8758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8759$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8760if ${lt_cv_prog_compiler_pic_works+:} false; then :
8761  $as_echo_n "(cached) " >&6
8762else
8763  lt_cv_prog_compiler_pic_works=no
8764   ac_outfile=conftest.$ac_objext
8765   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8766   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8767   # Insert the option either (1) after the last *FLAGS variable, or
8768   # (2) before a word containing "conftest.", or (3) at the end.
8769   # Note that $ac_compile itself does not contain backslashes and begins
8770   # with a dollar sign (not a hyphen), so the echo should work correctly.
8771   # The option is referenced via a variable to avoid confusing sed.
8772   lt_compile=`echo "$ac_compile" | $SED \
8773   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8774   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775   -e 's:$: $lt_compiler_flag:'`
8776   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8777   (eval "$lt_compile" 2>conftest.err)
8778   ac_status=$?
8779   cat conftest.err >&5
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   if (exit $ac_status) && test -s "$ac_outfile"; then
8782     # The compiler can only warn and ignore the option if not recognized
8783     # So say no if there are warnings other than the usual output.
8784     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8785     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8786     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8787       lt_cv_prog_compiler_pic_works=yes
8788     fi
8789   fi
8790   $RM conftest*
8791
8792fi
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8794$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8795
8796if test yes = "$lt_cv_prog_compiler_pic_works"; then
8797    case $lt_prog_compiler_pic in
8798     "" | " "*) ;;
8799     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8800     esac
8801else
8802    lt_prog_compiler_pic=
8803     lt_prog_compiler_can_build_shared=no
8804fi
8805
8806fi
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818#
8819# Check to make sure the static flag actually works.
8820#
8821wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8823$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8824if ${lt_cv_prog_compiler_static_works+:} false; then :
8825  $as_echo_n "(cached) " >&6
8826else
8827  lt_cv_prog_compiler_static_works=no
8828   save_LDFLAGS=$LDFLAGS
8829   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8830   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8831   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8832     # The linker can only warn and ignore the option if not recognized
8833     # So say no if there are warnings
8834     if test -s conftest.err; then
8835       # Append any errors to the config.log.
8836       cat conftest.err 1>&5
8837       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8838       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8839       if diff conftest.exp conftest.er2 >/dev/null; then
8840         lt_cv_prog_compiler_static_works=yes
8841       fi
8842     else
8843       lt_cv_prog_compiler_static_works=yes
8844     fi
8845   fi
8846   $RM -r conftest*
8847   LDFLAGS=$save_LDFLAGS
8848
8849fi
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8851$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8852
8853if test yes = "$lt_cv_prog_compiler_static_works"; then
8854    :
8855else
8856    lt_prog_compiler_static=
8857fi
8858
8859
8860
8861
8862
8863
8864
8865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8866$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8867if ${lt_cv_prog_compiler_c_o+:} false; then :
8868  $as_echo_n "(cached) " >&6
8869else
8870  lt_cv_prog_compiler_c_o=no
8871   $RM -r conftest 2>/dev/null
8872   mkdir conftest
8873   cd conftest
8874   mkdir out
8875   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8876
8877   lt_compiler_flag="-o out/conftest2.$ac_objext"
8878   # Insert the option either (1) after the last *FLAGS variable, or
8879   # (2) before a word containing "conftest.", or (3) at the end.
8880   # Note that $ac_compile itself does not contain backslashes and begins
8881   # with a dollar sign (not a hyphen), so the echo should work correctly.
8882   lt_compile=`echo "$ac_compile" | $SED \
8883   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8884   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8885   -e 's:$: $lt_compiler_flag:'`
8886   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8887   (eval "$lt_compile" 2>out/conftest.err)
8888   ac_status=$?
8889   cat out/conftest.err >&5
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8892   then
8893     # The compiler can only warn and ignore the option if not recognized
8894     # So say no if there are warnings
8895     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8896     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8897     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8898       lt_cv_prog_compiler_c_o=yes
8899     fi
8900   fi
8901   chmod u+w . 2>&5
8902   $RM conftest*
8903   # SGI C++ compiler will create directory out/ii_files/ for
8904   # template instantiation
8905   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8906   $RM out/* && rmdir out
8907   cd ..
8908   $RM -r conftest
8909   $RM conftest*
8910
8911fi
8912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8913$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8914
8915
8916
8917
8918
8919
8920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8921$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8922if ${lt_cv_prog_compiler_c_o+:} false; then :
8923  $as_echo_n "(cached) " >&6
8924else
8925  lt_cv_prog_compiler_c_o=no
8926   $RM -r conftest 2>/dev/null
8927   mkdir conftest
8928   cd conftest
8929   mkdir out
8930   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931
8932   lt_compiler_flag="-o out/conftest2.$ac_objext"
8933   # Insert the option either (1) after the last *FLAGS variable, or
8934   # (2) before a word containing "conftest.", or (3) at the end.
8935   # Note that $ac_compile itself does not contain backslashes and begins
8936   # with a dollar sign (not a hyphen), so the echo should work correctly.
8937   lt_compile=`echo "$ac_compile" | $SED \
8938   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8939   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8940   -e 's:$: $lt_compiler_flag:'`
8941   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8942   (eval "$lt_compile" 2>out/conftest.err)
8943   ac_status=$?
8944   cat out/conftest.err >&5
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8947   then
8948     # The compiler can only warn and ignore the option if not recognized
8949     # So say no if there are warnings
8950     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8951     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8952     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8953       lt_cv_prog_compiler_c_o=yes
8954     fi
8955   fi
8956   chmod u+w . 2>&5
8957   $RM conftest*
8958   # SGI C++ compiler will create directory out/ii_files/ for
8959   # template instantiation
8960   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8961   $RM out/* && rmdir out
8962   cd ..
8963   $RM -r conftest
8964   $RM conftest*
8965
8966fi
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8968$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8969
8970
8971
8972
8973hard_links=nottested
8974if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8975  # do not overwrite the value of need_locks provided by the user
8976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8977$as_echo_n "checking if we can lock with hard links... " >&6; }
8978  hard_links=yes
8979  $RM conftest*
8980  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8981  touch conftest.a
8982  ln conftest.a conftest.b 2>&5 || hard_links=no
8983  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8985$as_echo "$hard_links" >&6; }
8986  if test no = "$hard_links"; then
8987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8988$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8989    need_locks=warn
8990  fi
8991else
8992  need_locks=no
8993fi
8994
8995
8996
8997
8998
8999
9000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9001$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9002
9003  runpath_var=
9004  allow_undefined_flag=
9005  always_export_symbols=no
9006  archive_cmds=
9007  archive_expsym_cmds=
9008  compiler_needs_object=no
9009  enable_shared_with_static_runtimes=no
9010  export_dynamic_flag_spec=
9011  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9012  hardcode_automatic=no
9013  hardcode_direct=no
9014  hardcode_direct_absolute=no
9015  hardcode_libdir_flag_spec=
9016  hardcode_libdir_separator=
9017  hardcode_minus_L=no
9018  hardcode_shlibpath_var=unsupported
9019  inherit_rpath=no
9020  link_all_deplibs=unknown
9021  module_cmds=
9022  module_expsym_cmds=
9023  old_archive_from_new_cmds=
9024  old_archive_from_expsyms_cmds=
9025  thread_safe_flag_spec=
9026  whole_archive_flag_spec=
9027  # include_expsyms should be a list of space-separated symbols to be *always*
9028  # included in the symbol list
9029  include_expsyms=
9030  # exclude_expsyms can be an extended regexp of symbols to exclude
9031  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9032  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9033  # as well as any symbol that contains 'd'.
9034  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9035  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9036  # platforms (ab)use it in PIC code, but their linkers get confused if
9037  # the symbol is explicitly referenced.  Since portable code cannot
9038  # rely on this symbol name, it's probably fine to never include it in
9039  # preloaded symbol tables.
9040  # Exclude shared library initialization/finalization symbols.
9041  extract_expsyms_cmds=
9042
9043  case $host_os in
9044  cygwin* | mingw* | pw32* | cegcc*)
9045    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9046    # When not using gcc, we currently assume that we are using
9047    # Microsoft Visual C++.
9048    if test yes != "$GCC"; then
9049      with_gnu_ld=no
9050    fi
9051    ;;
9052  interix*)
9053    # we just hope/assume this is gcc and not c89 (= MSVC++)
9054    with_gnu_ld=yes
9055    ;;
9056  openbsd* | bitrig*)
9057    with_gnu_ld=no
9058    ;;
9059  linux* | k*bsd*-gnu | gnu*)
9060    link_all_deplibs=no
9061    ;;
9062  esac
9063
9064  ld_shlibs=yes
9065
9066  # On some targets, GNU ld is compatible enough with the native linker
9067  # that we're better off using the native interface for both.
9068  lt_use_gnu_ld_interface=no
9069  if test yes = "$with_gnu_ld"; then
9070    case $host_os in
9071      aix*)
9072	# The AIX port of GNU ld has always aspired to compatibility
9073	# with the native linker.  However, as the warning in the GNU ld
9074	# block says, versions before 2.19.5* couldn't really create working
9075	# shared libraries, regardless of the interface used.
9076	case `$LD -v 2>&1` in
9077	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9078	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9079	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9080	  *)
9081	    lt_use_gnu_ld_interface=yes
9082	    ;;
9083	esac
9084	;;
9085      *)
9086	lt_use_gnu_ld_interface=yes
9087	;;
9088    esac
9089  fi
9090
9091  if test yes = "$lt_use_gnu_ld_interface"; then
9092    # If archive_cmds runs LD, not CC, wlarc should be empty
9093    wlarc='$wl'
9094
9095    # Set some defaults for GNU ld with shared library support. These
9096    # are reset later if shared libraries are not supported. Putting them
9097    # here allows them to be overridden if necessary.
9098    runpath_var=LD_RUN_PATH
9099    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9100    export_dynamic_flag_spec='$wl--export-dynamic'
9101    # ancient GNU ld didn't support --whole-archive et. al.
9102    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9103      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9104    else
9105      whole_archive_flag_spec=
9106    fi
9107    supports_anon_versioning=no
9108    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9109      *GNU\ gold*) supports_anon_versioning=yes ;;
9110      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9111      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9112      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9113      *\ 2.11.*) ;; # other 2.11 versions
9114      *) supports_anon_versioning=yes ;;
9115    esac
9116
9117    # See if GNU ld supports shared libraries.
9118    case $host_os in
9119    aix[3-9]*)
9120      # On AIX/PPC, the GNU linker is very broken
9121      if test ia64 != "$host_cpu"; then
9122	ld_shlibs=no
9123	cat <<_LT_EOF 1>&2
9124
9125*** Warning: the GNU linker, at least up to release 2.19, is reported
9126*** to be unable to reliably create shared libraries on AIX.
9127*** Therefore, libtool is disabling shared libraries support.  If you
9128*** really care for shared libraries, you may want to install binutils
9129*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9130*** You will then need to restart the configuration process.
9131
9132_LT_EOF
9133      fi
9134      ;;
9135
9136    amigaos*)
9137      case $host_cpu in
9138      powerpc)
9139            # see comment about AmigaOS4 .so support
9140            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9141            archive_expsym_cmds=''
9142        ;;
9143      m68k)
9144            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)'
9145            hardcode_libdir_flag_spec='-L$libdir'
9146            hardcode_minus_L=yes
9147        ;;
9148      esac
9149      ;;
9150
9151    beos*)
9152      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9153	allow_undefined_flag=unsupported
9154	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9155	# support --undefined.  This deserves some investigation.  FIXME
9156	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9157      else
9158	ld_shlibs=no
9159      fi
9160      ;;
9161
9162    cygwin* | mingw* | pw32* | cegcc*)
9163      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9164      # as there is no search path for DLLs.
9165      hardcode_libdir_flag_spec='-L$libdir'
9166      export_dynamic_flag_spec='$wl--export-all-symbols'
9167      allow_undefined_flag=unsupported
9168      always_export_symbols=no
9169      enable_shared_with_static_runtimes=yes
9170      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9171      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9172
9173      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9174        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9175	# If the export-symbols file already is a .def file, use it as
9176	# is; otherwise, prepend EXPORTS...
9177	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9178          cp $export_symbols $output_objdir/$soname.def;
9179        else
9180          echo EXPORTS > $output_objdir/$soname.def;
9181          cat $export_symbols >> $output_objdir/$soname.def;
9182        fi~
9183        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9184      else
9185	ld_shlibs=no
9186      fi
9187      ;;
9188
9189    haiku*)
9190      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9191      link_all_deplibs=yes
9192      ;;
9193
9194    os2*)
9195      hardcode_libdir_flag_spec='-L$libdir'
9196      hardcode_minus_L=yes
9197      allow_undefined_flag=unsupported
9198      shrext_cmds=.dll
9199      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9200	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9201	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9202	$ECHO EXPORTS >> $output_objdir/$libname.def~
9203	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9204	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9205	emximp -o $lib $output_objdir/$libname.def'
9206      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9207	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9208	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9209	$ECHO EXPORTS >> $output_objdir/$libname.def~
9210	prefix_cmds="$SED"~
9211	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9212	  prefix_cmds="$prefix_cmds -e 1d";
9213	fi~
9214	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9215	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9216	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9217	emximp -o $lib $output_objdir/$libname.def'
9218      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9219      enable_shared_with_static_runtimes=yes
9220      ;;
9221
9222    interix[3-9]*)
9223      hardcode_direct=no
9224      hardcode_shlibpath_var=no
9225      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9226      export_dynamic_flag_spec='$wl-E'
9227      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9228      # Instead, shared libraries are loaded at an image base (0x10000000 by
9229      # default) and relocated if they conflict, which is a slow very memory
9230      # consuming and fragmenting process.  To avoid this, we pick a random,
9231      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9232      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9233      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9234      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'
9235      ;;
9236
9237    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9238      tmp_diet=no
9239      if test linux-dietlibc = "$host_os"; then
9240	case $cc_basename in
9241	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9242	esac
9243      fi
9244      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9245	 && test no = "$tmp_diet"
9246      then
9247	tmp_addflag=' $pic_flag'
9248	tmp_sharedflag='-shared'
9249	case $cc_basename,$host_cpu in
9250        pgcc*)				# Portland Group C compiler
9251	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9252	  tmp_addflag=' $pic_flag'
9253	  ;;
9254	pgf77* | pgf90* | pgf95* | pgfortran*)
9255					# Portland Group f77 and f90 compilers
9256	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9257	  tmp_addflag=' $pic_flag -Mnomain' ;;
9258	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9259	  tmp_addflag=' -i_dynamic' ;;
9260	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9261	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9262	ifc* | ifort*)			# Intel Fortran compiler
9263	  tmp_addflag=' -nofor_main' ;;
9264	lf95*)				# Lahey Fortran 8.1
9265	  whole_archive_flag_spec=
9266	  tmp_sharedflag='--shared' ;;
9267        nagfor*)                        # NAGFOR 5.3
9268          tmp_sharedflag='-Wl,-shared' ;;
9269	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9270	  tmp_sharedflag='-qmkshrobj'
9271	  tmp_addflag= ;;
9272	nvcc*)	# Cuda Compiler Driver 2.2
9273	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9274	  compiler_needs_object=yes
9275	  ;;
9276	esac
9277	case `$CC -V 2>&1 | sed 5q` in
9278	*Sun\ C*)			# Sun C 5.9
9279	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9280	  compiler_needs_object=yes
9281	  tmp_sharedflag='-G' ;;
9282	*Sun\ F*)			# Sun Fortran 8.3
9283	  tmp_sharedflag='-G' ;;
9284	esac
9285	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9286
9287        if test yes = "$supports_anon_versioning"; then
9288          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9289            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9290            echo "local: *; };" >> $output_objdir/$libname.ver~
9291            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9292        fi
9293
9294	case $cc_basename in
9295	tcc*)
9296	  export_dynamic_flag_spec='-rdynamic'
9297	  ;;
9298	xlf* | bgf* | bgxlf* | mpixlf*)
9299	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9300	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9301	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9302	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9303	  if test yes = "$supports_anon_versioning"; then
9304	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9305              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9306              echo "local: *; };" >> $output_objdir/$libname.ver~
9307              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9308	  fi
9309	  ;;
9310	esac
9311      else
9312        ld_shlibs=no
9313      fi
9314      ;;
9315
9316    netbsd* | netbsdelf*-gnu)
9317      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9318	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9319	wlarc=
9320      else
9321	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9322	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9323      fi
9324      ;;
9325
9326    solaris*)
9327      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9328	ld_shlibs=no
9329	cat <<_LT_EOF 1>&2
9330
9331*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9332*** create shared libraries on Solaris systems.  Therefore, libtool
9333*** is disabling shared libraries support.  We urge you to upgrade GNU
9334*** binutils to release 2.9.1 or newer.  Another option is to modify
9335*** your PATH or compiler configuration so that the native linker is
9336*** used, and then restart.
9337
9338_LT_EOF
9339      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9340	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9341	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9342      else
9343	ld_shlibs=no
9344      fi
9345      ;;
9346
9347    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9348      case `$LD -v 2>&1` in
9349        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9350	ld_shlibs=no
9351	cat <<_LT_EOF 1>&2
9352
9353*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9354*** reliably create shared libraries on SCO systems.  Therefore, libtool
9355*** is disabling shared libraries support.  We urge you to upgrade GNU
9356*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9357*** your PATH or compiler configuration so that the native linker is
9358*** used, and then restart.
9359
9360_LT_EOF
9361	;;
9362	*)
9363	  # For security reasons, it is highly recommended that you always
9364	  # use absolute paths for naming shared libraries, and exclude the
9365	  # DT_RUNPATH tag from executables and libraries.  But doing so
9366	  # requires that you compile everything twice, which is a pain.
9367	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9369	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9370	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9371	  else
9372	    ld_shlibs=no
9373	  fi
9374	;;
9375      esac
9376      ;;
9377
9378    sunos4*)
9379      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9380      wlarc=
9381      hardcode_direct=yes
9382      hardcode_shlibpath_var=no
9383      ;;
9384
9385    *)
9386      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9387	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9388	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9389      else
9390	ld_shlibs=no
9391      fi
9392      ;;
9393    esac
9394
9395    if test no = "$ld_shlibs"; then
9396      runpath_var=
9397      hardcode_libdir_flag_spec=
9398      export_dynamic_flag_spec=
9399      whole_archive_flag_spec=
9400    fi
9401  else
9402    # PORTME fill in a description of your system's linker (not GNU ld)
9403    case $host_os in
9404    aix3*)
9405      allow_undefined_flag=unsupported
9406      always_export_symbols=yes
9407      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'
9408      # Note: this linker hardcodes the directories in LIBPATH if there
9409      # are no directories specified by -L.
9410      hardcode_minus_L=yes
9411      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9412	# Neither direct hardcoding nor static linking is supported with a
9413	# broken collect2.
9414	hardcode_direct=unsupported
9415      fi
9416      ;;
9417
9418    aix[4-9]*)
9419      if test ia64 = "$host_cpu"; then
9420	# On IA64, the linker does run time linking by default, so we don't
9421	# have to do anything special.
9422	aix_use_runtimelinking=no
9423	exp_sym_flag='-Bexport'
9424	no_entry_flag=
9425      else
9426	# If we're using GNU nm, then we don't want the "-C" option.
9427	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9428	# Without the "-l" option, or with the "-B" option, AIX nm treats
9429	# weak defined symbols like other global defined symbols, whereas
9430	# GNU nm marks them as "W".
9431	# While the 'weak' keyword is ignored in the Export File, we need
9432	# it in the Import File for the 'aix-soname' feature, so we have
9433	# to replace the "-B" option with "-P" for AIX nm.
9434	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9435	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9436	else
9437	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9438	fi
9439	aix_use_runtimelinking=no
9440
9441	# Test if we are trying to use run time linking or normal
9442	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9443	# have runtime linking enabled, and use it for executables.
9444	# For shared libraries, we enable/disable runtime linking
9445	# depending on the kind of the shared library created -
9446	# when "with_aix_soname,aix_use_runtimelinking" is:
9447	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9448	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9449	#            lib.a           static archive
9450	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9451	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9452	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9453	#            lib.a(lib.so.V) shared, rtl:no
9454	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9455	#            lib.a           static archive
9456	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9457	  for ld_flag in $LDFLAGS; do
9458	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9459	    aix_use_runtimelinking=yes
9460	    break
9461	  fi
9462	  done
9463	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9464	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9465	    # so we don't have lib.a shared libs to link our executables.
9466	    # We have to force runtime linking in this case.
9467	    aix_use_runtimelinking=yes
9468	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9469	  fi
9470	  ;;
9471	esac
9472
9473	exp_sym_flag='-bexport'
9474	no_entry_flag='-bnoentry'
9475      fi
9476
9477      # When large executables or shared objects are built, AIX ld can
9478      # have problems creating the table of contents.  If linking a library
9479      # or program results in "error TOC overflow" add -mminimal-toc to
9480      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9481      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9482
9483      archive_cmds=''
9484      hardcode_direct=yes
9485      hardcode_direct_absolute=yes
9486      hardcode_libdir_separator=':'
9487      link_all_deplibs=yes
9488      file_list_spec='$wl-f,'
9489      case $with_aix_soname,$aix_use_runtimelinking in
9490      aix,*) ;; # traditional, no import file
9491      svr4,* | *,yes) # use import file
9492	# The Import File defines what to hardcode.
9493	hardcode_direct=no
9494	hardcode_direct_absolute=no
9495	;;
9496      esac
9497
9498      if test yes = "$GCC"; then
9499	case $host_os in aix4.[012]|aix4.[012].*)
9500	# We only want to do this on AIX 4.2 and lower, the check
9501	# below for broken collect2 doesn't work under 4.3+
9502	  collect2name=`$CC -print-prog-name=collect2`
9503	  if test -f "$collect2name" &&
9504	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9505	  then
9506	  # We have reworked collect2
9507	  :
9508	  else
9509	  # We have old collect2
9510	  hardcode_direct=unsupported
9511	  # It fails to find uninstalled libraries when the uninstalled
9512	  # path is not listed in the libpath.  Setting hardcode_minus_L
9513	  # to unsupported forces relinking
9514	  hardcode_minus_L=yes
9515	  hardcode_libdir_flag_spec='-L$libdir'
9516	  hardcode_libdir_separator=
9517	  fi
9518	  ;;
9519	esac
9520	shared_flag='-shared'
9521	if test yes = "$aix_use_runtimelinking"; then
9522	  shared_flag="$shared_flag "'$wl-G'
9523	fi
9524	# Need to ensure runtime linking is disabled for the traditional
9525	# shared library, or the linker may eventually find shared libraries
9526	# /with/ Import File - we do not want to mix them.
9527	shared_flag_aix='-shared'
9528	shared_flag_svr4='-shared $wl-G'
9529      else
9530	# not using gcc
9531	if test ia64 = "$host_cpu"; then
9532	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9533	# chokes on -Wl,-G. The following line is correct:
9534	  shared_flag='-G'
9535	else
9536	  if test yes = "$aix_use_runtimelinking"; then
9537	    shared_flag='$wl-G'
9538	  else
9539	    shared_flag='$wl-bM:SRE'
9540	  fi
9541	  shared_flag_aix='$wl-bM:SRE'
9542	  shared_flag_svr4='$wl-G'
9543	fi
9544      fi
9545
9546      export_dynamic_flag_spec='$wl-bexpall'
9547      # It seems that -bexpall does not export symbols beginning with
9548      # underscore (_), so it is better to generate a list of symbols to export.
9549      always_export_symbols=yes
9550      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9551	# Warning - without using the other runtime loading flags (-brtl),
9552	# -berok will link without error, but may produce a broken library.
9553	allow_undefined_flag='-berok'
9554        # Determine the default libpath from the value encoded in an
9555        # empty executable.
9556        if test set = "${lt_cv_aix_libpath+set}"; then
9557  aix_libpath=$lt_cv_aix_libpath
9558else
9559  if ${lt_cv_aix_libpath_+:} false; then :
9560  $as_echo_n "(cached) " >&6
9561else
9562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h.  */
9564
9565int
9566main ()
9567{
9568
9569  ;
9570  return 0;
9571}
9572_ACEOF
9573if ac_fn_c_try_link "$LINENO"; then :
9574
9575  lt_aix_libpath_sed='
9576      /Import File Strings/,/^$/ {
9577	  /^0/ {
9578	      s/^0  *\([^ ]*\) *$/\1/
9579	      p
9580	  }
9581      }'
9582  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583  # Check for a 64-bit object if we didn't find anything.
9584  if test -z "$lt_cv_aix_libpath_"; then
9585    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586  fi
9587fi
9588rm -f core conftest.err conftest.$ac_objext \
9589    conftest$ac_exeext conftest.$ac_ext
9590  if test -z "$lt_cv_aix_libpath_"; then
9591    lt_cv_aix_libpath_=/usr/lib:/lib
9592  fi
9593
9594fi
9595
9596  aix_libpath=$lt_cv_aix_libpath_
9597fi
9598
9599        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9600        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9601      else
9602	if test ia64 = "$host_cpu"; then
9603	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9604	  allow_undefined_flag="-z nodefs"
9605	  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"
9606	else
9607	 # Determine the default libpath from the value encoded in an
9608	 # empty executable.
9609	 if test set = "${lt_cv_aix_libpath+set}"; then
9610  aix_libpath=$lt_cv_aix_libpath
9611else
9612  if ${lt_cv_aix_libpath_+:} false; then :
9613  $as_echo_n "(cached) " >&6
9614else
9615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616/* end confdefs.h.  */
9617
9618int
9619main ()
9620{
9621
9622  ;
9623  return 0;
9624}
9625_ACEOF
9626if ac_fn_c_try_link "$LINENO"; then :
9627
9628  lt_aix_libpath_sed='
9629      /Import File Strings/,/^$/ {
9630	  /^0/ {
9631	      s/^0  *\([^ ]*\) *$/\1/
9632	      p
9633	  }
9634      }'
9635  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636  # Check for a 64-bit object if we didn't find anything.
9637  if test -z "$lt_cv_aix_libpath_"; then
9638    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9639  fi
9640fi
9641rm -f core conftest.err conftest.$ac_objext \
9642    conftest$ac_exeext conftest.$ac_ext
9643  if test -z "$lt_cv_aix_libpath_"; then
9644    lt_cv_aix_libpath_=/usr/lib:/lib
9645  fi
9646
9647fi
9648
9649  aix_libpath=$lt_cv_aix_libpath_
9650fi
9651
9652	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9653	  # Warning - without using the other run time loading flags,
9654	  # -berok will link without error, but may produce a broken library.
9655	  no_undefined_flag=' $wl-bernotok'
9656	  allow_undefined_flag=' $wl-berok'
9657	  if test yes = "$with_gnu_ld"; then
9658	    # We only use this code for GNU lds that support --whole-archive.
9659	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9660	  else
9661	    # Exported symbols can be pulled into shared objects from archives
9662	    whole_archive_flag_spec='$convenience'
9663	  fi
9664	  archive_cmds_need_lc=yes
9665	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9666	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9667	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9668	  if test svr4 != "$with_aix_soname"; then
9669	    # This is similar to how AIX traditionally builds its shared libraries.
9670	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9671	  fi
9672	  if test aix != "$with_aix_soname"; then
9673	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9674	  else
9675	    # used by -dlpreopen to get the symbols
9676	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9677	  fi
9678	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9679	fi
9680      fi
9681      ;;
9682
9683    amigaos*)
9684      case $host_cpu in
9685      powerpc)
9686            # see comment about AmigaOS4 .so support
9687            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9688            archive_expsym_cmds=''
9689        ;;
9690      m68k)
9691            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)'
9692            hardcode_libdir_flag_spec='-L$libdir'
9693            hardcode_minus_L=yes
9694        ;;
9695      esac
9696      ;;
9697
9698    bsdi[45]*)
9699      export_dynamic_flag_spec=-rdynamic
9700      ;;
9701
9702    cygwin* | mingw* | pw32* | cegcc*)
9703      # When not using gcc, we currently assume that we are using
9704      # Microsoft Visual C++.
9705      # hardcode_libdir_flag_spec is actually meaningless, as there is
9706      # no search path for DLLs.
9707      case $cc_basename in
9708      cl*)
9709	# Native MSVC
9710	hardcode_libdir_flag_spec=' '
9711	allow_undefined_flag=unsupported
9712	always_export_symbols=yes
9713	file_list_spec='@'
9714	# Tell ltmain to make .lib files, not .a files.
9715	libext=lib
9716	# Tell ltmain to make .dll files, not .so files.
9717	shrext_cmds=.dll
9718	# FIXME: Setting linknames here is a bad hack.
9719	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9720	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9721            cp "$export_symbols" "$output_objdir/$soname.def";
9722            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9723          else
9724            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9725          fi~
9726          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9727          linknames='
9728	# The linker will not automatically build a static lib if we build a DLL.
9729	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9730	enable_shared_with_static_runtimes=yes
9731	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9732	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9733	# Don't use ranlib
9734	old_postinstall_cmds='chmod 644 $oldlib'
9735	postlink_cmds='lt_outputfile="@OUTPUT@"~
9736          lt_tool_outputfile="@TOOL_OUTPUT@"~
9737          case $lt_outputfile in
9738            *.exe|*.EXE) ;;
9739            *)
9740              lt_outputfile=$lt_outputfile.exe
9741              lt_tool_outputfile=$lt_tool_outputfile.exe
9742              ;;
9743          esac~
9744          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9745            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9746            $RM "$lt_outputfile.manifest";
9747          fi'
9748	;;
9749      *)
9750	# Assume MSVC wrapper
9751	hardcode_libdir_flag_spec=' '
9752	allow_undefined_flag=unsupported
9753	# Tell ltmain to make .lib files, not .a files.
9754	libext=lib
9755	# Tell ltmain to make .dll files, not .so files.
9756	shrext_cmds=.dll
9757	# FIXME: Setting linknames here is a bad hack.
9758	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9759	# The linker will automatically build a .lib file if we build a DLL.
9760	old_archive_from_new_cmds='true'
9761	# FIXME: Should let the user specify the lib program.
9762	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9763	enable_shared_with_static_runtimes=yes
9764	;;
9765      esac
9766      ;;
9767
9768    darwin* | rhapsody*)
9769
9770
9771  archive_cmds_need_lc=no
9772  hardcode_direct=no
9773  hardcode_automatic=yes
9774  hardcode_shlibpath_var=unsupported
9775  if test yes = "$lt_cv_ld_force_load"; then
9776    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9777
9778  else
9779    whole_archive_flag_spec=''
9780  fi
9781  link_all_deplibs=yes
9782  allow_undefined_flag=$_lt_dar_allow_undefined
9783  case $cc_basename in
9784     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9785     *) _lt_dar_can_shared=$GCC ;;
9786  esac
9787  if test yes = "$_lt_dar_can_shared"; then
9788    output_verbose_link_cmd=func_echo_all
9789    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9790    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9791    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"
9792    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"
9793
9794  else
9795  ld_shlibs=no
9796  fi
9797
9798      ;;
9799
9800    dgux*)
9801      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802      hardcode_libdir_flag_spec='-L$libdir'
9803      hardcode_shlibpath_var=no
9804      ;;
9805
9806    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9807    # support.  Future versions do this automatically, but an explicit c++rt0.o
9808    # does not break anything, and helps significantly (at the cost of a little
9809    # extra space).
9810    freebsd2.2*)
9811      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9812      hardcode_libdir_flag_spec='-R$libdir'
9813      hardcode_direct=yes
9814      hardcode_shlibpath_var=no
9815      ;;
9816
9817    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9818    freebsd2.*)
9819      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9820      hardcode_direct=yes
9821      hardcode_minus_L=yes
9822      hardcode_shlibpath_var=no
9823      ;;
9824
9825    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9826    freebsd* | dragonfly*)
9827      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9828      hardcode_libdir_flag_spec='-R$libdir'
9829      hardcode_direct=yes
9830      hardcode_shlibpath_var=no
9831      ;;
9832
9833    hpux9*)
9834      if test yes = "$GCC"; then
9835	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9836      else
9837	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9838      fi
9839      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9840      hardcode_libdir_separator=:
9841      hardcode_direct=yes
9842
9843      # hardcode_minus_L: Not really in the search PATH,
9844      # but as the default location of the library.
9845      hardcode_minus_L=yes
9846      export_dynamic_flag_spec='$wl-E'
9847      ;;
9848
9849    hpux10*)
9850      if test yes,no = "$GCC,$with_gnu_ld"; then
9851	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9852      else
9853	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9854      fi
9855      if test no = "$with_gnu_ld"; then
9856	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9857	hardcode_libdir_separator=:
9858	hardcode_direct=yes
9859	hardcode_direct_absolute=yes
9860	export_dynamic_flag_spec='$wl-E'
9861	# hardcode_minus_L: Not really in the search PATH,
9862	# but as the default location of the library.
9863	hardcode_minus_L=yes
9864      fi
9865      ;;
9866
9867    hpux11*)
9868      if test yes,no = "$GCC,$with_gnu_ld"; then
9869	case $host_cpu in
9870	hppa*64*)
9871	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9872	  ;;
9873	ia64*)
9874	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9875	  ;;
9876	*)
9877	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9878	  ;;
9879	esac
9880      else
9881	case $host_cpu in
9882	hppa*64*)
9883	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9884	  ;;
9885	ia64*)
9886	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9887	  ;;
9888	*)
9889
9890	  # Older versions of the 11.00 compiler do not understand -b yet
9891	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9892	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9893$as_echo_n "checking if $CC understands -b... " >&6; }
9894if ${lt_cv_prog_compiler__b+:} false; then :
9895  $as_echo_n "(cached) " >&6
9896else
9897  lt_cv_prog_compiler__b=no
9898   save_LDFLAGS=$LDFLAGS
9899   LDFLAGS="$LDFLAGS -b"
9900   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9901   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9902     # The linker can only warn and ignore the option if not recognized
9903     # So say no if there are warnings
9904     if test -s conftest.err; then
9905       # Append any errors to the config.log.
9906       cat conftest.err 1>&5
9907       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9908       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9909       if diff conftest.exp conftest.er2 >/dev/null; then
9910         lt_cv_prog_compiler__b=yes
9911       fi
9912     else
9913       lt_cv_prog_compiler__b=yes
9914     fi
9915   fi
9916   $RM -r conftest*
9917   LDFLAGS=$save_LDFLAGS
9918
9919fi
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9921$as_echo "$lt_cv_prog_compiler__b" >&6; }
9922
9923if test yes = "$lt_cv_prog_compiler__b"; then
9924    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9925else
9926    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9927fi
9928
9929	  ;;
9930	esac
9931      fi
9932      if test no = "$with_gnu_ld"; then
9933	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9934	hardcode_libdir_separator=:
9935
9936	case $host_cpu in
9937	hppa*64*|ia64*)
9938	  hardcode_direct=no
9939	  hardcode_shlibpath_var=no
9940	  ;;
9941	*)
9942	  hardcode_direct=yes
9943	  hardcode_direct_absolute=yes
9944	  export_dynamic_flag_spec='$wl-E'
9945
9946	  # hardcode_minus_L: Not really in the search PATH,
9947	  # but as the default location of the library.
9948	  hardcode_minus_L=yes
9949	  ;;
9950	esac
9951      fi
9952      ;;
9953
9954    irix5* | irix6* | nonstopux*)
9955      if test yes = "$GCC"; then
9956	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9957	# Try to use the -exported_symbol ld option, if it does not
9958	# work, assume that -exports_file does not work either and
9959	# implicitly export all symbols.
9960	# This should be the same for all languages, so no per-tag cache variable.
9961	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9962$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9963if ${lt_cv_irix_exported_symbol+:} false; then :
9964  $as_echo_n "(cached) " >&6
9965else
9966  save_LDFLAGS=$LDFLAGS
9967	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9968	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969/* end confdefs.h.  */
9970int foo (void) { return 0; }
9971_ACEOF
9972if ac_fn_c_try_link "$LINENO"; then :
9973  lt_cv_irix_exported_symbol=yes
9974else
9975  lt_cv_irix_exported_symbol=no
9976fi
9977rm -f core conftest.err conftest.$ac_objext \
9978    conftest$ac_exeext conftest.$ac_ext
9979           LDFLAGS=$save_LDFLAGS
9980fi
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9982$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9983	if test yes = "$lt_cv_irix_exported_symbol"; then
9984          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9985	fi
9986	link_all_deplibs=no
9987      else
9988	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9989	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9990      fi
9991      archive_cmds_need_lc='no'
9992      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9993      hardcode_libdir_separator=:
9994      inherit_rpath=yes
9995      link_all_deplibs=yes
9996      ;;
9997
9998    linux*)
9999      case $cc_basename in
10000      tcc*)
10001	# Fabrice Bellard et al's Tiny C Compiler
10002	ld_shlibs=yes
10003	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10004	;;
10005      esac
10006      ;;
10007
10008    netbsd* | netbsdelf*-gnu)
10009      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10010	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10011      else
10012	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10013      fi
10014      hardcode_libdir_flag_spec='-R$libdir'
10015      hardcode_direct=yes
10016      hardcode_shlibpath_var=no
10017      ;;
10018
10019    newsos6)
10020      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021      hardcode_direct=yes
10022      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10023      hardcode_libdir_separator=:
10024      hardcode_shlibpath_var=no
10025      ;;
10026
10027    *nto* | *qnx*)
10028      ;;
10029
10030    openbsd* | bitrig*)
10031      if test -f /usr/libexec/ld.so; then
10032	hardcode_direct=yes
10033	hardcode_shlibpath_var=no
10034	hardcode_direct_absolute=yes
10035	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10036	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10037	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10038	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10039	  export_dynamic_flag_spec='$wl-E'
10040	else
10041	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10043	fi
10044      else
10045	ld_shlibs=no
10046      fi
10047      ;;
10048
10049    os2*)
10050      hardcode_libdir_flag_spec='-L$libdir'
10051      hardcode_minus_L=yes
10052      allow_undefined_flag=unsupported
10053      shrext_cmds=.dll
10054      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10055	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10056	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10057	$ECHO EXPORTS >> $output_objdir/$libname.def~
10058	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10059	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10060	emximp -o $lib $output_objdir/$libname.def'
10061      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10062	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10063	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10064	$ECHO EXPORTS >> $output_objdir/$libname.def~
10065	prefix_cmds="$SED"~
10066	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10067	  prefix_cmds="$prefix_cmds -e 1d";
10068	fi~
10069	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10070	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10071	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10072	emximp -o $lib $output_objdir/$libname.def'
10073      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10074      enable_shared_with_static_runtimes=yes
10075      ;;
10076
10077    osf3*)
10078      if test yes = "$GCC"; then
10079	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10080	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10081      else
10082	allow_undefined_flag=' -expect_unresolved \*'
10083	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10084      fi
10085      archive_cmds_need_lc='no'
10086      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10087      hardcode_libdir_separator=:
10088      ;;
10089
10090    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10091      if test yes = "$GCC"; then
10092	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10093	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10094	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10095      else
10096	allow_undefined_flag=' -expect_unresolved \*'
10097	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10098	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~
10099          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10100
10101	# Both c and cxx compiler support -rpath directly
10102	hardcode_libdir_flag_spec='-rpath $libdir'
10103      fi
10104      archive_cmds_need_lc='no'
10105      hardcode_libdir_separator=:
10106      ;;
10107
10108    solaris*)
10109      no_undefined_flag=' -z defs'
10110      if test yes = "$GCC"; then
10111	wlarc='$wl'
10112	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10113	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10114          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10115      else
10116	case `$CC -V 2>&1` in
10117	*"Compilers 5.0"*)
10118	  wlarc=''
10119	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10121            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10122	  ;;
10123	*)
10124	  wlarc='$wl'
10125	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10126	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10127            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10128	  ;;
10129	esac
10130      fi
10131      hardcode_libdir_flag_spec='-R$libdir'
10132      hardcode_shlibpath_var=no
10133      case $host_os in
10134      solaris2.[0-5] | solaris2.[0-5].*) ;;
10135      *)
10136	# The compiler driver will combine and reorder linker options,
10137	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10138	# but is careful enough not to reorder.
10139	# Supported since Solaris 2.6 (maybe 2.5.1?)
10140	if test yes = "$GCC"; then
10141	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10142	else
10143	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10144	fi
10145	;;
10146      esac
10147      link_all_deplibs=yes
10148      ;;
10149
10150    sunos4*)
10151      if test sequent = "$host_vendor"; then
10152	# Use $CC to link under sequent, because it throws in some extra .o
10153	# files that make .init and .fini sections work.
10154	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10155      else
10156	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10157      fi
10158      hardcode_libdir_flag_spec='-L$libdir'
10159      hardcode_direct=yes
10160      hardcode_minus_L=yes
10161      hardcode_shlibpath_var=no
10162      ;;
10163
10164    sysv4)
10165      case $host_vendor in
10166	sni)
10167	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10168	  hardcode_direct=yes # is this really true???
10169	;;
10170	siemens)
10171	  ## LD is ld it makes a PLAMLIB
10172	  ## CC just makes a GrossModule.
10173	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10174	  reload_cmds='$CC -r -o $output$reload_objs'
10175	  hardcode_direct=no
10176        ;;
10177	motorola)
10178	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10180	;;
10181      esac
10182      runpath_var='LD_RUN_PATH'
10183      hardcode_shlibpath_var=no
10184      ;;
10185
10186    sysv4.3*)
10187      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188      hardcode_shlibpath_var=no
10189      export_dynamic_flag_spec='-Bexport'
10190      ;;
10191
10192    sysv4*MP*)
10193      if test -d /usr/nec; then
10194	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195	hardcode_shlibpath_var=no
10196	runpath_var=LD_RUN_PATH
10197	hardcode_runpath_var=yes
10198	ld_shlibs=yes
10199      fi
10200      ;;
10201
10202    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10203      no_undefined_flag='$wl-z,text'
10204      archive_cmds_need_lc=no
10205      hardcode_shlibpath_var=no
10206      runpath_var='LD_RUN_PATH'
10207
10208      if test yes = "$GCC"; then
10209	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211      else
10212	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214      fi
10215      ;;
10216
10217    sysv5* | sco3.2v5* | sco5v6*)
10218      # Note: We CANNOT use -z defs as we might desire, because we do not
10219      # link with -lc, and that would cause any symbols used from libc to
10220      # always be unresolved, which means just about no library would
10221      # ever link correctly.  If we're not using GNU ld we use -z text
10222      # though, which does catch some bad symbols but isn't as heavy-handed
10223      # as -z defs.
10224      no_undefined_flag='$wl-z,text'
10225      allow_undefined_flag='$wl-z,nodefs'
10226      archive_cmds_need_lc=no
10227      hardcode_shlibpath_var=no
10228      hardcode_libdir_flag_spec='$wl-R,$libdir'
10229      hardcode_libdir_separator=':'
10230      link_all_deplibs=yes
10231      export_dynamic_flag_spec='$wl-Bexport'
10232      runpath_var='LD_RUN_PATH'
10233
10234      if test yes = "$GCC"; then
10235	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237      else
10238	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240      fi
10241      ;;
10242
10243    uts4*)
10244      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245      hardcode_libdir_flag_spec='-L$libdir'
10246      hardcode_shlibpath_var=no
10247      ;;
10248
10249    *)
10250      ld_shlibs=no
10251      ;;
10252    esac
10253
10254    if test sni = "$host_vendor"; then
10255      case $host in
10256      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10257	export_dynamic_flag_spec='$wl-Blargedynsym'
10258	;;
10259      esac
10260    fi
10261  fi
10262
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10264$as_echo "$ld_shlibs" >&6; }
10265test no = "$ld_shlibs" && can_build_shared=no
10266
10267with_gnu_ld=$with_gnu_ld
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283#
10284# Do we need to explicitly link libc?
10285#
10286case "x$archive_cmds_need_lc" in
10287x|xyes)
10288  # Assume -lc should be added
10289  archive_cmds_need_lc=yes
10290
10291  if test yes,yes = "$GCC,$enable_shared"; then
10292    case $archive_cmds in
10293    *'~'*)
10294      # FIXME: we may have to deal with multi-command sequences.
10295      ;;
10296    '$CC '*)
10297      # Test whether the compiler implicitly links with -lc since on some
10298      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10299      # to ld, don't add -lc before -lgcc.
10300      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10301$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10302if ${lt_cv_archive_cmds_need_lc+:} false; then :
10303  $as_echo_n "(cached) " >&6
10304else
10305  $RM conftest*
10306	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10307
10308	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10309  (eval $ac_compile) 2>&5
10310  ac_status=$?
10311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10312  test $ac_status = 0; } 2>conftest.err; then
10313	  soname=conftest
10314	  lib=conftest
10315	  libobjs=conftest.$ac_objext
10316	  deplibs=
10317	  wl=$lt_prog_compiler_wl
10318	  pic_flag=$lt_prog_compiler_pic
10319	  compiler_flags=-v
10320	  linker_flags=-v
10321	  verstring=
10322	  output_objdir=.
10323	  libname=conftest
10324	  lt_save_allow_undefined_flag=$allow_undefined_flag
10325	  allow_undefined_flag=
10326	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10327  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10328  ac_status=$?
10329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10330  test $ac_status = 0; }
10331	  then
10332	    lt_cv_archive_cmds_need_lc=no
10333	  else
10334	    lt_cv_archive_cmds_need_lc=yes
10335	  fi
10336	  allow_undefined_flag=$lt_save_allow_undefined_flag
10337	else
10338	  cat conftest.err 1>&5
10339	fi
10340	$RM conftest*
10341
10342fi
10343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10344$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10345      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10346      ;;
10347    esac
10348  fi
10349  ;;
10350esac
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10504$as_echo_n "checking dynamic linker characteristics... " >&6; }
10505
10506if test yes = "$GCC"; then
10507  case $host_os in
10508    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10509    *) lt_awk_arg='/^libraries:/' ;;
10510  esac
10511  case $host_os in
10512    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10513    *) lt_sed_strip_eq='s|=/|/|g' ;;
10514  esac
10515  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10516  case $lt_search_path_spec in
10517  *\;*)
10518    # if the path contains ";" then we assume it to be the separator
10519    # otherwise default to the standard path separator (i.e. ":") - it is
10520    # assumed that no part of a normal pathname contains ";" but that should
10521    # okay in the real world where ";" in dirpaths is itself problematic.
10522    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10523    ;;
10524  *)
10525    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10526    ;;
10527  esac
10528  # Ok, now we have the path, separated by spaces, we can step through it
10529  # and add multilib dir if necessary...
10530  lt_tmp_lt_search_path_spec=
10531  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10532  # ...but if some path component already ends with the multilib dir we assume
10533  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10534  case "$lt_multi_os_dir; $lt_search_path_spec " in
10535  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10536    lt_multi_os_dir=
10537    ;;
10538  esac
10539  for lt_sys_path in $lt_search_path_spec; do
10540    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10541      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10542    elif test -n "$lt_multi_os_dir"; then
10543      test -d "$lt_sys_path" && \
10544	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10545    fi
10546  done
10547  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10548BEGIN {RS = " "; FS = "/|\n";} {
10549  lt_foo = "";
10550  lt_count = 0;
10551  for (lt_i = NF; lt_i > 0; lt_i--) {
10552    if ($lt_i != "" && $lt_i != ".") {
10553      if ($lt_i == "..") {
10554        lt_count++;
10555      } else {
10556        if (lt_count == 0) {
10557          lt_foo = "/" $lt_i lt_foo;
10558        } else {
10559          lt_count--;
10560        }
10561      }
10562    }
10563  }
10564  if (lt_foo != "") { lt_freq[lt_foo]++; }
10565  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10566}'`
10567  # AWK program above erroneously prepends '/' to C:/dos/paths
10568  # for these hosts.
10569  case $host_os in
10570    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10571      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10572  esac
10573  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10574else
10575  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10576fi
10577library_names_spec=
10578libname_spec='lib$name'
10579soname_spec=
10580shrext_cmds=.so
10581postinstall_cmds=
10582postuninstall_cmds=
10583finish_cmds=
10584finish_eval=
10585shlibpath_var=
10586shlibpath_overrides_runpath=unknown
10587version_type=none
10588dynamic_linker="$host_os ld.so"
10589sys_lib_dlsearch_path_spec="/lib /usr/lib"
10590need_lib_prefix=unknown
10591hardcode_into_libs=no
10592
10593# when you set need_version to no, make sure it does not cause -set_version
10594# flags to be left without arguments
10595need_version=unknown
10596
10597
10598
10599case $host_os in
10600aix3*)
10601  version_type=linux # correct to gnu/linux during the next big refactor
10602  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10603  shlibpath_var=LIBPATH
10604
10605  # AIX 3 has no versioning support, so we append a major version to the name.
10606  soname_spec='$libname$release$shared_ext$major'
10607  ;;
10608
10609aix[4-9]*)
10610  version_type=linux # correct to gnu/linux during the next big refactor
10611  need_lib_prefix=no
10612  need_version=no
10613  hardcode_into_libs=yes
10614  if test ia64 = "$host_cpu"; then
10615    # AIX 5 supports IA64
10616    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10617    shlibpath_var=LD_LIBRARY_PATH
10618  else
10619    # With GCC up to 2.95.x, collect2 would create an import file
10620    # for dependence libraries.  The import file would start with
10621    # the line '#! .'.  This would cause the generated library to
10622    # depend on '.', always an invalid library.  This was fixed in
10623    # development snapshots of GCC prior to 3.0.
10624    case $host_os in
10625      aix4 | aix4.[01] | aix4.[01].*)
10626      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10627	   echo ' yes '
10628	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10629	:
10630      else
10631	can_build_shared=no
10632      fi
10633      ;;
10634    esac
10635    # Using Import Files as archive members, it is possible to support
10636    # filename-based versioning of shared library archives on AIX. While
10637    # this would work for both with and without runtime linking, it will
10638    # prevent static linking of such archives. So we do filename-based
10639    # shared library versioning with .so extension only, which is used
10640    # when both runtime linking and shared linking is enabled.
10641    # Unfortunately, runtime linking may impact performance, so we do
10642    # not want this to be the default eventually. Also, we use the
10643    # versioned .so libs for executables only if there is the -brtl
10644    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10645    # To allow for filename-based versioning support, we need to create
10646    # libNAME.so.V as an archive file, containing:
10647    # *) an Import File, referring to the versioned filename of the
10648    #    archive as well as the shared archive member, telling the
10649    #    bitwidth (32 or 64) of that shared object, and providing the
10650    #    list of exported symbols of that shared object, eventually
10651    #    decorated with the 'weak' keyword
10652    # *) the shared object with the F_LOADONLY flag set, to really avoid
10653    #    it being seen by the linker.
10654    # At run time we better use the real file rather than another symlink,
10655    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10656
10657    case $with_aix_soname,$aix_use_runtimelinking in
10658    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10659    # soname into executable. Probably we can add versioning support to
10660    # collect2, so additional links can be useful in future.
10661    aix,yes) # traditional libtool
10662      dynamic_linker='AIX unversionable lib.so'
10663      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10664      # instead of lib<name>.a to let people know that these are not
10665      # typical AIX shared libraries.
10666      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10667      ;;
10668    aix,no) # traditional AIX only
10669      dynamic_linker='AIX lib.a(lib.so.V)'
10670      # We preserve .a as extension for shared libraries through AIX4.2
10671      # and later when we are not doing run time linking.
10672      library_names_spec='$libname$release.a $libname.a'
10673      soname_spec='$libname$release$shared_ext$major'
10674      ;;
10675    svr4,*) # full svr4 only
10676      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10677      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10678      # We do not specify a path in Import Files, so LIBPATH fires.
10679      shlibpath_overrides_runpath=yes
10680      ;;
10681    *,yes) # both, prefer svr4
10682      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10683      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10684      # unpreferred sharedlib libNAME.a needs extra handling
10685      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10686      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10687      # We do not specify a path in Import Files, so LIBPATH fires.
10688      shlibpath_overrides_runpath=yes
10689      ;;
10690    *,no) # both, prefer aix
10691      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10692      library_names_spec='$libname$release.a $libname.a'
10693      soname_spec='$libname$release$shared_ext$major'
10694      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10695      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10696      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10697      ;;
10698    esac
10699    shlibpath_var=LIBPATH
10700  fi
10701  ;;
10702
10703amigaos*)
10704  case $host_cpu in
10705  powerpc)
10706    # Since July 2007 AmigaOS4 officially supports .so libraries.
10707    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10708    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10709    ;;
10710  m68k)
10711    library_names_spec='$libname.ixlibrary $libname.a'
10712    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10713    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10714    ;;
10715  esac
10716  ;;
10717
10718beos*)
10719  library_names_spec='$libname$shared_ext'
10720  dynamic_linker="$host_os ld.so"
10721  shlibpath_var=LIBRARY_PATH
10722  ;;
10723
10724bsdi[45]*)
10725  version_type=linux # correct to gnu/linux during the next big refactor
10726  need_version=no
10727  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10728  soname_spec='$libname$release$shared_ext$major'
10729  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10730  shlibpath_var=LD_LIBRARY_PATH
10731  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10732  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10733  # the default ld.so.conf also contains /usr/contrib/lib and
10734  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10735  # libtool to hard-code these into programs
10736  ;;
10737
10738cygwin* | mingw* | pw32* | cegcc*)
10739  version_type=windows
10740  shrext_cmds=.dll
10741  need_version=no
10742  need_lib_prefix=no
10743
10744  case $GCC,$cc_basename in
10745  yes,*)
10746    # gcc
10747    library_names_spec='$libname.dll.a'
10748    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10749    postinstall_cmds='base_file=`basename \$file`~
10750      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10751      dldir=$destdir/`dirname \$dlpath`~
10752      test -d \$dldir || mkdir -p \$dldir~
10753      $install_prog $dir/$dlname \$dldir/$dlname~
10754      chmod a+x \$dldir/$dlname~
10755      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10756        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10757      fi'
10758    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10759      dlpath=$dir/\$dldll~
10760       $RM \$dlpath'
10761    shlibpath_overrides_runpath=yes
10762
10763    case $host_os in
10764    cygwin*)
10765      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10766      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10767
10768      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10769      ;;
10770    mingw* | cegcc*)
10771      # MinGW DLLs use traditional 'lib' prefix
10772      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10773      ;;
10774    pw32*)
10775      # pw32 DLLs use 'pw' prefix rather than 'lib'
10776      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10777      ;;
10778    esac
10779    dynamic_linker='Win32 ld.exe'
10780    ;;
10781
10782  *,cl*)
10783    # Native MSVC
10784    libname_spec='$name'
10785    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10786    library_names_spec='$libname.dll.lib'
10787
10788    case $build_os in
10789    mingw*)
10790      sys_lib_search_path_spec=
10791      lt_save_ifs=$IFS
10792      IFS=';'
10793      for lt_path in $LIB
10794      do
10795        IFS=$lt_save_ifs
10796        # Let DOS variable expansion print the short 8.3 style file name.
10797        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10798        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10799      done
10800      IFS=$lt_save_ifs
10801      # Convert to MSYS style.
10802      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10803      ;;
10804    cygwin*)
10805      # Convert to unix form, then to dos form, then back to unix form
10806      # but this time dos style (no spaces!) so that the unix form looks
10807      # like /cygdrive/c/PROGRA~1:/cygdr...
10808      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10809      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10810      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10811      ;;
10812    *)
10813      sys_lib_search_path_spec=$LIB
10814      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10815        # It is most probably a Windows format PATH.
10816        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10817      else
10818        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10819      fi
10820      # FIXME: find the short name or the path components, as spaces are
10821      # common. (e.g. "Program Files" -> "PROGRA~1")
10822      ;;
10823    esac
10824
10825    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10826    postinstall_cmds='base_file=`basename \$file`~
10827      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10828      dldir=$destdir/`dirname \$dlpath`~
10829      test -d \$dldir || mkdir -p \$dldir~
10830      $install_prog $dir/$dlname \$dldir/$dlname'
10831    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10832      dlpath=$dir/\$dldll~
10833       $RM \$dlpath'
10834    shlibpath_overrides_runpath=yes
10835    dynamic_linker='Win32 link.exe'
10836    ;;
10837
10838  *)
10839    # Assume MSVC wrapper
10840    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10841    dynamic_linker='Win32 ld.exe'
10842    ;;
10843  esac
10844  # FIXME: first we should search . and the directory the executable is in
10845  shlibpath_var=PATH
10846  ;;
10847
10848darwin* | rhapsody*)
10849  dynamic_linker="$host_os dyld"
10850  version_type=darwin
10851  need_lib_prefix=no
10852  need_version=no
10853  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10854  soname_spec='$libname$release$major$shared_ext'
10855  shlibpath_overrides_runpath=yes
10856  shlibpath_var=DYLD_LIBRARY_PATH
10857  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10858
10859  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10860  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10861  ;;
10862
10863dgux*)
10864  version_type=linux # correct to gnu/linux during the next big refactor
10865  need_lib_prefix=no
10866  need_version=no
10867  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10868  soname_spec='$libname$release$shared_ext$major'
10869  shlibpath_var=LD_LIBRARY_PATH
10870  ;;
10871
10872freebsd* | dragonfly*)
10873  # DragonFly does not have aout.  When/if they implement a new
10874  # versioning mechanism, adjust this.
10875  if test -x /usr/bin/objformat; then
10876    objformat=`/usr/bin/objformat`
10877  else
10878    case $host_os in
10879    freebsd[23].*) objformat=aout ;;
10880    *) objformat=elf ;;
10881    esac
10882  fi
10883  version_type=freebsd-$objformat
10884  case $version_type in
10885    freebsd-elf*)
10886      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10887      soname_spec='$libname$release$shared_ext$major'
10888      need_version=no
10889      need_lib_prefix=no
10890      ;;
10891    freebsd-*)
10892      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10893      need_version=yes
10894      ;;
10895  esac
10896  shlibpath_var=LD_LIBRARY_PATH
10897  case $host_os in
10898  freebsd2.*)
10899    shlibpath_overrides_runpath=yes
10900    ;;
10901  freebsd3.[01]* | freebsdelf3.[01]*)
10902    shlibpath_overrides_runpath=yes
10903    hardcode_into_libs=yes
10904    ;;
10905  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10906  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10907    shlibpath_overrides_runpath=no
10908    hardcode_into_libs=yes
10909    ;;
10910  *) # from 4.6 on, and DragonFly
10911    shlibpath_overrides_runpath=yes
10912    hardcode_into_libs=yes
10913    ;;
10914  esac
10915  ;;
10916
10917haiku*)
10918  version_type=linux # correct to gnu/linux during the next big refactor
10919  need_lib_prefix=no
10920  need_version=no
10921  dynamic_linker="$host_os runtime_loader"
10922  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10923  soname_spec='$libname$release$shared_ext$major'
10924  shlibpath_var=LIBRARY_PATH
10925  shlibpath_overrides_runpath=no
10926  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10927  hardcode_into_libs=yes
10928  ;;
10929
10930hpux9* | hpux10* | hpux11*)
10931  # Give a soname corresponding to the major version so that dld.sl refuses to
10932  # link against other versions.
10933  version_type=sunos
10934  need_lib_prefix=no
10935  need_version=no
10936  case $host_cpu in
10937  ia64*)
10938    shrext_cmds='.so'
10939    hardcode_into_libs=yes
10940    dynamic_linker="$host_os dld.so"
10941    shlibpath_var=LD_LIBRARY_PATH
10942    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10943    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10944    soname_spec='$libname$release$shared_ext$major'
10945    if test 32 = "$HPUX_IA64_MODE"; then
10946      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10947      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10948    else
10949      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10950      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10951    fi
10952    ;;
10953  hppa*64*)
10954    shrext_cmds='.sl'
10955    hardcode_into_libs=yes
10956    dynamic_linker="$host_os dld.sl"
10957    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10958    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10959    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10960    soname_spec='$libname$release$shared_ext$major'
10961    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10962    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10963    ;;
10964  *)
10965    shrext_cmds='.sl'
10966    dynamic_linker="$host_os dld.sl"
10967    shlibpath_var=SHLIB_PATH
10968    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10969    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10970    soname_spec='$libname$release$shared_ext$major'
10971    ;;
10972  esac
10973  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10974  postinstall_cmds='chmod 555 $lib'
10975  # or fails outright, so override atomically:
10976  install_override_mode=555
10977  ;;
10978
10979interix[3-9]*)
10980  version_type=linux # correct to gnu/linux during the next big refactor
10981  need_lib_prefix=no
10982  need_version=no
10983  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10984  soname_spec='$libname$release$shared_ext$major'
10985  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10986  shlibpath_var=LD_LIBRARY_PATH
10987  shlibpath_overrides_runpath=no
10988  hardcode_into_libs=yes
10989  ;;
10990
10991irix5* | irix6* | nonstopux*)
10992  case $host_os in
10993    nonstopux*) version_type=nonstopux ;;
10994    *)
10995	if test yes = "$lt_cv_prog_gnu_ld"; then
10996		version_type=linux # correct to gnu/linux during the next big refactor
10997	else
10998		version_type=irix
10999	fi ;;
11000  esac
11001  need_lib_prefix=no
11002  need_version=no
11003  soname_spec='$libname$release$shared_ext$major'
11004  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11005  case $host_os in
11006  irix5* | nonstopux*)
11007    libsuff= shlibsuff=
11008    ;;
11009  *)
11010    case $LD in # libtool.m4 will add one of these switches to LD
11011    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11012      libsuff= shlibsuff= libmagic=32-bit;;
11013    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11014      libsuff=32 shlibsuff=N32 libmagic=N32;;
11015    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11016      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11017    *) libsuff= shlibsuff= libmagic=never-match;;
11018    esac
11019    ;;
11020  esac
11021  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11022  shlibpath_overrides_runpath=no
11023  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11024  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11025  hardcode_into_libs=yes
11026  ;;
11027
11028# No shared lib support for Linux oldld, aout, or coff.
11029linux*oldld* | linux*aout* | linux*coff*)
11030  dynamic_linker=no
11031  ;;
11032
11033linux*android*)
11034  version_type=none # Android doesn't support versioned libraries.
11035  need_lib_prefix=no
11036  need_version=no
11037  library_names_spec='$libname$release$shared_ext'
11038  soname_spec='$libname$release$shared_ext'
11039  finish_cmds=
11040  shlibpath_var=LD_LIBRARY_PATH
11041  shlibpath_overrides_runpath=yes
11042
11043  # This implies no fast_install, which is unacceptable.
11044  # Some rework will be needed to allow for fast_install
11045  # before this can be enabled.
11046  hardcode_into_libs=yes
11047
11048  dynamic_linker='Android linker'
11049  # Don't embed -rpath directories since the linker doesn't support them.
11050  hardcode_libdir_flag_spec='-L$libdir'
11051  ;;
11052
11053# This must be glibc/ELF.
11054linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11055  version_type=linux # correct to gnu/linux during the next big refactor
11056  need_lib_prefix=no
11057  need_version=no
11058  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11059  soname_spec='$libname$release$shared_ext$major'
11060  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11061  shlibpath_var=LD_LIBRARY_PATH
11062  shlibpath_overrides_runpath=no
11063
11064  # Some binutils ld are patched to set DT_RUNPATH
11065  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11066  $as_echo_n "(cached) " >&6
11067else
11068  lt_cv_shlibpath_overrides_runpath=no
11069    save_LDFLAGS=$LDFLAGS
11070    save_libdir=$libdir
11071    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11072	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11073    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h.  */
11075
11076int
11077main ()
11078{
11079
11080  ;
11081  return 0;
11082}
11083_ACEOF
11084if ac_fn_c_try_link "$LINENO"; then :
11085  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11086  lt_cv_shlibpath_overrides_runpath=yes
11087fi
11088fi
11089rm -f core conftest.err conftest.$ac_objext \
11090    conftest$ac_exeext conftest.$ac_ext
11091    LDFLAGS=$save_LDFLAGS
11092    libdir=$save_libdir
11093
11094fi
11095
11096  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11097
11098  # This implies no fast_install, which is unacceptable.
11099  # Some rework will be needed to allow for fast_install
11100  # before this can be enabled.
11101  hardcode_into_libs=yes
11102
11103  # Ideally, we could use ldconfig to report *all* directores which are
11104  # searched for libraries, however this is still not possible.  Aside from not
11105  # being certain /sbin/ldconfig is available, command
11106  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11107  # even though it is searched at run-time.  Try to do the best guess by
11108  # appending ld.so.conf contents (and includes) to the search path.
11109  if test -f /etc/ld.so.conf; then
11110    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;s/"//g;/^$/d' | tr '\n' ' '`
11111    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11112  fi
11113
11114  # We used to test for /lib/ld.so.1 and disable shared libraries on
11115  # powerpc, because MkLinux only supported shared libraries with the
11116  # GNU dynamic linker.  Since this was broken with cross compilers,
11117  # most powerpc-linux boxes support dynamic linking these days and
11118  # people can always --disable-shared, the test was removed, and we
11119  # assume the GNU/Linux dynamic linker is in use.
11120  dynamic_linker='GNU/Linux ld.so'
11121  ;;
11122
11123netbsdelf*-gnu)
11124  version_type=linux
11125  need_lib_prefix=no
11126  need_version=no
11127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11128  soname_spec='${libname}${release}${shared_ext}$major'
11129  shlibpath_var=LD_LIBRARY_PATH
11130  shlibpath_overrides_runpath=no
11131  hardcode_into_libs=yes
11132  dynamic_linker='NetBSD ld.elf_so'
11133  ;;
11134
11135netbsd*)
11136  version_type=sunos
11137  need_lib_prefix=no
11138  need_version=no
11139  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11140    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11141    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11142    dynamic_linker='NetBSD (a.out) ld.so'
11143  else
11144    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11145    soname_spec='$libname$release$shared_ext$major'
11146    dynamic_linker='NetBSD ld.elf_so'
11147  fi
11148  shlibpath_var=LD_LIBRARY_PATH
11149  shlibpath_overrides_runpath=yes
11150  hardcode_into_libs=yes
11151  ;;
11152
11153newsos6)
11154  version_type=linux # correct to gnu/linux during the next big refactor
11155  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11156  shlibpath_var=LD_LIBRARY_PATH
11157  shlibpath_overrides_runpath=yes
11158  ;;
11159
11160*nto* | *qnx*)
11161  version_type=qnx
11162  need_lib_prefix=no
11163  need_version=no
11164  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11165  soname_spec='$libname$release$shared_ext$major'
11166  shlibpath_var=LD_LIBRARY_PATH
11167  shlibpath_overrides_runpath=no
11168  hardcode_into_libs=yes
11169  dynamic_linker='ldqnx.so'
11170  ;;
11171
11172openbsd* | bitrig*)
11173  version_type=sunos
11174  sys_lib_dlsearch_path_spec=/usr/lib
11175  need_lib_prefix=no
11176  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11177    need_version=no
11178  else
11179    need_version=yes
11180  fi
11181  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11182  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11183  shlibpath_var=LD_LIBRARY_PATH
11184  shlibpath_overrides_runpath=yes
11185  ;;
11186
11187os2*)
11188  libname_spec='$name'
11189  version_type=windows
11190  shrext_cmds=.dll
11191  need_version=no
11192  need_lib_prefix=no
11193  # OS/2 can only load a DLL with a base name of 8 characters or less.
11194  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11195    v=$($ECHO $release$versuffix | tr -d .-);
11196    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11197    $ECHO $n$v`$shared_ext'
11198  library_names_spec='${libname}_dll.$libext'
11199  dynamic_linker='OS/2 ld.exe'
11200  shlibpath_var=BEGINLIBPATH
11201  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11202  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11203  postinstall_cmds='base_file=`basename \$file`~
11204    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11205    dldir=$destdir/`dirname \$dlpath`~
11206    test -d \$dldir || mkdir -p \$dldir~
11207    $install_prog $dir/$dlname \$dldir/$dlname~
11208    chmod a+x \$dldir/$dlname~
11209    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11210      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11211    fi'
11212  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11213    dlpath=$dir/\$dldll~
11214    $RM \$dlpath'
11215  ;;
11216
11217osf3* | osf4* | osf5*)
11218  version_type=osf
11219  need_lib_prefix=no
11220  need_version=no
11221  soname_spec='$libname$release$shared_ext$major'
11222  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11223  shlibpath_var=LD_LIBRARY_PATH
11224  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11225  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11226  ;;
11227
11228rdos*)
11229  dynamic_linker=no
11230  ;;
11231
11232solaris*)
11233  version_type=linux # correct to gnu/linux during the next big refactor
11234  need_lib_prefix=no
11235  need_version=no
11236  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11237  soname_spec='$libname$release$shared_ext$major'
11238  shlibpath_var=LD_LIBRARY_PATH
11239  shlibpath_overrides_runpath=yes
11240  hardcode_into_libs=yes
11241  # ldd complains unless libraries are executable
11242  postinstall_cmds='chmod +x $lib'
11243  ;;
11244
11245sunos4*)
11246  version_type=sunos
11247  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11248  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11249  shlibpath_var=LD_LIBRARY_PATH
11250  shlibpath_overrides_runpath=yes
11251  if test yes = "$with_gnu_ld"; then
11252    need_lib_prefix=no
11253  fi
11254  need_version=yes
11255  ;;
11256
11257sysv4 | sysv4.3*)
11258  version_type=linux # correct to gnu/linux during the next big refactor
11259  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260  soname_spec='$libname$release$shared_ext$major'
11261  shlibpath_var=LD_LIBRARY_PATH
11262  case $host_vendor in
11263    sni)
11264      shlibpath_overrides_runpath=no
11265      need_lib_prefix=no
11266      runpath_var=LD_RUN_PATH
11267      ;;
11268    siemens)
11269      need_lib_prefix=no
11270      ;;
11271    motorola)
11272      need_lib_prefix=no
11273      need_version=no
11274      shlibpath_overrides_runpath=no
11275      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11276      ;;
11277  esac
11278  ;;
11279
11280sysv4*MP*)
11281  if test -d /usr/nec; then
11282    version_type=linux # correct to gnu/linux during the next big refactor
11283    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11284    soname_spec='$libname$shared_ext.$major'
11285    shlibpath_var=LD_LIBRARY_PATH
11286  fi
11287  ;;
11288
11289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11290  version_type=sco
11291  need_lib_prefix=no
11292  need_version=no
11293  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11294  soname_spec='$libname$release$shared_ext$major'
11295  shlibpath_var=LD_LIBRARY_PATH
11296  shlibpath_overrides_runpath=yes
11297  hardcode_into_libs=yes
11298  if test yes = "$with_gnu_ld"; then
11299    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11300  else
11301    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11302    case $host_os in
11303      sco3.2v5*)
11304        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11305	;;
11306    esac
11307  fi
11308  sys_lib_dlsearch_path_spec='/usr/lib'
11309  ;;
11310
11311tpf*)
11312  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11313  version_type=linux # correct to gnu/linux during the next big refactor
11314  need_lib_prefix=no
11315  need_version=no
11316  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11317  shlibpath_var=LD_LIBRARY_PATH
11318  shlibpath_overrides_runpath=no
11319  hardcode_into_libs=yes
11320  ;;
11321
11322uts4*)
11323  version_type=linux # correct to gnu/linux during the next big refactor
11324  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325  soname_spec='$libname$release$shared_ext$major'
11326  shlibpath_var=LD_LIBRARY_PATH
11327  ;;
11328
11329*)
11330  dynamic_linker=no
11331  ;;
11332esac
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11334$as_echo "$dynamic_linker" >&6; }
11335test no = "$dynamic_linker" && can_build_shared=no
11336
11337variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11338if test yes = "$GCC"; then
11339  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11340fi
11341
11342if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11343  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11344fi
11345
11346if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11347  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11348fi
11349
11350# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11351configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11352
11353# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11354func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11355
11356# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11357configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11456$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11457hardcode_action=
11458if test -n "$hardcode_libdir_flag_spec" ||
11459   test -n "$runpath_var" ||
11460   test yes = "$hardcode_automatic"; then
11461
11462  # We can hardcode non-existent directories.
11463  if test no != "$hardcode_direct" &&
11464     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11465     # have to relink, otherwise we might link with an installed library
11466     # when we should be linking with a yet-to-be-installed one
11467     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11468     test no != "$hardcode_minus_L"; then
11469    # Linking always hardcodes the temporary library directory.
11470    hardcode_action=relink
11471  else
11472    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11473    hardcode_action=immediate
11474  fi
11475else
11476  # We cannot hardcode anything, or else we can only hardcode existing
11477  # directories.
11478  hardcode_action=unsupported
11479fi
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11481$as_echo "$hardcode_action" >&6; }
11482
11483if test relink = "$hardcode_action" ||
11484   test yes = "$inherit_rpath"; then
11485  # Fast installation is not supported
11486  enable_fast_install=no
11487elif test yes = "$shlibpath_overrides_runpath" ||
11488     test no = "$enable_shared"; then
11489  # Fast installation is not necessary
11490  enable_fast_install=needless
11491fi
11492
11493
11494
11495
11496
11497
11498  if test yes != "$enable_dlopen"; then
11499  enable_dlopen=unknown
11500  enable_dlopen_self=unknown
11501  enable_dlopen_self_static=unknown
11502else
11503  lt_cv_dlopen=no
11504  lt_cv_dlopen_libs=
11505
11506  case $host_os in
11507  beos*)
11508    lt_cv_dlopen=load_add_on
11509    lt_cv_dlopen_libs=
11510    lt_cv_dlopen_self=yes
11511    ;;
11512
11513  mingw* | pw32* | cegcc*)
11514    lt_cv_dlopen=LoadLibrary
11515    lt_cv_dlopen_libs=
11516    ;;
11517
11518  cygwin*)
11519    lt_cv_dlopen=dlopen
11520    lt_cv_dlopen_libs=
11521    ;;
11522
11523  darwin*)
11524    # if libdl is installed we need to link against it
11525    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11526$as_echo_n "checking for dlopen in -ldl... " >&6; }
11527if ${ac_cv_lib_dl_dlopen+:} false; then :
11528  $as_echo_n "(cached) " >&6
11529else
11530  ac_check_lib_save_LIBS=$LIBS
11531LIBS="-ldl  $LIBS"
11532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533/* end confdefs.h.  */
11534
11535/* Override any GCC internal prototype to avoid an error.
11536   Use char because int might match the return type of a GCC
11537   builtin and then its argument prototype would still apply.  */
11538#ifdef __cplusplus
11539extern "C"
11540#endif
11541char dlopen ();
11542int
11543main ()
11544{
11545return dlopen ();
11546  ;
11547  return 0;
11548}
11549_ACEOF
11550if ac_fn_c_try_link "$LINENO"; then :
11551  ac_cv_lib_dl_dlopen=yes
11552else
11553  ac_cv_lib_dl_dlopen=no
11554fi
11555rm -f core conftest.err conftest.$ac_objext \
11556    conftest$ac_exeext conftest.$ac_ext
11557LIBS=$ac_check_lib_save_LIBS
11558fi
11559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11560$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11561if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11562  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11563else
11564
11565    lt_cv_dlopen=dyld
11566    lt_cv_dlopen_libs=
11567    lt_cv_dlopen_self=yes
11568
11569fi
11570
11571    ;;
11572
11573  tpf*)
11574    # Don't try to run any link tests for TPF.  We know it's impossible
11575    # because TPF is a cross-compiler, and we know how we open DSOs.
11576    lt_cv_dlopen=dlopen
11577    lt_cv_dlopen_libs=
11578    lt_cv_dlopen_self=no
11579    ;;
11580
11581  *)
11582    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11583if test "x$ac_cv_func_shl_load" = xyes; then :
11584  lt_cv_dlopen=shl_load
11585else
11586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11587$as_echo_n "checking for shl_load in -ldld... " >&6; }
11588if ${ac_cv_lib_dld_shl_load+:} false; then :
11589  $as_echo_n "(cached) " >&6
11590else
11591  ac_check_lib_save_LIBS=$LIBS
11592LIBS="-ldld  $LIBS"
11593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594/* end confdefs.h.  */
11595
11596/* Override any GCC internal prototype to avoid an error.
11597   Use char because int might match the return type of a GCC
11598   builtin and then its argument prototype would still apply.  */
11599#ifdef __cplusplus
11600extern "C"
11601#endif
11602char shl_load ();
11603int
11604main ()
11605{
11606return shl_load ();
11607  ;
11608  return 0;
11609}
11610_ACEOF
11611if ac_fn_c_try_link "$LINENO"; then :
11612  ac_cv_lib_dld_shl_load=yes
11613else
11614  ac_cv_lib_dld_shl_load=no
11615fi
11616rm -f core conftest.err conftest.$ac_objext \
11617    conftest$ac_exeext conftest.$ac_ext
11618LIBS=$ac_check_lib_save_LIBS
11619fi
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11621$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11622if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11623  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11624else
11625  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11626if test "x$ac_cv_func_dlopen" = xyes; then :
11627  lt_cv_dlopen=dlopen
11628else
11629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11630$as_echo_n "checking for dlopen in -ldl... " >&6; }
11631if ${ac_cv_lib_dl_dlopen+:} false; then :
11632  $as_echo_n "(cached) " >&6
11633else
11634  ac_check_lib_save_LIBS=$LIBS
11635LIBS="-ldl  $LIBS"
11636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637/* end confdefs.h.  */
11638
11639/* Override any GCC internal prototype to avoid an error.
11640   Use char because int might match the return type of a GCC
11641   builtin and then its argument prototype would still apply.  */
11642#ifdef __cplusplus
11643extern "C"
11644#endif
11645char dlopen ();
11646int
11647main ()
11648{
11649return dlopen ();
11650  ;
11651  return 0;
11652}
11653_ACEOF
11654if ac_fn_c_try_link "$LINENO"; then :
11655  ac_cv_lib_dl_dlopen=yes
11656else
11657  ac_cv_lib_dl_dlopen=no
11658fi
11659rm -f core conftest.err conftest.$ac_objext \
11660    conftest$ac_exeext conftest.$ac_ext
11661LIBS=$ac_check_lib_save_LIBS
11662fi
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11664$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11665if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11666  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11667else
11668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11669$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11670if ${ac_cv_lib_svld_dlopen+:} false; then :
11671  $as_echo_n "(cached) " >&6
11672else
11673  ac_check_lib_save_LIBS=$LIBS
11674LIBS="-lsvld  $LIBS"
11675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676/* end confdefs.h.  */
11677
11678/* Override any GCC internal prototype to avoid an error.
11679   Use char because int might match the return type of a GCC
11680   builtin and then its argument prototype would still apply.  */
11681#ifdef __cplusplus
11682extern "C"
11683#endif
11684char dlopen ();
11685int
11686main ()
11687{
11688return dlopen ();
11689  ;
11690  return 0;
11691}
11692_ACEOF
11693if ac_fn_c_try_link "$LINENO"; then :
11694  ac_cv_lib_svld_dlopen=yes
11695else
11696  ac_cv_lib_svld_dlopen=no
11697fi
11698rm -f core conftest.err conftest.$ac_objext \
11699    conftest$ac_exeext conftest.$ac_ext
11700LIBS=$ac_check_lib_save_LIBS
11701fi
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11703$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11704if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11705  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11706else
11707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11708$as_echo_n "checking for dld_link in -ldld... " >&6; }
11709if ${ac_cv_lib_dld_dld_link+:} false; then :
11710  $as_echo_n "(cached) " >&6
11711else
11712  ac_check_lib_save_LIBS=$LIBS
11713LIBS="-ldld  $LIBS"
11714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h.  */
11716
11717/* Override any GCC internal prototype to avoid an error.
11718   Use char because int might match the return type of a GCC
11719   builtin and then its argument prototype would still apply.  */
11720#ifdef __cplusplus
11721extern "C"
11722#endif
11723char dld_link ();
11724int
11725main ()
11726{
11727return dld_link ();
11728  ;
11729  return 0;
11730}
11731_ACEOF
11732if ac_fn_c_try_link "$LINENO"; then :
11733  ac_cv_lib_dld_dld_link=yes
11734else
11735  ac_cv_lib_dld_dld_link=no
11736fi
11737rm -f core conftest.err conftest.$ac_objext \
11738    conftest$ac_exeext conftest.$ac_ext
11739LIBS=$ac_check_lib_save_LIBS
11740fi
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11742$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11743if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11744  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11745fi
11746
11747
11748fi
11749
11750
11751fi
11752
11753
11754fi
11755
11756
11757fi
11758
11759
11760fi
11761
11762    ;;
11763  esac
11764
11765  if test no = "$lt_cv_dlopen"; then
11766    enable_dlopen=no
11767  else
11768    enable_dlopen=yes
11769  fi
11770
11771  case $lt_cv_dlopen in
11772  dlopen)
11773    save_CPPFLAGS=$CPPFLAGS
11774    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11775
11776    save_LDFLAGS=$LDFLAGS
11777    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11778
11779    save_LIBS=$LIBS
11780    LIBS="$lt_cv_dlopen_libs $LIBS"
11781
11782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11783$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11784if ${lt_cv_dlopen_self+:} false; then :
11785  $as_echo_n "(cached) " >&6
11786else
11787  	  if test yes = "$cross_compiling"; then :
11788  lt_cv_dlopen_self=cross
11789else
11790  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11791  lt_status=$lt_dlunknown
11792  cat > conftest.$ac_ext <<_LT_EOF
11793#line $LINENO "configure"
11794#include "confdefs.h"
11795
11796#if HAVE_DLFCN_H
11797#include <dlfcn.h>
11798#endif
11799
11800#include <stdio.h>
11801
11802#ifdef RTLD_GLOBAL
11803#  define LT_DLGLOBAL		RTLD_GLOBAL
11804#else
11805#  ifdef DL_GLOBAL
11806#    define LT_DLGLOBAL		DL_GLOBAL
11807#  else
11808#    define LT_DLGLOBAL		0
11809#  endif
11810#endif
11811
11812/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11813   find out it does not work in some platform. */
11814#ifndef LT_DLLAZY_OR_NOW
11815#  ifdef RTLD_LAZY
11816#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11817#  else
11818#    ifdef DL_LAZY
11819#      define LT_DLLAZY_OR_NOW		DL_LAZY
11820#    else
11821#      ifdef RTLD_NOW
11822#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11823#      else
11824#        ifdef DL_NOW
11825#          define LT_DLLAZY_OR_NOW	DL_NOW
11826#        else
11827#          define LT_DLLAZY_OR_NOW	0
11828#        endif
11829#      endif
11830#    endif
11831#  endif
11832#endif
11833
11834/* When -fvisibility=hidden is used, assume the code has been annotated
11835   correspondingly for the symbols needed.  */
11836#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11837int fnord () __attribute__((visibility("default")));
11838#endif
11839
11840int fnord () { return 42; }
11841int main ()
11842{
11843  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11844  int status = $lt_dlunknown;
11845
11846  if (self)
11847    {
11848      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11849      else
11850        {
11851	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11852          else puts (dlerror ());
11853	}
11854      /* dlclose (self); */
11855    }
11856  else
11857    puts (dlerror ());
11858
11859  return status;
11860}
11861_LT_EOF
11862  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11863  (eval $ac_link) 2>&5
11864  ac_status=$?
11865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11866  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11867    (./conftest; exit; ) >&5 2>/dev/null
11868    lt_status=$?
11869    case x$lt_status in
11870      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11871      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11872      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11873    esac
11874  else :
11875    # compilation failed
11876    lt_cv_dlopen_self=no
11877  fi
11878fi
11879rm -fr conftest*
11880
11881
11882fi
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11884$as_echo "$lt_cv_dlopen_self" >&6; }
11885
11886    if test yes = "$lt_cv_dlopen_self"; then
11887      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11888      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11889$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11890if ${lt_cv_dlopen_self_static+:} false; then :
11891  $as_echo_n "(cached) " >&6
11892else
11893  	  if test yes = "$cross_compiling"; then :
11894  lt_cv_dlopen_self_static=cross
11895else
11896  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11897  lt_status=$lt_dlunknown
11898  cat > conftest.$ac_ext <<_LT_EOF
11899#line $LINENO "configure"
11900#include "confdefs.h"
11901
11902#if HAVE_DLFCN_H
11903#include <dlfcn.h>
11904#endif
11905
11906#include <stdio.h>
11907
11908#ifdef RTLD_GLOBAL
11909#  define LT_DLGLOBAL		RTLD_GLOBAL
11910#else
11911#  ifdef DL_GLOBAL
11912#    define LT_DLGLOBAL		DL_GLOBAL
11913#  else
11914#    define LT_DLGLOBAL		0
11915#  endif
11916#endif
11917
11918/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11919   find out it does not work in some platform. */
11920#ifndef LT_DLLAZY_OR_NOW
11921#  ifdef RTLD_LAZY
11922#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11923#  else
11924#    ifdef DL_LAZY
11925#      define LT_DLLAZY_OR_NOW		DL_LAZY
11926#    else
11927#      ifdef RTLD_NOW
11928#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11929#      else
11930#        ifdef DL_NOW
11931#          define LT_DLLAZY_OR_NOW	DL_NOW
11932#        else
11933#          define LT_DLLAZY_OR_NOW	0
11934#        endif
11935#      endif
11936#    endif
11937#  endif
11938#endif
11939
11940/* When -fvisibility=hidden is used, assume the code has been annotated
11941   correspondingly for the symbols needed.  */
11942#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11943int fnord () __attribute__((visibility("default")));
11944#endif
11945
11946int fnord () { return 42; }
11947int main ()
11948{
11949  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11950  int status = $lt_dlunknown;
11951
11952  if (self)
11953    {
11954      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11955      else
11956        {
11957	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11958          else puts (dlerror ());
11959	}
11960      /* dlclose (self); */
11961    }
11962  else
11963    puts (dlerror ());
11964
11965  return status;
11966}
11967_LT_EOF
11968  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11969  (eval $ac_link) 2>&5
11970  ac_status=$?
11971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11972  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11973    (./conftest; exit; ) >&5 2>/dev/null
11974    lt_status=$?
11975    case x$lt_status in
11976      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11977      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11978      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11979    esac
11980  else :
11981    # compilation failed
11982    lt_cv_dlopen_self_static=no
11983  fi
11984fi
11985rm -fr conftest*
11986
11987
11988fi
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11990$as_echo "$lt_cv_dlopen_self_static" >&6; }
11991    fi
11992
11993    CPPFLAGS=$save_CPPFLAGS
11994    LDFLAGS=$save_LDFLAGS
11995    LIBS=$save_LIBS
11996    ;;
11997  esac
11998
11999  case $lt_cv_dlopen_self in
12000  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12001  *) enable_dlopen_self=unknown ;;
12002  esac
12003
12004  case $lt_cv_dlopen_self_static in
12005  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12006  *) enable_dlopen_self_static=unknown ;;
12007  esac
12008fi
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026striplib=
12027old_striplib=
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12029$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12030if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12031  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12032  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12034$as_echo "yes" >&6; }
12035else
12036# FIXME - insert some real tests, host_os isn't really good enough
12037  case $host_os in
12038  darwin*)
12039    if test -n "$STRIP"; then
12040      striplib="$STRIP -x"
12041      old_striplib="$STRIP -S"
12042      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043$as_echo "yes" >&6; }
12044    else
12045      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
12047    fi
12048    ;;
12049  *)
12050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051$as_echo "no" >&6; }
12052    ;;
12053  esac
12054fi
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067  # Report what library types will actually be built
12068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12069$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12071$as_echo "$can_build_shared" >&6; }
12072
12073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12074$as_echo_n "checking whether to build shared libraries... " >&6; }
12075  test no = "$can_build_shared" && enable_shared=no
12076
12077  # On AIX, shared libraries and static libraries use the same namespace, and
12078  # are all built from PIC.
12079  case $host_os in
12080  aix3*)
12081    test yes = "$enable_shared" && enable_static=no
12082    if test -n "$RANLIB"; then
12083      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12084      postinstall_cmds='$RANLIB $lib'
12085    fi
12086    ;;
12087
12088  aix[4-9]*)
12089    if test ia64 != "$host_cpu"; then
12090      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12091      yes,aix,yes) ;;			# shared object as lib.so file only
12092      yes,svr4,*) ;;			# shared object as lib.so archive member only
12093      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12094      esac
12095    fi
12096    ;;
12097  esac
12098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12099$as_echo "$enable_shared" >&6; }
12100
12101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12102$as_echo_n "checking whether to build static libraries... " >&6; }
12103  # Make sure either enable_shared or enable_static is yes.
12104  test yes = "$enable_shared" || enable_static=yes
12105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12106$as_echo "$enable_static" >&6; }
12107
12108
12109
12110
12111fi
12112ac_ext=c
12113ac_cpp='$CPP $CPPFLAGS'
12114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12116ac_compiler_gnu=$ac_cv_c_compiler_gnu
12117
12118CC=$lt_save_CC
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134        ac_config_commands="$ac_config_commands libtool"
12135
12136
12137
12138
12139# Only expand once:
12140
12141                           # init libtool
12142
12143# Checks for general programs.
12144ac_ext=c
12145ac_cpp='$CPP $CPPFLAGS'
12146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149if test -n "$ac_tool_prefix"; then
12150  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12151set dummy ${ac_tool_prefix}gcc; ac_word=$2
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153$as_echo_n "checking for $ac_word... " >&6; }
12154if ${ac_cv_prog_CC+:} false; then :
12155  $as_echo_n "(cached) " >&6
12156else
12157  if test -n "$CC"; then
12158  ac_cv_prog_CC="$CC" # Let the user override the test.
12159else
12160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161for as_dir in $PATH
12162do
12163  IFS=$as_save_IFS
12164  test -z "$as_dir" && as_dir=.
12165    for ac_exec_ext in '' $ac_executable_extensions; do
12166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12169    break 2
12170  fi
12171done
12172  done
12173IFS=$as_save_IFS
12174
12175fi
12176fi
12177CC=$ac_cv_prog_CC
12178if test -n "$CC"; then
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12180$as_echo "$CC" >&6; }
12181else
12182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183$as_echo "no" >&6; }
12184fi
12185
12186
12187fi
12188if test -z "$ac_cv_prog_CC"; then
12189  ac_ct_CC=$CC
12190  # Extract the first word of "gcc", so it can be a program name with args.
12191set dummy gcc; ac_word=$2
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193$as_echo_n "checking for $ac_word... " >&6; }
12194if ${ac_cv_prog_ac_ct_CC+:} false; then :
12195  $as_echo_n "(cached) " >&6
12196else
12197  if test -n "$ac_ct_CC"; then
12198  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12199else
12200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201for as_dir in $PATH
12202do
12203  IFS=$as_save_IFS
12204  test -z "$as_dir" && as_dir=.
12205    for ac_exec_ext in '' $ac_executable_extensions; do
12206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207    ac_cv_prog_ac_ct_CC="gcc"
12208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209    break 2
12210  fi
12211done
12212  done
12213IFS=$as_save_IFS
12214
12215fi
12216fi
12217ac_ct_CC=$ac_cv_prog_ac_ct_CC
12218if test -n "$ac_ct_CC"; then
12219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12220$as_echo "$ac_ct_CC" >&6; }
12221else
12222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223$as_echo "no" >&6; }
12224fi
12225
12226  if test "x$ac_ct_CC" = x; then
12227    CC=""
12228  else
12229    case $cross_compiling:$ac_tool_warned in
12230yes:)
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12233ac_tool_warned=yes ;;
12234esac
12235    CC=$ac_ct_CC
12236  fi
12237else
12238  CC="$ac_cv_prog_CC"
12239fi
12240
12241if test -z "$CC"; then
12242          if test -n "$ac_tool_prefix"; then
12243    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12244set dummy ${ac_tool_prefix}cc; ac_word=$2
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246$as_echo_n "checking for $ac_word... " >&6; }
12247if ${ac_cv_prog_CC+:} false; then :
12248  $as_echo_n "(cached) " >&6
12249else
12250  if test -n "$CC"; then
12251  ac_cv_prog_CC="$CC" # Let the user override the test.
12252else
12253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254for as_dir in $PATH
12255do
12256  IFS=$as_save_IFS
12257  test -z "$as_dir" && as_dir=.
12258    for ac_exec_ext in '' $ac_executable_extensions; do
12259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12260    ac_cv_prog_CC="${ac_tool_prefix}cc"
12261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262    break 2
12263  fi
12264done
12265  done
12266IFS=$as_save_IFS
12267
12268fi
12269fi
12270CC=$ac_cv_prog_CC
12271if test -n "$CC"; then
12272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12273$as_echo "$CC" >&6; }
12274else
12275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
12277fi
12278
12279
12280  fi
12281fi
12282if test -z "$CC"; then
12283  # Extract the first word of "cc", so it can be a program name with args.
12284set dummy cc; ac_word=$2
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286$as_echo_n "checking for $ac_word... " >&6; }
12287if ${ac_cv_prog_CC+:} false; then :
12288  $as_echo_n "(cached) " >&6
12289else
12290  if test -n "$CC"; then
12291  ac_cv_prog_CC="$CC" # Let the user override the test.
12292else
12293  ac_prog_rejected=no
12294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295for as_dir in $PATH
12296do
12297  IFS=$as_save_IFS
12298  test -z "$as_dir" && as_dir=.
12299    for ac_exec_ext in '' $ac_executable_extensions; do
12300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12301    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12302       ac_prog_rejected=yes
12303       continue
12304     fi
12305    ac_cv_prog_CC="cc"
12306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307    break 2
12308  fi
12309done
12310  done
12311IFS=$as_save_IFS
12312
12313if test $ac_prog_rejected = yes; then
12314  # We found a bogon in the path, so make sure we never use it.
12315  set dummy $ac_cv_prog_CC
12316  shift
12317  if test $# != 0; then
12318    # We chose a different compiler from the bogus one.
12319    # However, it has the same basename, so the bogon will be chosen
12320    # first if we set CC to just the basename; use the full file name.
12321    shift
12322    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12323  fi
12324fi
12325fi
12326fi
12327CC=$ac_cv_prog_CC
12328if test -n "$CC"; then
12329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12330$as_echo "$CC" >&6; }
12331else
12332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333$as_echo "no" >&6; }
12334fi
12335
12336
12337fi
12338if test -z "$CC"; then
12339  if test -n "$ac_tool_prefix"; then
12340  for ac_prog in cl.exe
12341  do
12342    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345$as_echo_n "checking for $ac_word... " >&6; }
12346if ${ac_cv_prog_CC+:} false; then :
12347  $as_echo_n "(cached) " >&6
12348else
12349  if test -n "$CC"; then
12350  ac_cv_prog_CC="$CC" # Let the user override the test.
12351else
12352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353for as_dir in $PATH
12354do
12355  IFS=$as_save_IFS
12356  test -z "$as_dir" && as_dir=.
12357    for ac_exec_ext in '' $ac_executable_extensions; do
12358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12359    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361    break 2
12362  fi
12363done
12364  done
12365IFS=$as_save_IFS
12366
12367fi
12368fi
12369CC=$ac_cv_prog_CC
12370if test -n "$CC"; then
12371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12372$as_echo "$CC" >&6; }
12373else
12374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
12376fi
12377
12378
12379    test -n "$CC" && break
12380  done
12381fi
12382if test -z "$CC"; then
12383  ac_ct_CC=$CC
12384  for ac_prog in cl.exe
12385do
12386  # Extract the first word of "$ac_prog", so it can be a program name with args.
12387set dummy $ac_prog; ac_word=$2
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389$as_echo_n "checking for $ac_word... " >&6; }
12390if ${ac_cv_prog_ac_ct_CC+:} false; then :
12391  $as_echo_n "(cached) " >&6
12392else
12393  if test -n "$ac_ct_CC"; then
12394  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12395else
12396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397for as_dir in $PATH
12398do
12399  IFS=$as_save_IFS
12400  test -z "$as_dir" && as_dir=.
12401    for ac_exec_ext in '' $ac_executable_extensions; do
12402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403    ac_cv_prog_ac_ct_CC="$ac_prog"
12404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405    break 2
12406  fi
12407done
12408  done
12409IFS=$as_save_IFS
12410
12411fi
12412fi
12413ac_ct_CC=$ac_cv_prog_ac_ct_CC
12414if test -n "$ac_ct_CC"; then
12415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12416$as_echo "$ac_ct_CC" >&6; }
12417else
12418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
12420fi
12421
12422
12423  test -n "$ac_ct_CC" && break
12424done
12425
12426  if test "x$ac_ct_CC" = x; then
12427    CC=""
12428  else
12429    case $cross_compiling:$ac_tool_warned in
12430yes:)
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12433ac_tool_warned=yes ;;
12434esac
12435    CC=$ac_ct_CC
12436  fi
12437fi
12438
12439fi
12440
12441
12442test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12444as_fn_error $? "no acceptable C compiler found in \$PATH
12445See \`config.log' for more details" "$LINENO" 5; }
12446
12447# Provide some information about the compiler.
12448$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12449set X $ac_compile
12450ac_compiler=$2
12451for ac_option in --version -v -V -qversion; do
12452  { { ac_try="$ac_compiler $ac_option >&5"
12453case "(($ac_try" in
12454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455  *) ac_try_echo=$ac_try;;
12456esac
12457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12458$as_echo "$ac_try_echo"; } >&5
12459  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12460  ac_status=$?
12461  if test -s conftest.err; then
12462    sed '10a\
12463... rest of stderr output deleted ...
12464         10q' conftest.err >conftest.er1
12465    cat conftest.er1 >&5
12466  fi
12467  rm -f conftest.er1 conftest.err
12468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12469  test $ac_status = 0; }
12470done
12471
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12473$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12474if ${ac_cv_c_compiler_gnu+:} false; then :
12475  $as_echo_n "(cached) " >&6
12476else
12477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478/* end confdefs.h.  */
12479
12480int
12481main ()
12482{
12483#ifndef __GNUC__
12484       choke me
12485#endif
12486
12487  ;
12488  return 0;
12489}
12490_ACEOF
12491if ac_fn_c_try_compile "$LINENO"; then :
12492  ac_compiler_gnu=yes
12493else
12494  ac_compiler_gnu=no
12495fi
12496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497ac_cv_c_compiler_gnu=$ac_compiler_gnu
12498
12499fi
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12501$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12502if test $ac_compiler_gnu = yes; then
12503  GCC=yes
12504else
12505  GCC=
12506fi
12507ac_test_CFLAGS=${CFLAGS+set}
12508ac_save_CFLAGS=$CFLAGS
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12510$as_echo_n "checking whether $CC accepts -g... " >&6; }
12511if ${ac_cv_prog_cc_g+:} false; then :
12512  $as_echo_n "(cached) " >&6
12513else
12514  ac_save_c_werror_flag=$ac_c_werror_flag
12515   ac_c_werror_flag=yes
12516   ac_cv_prog_cc_g=no
12517   CFLAGS="-g"
12518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519/* end confdefs.h.  */
12520
12521int
12522main ()
12523{
12524
12525  ;
12526  return 0;
12527}
12528_ACEOF
12529if ac_fn_c_try_compile "$LINENO"; then :
12530  ac_cv_prog_cc_g=yes
12531else
12532  CFLAGS=""
12533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534/* end confdefs.h.  */
12535
12536int
12537main ()
12538{
12539
12540  ;
12541  return 0;
12542}
12543_ACEOF
12544if ac_fn_c_try_compile "$LINENO"; then :
12545
12546else
12547  ac_c_werror_flag=$ac_save_c_werror_flag
12548	 CFLAGS="-g"
12549	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550/* end confdefs.h.  */
12551
12552int
12553main ()
12554{
12555
12556  ;
12557  return 0;
12558}
12559_ACEOF
12560if ac_fn_c_try_compile "$LINENO"; then :
12561  ac_cv_prog_cc_g=yes
12562fi
12563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564fi
12565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566fi
12567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12568   ac_c_werror_flag=$ac_save_c_werror_flag
12569fi
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12571$as_echo "$ac_cv_prog_cc_g" >&6; }
12572if test "$ac_test_CFLAGS" = set; then
12573  CFLAGS=$ac_save_CFLAGS
12574elif test $ac_cv_prog_cc_g = yes; then
12575  if test "$GCC" = yes; then
12576    CFLAGS="-g -O2"
12577  else
12578    CFLAGS="-g"
12579  fi
12580else
12581  if test "$GCC" = yes; then
12582    CFLAGS="-O2"
12583  else
12584    CFLAGS=
12585  fi
12586fi
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12588$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12589if ${ac_cv_prog_cc_c89+:} false; then :
12590  $as_echo_n "(cached) " >&6
12591else
12592  ac_cv_prog_cc_c89=no
12593ac_save_CC=$CC
12594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595/* end confdefs.h.  */
12596#include <stdarg.h>
12597#include <stdio.h>
12598struct stat;
12599/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12600struct buf { int x; };
12601FILE * (*rcsopen) (struct buf *, struct stat *, int);
12602static char *e (p, i)
12603     char **p;
12604     int i;
12605{
12606  return p[i];
12607}
12608static char *f (char * (*g) (char **, int), char **p, ...)
12609{
12610  char *s;
12611  va_list v;
12612  va_start (v,p);
12613  s = g (p, va_arg (v,int));
12614  va_end (v);
12615  return s;
12616}
12617
12618/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12619   function prototypes and stuff, but not '\xHH' hex character constants.
12620   These don't provoke an error unfortunately, instead are silently treated
12621   as 'x'.  The following induces an error, until -std is added to get
12622   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12623   array size at least.  It's necessary to write '\x00'==0 to get something
12624   that's true only with -std.  */
12625int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12626
12627/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12628   inside strings and character constants.  */
12629#define FOO(x) 'x'
12630int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12631
12632int test (int i, double x);
12633struct s1 {int (*f) (int a);};
12634struct s2 {int (*f) (double a);};
12635int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12636int argc;
12637char **argv;
12638int
12639main ()
12640{
12641return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12642  ;
12643  return 0;
12644}
12645_ACEOF
12646for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12647	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12648do
12649  CC="$ac_save_CC $ac_arg"
12650  if ac_fn_c_try_compile "$LINENO"; then :
12651  ac_cv_prog_cc_c89=$ac_arg
12652fi
12653rm -f core conftest.err conftest.$ac_objext
12654  test "x$ac_cv_prog_cc_c89" != "xno" && break
12655done
12656rm -f conftest.$ac_ext
12657CC=$ac_save_CC
12658
12659fi
12660# AC_CACHE_VAL
12661case "x$ac_cv_prog_cc_c89" in
12662  x)
12663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12664$as_echo "none needed" >&6; } ;;
12665  xno)
12666    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12667$as_echo "unsupported" >&6; } ;;
12668  *)
12669    CC="$CC $ac_cv_prog_cc_c89"
12670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12671$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12672esac
12673if test "x$ac_cv_prog_cc_c89" != xno; then :
12674
12675fi
12676
12677ac_ext=c
12678ac_cpp='$CPP $CPPFLAGS'
12679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12681ac_compiler_gnu=$ac_cv_c_compiler_gnu
12682
12683ac_ext=c
12684ac_cpp='$CPP $CPPFLAGS'
12685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12687ac_compiler_gnu=$ac_cv_c_compiler_gnu
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12689$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12690if ${am_cv_prog_cc_c_o+:} false; then :
12691  $as_echo_n "(cached) " >&6
12692else
12693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694/* end confdefs.h.  */
12695
12696int
12697main ()
12698{
12699
12700  ;
12701  return 0;
12702}
12703_ACEOF
12704  # Make sure it works both with $CC and with simple cc.
12705  # Following AC_PROG_CC_C_O, we do the test twice because some
12706  # compilers refuse to overwrite an existing .o file with -o,
12707  # though they will create one.
12708  am_cv_prog_cc_c_o=yes
12709  for am_i in 1 2; do
12710    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12711   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); } \
12715         && test -f conftest2.$ac_objext; then
12716      : OK
12717    else
12718      am_cv_prog_cc_c_o=no
12719      break
12720    fi
12721  done
12722  rm -f core conftest*
12723  unset am_i
12724fi
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12726$as_echo "$am_cv_prog_cc_c_o" >&6; }
12727if test "$am_cv_prog_cc_c_o" != yes; then
12728   # Losing compiler, so override with the script.
12729   # FIXME: It is wrong to rewrite CC.
12730   # But if we don't then we get into trouble of one sort or another.
12731   # A longer-term fix would be to have automake use am__CC in this case,
12732   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12733   CC="$am_aux_dir/compile $CC"
12734fi
12735ac_ext=c
12736ac_cpp='$CPP $CPPFLAGS'
12737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12739ac_compiler_gnu=$ac_cv_c_compiler_gnu
12740
12741
12742depcc="$CC"   am_compiler_list=
12743
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12745$as_echo_n "checking dependency style of $depcc... " >&6; }
12746if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12747  $as_echo_n "(cached) " >&6
12748else
12749  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12750  # We make a subdir and do the tests there.  Otherwise we can end up
12751  # making bogus files that we don't know about and never remove.  For
12752  # instance it was reported that on HP-UX the gcc test will end up
12753  # making a dummy file named 'D' -- because '-MD' means "put the output
12754  # in D".
12755  rm -rf conftest.dir
12756  mkdir conftest.dir
12757  # Copy depcomp to subdir because otherwise we won't find it if we're
12758  # using a relative directory.
12759  cp "$am_depcomp" conftest.dir
12760  cd conftest.dir
12761  # We will build objects and dependencies in a subdirectory because
12762  # it helps to detect inapplicable dependency modes.  For instance
12763  # both Tru64's cc and ICC support -MD to output dependencies as a
12764  # side effect of compilation, but ICC will put the dependencies in
12765  # the current directory while Tru64 will put them in the object
12766  # directory.
12767  mkdir sub
12768
12769  am_cv_CC_dependencies_compiler_type=none
12770  if test "$am_compiler_list" = ""; then
12771     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12772  fi
12773  am__universal=false
12774  case " $depcc " in #(
12775     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12776     esac
12777
12778  for depmode in $am_compiler_list; do
12779    # Setup a source with many dependencies, because some compilers
12780    # like to wrap large dependency lists on column 80 (with \), and
12781    # we should not choose a depcomp mode which is confused by this.
12782    #
12783    # We need to recreate these files for each test, as the compiler may
12784    # overwrite some of them when testing with obscure command lines.
12785    # This happens at least with the AIX C compiler.
12786    : > sub/conftest.c
12787    for i in 1 2 3 4 5 6; do
12788      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12789      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12790      # Solaris 10 /bin/sh.
12791      echo '/* dummy */' > sub/conftst$i.h
12792    done
12793    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12794
12795    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12796    # mode.  It turns out that the SunPro C++ compiler does not properly
12797    # handle '-M -o', and we need to detect this.  Also, some Intel
12798    # versions had trouble with output in subdirs.
12799    am__obj=sub/conftest.${OBJEXT-o}
12800    am__minus_obj="-o $am__obj"
12801    case $depmode in
12802    gcc)
12803      # This depmode causes a compiler race in universal mode.
12804      test "$am__universal" = false || continue
12805      ;;
12806    nosideeffect)
12807      # After this tag, mechanisms are not by side-effect, so they'll
12808      # only be used when explicitly requested.
12809      if test "x$enable_dependency_tracking" = xyes; then
12810	continue
12811      else
12812	break
12813      fi
12814      ;;
12815    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12816      # This compiler won't grok '-c -o', but also, the minuso test has
12817      # not run yet.  These depmodes are late enough in the game, and
12818      # so weak that their functioning should not be impacted.
12819      am__obj=conftest.${OBJEXT-o}
12820      am__minus_obj=
12821      ;;
12822    none) break ;;
12823    esac
12824    if depmode=$depmode \
12825       source=sub/conftest.c object=$am__obj \
12826       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12827       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12828         >/dev/null 2>conftest.err &&
12829       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12830       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12831       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12832       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12833      # icc doesn't choke on unknown options, it will just issue warnings
12834      # or remarks (even with -Werror).  So we grep stderr for any message
12835      # that says an option was ignored or not supported.
12836      # When given -MP, icc 7.0 and 7.1 complain thusly:
12837      #   icc: Command line warning: ignoring option '-M'; no argument required
12838      # The diagnosis changed in icc 8.0:
12839      #   icc: Command line remark: option '-MP' not supported
12840      if (grep 'ignoring option' conftest.err ||
12841          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12842        am_cv_CC_dependencies_compiler_type=$depmode
12843        break
12844      fi
12845    fi
12846  done
12847
12848  cd ..
12849  rm -rf conftest.dir
12850else
12851  am_cv_CC_dependencies_compiler_type=none
12852fi
12853
12854fi
12855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12856$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12857CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12858
12859 if
12860  test "x$enable_dependency_tracking" != xno \
12861  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12862  am__fastdepCC_TRUE=
12863  am__fastdepCC_FALSE='#'
12864else
12865  am__fastdepCC_TRUE='#'
12866  am__fastdepCC_FALSE=
12867fi
12868
12869
12870
12871# If --with-mpi=auto is used, try to find MPI, but use standard CC if not found.
12872# If --with-mpi=yes is used, try to find MPI and fail if it isn't found.
12873# If --with-mpi=no is used, use a standard C compiler instead.
12874
12875# Check whether --with-mpi was given.
12876if test "${with_mpi+set}" = set; then :
12877  withval=$with_mpi;
12878else
12879  with_mpi=auto
12880fi
12881
12882#
12883
12884
12885
12886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile using MPI" >&5
12887$as_echo_n "checking whether to compile using MPI... " >&6; }
12888    if test x"$with_mpi" != xno; then
12889      _ax_prog_cc_mpi_mpi_wanted=yes
12890    else
12891      _ax_prog_cc_mpi_mpi_wanted=no
12892    fi
12893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_cc_mpi_mpi_wanted" >&5
12894$as_echo "$_ax_prog_cc_mpi_mpi_wanted" >&6; }
12895
12896  if test x"$_ax_prog_cc_mpi_mpi_wanted" = xyes; then
12897    if test -z "$CC" && test -n "$MPICC"; then
12898      CC="$MPICC"
12899    else
12900      if test -n "$ac_tool_prefix"; then
12901  for ac_prog in mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc gcc
12902  do
12903    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906$as_echo_n "checking for $ac_word... " >&6; }
12907if ${ac_cv_prog_CC+:} false; then :
12908  $as_echo_n "(cached) " >&6
12909else
12910  if test -n "$CC"; then
12911  ac_cv_prog_CC="$CC" # Let the user override the test.
12912else
12913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914for as_dir in $PATH
12915do
12916  IFS=$as_save_IFS
12917  test -z "$as_dir" && as_dir=.
12918    for ac_exec_ext in '' $ac_executable_extensions; do
12919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12920    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922    break 2
12923  fi
12924done
12925  done
12926IFS=$as_save_IFS
12927
12928fi
12929fi
12930CC=$ac_cv_prog_CC
12931if test -n "$CC"; then
12932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12933$as_echo "$CC" >&6; }
12934else
12935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936$as_echo "no" >&6; }
12937fi
12938
12939
12940    test -n "$CC" && break
12941  done
12942fi
12943if test -z "$CC"; then
12944  ac_ct_CC=$CC
12945  for ac_prog in mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc gcc
12946do
12947  # Extract the first word of "$ac_prog", so it can be a program name with args.
12948set dummy $ac_prog; ac_word=$2
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950$as_echo_n "checking for $ac_word... " >&6; }
12951if ${ac_cv_prog_ac_ct_CC+:} false; then :
12952  $as_echo_n "(cached) " >&6
12953else
12954  if test -n "$ac_ct_CC"; then
12955  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12956else
12957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958for as_dir in $PATH
12959do
12960  IFS=$as_save_IFS
12961  test -z "$as_dir" && as_dir=.
12962    for ac_exec_ext in '' $ac_executable_extensions; do
12963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12964    ac_cv_prog_ac_ct_CC="$ac_prog"
12965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12966    break 2
12967  fi
12968done
12969  done
12970IFS=$as_save_IFS
12971
12972fi
12973fi
12974ac_ct_CC=$ac_cv_prog_ac_ct_CC
12975if test -n "$ac_ct_CC"; then
12976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12977$as_echo "$ac_ct_CC" >&6; }
12978else
12979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980$as_echo "no" >&6; }
12981fi
12982
12983
12984  test -n "$ac_ct_CC" && break
12985done
12986
12987  if test "x$ac_ct_CC" = x; then
12988    CC=""
12989  else
12990    case $cross_compiling:$ac_tool_warned in
12991yes:)
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12994ac_tool_warned=yes ;;
12995esac
12996    CC=$ac_ct_CC
12997  fi
12998fi
12999
13000    fi
13001  fi
13002  ac_ext=c
13003ac_cpp='$CPP $CPPFLAGS'
13004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13006ac_compiler_gnu=$ac_cv_c_compiler_gnu
13007if test -n "$ac_tool_prefix"; then
13008  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13009set dummy ${ac_tool_prefix}gcc; ac_word=$2
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011$as_echo_n "checking for $ac_word... " >&6; }
13012if ${ac_cv_prog_CC+:} false; then :
13013  $as_echo_n "(cached) " >&6
13014else
13015  if test -n "$CC"; then
13016  ac_cv_prog_CC="$CC" # Let the user override the test.
13017else
13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021  IFS=$as_save_IFS
13022  test -z "$as_dir" && as_dir=.
13023    for ac_exec_ext in '' $ac_executable_extensions; do
13024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025    ac_cv_prog_CC="${ac_tool_prefix}gcc"
13026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027    break 2
13028  fi
13029done
13030  done
13031IFS=$as_save_IFS
13032
13033fi
13034fi
13035CC=$ac_cv_prog_CC
13036if test -n "$CC"; then
13037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13038$as_echo "$CC" >&6; }
13039else
13040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
13042fi
13043
13044
13045fi
13046if test -z "$ac_cv_prog_CC"; then
13047  ac_ct_CC=$CC
13048  # Extract the first word of "gcc", so it can be a program name with args.
13049set dummy gcc; ac_word=$2
13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13051$as_echo_n "checking for $ac_word... " >&6; }
13052if ${ac_cv_prog_ac_ct_CC+:} false; then :
13053  $as_echo_n "(cached) " >&6
13054else
13055  if test -n "$ac_ct_CC"; then
13056  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13057else
13058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059for as_dir in $PATH
13060do
13061  IFS=$as_save_IFS
13062  test -z "$as_dir" && as_dir=.
13063    for ac_exec_ext in '' $ac_executable_extensions; do
13064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13065    ac_cv_prog_ac_ct_CC="gcc"
13066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067    break 2
13068  fi
13069done
13070  done
13071IFS=$as_save_IFS
13072
13073fi
13074fi
13075ac_ct_CC=$ac_cv_prog_ac_ct_CC
13076if test -n "$ac_ct_CC"; then
13077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13078$as_echo "$ac_ct_CC" >&6; }
13079else
13080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081$as_echo "no" >&6; }
13082fi
13083
13084  if test "x$ac_ct_CC" = x; then
13085    CC=""
13086  else
13087    case $cross_compiling:$ac_tool_warned in
13088yes:)
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13091ac_tool_warned=yes ;;
13092esac
13093    CC=$ac_ct_CC
13094  fi
13095else
13096  CC="$ac_cv_prog_CC"
13097fi
13098
13099if test -z "$CC"; then
13100          if test -n "$ac_tool_prefix"; then
13101    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13102set dummy ${ac_tool_prefix}cc; ac_word=$2
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104$as_echo_n "checking for $ac_word... " >&6; }
13105if ${ac_cv_prog_CC+:} false; then :
13106  $as_echo_n "(cached) " >&6
13107else
13108  if test -n "$CC"; then
13109  ac_cv_prog_CC="$CC" # Let the user override the test.
13110else
13111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112for as_dir in $PATH
13113do
13114  IFS=$as_save_IFS
13115  test -z "$as_dir" && as_dir=.
13116    for ac_exec_ext in '' $ac_executable_extensions; do
13117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13118    ac_cv_prog_CC="${ac_tool_prefix}cc"
13119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120    break 2
13121  fi
13122done
13123  done
13124IFS=$as_save_IFS
13125
13126fi
13127fi
13128CC=$ac_cv_prog_CC
13129if test -n "$CC"; then
13130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13131$as_echo "$CC" >&6; }
13132else
13133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134$as_echo "no" >&6; }
13135fi
13136
13137
13138  fi
13139fi
13140if test -z "$CC"; then
13141  # Extract the first word of "cc", so it can be a program name with args.
13142set dummy cc; ac_word=$2
13143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144$as_echo_n "checking for $ac_word... " >&6; }
13145if ${ac_cv_prog_CC+:} false; then :
13146  $as_echo_n "(cached) " >&6
13147else
13148  if test -n "$CC"; then
13149  ac_cv_prog_CC="$CC" # Let the user override the test.
13150else
13151  ac_prog_rejected=no
13152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153for as_dir in $PATH
13154do
13155  IFS=$as_save_IFS
13156  test -z "$as_dir" && as_dir=.
13157    for ac_exec_ext in '' $ac_executable_extensions; do
13158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13159    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13160       ac_prog_rejected=yes
13161       continue
13162     fi
13163    ac_cv_prog_CC="cc"
13164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165    break 2
13166  fi
13167done
13168  done
13169IFS=$as_save_IFS
13170
13171if test $ac_prog_rejected = yes; then
13172  # We found a bogon in the path, so make sure we never use it.
13173  set dummy $ac_cv_prog_CC
13174  shift
13175  if test $# != 0; then
13176    # We chose a different compiler from the bogus one.
13177    # However, it has the same basename, so the bogon will be chosen
13178    # first if we set CC to just the basename; use the full file name.
13179    shift
13180    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13181  fi
13182fi
13183fi
13184fi
13185CC=$ac_cv_prog_CC
13186if test -n "$CC"; then
13187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13188$as_echo "$CC" >&6; }
13189else
13190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191$as_echo "no" >&6; }
13192fi
13193
13194
13195fi
13196if test -z "$CC"; then
13197  if test -n "$ac_tool_prefix"; then
13198  for ac_prog in cl.exe
13199  do
13200    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13201set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203$as_echo_n "checking for $ac_word... " >&6; }
13204if ${ac_cv_prog_CC+:} false; then :
13205  $as_echo_n "(cached) " >&6
13206else
13207  if test -n "$CC"; then
13208  ac_cv_prog_CC="$CC" # Let the user override the test.
13209else
13210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211for as_dir in $PATH
13212do
13213  IFS=$as_save_IFS
13214  test -z "$as_dir" && as_dir=.
13215    for ac_exec_ext in '' $ac_executable_extensions; do
13216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219    break 2
13220  fi
13221done
13222  done
13223IFS=$as_save_IFS
13224
13225fi
13226fi
13227CC=$ac_cv_prog_CC
13228if test -n "$CC"; then
13229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13230$as_echo "$CC" >&6; }
13231else
13232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233$as_echo "no" >&6; }
13234fi
13235
13236
13237    test -n "$CC" && break
13238  done
13239fi
13240if test -z "$CC"; then
13241  ac_ct_CC=$CC
13242  for ac_prog in cl.exe
13243do
13244  # Extract the first word of "$ac_prog", so it can be a program name with args.
13245set dummy $ac_prog; ac_word=$2
13246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13247$as_echo_n "checking for $ac_word... " >&6; }
13248if ${ac_cv_prog_ac_ct_CC+:} false; then :
13249  $as_echo_n "(cached) " >&6
13250else
13251  if test -n "$ac_ct_CC"; then
13252  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13253else
13254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255for as_dir in $PATH
13256do
13257  IFS=$as_save_IFS
13258  test -z "$as_dir" && as_dir=.
13259    for ac_exec_ext in '' $ac_executable_extensions; do
13260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13261    ac_cv_prog_ac_ct_CC="$ac_prog"
13262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263    break 2
13264  fi
13265done
13266  done
13267IFS=$as_save_IFS
13268
13269fi
13270fi
13271ac_ct_CC=$ac_cv_prog_ac_ct_CC
13272if test -n "$ac_ct_CC"; then
13273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13274$as_echo "$ac_ct_CC" >&6; }
13275else
13276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277$as_echo "no" >&6; }
13278fi
13279
13280
13281  test -n "$ac_ct_CC" && break
13282done
13283
13284  if test "x$ac_ct_CC" = x; then
13285    CC=""
13286  else
13287    case $cross_compiling:$ac_tool_warned in
13288yes:)
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13291ac_tool_warned=yes ;;
13292esac
13293    CC=$ac_ct_CC
13294  fi
13295fi
13296
13297fi
13298
13299
13300test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13302as_fn_error $? "no acceptable C compiler found in \$PATH
13303See \`config.log' for more details" "$LINENO" 5; }
13304
13305# Provide some information about the compiler.
13306$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13307set X $ac_compile
13308ac_compiler=$2
13309for ac_option in --version -v -V -qversion; do
13310  { { ac_try="$ac_compiler $ac_option >&5"
13311case "(($ac_try" in
13312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313  *) ac_try_echo=$ac_try;;
13314esac
13315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13316$as_echo "$ac_try_echo"; } >&5
13317  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13318  ac_status=$?
13319  if test -s conftest.err; then
13320    sed '10a\
13321... rest of stderr output deleted ...
13322         10q' conftest.err >conftest.er1
13323    cat conftest.er1 >&5
13324  fi
13325  rm -f conftest.er1 conftest.err
13326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327  test $ac_status = 0; }
13328done
13329
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13332if ${ac_cv_c_compiler_gnu+:} false; then :
13333  $as_echo_n "(cached) " >&6
13334else
13335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336/* end confdefs.h.  */
13337
13338int
13339main ()
13340{
13341#ifndef __GNUC__
13342       choke me
13343#endif
13344
13345  ;
13346  return 0;
13347}
13348_ACEOF
13349if ac_fn_c_try_compile "$LINENO"; then :
13350  ac_compiler_gnu=yes
13351else
13352  ac_compiler_gnu=no
13353fi
13354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355ac_cv_c_compiler_gnu=$ac_compiler_gnu
13356
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13359$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13360if test $ac_compiler_gnu = yes; then
13361  GCC=yes
13362else
13363  GCC=
13364fi
13365ac_test_CFLAGS=${CFLAGS+set}
13366ac_save_CFLAGS=$CFLAGS
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13368$as_echo_n "checking whether $CC accepts -g... " >&6; }
13369if ${ac_cv_prog_cc_g+:} false; then :
13370  $as_echo_n "(cached) " >&6
13371else
13372  ac_save_c_werror_flag=$ac_c_werror_flag
13373   ac_c_werror_flag=yes
13374   ac_cv_prog_cc_g=no
13375   CFLAGS="-g"
13376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377/* end confdefs.h.  */
13378
13379int
13380main ()
13381{
13382
13383  ;
13384  return 0;
13385}
13386_ACEOF
13387if ac_fn_c_try_compile "$LINENO"; then :
13388  ac_cv_prog_cc_g=yes
13389else
13390  CFLAGS=""
13391      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392/* end confdefs.h.  */
13393
13394int
13395main ()
13396{
13397
13398  ;
13399  return 0;
13400}
13401_ACEOF
13402if ac_fn_c_try_compile "$LINENO"; then :
13403
13404else
13405  ac_c_werror_flag=$ac_save_c_werror_flag
13406	 CFLAGS="-g"
13407	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408/* end confdefs.h.  */
13409
13410int
13411main ()
13412{
13413
13414  ;
13415  return 0;
13416}
13417_ACEOF
13418if ac_fn_c_try_compile "$LINENO"; then :
13419  ac_cv_prog_cc_g=yes
13420fi
13421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13422fi
13423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424fi
13425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426   ac_c_werror_flag=$ac_save_c_werror_flag
13427fi
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13429$as_echo "$ac_cv_prog_cc_g" >&6; }
13430if test "$ac_test_CFLAGS" = set; then
13431  CFLAGS=$ac_save_CFLAGS
13432elif test $ac_cv_prog_cc_g = yes; then
13433  if test "$GCC" = yes; then
13434    CFLAGS="-g -O2"
13435  else
13436    CFLAGS="-g"
13437  fi
13438else
13439  if test "$GCC" = yes; then
13440    CFLAGS="-O2"
13441  else
13442    CFLAGS=
13443  fi
13444fi
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13447if ${ac_cv_prog_cc_c89+:} false; then :
13448  $as_echo_n "(cached) " >&6
13449else
13450  ac_cv_prog_cc_c89=no
13451ac_save_CC=$CC
13452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453/* end confdefs.h.  */
13454#include <stdarg.h>
13455#include <stdio.h>
13456struct stat;
13457/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13458struct buf { int x; };
13459FILE * (*rcsopen) (struct buf *, struct stat *, int);
13460static char *e (p, i)
13461     char **p;
13462     int i;
13463{
13464  return p[i];
13465}
13466static char *f (char * (*g) (char **, int), char **p, ...)
13467{
13468  char *s;
13469  va_list v;
13470  va_start (v,p);
13471  s = g (p, va_arg (v,int));
13472  va_end (v);
13473  return s;
13474}
13475
13476/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13477   function prototypes and stuff, but not '\xHH' hex character constants.
13478   These don't provoke an error unfortunately, instead are silently treated
13479   as 'x'.  The following induces an error, until -std is added to get
13480   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13481   array size at least.  It's necessary to write '\x00'==0 to get something
13482   that's true only with -std.  */
13483int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13484
13485/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13486   inside strings and character constants.  */
13487#define FOO(x) 'x'
13488int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13489
13490int test (int i, double x);
13491struct s1 {int (*f) (int a);};
13492struct s2 {int (*f) (double a);};
13493int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13494int argc;
13495char **argv;
13496int
13497main ()
13498{
13499return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13500  ;
13501  return 0;
13502}
13503_ACEOF
13504for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13505	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13506do
13507  CC="$ac_save_CC $ac_arg"
13508  if ac_fn_c_try_compile "$LINENO"; then :
13509  ac_cv_prog_cc_c89=$ac_arg
13510fi
13511rm -f core conftest.err conftest.$ac_objext
13512  test "x$ac_cv_prog_cc_c89" != "xno" && break
13513done
13514rm -f conftest.$ac_ext
13515CC=$ac_save_CC
13516
13517fi
13518# AC_CACHE_VAL
13519case "x$ac_cv_prog_cc_c89" in
13520  x)
13521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13522$as_echo "none needed" >&6; } ;;
13523  xno)
13524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13525$as_echo "unsupported" >&6; } ;;
13526  *)
13527    CC="$CC $ac_cv_prog_cc_c89"
13528    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13529$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13530esac
13531if test "x$ac_cv_prog_cc_c89" != xno; then :
13532
13533fi
13534
13535ac_ext=c
13536ac_cpp='$CPP $CPPFLAGS'
13537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13539ac_compiler_gnu=$ac_cv_c_compiler_gnu
13540
13541ac_ext=c
13542ac_cpp='$CPP $CPPFLAGS'
13543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13545ac_compiler_gnu=$ac_cv_c_compiler_gnu
13546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13547$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13548if ${am_cv_prog_cc_c_o+:} false; then :
13549  $as_echo_n "(cached) " >&6
13550else
13551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552/* end confdefs.h.  */
13553
13554int
13555main ()
13556{
13557
13558  ;
13559  return 0;
13560}
13561_ACEOF
13562  # Make sure it works both with $CC and with simple cc.
13563  # Following AC_PROG_CC_C_O, we do the test twice because some
13564  # compilers refuse to overwrite an existing .o file with -o,
13565  # though they will create one.
13566  am_cv_prog_cc_c_o=yes
13567  for am_i in 1 2; do
13568    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13569   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } \
13573         && test -f conftest2.$ac_objext; then
13574      : OK
13575    else
13576      am_cv_prog_cc_c_o=no
13577      break
13578    fi
13579  done
13580  rm -f core conftest*
13581  unset am_i
13582fi
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13584$as_echo "$am_cv_prog_cc_c_o" >&6; }
13585if test "$am_cv_prog_cc_c_o" != yes; then
13586   # Losing compiler, so override with the script.
13587   # FIXME: It is wrong to rewrite CC.
13588   # But if we don't then we get into trouble of one sort or another.
13589   # A longer-term fix would be to have automake use am__CC in this case,
13590   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13591   CC="$am_aux_dir/compile $CC"
13592fi
13593ac_ext=c
13594ac_cpp='$CPP $CPPFLAGS'
13595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13597ac_compiler_gnu=$ac_cv_c_compiler_gnu
13598
13599
13600depcc="$CC"   am_compiler_list=
13601
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13603$as_echo_n "checking dependency style of $depcc... " >&6; }
13604if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13605  $as_echo_n "(cached) " >&6
13606else
13607  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13608  # We make a subdir and do the tests there.  Otherwise we can end up
13609  # making bogus files that we don't know about and never remove.  For
13610  # instance it was reported that on HP-UX the gcc test will end up
13611  # making a dummy file named 'D' -- because '-MD' means "put the output
13612  # in D".
13613  rm -rf conftest.dir
13614  mkdir conftest.dir
13615  # Copy depcomp to subdir because otherwise we won't find it if we're
13616  # using a relative directory.
13617  cp "$am_depcomp" conftest.dir
13618  cd conftest.dir
13619  # We will build objects and dependencies in a subdirectory because
13620  # it helps to detect inapplicable dependency modes.  For instance
13621  # both Tru64's cc and ICC support -MD to output dependencies as a
13622  # side effect of compilation, but ICC will put the dependencies in
13623  # the current directory while Tru64 will put them in the object
13624  # directory.
13625  mkdir sub
13626
13627  am_cv_CC_dependencies_compiler_type=none
13628  if test "$am_compiler_list" = ""; then
13629     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13630  fi
13631  am__universal=false
13632  case " $depcc " in #(
13633     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13634     esac
13635
13636  for depmode in $am_compiler_list; do
13637    # Setup a source with many dependencies, because some compilers
13638    # like to wrap large dependency lists on column 80 (with \), and
13639    # we should not choose a depcomp mode which is confused by this.
13640    #
13641    # We need to recreate these files for each test, as the compiler may
13642    # overwrite some of them when testing with obscure command lines.
13643    # This happens at least with the AIX C compiler.
13644    : > sub/conftest.c
13645    for i in 1 2 3 4 5 6; do
13646      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13647      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13648      # Solaris 10 /bin/sh.
13649      echo '/* dummy */' > sub/conftst$i.h
13650    done
13651    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13652
13653    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13654    # mode.  It turns out that the SunPro C++ compiler does not properly
13655    # handle '-M -o', and we need to detect this.  Also, some Intel
13656    # versions had trouble with output in subdirs.
13657    am__obj=sub/conftest.${OBJEXT-o}
13658    am__minus_obj="-o $am__obj"
13659    case $depmode in
13660    gcc)
13661      # This depmode causes a compiler race in universal mode.
13662      test "$am__universal" = false || continue
13663      ;;
13664    nosideeffect)
13665      # After this tag, mechanisms are not by side-effect, so they'll
13666      # only be used when explicitly requested.
13667      if test "x$enable_dependency_tracking" = xyes; then
13668	continue
13669      else
13670	break
13671      fi
13672      ;;
13673    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13674      # This compiler won't grok '-c -o', but also, the minuso test has
13675      # not run yet.  These depmodes are late enough in the game, and
13676      # so weak that their functioning should not be impacted.
13677      am__obj=conftest.${OBJEXT-o}
13678      am__minus_obj=
13679      ;;
13680    none) break ;;
13681    esac
13682    if depmode=$depmode \
13683       source=sub/conftest.c object=$am__obj \
13684       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13685       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13686         >/dev/null 2>conftest.err &&
13687       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13688       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13689       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13690       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13691      # icc doesn't choke on unknown options, it will just issue warnings
13692      # or remarks (even with -Werror).  So we grep stderr for any message
13693      # that says an option was ignored or not supported.
13694      # When given -MP, icc 7.0 and 7.1 complain thusly:
13695      #   icc: Command line warning: ignoring option '-M'; no argument required
13696      # The diagnosis changed in icc 8.0:
13697      #   icc: Command line remark: option '-MP' not supported
13698      if (grep 'ignoring option' conftest.err ||
13699          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13700        am_cv_CC_dependencies_compiler_type=$depmode
13701        break
13702      fi
13703    fi
13704  done
13705
13706  cd ..
13707  rm -rf conftest.dir
13708else
13709  am_cv_CC_dependencies_compiler_type=none
13710fi
13711
13712fi
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13714$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13715CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13716
13717 if
13718  test "x$enable_dependency_tracking" != xno \
13719  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13720  am__fastdepCC_TRUE=
13721  am__fastdepCC_FALSE='#'
13722else
13723  am__fastdepCC_TRUE='#'
13724  am__fastdepCC_FALSE=
13725fi
13726
13727
13728
13729
13730
13731
13732# Check for compiler
13733# Needs to be split off into an extra macro to ensure right expansion
13734# order.
13735
13736
13737if test x"$_ax_prog_cc_mpi_mpi_wanted" = xno; then :
13738   _ax_prog_cc_mpi_mpi_found=no
13739else
13740
13741    ac_ext=c
13742ac_cpp='$CPP $CPPFLAGS'
13743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13745ac_compiler_gnu=$ac_cv_c_compiler_gnu
13746
13747    # test whether MPI_Init is available
13748    # We do not use AC_SEARCH_LIBS here, as it caches its outcome and
13749    # thus disallows corresponding calls in the other AX_PROG_*_MPI
13750    # macros.
13751    for lib in NONE mpi mpich; do
13752      save_LIBS=$LIBS
13753      if test x"$lib" = xNONE; then
13754        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI_Init" >&5
13755$as_echo_n "checking for function MPI_Init... " >&6; }
13756      else
13757        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI_Init in -l$lib" >&5
13758$as_echo_n "checking for function MPI_Init in -l$lib... " >&6; }
13759        LIBS="-l$lib $LIBS"
13760      fi
13761      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762/* end confdefs.h.  */
13763
13764/* Override any GCC internal prototype to avoid an error.
13765   Use char because int might match the return type of a GCC
13766   builtin and then its argument prototype would still apply.  */
13767#ifdef __cplusplus
13768extern "C"
13769#endif
13770char MPI_Init ();
13771int
13772main ()
13773{
13774return MPI_Init ();
13775  ;
13776  return 0;
13777}
13778_ACEOF
13779if ac_fn_c_try_link "$LINENO"; then :
13780   _ax_prog_cc_mpi_mpi_found=yes
13781else
13782   _ax_prog_cc_mpi_mpi_found=no
13783fi
13784rm -f core conftest.err conftest.$ac_objext \
13785    conftest$ac_exeext conftest.$ac_ext
13786      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_cc_mpi_mpi_found" >&5
13787$as_echo "$_ax_prog_cc_mpi_mpi_found" >&6; }
13788      if test "x$_ax_prog_cc_mpi_mpi_found" = "xyes"; then
13789        break;
13790      fi
13791      LIBS=$save_LIBS
13792    done
13793
13794    # Check for header
13795    if test x"$_ax_prog_cc_mpi_mpi_found" = xyes; then :
13796
13797      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
13798$as_echo_n "checking for mpi.h... " >&6; }
13799      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800/* end confdefs.h.  */
13801#include <mpi.h>
13802int
13803main ()
13804{
13805
13806  ;
13807  return 0;
13808}
13809_ACEOF
13810if ac_fn_c_try_compile "$LINENO"; then :
13811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13812$as_echo "yes" >&6; }
13813else
13814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815$as_echo "no" >&6; }
13816        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi/mpi.h" >&5
13817$as_echo_n "checking for mpi/mpi.h... " >&6; }
13818        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819/* end confdefs.h.  */
13820#include <mpi/mpi.h>
13821int
13822main ()
13823{
13824
13825  ;
13826  return 0;
13827}
13828_ACEOF
13829if ac_fn_c_try_compile "$LINENO"; then :
13830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13831$as_echo "yes" >&6; }
13832else
13833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834$as_echo "no" >&6; }
13835           _ax_prog_cc_mpi_mpi_found=no
13836
13837fi
13838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839
13840fi
13841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842
13843fi
13844    ac_ext=c
13845ac_cpp='$CPP $CPPFLAGS'
13846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13848ac_compiler_gnu=$ac_cv_c_compiler_gnu
13849
13850
13851fi
13852
13853# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13854if test x"$_ax_prog_cc_mpi_mpi_found" = xyes; then :
13855
13856
13857  use_mpi=yes
13858  if test -n "$ac_tool_prefix"; then
13859  for ac_prog in mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc \
13860                           sxmpicc mpifcc mpgcc mpcc cmpicc
13861  do
13862    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13863set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13865$as_echo_n "checking for $ac_word... " >&6; }
13866if ${ac_cv_prog_MPICC+:} false; then :
13867  $as_echo_n "(cached) " >&6
13868else
13869  if test -n "$MPICC"; then
13870  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
13871else
13872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13873for as_dir in $PATH
13874do
13875  IFS=$as_save_IFS
13876  test -z "$as_dir" && as_dir=.
13877    for ac_exec_ext in '' $ac_executable_extensions; do
13878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13879    ac_cv_prog_MPICC="$ac_tool_prefix$ac_prog"
13880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13881    break 2
13882  fi
13883done
13884  done
13885IFS=$as_save_IFS
13886
13887fi
13888fi
13889MPICC=$ac_cv_prog_MPICC
13890if test -n "$MPICC"; then
13891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
13892$as_echo "$MPICC" >&6; }
13893else
13894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895$as_echo "no" >&6; }
13896fi
13897
13898
13899    test -n "$MPICC" && break
13900  done
13901fi
13902if test -z "$MPICC"; then
13903  ac_ct_MPICC=$MPICC
13904  for ac_prog in mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc \
13905                           sxmpicc mpifcc mpgcc mpcc cmpicc
13906do
13907  # Extract the first word of "$ac_prog", so it can be a program name with args.
13908set dummy $ac_prog; ac_word=$2
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13910$as_echo_n "checking for $ac_word... " >&6; }
13911if ${ac_cv_prog_ac_ct_MPICC+:} false; then :
13912  $as_echo_n "(cached) " >&6
13913else
13914  if test -n "$ac_ct_MPICC"; then
13915  ac_cv_prog_ac_ct_MPICC="$ac_ct_MPICC" # Let the user override the test.
13916else
13917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13918for as_dir in $PATH
13919do
13920  IFS=$as_save_IFS
13921  test -z "$as_dir" && as_dir=.
13922    for ac_exec_ext in '' $ac_executable_extensions; do
13923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13924    ac_cv_prog_ac_ct_MPICC="$ac_prog"
13925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13926    break 2
13927  fi
13928done
13929  done
13930IFS=$as_save_IFS
13931
13932fi
13933fi
13934ac_ct_MPICC=$ac_cv_prog_ac_ct_MPICC
13935if test -n "$ac_ct_MPICC"; then
13936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MPICC" >&5
13937$as_echo "$ac_ct_MPICC" >&6; }
13938else
13939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940$as_echo "no" >&6; }
13941fi
13942
13943
13944  test -n "$ac_ct_MPICC" && break
13945done
13946
13947  if test "x$ac_ct_MPICC" = x; then
13948    MPICC=""
13949  else
13950    case $cross_compiling:$ac_tool_warned in
13951yes:)
13952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13954ac_tool_warned=yes ;;
13955esac
13956    MPICC=$ac_ct_MPICC
13957  fi
13958fi
13959
13960  # MPICC="mpicc"
13961
13962        :
13963
13964else
13965
13966
13967  use_mpi=no
13968  if test x"$with_mpi" = xyes; then
13969    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13971as_fn_error $? "MPI compiler requested, but couldn't use MPI.
13972See \`config.log' for more details" "$LINENO" 5; }
13973  else
13974    { $as_echo "$as_me:${as_lineno-$LINENO}: No-MPI requested, won't use MPI." >&5
13975$as_echo "$as_me: No-MPI requested, won't use MPI." >&6;}
13976  fi
13977
13978        :
13979
13980fi
13981
13982
13983
13984# Checks for programs needed by xmcsim
13985# Extract the first word of "wish", so it can be a program name with args.
13986set dummy wish; ac_word=$2
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988$as_echo_n "checking for $ac_word... " >&6; }
13989if ${ac_cv_prog_WISH_FOUND+:} false; then :
13990  $as_echo_n "(cached) " >&6
13991else
13992  if test -n "$WISH_FOUND"; then
13993  ac_cv_prog_WISH_FOUND="$WISH_FOUND" # Let the user override the test.
13994else
13995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996for as_dir in $PATH
13997do
13998  IFS=$as_save_IFS
13999  test -z "$as_dir" && as_dir=.
14000    for ac_exec_ext in '' $ac_executable_extensions; do
14001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14002    ac_cv_prog_WISH_FOUND="yes"
14003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14004    break 2
14005  fi
14006done
14007  done
14008IFS=$as_save_IFS
14009
14010fi
14011fi
14012WISH_FOUND=$ac_cv_prog_WISH_FOUND
14013if test -n "$WISH_FOUND"; then
14014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WISH_FOUND" >&5
14015$as_echo "$WISH_FOUND" >&6; }
14016else
14017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018$as_echo "no" >&6; }
14019fi
14020
14021
14022# Extract the first word of "gnuplot", so it can be a program name with args.
14023set dummy gnuplot; ac_word=$2
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14025$as_echo_n "checking for $ac_word... " >&6; }
14026if ${ac_cv_prog_PLOT_FOUND+:} false; then :
14027  $as_echo_n "(cached) " >&6
14028else
14029  if test -n "$PLOT_FOUND"; then
14030  ac_cv_prog_PLOT_FOUND="$PLOT_FOUND" # Let the user override the test.
14031else
14032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14033for as_dir in $PATH
14034do
14035  IFS=$as_save_IFS
14036  test -z "$as_dir" && as_dir=.
14037    for ac_exec_ext in '' $ac_executable_extensions; do
14038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14039    ac_cv_prog_PLOT_FOUND="yes"
14040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14041    break 2
14042  fi
14043done
14044  done
14045IFS=$as_save_IFS
14046
14047fi
14048fi
14049PLOT_FOUND=$ac_cv_prog_PLOT_FOUND
14050if test -n "$PLOT_FOUND"; then
14051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLOT_FOUND" >&5
14052$as_echo "$PLOT_FOUND" >&6; }
14053else
14054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055$as_echo "no" >&6; }
14056fi
14057
14058
14059
14060# Checks for libraries; watch the order between libraries
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llapack" >&5
14062$as_echo_n "checking for main in -llapack... " >&6; }
14063if ${ac_cv_lib_lapack_main+:} false; then :
14064  $as_echo_n "(cached) " >&6
14065else
14066  ac_check_lib_save_LIBS=$LIBS
14067LIBS="-llapack  $LIBS"
14068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069/* end confdefs.h.  */
14070
14071
14072int
14073main ()
14074{
14075return main ();
14076  ;
14077  return 0;
14078}
14079_ACEOF
14080if ac_fn_c_try_link "$LINENO"; then :
14081  ac_cv_lib_lapack_main=yes
14082else
14083  ac_cv_lib_lapack_main=no
14084fi
14085rm -f core conftest.err conftest.$ac_objext \
14086    conftest$ac_exeext conftest.$ac_ext
14087LIBS=$ac_check_lib_save_LIBS
14088fi
14089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_main" >&5
14090$as_echo "$ac_cv_lib_lapack_main" >&6; }
14091if test "x$ac_cv_lib_lapack_main" = xyes; then :
14092  cat >>confdefs.h <<_ACEOF
14093#define HAVE_LIBLAPACK 1
14094_ACEOF
14095
14096  LIBS="-llapack $LIBS"
14097
14098fi
14099
14100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsundials_nvecserial" >&5
14101$as_echo_n "checking for main in -lsundials_nvecserial... " >&6; }
14102if ${ac_cv_lib_sundials_nvecserial_main+:} false; then :
14103  $as_echo_n "(cached) " >&6
14104else
14105  ac_check_lib_save_LIBS=$LIBS
14106LIBS="-lsundials_nvecserial  $LIBS"
14107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108/* end confdefs.h.  */
14109
14110
14111int
14112main ()
14113{
14114return main ();
14115  ;
14116  return 0;
14117}
14118_ACEOF
14119if ac_fn_c_try_link "$LINENO"; then :
14120  ac_cv_lib_sundials_nvecserial_main=yes
14121else
14122  ac_cv_lib_sundials_nvecserial_main=no
14123fi
14124rm -f core conftest.err conftest.$ac_objext \
14125    conftest$ac_exeext conftest.$ac_ext
14126LIBS=$ac_check_lib_save_LIBS
14127fi
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sundials_nvecserial_main" >&5
14129$as_echo "$ac_cv_lib_sundials_nvecserial_main" >&6; }
14130if test "x$ac_cv_lib_sundials_nvecserial_main" = xyes; then :
14131  cat >>confdefs.h <<_ACEOF
14132#define HAVE_LIBSUNDIALS_NVECSERIAL 1
14133_ACEOF
14134
14135  LIBS="-lsundials_nvecserial $LIBS"
14136
14137fi
14138
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsundials_cvodes" >&5
14140$as_echo_n "checking for main in -lsundials_cvodes... " >&6; }
14141if ${ac_cv_lib_sundials_cvodes_main+:} false; then :
14142  $as_echo_n "(cached) " >&6
14143else
14144  ac_check_lib_save_LIBS=$LIBS
14145LIBS="-lsundials_cvodes  $LIBS"
14146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147/* end confdefs.h.  */
14148
14149
14150int
14151main ()
14152{
14153return main ();
14154  ;
14155  return 0;
14156}
14157_ACEOF
14158if ac_fn_c_try_link "$LINENO"; then :
14159  ac_cv_lib_sundials_cvodes_main=yes
14160else
14161  ac_cv_lib_sundials_cvodes_main=no
14162fi
14163rm -f core conftest.err conftest.$ac_objext \
14164    conftest$ac_exeext conftest.$ac_ext
14165LIBS=$ac_check_lib_save_LIBS
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sundials_cvodes_main" >&5
14168$as_echo "$ac_cv_lib_sundials_cvodes_main" >&6; }
14169if test "x$ac_cv_lib_sundials_cvodes_main" = xyes; then :
14170  cat >>confdefs.h <<_ACEOF
14171#define HAVE_LIBSUNDIALS_CVODES 1
14172_ACEOF
14173
14174  LIBS="-lsundials_cvodes $LIBS"
14175
14176fi
14177
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgslcblas" >&5
14179$as_echo_n "checking for main in -lgslcblas... " >&6; }
14180if ${ac_cv_lib_gslcblas_main+:} false; then :
14181  $as_echo_n "(cached) " >&6
14182else
14183  ac_check_lib_save_LIBS=$LIBS
14184LIBS="-lgslcblas  $LIBS"
14185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186/* end confdefs.h.  */
14187
14188
14189int
14190main ()
14191{
14192return main ();
14193  ;
14194  return 0;
14195}
14196_ACEOF
14197if ac_fn_c_try_link "$LINENO"; then :
14198  ac_cv_lib_gslcblas_main=yes
14199else
14200  ac_cv_lib_gslcblas_main=no
14201fi
14202rm -f core conftest.err conftest.$ac_objext \
14203    conftest$ac_exeext conftest.$ac_ext
14204LIBS=$ac_check_lib_save_LIBS
14205fi
14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_main" >&5
14207$as_echo "$ac_cv_lib_gslcblas_main" >&6; }
14208if test "x$ac_cv_lib_gslcblas_main" = xyes; then :
14209  cat >>confdefs.h <<_ACEOF
14210#define HAVE_LIBGSLCBLAS 1
14211_ACEOF
14212
14213  LIBS="-lgslcblas $LIBS"
14214
14215fi
14216
14217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsl_cdf_gamma_P in -lgsl" >&5
14218$as_echo_n "checking for gsl_cdf_gamma_P in -lgsl... " >&6; }
14219if ${ac_cv_lib_gsl_gsl_cdf_gamma_P+:} false; then :
14220  $as_echo_n "(cached) " >&6
14221else
14222  ac_check_lib_save_LIBS=$LIBS
14223LIBS="-lgsl  $LIBS"
14224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225/* end confdefs.h.  */
14226
14227/* Override any GCC internal prototype to avoid an error.
14228   Use char because int might match the return type of a GCC
14229   builtin and then its argument prototype would still apply.  */
14230#ifdef __cplusplus
14231extern "C"
14232#endif
14233char gsl_cdf_gamma_P ();
14234int
14235main ()
14236{
14237return gsl_cdf_gamma_P ();
14238  ;
14239  return 0;
14240}
14241_ACEOF
14242if ac_fn_c_try_link "$LINENO"; then :
14243  ac_cv_lib_gsl_gsl_cdf_gamma_P=yes
14244else
14245  ac_cv_lib_gsl_gsl_cdf_gamma_P=no
14246fi
14247rm -f core conftest.err conftest.$ac_objext \
14248    conftest$ac_exeext conftest.$ac_ext
14249LIBS=$ac_check_lib_save_LIBS
14250fi
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_cdf_gamma_P" >&5
14252$as_echo "$ac_cv_lib_gsl_gsl_cdf_gamma_P" >&6; }
14253if test "x$ac_cv_lib_gsl_gsl_cdf_gamma_P" = xyes; then :
14254  cat >>confdefs.h <<_ACEOF
14255#define HAVE_LIBGSL 1
14256_ACEOF
14257
14258  LIBS="-lgsl $LIBS"
14259
14260fi
14261
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
14263$as_echo_n "checking for main in -lm... " >&6; }
14264if ${ac_cv_lib_m_main+:} false; then :
14265  $as_echo_n "(cached) " >&6
14266else
14267  ac_check_lib_save_LIBS=$LIBS
14268LIBS="-lm  $LIBS"
14269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270/* end confdefs.h.  */
14271
14272
14273int
14274main ()
14275{
14276return main ();
14277  ;
14278  return 0;
14279}
14280_ACEOF
14281if ac_fn_c_try_link "$LINENO"; then :
14282  ac_cv_lib_m_main=yes
14283else
14284  ac_cv_lib_m_main=no
14285fi
14286rm -f core conftest.err conftest.$ac_objext \
14287    conftest$ac_exeext conftest.$ac_ext
14288LIBS=$ac_check_lib_save_LIBS
14289fi
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
14291$as_echo "$ac_cv_lib_m_main" >&6; }
14292if test "x$ac_cv_lib_m_main" = xyes; then :
14293  cat >>confdefs.h <<_ACEOF
14294#define HAVE_LIBM 1
14295_ACEOF
14296
14297  LIBS="-lm $LIBS"
14298
14299fi
14300
14301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsbml" >&5
14302$as_echo_n "checking for main in -lsbml... " >&6; }
14303if ${ac_cv_lib_sbml_main+:} false; then :
14304  $as_echo_n "(cached) " >&6
14305else
14306  ac_check_lib_save_LIBS=$LIBS
14307LIBS="-lsbml  $LIBS"
14308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309/* end confdefs.h.  */
14310
14311
14312int
14313main ()
14314{
14315return main ();
14316  ;
14317  return 0;
14318}
14319_ACEOF
14320if ac_fn_c_try_link "$LINENO"; then :
14321  ac_cv_lib_sbml_main=yes
14322else
14323  ac_cv_lib_sbml_main=no
14324fi
14325rm -f core conftest.err conftest.$ac_objext \
14326    conftest$ac_exeext conftest.$ac_ext
14327LIBS=$ac_check_lib_save_LIBS
14328fi
14329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sbml_main" >&5
14330$as_echo "$ac_cv_lib_sbml_main" >&6; }
14331if test "x$ac_cv_lib_sbml_main" = xyes; then :
14332  cat >>confdefs.h <<_ACEOF
14333#define HAVE_LIBSBML 1
14334_ACEOF
14335
14336  LIBS="-lsbml $LIBS"
14337
14338fi
14339
14340
14341# Checks for header files.
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14343$as_echo_n "checking for ANSI C header files... " >&6; }
14344if ${ac_cv_header_stdc+:} false; then :
14345  $as_echo_n "(cached) " >&6
14346else
14347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348/* end confdefs.h.  */
14349#include <stdlib.h>
14350#include <stdarg.h>
14351#include <string.h>
14352#include <float.h>
14353
14354int
14355main ()
14356{
14357
14358  ;
14359  return 0;
14360}
14361_ACEOF
14362if ac_fn_c_try_compile "$LINENO"; then :
14363  ac_cv_header_stdc=yes
14364else
14365  ac_cv_header_stdc=no
14366fi
14367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14368
14369if test $ac_cv_header_stdc = yes; then
14370  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372/* end confdefs.h.  */
14373#include <string.h>
14374
14375_ACEOF
14376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14377  $EGREP "memchr" >/dev/null 2>&1; then :
14378
14379else
14380  ac_cv_header_stdc=no
14381fi
14382rm -f conftest*
14383
14384fi
14385
14386if test $ac_cv_header_stdc = yes; then
14387  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389/* end confdefs.h.  */
14390#include <stdlib.h>
14391
14392_ACEOF
14393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14394  $EGREP "free" >/dev/null 2>&1; then :
14395
14396else
14397  ac_cv_header_stdc=no
14398fi
14399rm -f conftest*
14400
14401fi
14402
14403if test $ac_cv_header_stdc = yes; then
14404  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14405  if test "$cross_compiling" = yes; then :
14406  :
14407else
14408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409/* end confdefs.h.  */
14410#include <ctype.h>
14411#include <stdlib.h>
14412#if ((' ' & 0x0FF) == 0x020)
14413# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14414# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14415#else
14416# define ISLOWER(c) \
14417		   (('a' <= (c) && (c) <= 'i') \
14418		     || ('j' <= (c) && (c) <= 'r') \
14419		     || ('s' <= (c) && (c) <= 'z'))
14420# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14421#endif
14422
14423#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14424int
14425main ()
14426{
14427  int i;
14428  for (i = 0; i < 256; i++)
14429    if (XOR (islower (i), ISLOWER (i))
14430	|| toupper (i) != TOUPPER (i))
14431      return 2;
14432  return 0;
14433}
14434_ACEOF
14435if ac_fn_c_try_run "$LINENO"; then :
14436
14437else
14438  ac_cv_header_stdc=no
14439fi
14440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14441  conftest.$ac_objext conftest.beam conftest.$ac_ext
14442fi
14443
14444fi
14445fi
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14447$as_echo "$ac_cv_header_stdc" >&6; }
14448if test $ac_cv_header_stdc = yes; then
14449
14450$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14451
14452fi
14453
14454for ac_header in float.h limits.h
14455do :
14456  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14457ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14458if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14459  cat >>confdefs.h <<_ACEOF
14460#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14461_ACEOF
14462
14463fi
14464
14465done
14466
14467
14468# Checks for typedefs, structures, and compiler characteristics.
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14470$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14471if ${ac_cv_c_const+:} false; then :
14472  $as_echo_n "(cached) " >&6
14473else
14474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475/* end confdefs.h.  */
14476
14477int
14478main ()
14479{
14480
14481#ifndef __cplusplus
14482  /* Ultrix mips cc rejects this sort of thing.  */
14483  typedef int charset[2];
14484  const charset cs = { 0, 0 };
14485  /* SunOS 4.1.1 cc rejects this.  */
14486  char const *const *pcpcc;
14487  char **ppc;
14488  /* NEC SVR4.0.2 mips cc rejects this.  */
14489  struct point {int x, y;};
14490  static struct point const zero = {0,0};
14491  /* AIX XL C 1.02.0.0 rejects this.
14492     It does not let you subtract one const X* pointer from another in
14493     an arm of an if-expression whose if-part is not a constant
14494     expression */
14495  const char *g = "string";
14496  pcpcc = &g + (g ? g-g : 0);
14497  /* HPUX 7.0 cc rejects these. */
14498  ++pcpcc;
14499  ppc = (char**) pcpcc;
14500  pcpcc = (char const *const *) ppc;
14501  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14502    char tx;
14503    char *t = &tx;
14504    char const *s = 0 ? (char *) 0 : (char const *) 0;
14505
14506    *t++ = 0;
14507    if (s) return 0;
14508  }
14509  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14510    int x[] = {25, 17};
14511    const int *foo = &x[0];
14512    ++foo;
14513  }
14514  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14515    typedef const int *iptr;
14516    iptr p = 0;
14517    ++p;
14518  }
14519  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14520       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14521    struct s { int j; const int *ap[3]; } bx;
14522    struct s *b = &bx; b->j = 5;
14523  }
14524  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14525    const int foo = 10;
14526    if (!foo) return 0;
14527  }
14528  return !cs[0] && !zero.x;
14529#endif
14530
14531  ;
14532  return 0;
14533}
14534_ACEOF
14535if ac_fn_c_try_compile "$LINENO"; then :
14536  ac_cv_c_const=yes
14537else
14538  ac_cv_c_const=no
14539fi
14540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541fi
14542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14543$as_echo "$ac_cv_c_const" >&6; }
14544if test $ac_cv_c_const = no; then
14545
14546$as_echo "#define const /**/" >>confdefs.h
14547
14548fi
14549
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14551$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14552if ${ac_cv_struct_tm+:} false; then :
14553  $as_echo_n "(cached) " >&6
14554else
14555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556/* end confdefs.h.  */
14557#include <sys/types.h>
14558#include <time.h>
14559
14560int
14561main ()
14562{
14563struct tm tm;
14564				     int *p = &tm.tm_sec;
14565				     return !p;
14566  ;
14567  return 0;
14568}
14569_ACEOF
14570if ac_fn_c_try_compile "$LINENO"; then :
14571  ac_cv_struct_tm=time.h
14572else
14573  ac_cv_struct_tm=sys/time.h
14574fi
14575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576fi
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14578$as_echo "$ac_cv_struct_tm" >&6; }
14579if test $ac_cv_struct_tm = sys/time.h; then
14580
14581$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14582
14583fi
14584
14585
14586# Checks for library functions.
14587for ac_header in stdlib.h
14588do :
14589  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14590if test "x$ac_cv_header_stdlib_h" = xyes; then :
14591  cat >>confdefs.h <<_ACEOF
14592#define HAVE_STDLIB_H 1
14593_ACEOF
14594
14595fi
14596
14597done
14598
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14600$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14601if ${ac_cv_func_malloc_0_nonnull+:} false; then :
14602  $as_echo_n "(cached) " >&6
14603else
14604  if test "$cross_compiling" = yes; then :
14605  ac_cv_func_malloc_0_nonnull=no
14606else
14607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608/* end confdefs.h.  */
14609#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14610# include <stdlib.h>
14611#else
14612char *malloc ();
14613#endif
14614
14615int
14616main ()
14617{
14618return ! malloc (0);
14619  ;
14620  return 0;
14621}
14622_ACEOF
14623if ac_fn_c_try_run "$LINENO"; then :
14624  ac_cv_func_malloc_0_nonnull=yes
14625else
14626  ac_cv_func_malloc_0_nonnull=no
14627fi
14628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14629  conftest.$ac_objext conftest.beam conftest.$ac_ext
14630fi
14631
14632fi
14633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14634$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14635if test $ac_cv_func_malloc_0_nonnull = yes; then :
14636
14637$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14638
14639else
14640  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
14641
14642   case " $LIBOBJS " in
14643  *" malloc.$ac_objext "* ) ;;
14644  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14645 ;;
14646esac
14647
14648
14649$as_echo "#define malloc rpl_malloc" >>confdefs.h
14650
14651fi
14652
14653
14654for ac_header in stdlib.h
14655do :
14656  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14657if test "x$ac_cv_header_stdlib_h" = xyes; then :
14658  cat >>confdefs.h <<_ACEOF
14659#define HAVE_STDLIB_H 1
14660_ACEOF
14661
14662fi
14663
14664done
14665
14666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
14667$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
14668if ${ac_cv_func_realloc_0_nonnull+:} false; then :
14669  $as_echo_n "(cached) " >&6
14670else
14671  if test "$cross_compiling" = yes; then :
14672  ac_cv_func_realloc_0_nonnull=no
14673else
14674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675/* end confdefs.h.  */
14676#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14677# include <stdlib.h>
14678#else
14679char *realloc ();
14680#endif
14681
14682int
14683main ()
14684{
14685return ! realloc (0, 0);
14686  ;
14687  return 0;
14688}
14689_ACEOF
14690if ac_fn_c_try_run "$LINENO"; then :
14691  ac_cv_func_realloc_0_nonnull=yes
14692else
14693  ac_cv_func_realloc_0_nonnull=no
14694fi
14695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14696  conftest.$ac_objext conftest.beam conftest.$ac_ext
14697fi
14698
14699fi
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
14701$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
14702if test $ac_cv_func_realloc_0_nonnull = yes; then :
14703
14704$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
14705
14706else
14707  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
14708
14709   case " $LIBOBJS " in
14710  *" realloc.$ac_objext "* ) ;;
14711  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
14712 ;;
14713esac
14714
14715
14716$as_echo "#define realloc rpl_realloc" >>confdefs.h
14717
14718fi
14719
14720
14721for ac_func in floor modf pow sqrt strchr erfc nextafter
14722do :
14723  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14724ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14725if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14726  cat >>confdefs.h <<_ACEOF
14727#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14728_ACEOF
14729
14730fi
14731done
14732
14733
14734# Output files
14735ac_config_headers="$ac_config_headers config.h"
14736
14737ac_config_files="$ac_config_files Makefile mod/Makefile sim/Makefile doc/Makefile sim/makemcsim sim/makemcsimp sim/makemcsimd sim/makemcsims"
14738
14739
14740ac_config_files="$ac_config_files examples/perc/Makefile"
14741
14742
14743cat >confcache <<\_ACEOF
14744# This file is a shell script that caches the results of configure
14745# tests run on this system so they can be shared between configure
14746# scripts and configure runs, see configure's option --config-cache.
14747# It is not useful on other systems.  If it contains results you don't
14748# want to keep, you may remove or edit it.
14749#
14750# config.status only pays attention to the cache file if you give it
14751# the --recheck option to rerun configure.
14752#
14753# `ac_cv_env_foo' variables (set or unset) will be overridden when
14754# loading this file, other *unset* `ac_cv_foo' will be assigned the
14755# following values.
14756
14757_ACEOF
14758
14759# The following way of writing the cache mishandles newlines in values,
14760# but we know of no workaround that is simple, portable, and efficient.
14761# So, we kill variables containing newlines.
14762# Ultrix sh set writes to stderr and can't be redirected directly,
14763# and sets the high bit in the cache file unless we assign to the vars.
14764(
14765  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14766    eval ac_val=\$$ac_var
14767    case $ac_val in #(
14768    *${as_nl}*)
14769      case $ac_var in #(
14770      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14771$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14772      esac
14773      case $ac_var in #(
14774      _ | IFS | as_nl) ;; #(
14775      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14776      *) { eval $ac_var=; unset $ac_var;} ;;
14777      esac ;;
14778    esac
14779  done
14780
14781  (set) 2>&1 |
14782    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14783    *${as_nl}ac_space=\ *)
14784      # `set' does not quote correctly, so add quotes: double-quote
14785      # substitution turns \\\\ into \\, and sed turns \\ into \.
14786      sed -n \
14787	"s/'/'\\\\''/g;
14788	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14789      ;; #(
14790    *)
14791      # `set' quotes correctly as required by POSIX, so do not add quotes.
14792      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14793      ;;
14794    esac |
14795    sort
14796) |
14797  sed '
14798     /^ac_cv_env_/b end
14799     t clear
14800     :clear
14801     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14802     t end
14803     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14804     :end' >>confcache
14805if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14806  if test -w "$cache_file"; then
14807    if test "x$cache_file" != "x/dev/null"; then
14808      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14809$as_echo "$as_me: updating cache $cache_file" >&6;}
14810      if test ! -f "$cache_file" || test -h "$cache_file"; then
14811	cat confcache >"$cache_file"
14812      else
14813        case $cache_file in #(
14814        */* | ?:*)
14815	  mv -f confcache "$cache_file"$$ &&
14816	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14817        *)
14818	  mv -f confcache "$cache_file" ;;
14819	esac
14820      fi
14821    fi
14822  else
14823    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14824$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14825  fi
14826fi
14827rm -f confcache
14828
14829test "x$prefix" = xNONE && prefix=$ac_default_prefix
14830# Let make expand exec_prefix.
14831test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14832
14833DEFS=-DHAVE_CONFIG_H
14834
14835ac_libobjs=
14836ac_ltlibobjs=
14837U=
14838for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14839  # 1. Remove the extension, and $U if already installed.
14840  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14841  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14842  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14843  #    will be set to the directory where LIBOBJS objects are built.
14844  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14845  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14846done
14847LIBOBJS=$ac_libobjs
14848
14849LTLIBOBJS=$ac_ltlibobjs
14850
14851
14852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14853$as_echo_n "checking that generated files are newer than configure... " >&6; }
14854   if test -n "$am_sleep_pid"; then
14855     # Hide warnings about reused PIDs.
14856     wait $am_sleep_pid 2>/dev/null
14857   fi
14858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14859$as_echo "done" >&6; }
14860 if test -n "$EXEEXT"; then
14861  am__EXEEXT_TRUE=
14862  am__EXEEXT_FALSE='#'
14863else
14864  am__EXEEXT_TRUE='#'
14865  am__EXEEXT_FALSE=
14866fi
14867
14868if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14869  as_fn_error $? "conditional \"AMDEP\" was never defined.
14870Usually this means the macro was only invoked conditionally." "$LINENO" 5
14871fi
14872if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14873  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14874Usually this means the macro was only invoked conditionally." "$LINENO" 5
14875fi
14876if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14877  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14878Usually this means the macro was only invoked conditionally." "$LINENO" 5
14879fi
14880if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14881  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14882Usually this means the macro was only invoked conditionally." "$LINENO" 5
14883fi
14884
14885: "${CONFIG_STATUS=./config.status}"
14886ac_write_fail=0
14887ac_clean_files_save=$ac_clean_files
14888ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14889{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14890$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14891as_write_fail=0
14892cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14893#! $SHELL
14894# Generated by $as_me.
14895# Run this file to recreate the current configuration.
14896# Compiler output produced by configure, useful for debugging
14897# configure, is in config.log if it exists.
14898
14899debug=false
14900ac_cs_recheck=false
14901ac_cs_silent=false
14902
14903SHELL=\${CONFIG_SHELL-$SHELL}
14904export SHELL
14905_ASEOF
14906cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14907## -------------------- ##
14908## M4sh Initialization. ##
14909## -------------------- ##
14910
14911# Be more Bourne compatible
14912DUALCASE=1; export DUALCASE # for MKS sh
14913if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14914  emulate sh
14915  NULLCMD=:
14916  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14917  # is contrary to our usage.  Disable this feature.
14918  alias -g '${1+"$@"}'='"$@"'
14919  setopt NO_GLOB_SUBST
14920else
14921  case `(set -o) 2>/dev/null` in #(
14922  *posix*) :
14923    set -o posix ;; #(
14924  *) :
14925     ;;
14926esac
14927fi
14928
14929
14930as_nl='
14931'
14932export as_nl
14933# Printing a long string crashes Solaris 7 /usr/bin/printf.
14934as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14935as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14936as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14937# Prefer a ksh shell builtin over an external printf program on Solaris,
14938# but without wasting forks for bash or zsh.
14939if test -z "$BASH_VERSION$ZSH_VERSION" \
14940    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14941  as_echo='print -r --'
14942  as_echo_n='print -rn --'
14943elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14944  as_echo='printf %s\n'
14945  as_echo_n='printf %s'
14946else
14947  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14948    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14949    as_echo_n='/usr/ucb/echo -n'
14950  else
14951    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14952    as_echo_n_body='eval
14953      arg=$1;
14954      case $arg in #(
14955      *"$as_nl"*)
14956	expr "X$arg" : "X\\(.*\\)$as_nl";
14957	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14958      esac;
14959      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14960    '
14961    export as_echo_n_body
14962    as_echo_n='sh -c $as_echo_n_body as_echo'
14963  fi
14964  export as_echo_body
14965  as_echo='sh -c $as_echo_body as_echo'
14966fi
14967
14968# The user is always right.
14969if test "${PATH_SEPARATOR+set}" != set; then
14970  PATH_SEPARATOR=:
14971  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14972    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14973      PATH_SEPARATOR=';'
14974  }
14975fi
14976
14977
14978# IFS
14979# We need space, tab and new line, in precisely that order.  Quoting is
14980# there to prevent editors from complaining about space-tab.
14981# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14982# splitting by setting IFS to empty value.)
14983IFS=" ""	$as_nl"
14984
14985# Find who we are.  Look in the path if we contain no directory separator.
14986as_myself=
14987case $0 in #((
14988  *[\\/]* ) as_myself=$0 ;;
14989  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14990for as_dir in $PATH
14991do
14992  IFS=$as_save_IFS
14993  test -z "$as_dir" && as_dir=.
14994    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14995  done
14996IFS=$as_save_IFS
14997
14998     ;;
14999esac
15000# We did not find ourselves, most probably we were run as `sh COMMAND'
15001# in which case we are not to be found in the path.
15002if test "x$as_myself" = x; then
15003  as_myself=$0
15004fi
15005if test ! -f "$as_myself"; then
15006  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15007  exit 1
15008fi
15009
15010# Unset variables that we do not need and which cause bugs (e.g. in
15011# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15012# suppresses any "Segmentation fault" message there.  '((' could
15013# trigger a bug in pdksh 5.2.14.
15014for as_var in BASH_ENV ENV MAIL MAILPATH
15015do eval test x\${$as_var+set} = xset \
15016  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15017done
15018PS1='$ '
15019PS2='> '
15020PS4='+ '
15021
15022# NLS nuisances.
15023LC_ALL=C
15024export LC_ALL
15025LANGUAGE=C
15026export LANGUAGE
15027
15028# CDPATH.
15029(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15030
15031
15032# as_fn_error STATUS ERROR [LINENO LOG_FD]
15033# ----------------------------------------
15034# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15035# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15036# script with STATUS, using 1 if that was 0.
15037as_fn_error ()
15038{
15039  as_status=$1; test $as_status -eq 0 && as_status=1
15040  if test "$4"; then
15041    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15042    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15043  fi
15044  $as_echo "$as_me: error: $2" >&2
15045  as_fn_exit $as_status
15046} # as_fn_error
15047
15048
15049# as_fn_set_status STATUS
15050# -----------------------
15051# Set $? to STATUS, without forking.
15052as_fn_set_status ()
15053{
15054  return $1
15055} # as_fn_set_status
15056
15057# as_fn_exit STATUS
15058# -----------------
15059# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15060as_fn_exit ()
15061{
15062  set +e
15063  as_fn_set_status $1
15064  exit $1
15065} # as_fn_exit
15066
15067# as_fn_unset VAR
15068# ---------------
15069# Portably unset VAR.
15070as_fn_unset ()
15071{
15072  { eval $1=; unset $1;}
15073}
15074as_unset=as_fn_unset
15075# as_fn_append VAR VALUE
15076# ----------------------
15077# Append the text in VALUE to the end of the definition contained in VAR. Take
15078# advantage of any shell optimizations that allow amortized linear growth over
15079# repeated appends, instead of the typical quadratic growth present in naive
15080# implementations.
15081if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15082  eval 'as_fn_append ()
15083  {
15084    eval $1+=\$2
15085  }'
15086else
15087  as_fn_append ()
15088  {
15089    eval $1=\$$1\$2
15090  }
15091fi # as_fn_append
15092
15093# as_fn_arith ARG...
15094# ------------------
15095# Perform arithmetic evaluation on the ARGs, and store the result in the
15096# global $as_val. Take advantage of shells that can avoid forks. The arguments
15097# must be portable across $(()) and expr.
15098if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15099  eval 'as_fn_arith ()
15100  {
15101    as_val=$(( $* ))
15102  }'
15103else
15104  as_fn_arith ()
15105  {
15106    as_val=`expr "$@" || test $? -eq 1`
15107  }
15108fi # as_fn_arith
15109
15110
15111if expr a : '\(a\)' >/dev/null 2>&1 &&
15112   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15113  as_expr=expr
15114else
15115  as_expr=false
15116fi
15117
15118if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15119  as_basename=basename
15120else
15121  as_basename=false
15122fi
15123
15124if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15125  as_dirname=dirname
15126else
15127  as_dirname=false
15128fi
15129
15130as_me=`$as_basename -- "$0" ||
15131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15132	 X"$0" : 'X\(//\)$' \| \
15133	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15134$as_echo X/"$0" |
15135    sed '/^.*\/\([^/][^/]*\)\/*$/{
15136	    s//\1/
15137	    q
15138	  }
15139	  /^X\/\(\/\/\)$/{
15140	    s//\1/
15141	    q
15142	  }
15143	  /^X\/\(\/\).*/{
15144	    s//\1/
15145	    q
15146	  }
15147	  s/.*/./; q'`
15148
15149# Avoid depending upon Character Ranges.
15150as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15151as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15152as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15153as_cr_digits='0123456789'
15154as_cr_alnum=$as_cr_Letters$as_cr_digits
15155
15156ECHO_C= ECHO_N= ECHO_T=
15157case `echo -n x` in #(((((
15158-n*)
15159  case `echo 'xy\c'` in
15160  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15161  xy)  ECHO_C='\c';;
15162  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15163       ECHO_T='	';;
15164  esac;;
15165*)
15166  ECHO_N='-n';;
15167esac
15168
15169rm -f conf$$ conf$$.exe conf$$.file
15170if test -d conf$$.dir; then
15171  rm -f conf$$.dir/conf$$.file
15172else
15173  rm -f conf$$.dir
15174  mkdir conf$$.dir 2>/dev/null
15175fi
15176if (echo >conf$$.file) 2>/dev/null; then
15177  if ln -s conf$$.file conf$$ 2>/dev/null; then
15178    as_ln_s='ln -s'
15179    # ... but there are two gotchas:
15180    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15181    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15182    # In both cases, we have to default to `cp -pR'.
15183    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15184      as_ln_s='cp -pR'
15185  elif ln conf$$.file conf$$ 2>/dev/null; then
15186    as_ln_s=ln
15187  else
15188    as_ln_s='cp -pR'
15189  fi
15190else
15191  as_ln_s='cp -pR'
15192fi
15193rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15194rmdir conf$$.dir 2>/dev/null
15195
15196
15197# as_fn_mkdir_p
15198# -------------
15199# Create "$as_dir" as a directory, including parents if necessary.
15200as_fn_mkdir_p ()
15201{
15202
15203  case $as_dir in #(
15204  -*) as_dir=./$as_dir;;
15205  esac
15206  test -d "$as_dir" || eval $as_mkdir_p || {
15207    as_dirs=
15208    while :; do
15209      case $as_dir in #(
15210      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15211      *) as_qdir=$as_dir;;
15212      esac
15213      as_dirs="'$as_qdir' $as_dirs"
15214      as_dir=`$as_dirname -- "$as_dir" ||
15215$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15216	 X"$as_dir" : 'X\(//\)[^/]' \| \
15217	 X"$as_dir" : 'X\(//\)$' \| \
15218	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15219$as_echo X"$as_dir" |
15220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15221	    s//\1/
15222	    q
15223	  }
15224	  /^X\(\/\/\)[^/].*/{
15225	    s//\1/
15226	    q
15227	  }
15228	  /^X\(\/\/\)$/{
15229	    s//\1/
15230	    q
15231	  }
15232	  /^X\(\/\).*/{
15233	    s//\1/
15234	    q
15235	  }
15236	  s/.*/./; q'`
15237      test -d "$as_dir" && break
15238    done
15239    test -z "$as_dirs" || eval "mkdir $as_dirs"
15240  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15241
15242
15243} # as_fn_mkdir_p
15244if mkdir -p . 2>/dev/null; then
15245  as_mkdir_p='mkdir -p "$as_dir"'
15246else
15247  test -d ./-p && rmdir ./-p
15248  as_mkdir_p=false
15249fi
15250
15251
15252# as_fn_executable_p FILE
15253# -----------------------
15254# Test if FILE is an executable regular file.
15255as_fn_executable_p ()
15256{
15257  test -f "$1" && test -x "$1"
15258} # as_fn_executable_p
15259as_test_x='test -x'
15260as_executable_p=as_fn_executable_p
15261
15262# Sed expression to map a string onto a valid CPP name.
15263as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15264
15265# Sed expression to map a string onto a valid variable name.
15266as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15267
15268
15269exec 6>&1
15270## ----------------------------------- ##
15271## Main body of $CONFIG_STATUS script. ##
15272## ----------------------------------- ##
15273_ASEOF
15274test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15275
15276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15277# Save the log message, to keep $0 and so on meaningful, and to
15278# report actual input values of CONFIG_FILES etc. instead of their
15279# values after options handling.
15280ac_log="
15281This file was extended by mcsim $as_me 6.2.0, which was
15282generated by GNU Autoconf 2.69.  Invocation command line was
15283
15284  CONFIG_FILES    = $CONFIG_FILES
15285  CONFIG_HEADERS  = $CONFIG_HEADERS
15286  CONFIG_LINKS    = $CONFIG_LINKS
15287  CONFIG_COMMANDS = $CONFIG_COMMANDS
15288  $ $0 $@
15289
15290on `(hostname || uname -n) 2>/dev/null | sed 1q`
15291"
15292
15293_ACEOF
15294
15295case $ac_config_files in *"
15296"*) set x $ac_config_files; shift; ac_config_files=$*;;
15297esac
15298
15299case $ac_config_headers in *"
15300"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15301esac
15302
15303
15304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15305# Files that config.status was made for.
15306config_files="$ac_config_files"
15307config_headers="$ac_config_headers"
15308config_commands="$ac_config_commands"
15309
15310_ACEOF
15311
15312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15313ac_cs_usage="\
15314\`$as_me' instantiates files and other configuration actions
15315from templates according to the current configuration.  Unless the files
15316and actions are specified as TAGs, all are instantiated by default.
15317
15318Usage: $0 [OPTION]... [TAG]...
15319
15320  -h, --help       print this help, then exit
15321  -V, --version    print version number and configuration settings, then exit
15322      --config     print configuration, then exit
15323  -q, --quiet, --silent
15324                   do not print progress messages
15325  -d, --debug      don't remove temporary files
15326      --recheck    update $as_me by reconfiguring in the same conditions
15327      --file=FILE[:TEMPLATE]
15328                   instantiate the configuration file FILE
15329      --header=FILE[:TEMPLATE]
15330                   instantiate the configuration header FILE
15331
15332Configuration files:
15333$config_files
15334
15335Configuration headers:
15336$config_headers
15337
15338Configuration commands:
15339$config_commands
15340
15341Report bugs to <bug-mcsim@gnu.org>."
15342
15343_ACEOF
15344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15345ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15346ac_cs_version="\\
15347mcsim config.status 6.2.0
15348configured by $0, generated by GNU Autoconf 2.69,
15349  with options \\"\$ac_cs_config\\"
15350
15351Copyright (C) 2012 Free Software Foundation, Inc.
15352This config.status script is free software; the Free Software Foundation
15353gives unlimited permission to copy, distribute and modify it."
15354
15355ac_pwd='$ac_pwd'
15356srcdir='$srcdir'
15357INSTALL='$INSTALL'
15358MKDIR_P='$MKDIR_P'
15359AWK='$AWK'
15360test -n "\$AWK" || AWK=awk
15361_ACEOF
15362
15363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15364# The default lists apply if the user does not specify any file.
15365ac_need_defaults=:
15366while test $# != 0
15367do
15368  case $1 in
15369  --*=?*)
15370    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15371    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15372    ac_shift=:
15373    ;;
15374  --*=)
15375    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15376    ac_optarg=
15377    ac_shift=:
15378    ;;
15379  *)
15380    ac_option=$1
15381    ac_optarg=$2
15382    ac_shift=shift
15383    ;;
15384  esac
15385
15386  case $ac_option in
15387  # Handling of the options.
15388  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15389    ac_cs_recheck=: ;;
15390  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15391    $as_echo "$ac_cs_version"; exit ;;
15392  --config | --confi | --conf | --con | --co | --c )
15393    $as_echo "$ac_cs_config"; exit ;;
15394  --debug | --debu | --deb | --de | --d | -d )
15395    debug=: ;;
15396  --file | --fil | --fi | --f )
15397    $ac_shift
15398    case $ac_optarg in
15399    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15400    '') as_fn_error $? "missing file argument" ;;
15401    esac
15402    as_fn_append CONFIG_FILES " '$ac_optarg'"
15403    ac_need_defaults=false;;
15404  --header | --heade | --head | --hea )
15405    $ac_shift
15406    case $ac_optarg in
15407    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15408    esac
15409    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15410    ac_need_defaults=false;;
15411  --he | --h)
15412    # Conflict between --help and --header
15413    as_fn_error $? "ambiguous option: \`$1'
15414Try \`$0 --help' for more information.";;
15415  --help | --hel | -h )
15416    $as_echo "$ac_cs_usage"; exit ;;
15417  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15418  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15419    ac_cs_silent=: ;;
15420
15421  # This is an error.
15422  -*) as_fn_error $? "unrecognized option: \`$1'
15423Try \`$0 --help' for more information." ;;
15424
15425  *) as_fn_append ac_config_targets " $1"
15426     ac_need_defaults=false ;;
15427
15428  esac
15429  shift
15430done
15431
15432ac_configure_extra_args=
15433
15434if $ac_cs_silent; then
15435  exec 6>/dev/null
15436  ac_configure_extra_args="$ac_configure_extra_args --silent"
15437fi
15438
15439_ACEOF
15440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15441if \$ac_cs_recheck; then
15442  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15443  shift
15444  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15445  CONFIG_SHELL='$SHELL'
15446  export CONFIG_SHELL
15447  exec "\$@"
15448fi
15449
15450_ACEOF
15451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15452exec 5>>config.log
15453{
15454  echo
15455  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15456## Running $as_me. ##
15457_ASBOX
15458  $as_echo "$ac_log"
15459} >&5
15460
15461_ACEOF
15462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463#
15464# INIT-COMMANDS
15465#
15466AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15467
15468
15469# The HP-UX ksh and POSIX shell print the target directory to stdout
15470# if CDPATH is set.
15471(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15472
15473sed_quote_subst='$sed_quote_subst'
15474double_quote_subst='$double_quote_subst'
15475delay_variable_subst='$delay_variable_subst'
15476macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15477macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15478enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15479enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15480pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15481enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15482shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15483SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15484ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15485PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15486host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15487host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15488host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15489build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15490build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15491build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15492SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15493Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15494GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15495EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15496FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15497LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15498NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15499LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15500max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15501ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15502exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15503lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15504lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15505lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15506lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15507lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15508reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15509reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15510OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15511deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15512file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15513file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15514want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15515DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15516sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15517AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15518AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15519archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15520STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15521RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15522old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15523old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15524old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15525lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15526CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15527CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15528compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15529GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15530lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15531lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15532lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15533lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15534lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15535lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15536nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15537lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15538lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15539objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15540MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15541lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15542lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15543lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15544lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15545lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15546need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15547MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15548DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15549NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15550LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15551OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15552OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15553libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15554shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15555extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15556archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15557enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15558export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15559whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15560compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15561old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15562old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15563archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15564archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15565module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15566module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15567with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15568allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15569no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15570hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15571hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15572hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15573hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15574hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15575hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15576hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15577inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15578link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15579always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15580export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15581exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15582include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15583prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15584postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15585file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15586variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15587need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15588need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15589version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15590runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15591shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15592shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15593libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15594library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15595soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15596install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15597postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15598postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15599finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15600finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15601hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15602sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15603configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15604configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15605hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15606enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15607enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15608enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15609old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15610striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15611
15612LTCC='$LTCC'
15613LTCFLAGS='$LTCFLAGS'
15614compiler='$compiler_DEFAULT'
15615
15616# A function that is used when there is no print builtin or printf.
15617func_fallback_echo ()
15618{
15619  eval 'cat <<_LTECHO_EOF
15620\$1
15621_LTECHO_EOF'
15622}
15623
15624# Quote evaled strings.
15625for var in SHELL \
15626ECHO \
15627PATH_SEPARATOR \
15628SED \
15629GREP \
15630EGREP \
15631FGREP \
15632LD \
15633NM \
15634LN_S \
15635lt_SP2NL \
15636lt_NL2SP \
15637reload_flag \
15638OBJDUMP \
15639deplibs_check_method \
15640file_magic_cmd \
15641file_magic_glob \
15642want_nocaseglob \
15643DLLTOOL \
15644sharedlib_from_linklib_cmd \
15645AR \
15646AR_FLAGS \
15647archiver_list_spec \
15648STRIP \
15649RANLIB \
15650CC \
15651CFLAGS \
15652compiler \
15653lt_cv_sys_global_symbol_pipe \
15654lt_cv_sys_global_symbol_to_cdecl \
15655lt_cv_sys_global_symbol_to_import \
15656lt_cv_sys_global_symbol_to_c_name_address \
15657lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15658lt_cv_nm_interface \
15659nm_file_list_spec \
15660lt_cv_truncate_bin \
15661lt_prog_compiler_no_builtin_flag \
15662lt_prog_compiler_pic \
15663lt_prog_compiler_wl \
15664lt_prog_compiler_static \
15665lt_cv_prog_compiler_c_o \
15666need_locks \
15667MANIFEST_TOOL \
15668DSYMUTIL \
15669NMEDIT \
15670LIPO \
15671OTOOL \
15672OTOOL64 \
15673shrext_cmds \
15674export_dynamic_flag_spec \
15675whole_archive_flag_spec \
15676compiler_needs_object \
15677with_gnu_ld \
15678allow_undefined_flag \
15679no_undefined_flag \
15680hardcode_libdir_flag_spec \
15681hardcode_libdir_separator \
15682exclude_expsyms \
15683include_expsyms \
15684file_list_spec \
15685variables_saved_for_relink \
15686libname_spec \
15687library_names_spec \
15688soname_spec \
15689install_override_mode \
15690finish_eval \
15691old_striplib \
15692striplib; do
15693    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15694    *[\\\\\\\`\\"\\\$]*)
15695      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15696      ;;
15697    *)
15698      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15699      ;;
15700    esac
15701done
15702
15703# Double-quote double-evaled strings.
15704for var in reload_cmds \
15705old_postinstall_cmds \
15706old_postuninstall_cmds \
15707old_archive_cmds \
15708extract_expsyms_cmds \
15709old_archive_from_new_cmds \
15710old_archive_from_expsyms_cmds \
15711archive_cmds \
15712archive_expsym_cmds \
15713module_cmds \
15714module_expsym_cmds \
15715export_symbols_cmds \
15716prelink_cmds \
15717postlink_cmds \
15718postinstall_cmds \
15719postuninstall_cmds \
15720finish_cmds \
15721sys_lib_search_path_spec \
15722configure_time_dlsearch_path \
15723configure_time_lt_sys_library_path; do
15724    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15725    *[\\\\\\\`\\"\\\$]*)
15726      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15727      ;;
15728    *)
15729      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15730      ;;
15731    esac
15732done
15733
15734ac_aux_dir='$ac_aux_dir'
15735
15736# See if we are running on zsh, and set the options that allow our
15737# commands through without removal of \ escapes INIT.
15738if test -n "\${ZSH_VERSION+set}"; then
15739   setopt NO_GLOB_SUBST
15740fi
15741
15742
15743    PACKAGE='$PACKAGE'
15744    VERSION='$VERSION'
15745    RM='$RM'
15746    ofile='$ofile'
15747
15748
15749
15750
15751_ACEOF
15752
15753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15754
15755# Handling of arguments.
15756for ac_config_target in $ac_config_targets
15757do
15758  case $ac_config_target in
15759    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15760    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15761    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15762    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15763    "mod/Makefile") CONFIG_FILES="$CONFIG_FILES mod/Makefile" ;;
15764    "sim/Makefile") CONFIG_FILES="$CONFIG_FILES sim/Makefile" ;;
15765    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15766    "sim/makemcsim") CONFIG_FILES="$CONFIG_FILES sim/makemcsim" ;;
15767    "sim/makemcsimp") CONFIG_FILES="$CONFIG_FILES sim/makemcsimp" ;;
15768    "sim/makemcsimd") CONFIG_FILES="$CONFIG_FILES sim/makemcsimd" ;;
15769    "sim/makemcsims") CONFIG_FILES="$CONFIG_FILES sim/makemcsims" ;;
15770    "examples/perc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/perc/Makefile" ;;
15771
15772  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15773  esac
15774done
15775
15776
15777# If the user did not use the arguments to specify the items to instantiate,
15778# then the envvar interface is used.  Set only those that are not.
15779# We use the long form for the default assignment because of an extremely
15780# bizarre bug on SunOS 4.1.3.
15781if $ac_need_defaults; then
15782  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15783  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15784  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15785fi
15786
15787# Have a temporary directory for convenience.  Make it in the build tree
15788# simply because there is no reason against having it here, and in addition,
15789# creating and moving files from /tmp can sometimes cause problems.
15790# Hook for its removal unless debugging.
15791# Note that there is a small window in which the directory will not be cleaned:
15792# after its creation but before its name has been assigned to `$tmp'.
15793$debug ||
15794{
15795  tmp= ac_tmp=
15796  trap 'exit_status=$?
15797  : "${ac_tmp:=$tmp}"
15798  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15799' 0
15800  trap 'as_fn_exit 1' 1 2 13 15
15801}
15802# Create a (secure) tmp directory for tmp files.
15803
15804{
15805  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15806  test -d "$tmp"
15807}  ||
15808{
15809  tmp=./conf$$-$RANDOM
15810  (umask 077 && mkdir "$tmp")
15811} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15812ac_tmp=$tmp
15813
15814# Set up the scripts for CONFIG_FILES section.
15815# No need to generate them if there are no CONFIG_FILES.
15816# This happens for instance with `./config.status config.h'.
15817if test -n "$CONFIG_FILES"; then
15818
15819
15820ac_cr=`echo X | tr X '\015'`
15821# On cygwin, bash can eat \r inside `` if the user requested igncr.
15822# But we know of no other shell where ac_cr would be empty at this
15823# point, so we can use a bashism as a fallback.
15824if test "x$ac_cr" = x; then
15825  eval ac_cr=\$\'\\r\'
15826fi
15827ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15828if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15829  ac_cs_awk_cr='\\r'
15830else
15831  ac_cs_awk_cr=$ac_cr
15832fi
15833
15834echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15835_ACEOF
15836
15837
15838{
15839  echo "cat >conf$$subs.awk <<_ACEOF" &&
15840  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15841  echo "_ACEOF"
15842} >conf$$subs.sh ||
15843  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15844ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15845ac_delim='%!_!# '
15846for ac_last_try in false false false false false :; do
15847  . ./conf$$subs.sh ||
15848    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15849
15850  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15851  if test $ac_delim_n = $ac_delim_num; then
15852    break
15853  elif $ac_last_try; then
15854    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15855  else
15856    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15857  fi
15858done
15859rm -f conf$$subs.sh
15860
15861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15862cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15863_ACEOF
15864sed -n '
15865h
15866s/^/S["/; s/!.*/"]=/
15867p
15868g
15869s/^[^!]*!//
15870:repl
15871t repl
15872s/'"$ac_delim"'$//
15873t delim
15874:nl
15875h
15876s/\(.\{148\}\)..*/\1/
15877t more1
15878s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15879p
15880n
15881b repl
15882:more1
15883s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15884p
15885g
15886s/.\{148\}//
15887t nl
15888:delim
15889h
15890s/\(.\{148\}\)..*/\1/
15891t more2
15892s/["\\]/\\&/g; s/^/"/; s/$/"/
15893p
15894b
15895:more2
15896s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15897p
15898g
15899s/.\{148\}//
15900t delim
15901' <conf$$subs.awk | sed '
15902/^[^""]/{
15903  N
15904  s/\n//
15905}
15906' >>$CONFIG_STATUS || ac_write_fail=1
15907rm -f conf$$subs.awk
15908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15909_ACAWK
15910cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15911  for (key in S) S_is_set[key] = 1
15912  FS = ""
15913
15914}
15915{
15916  line = $ 0
15917  nfields = split(line, field, "@")
15918  substed = 0
15919  len = length(field[1])
15920  for (i = 2; i < nfields; i++) {
15921    key = field[i]
15922    keylen = length(key)
15923    if (S_is_set[key]) {
15924      value = S[key]
15925      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15926      len += length(value) + length(field[++i])
15927      substed = 1
15928    } else
15929      len += 1 + keylen
15930  }
15931
15932  print line
15933}
15934
15935_ACAWK
15936_ACEOF
15937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15938if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15939  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15940else
15941  cat
15942fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15943  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15944_ACEOF
15945
15946# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15947# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15948# trailing colons and then remove the whole line if VPATH becomes empty
15949# (actually we leave an empty line to preserve line numbers).
15950if test "x$srcdir" = x.; then
15951  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15952h
15953s///
15954s/^/:/
15955s/[	 ]*$/:/
15956s/:\$(srcdir):/:/g
15957s/:\${srcdir}:/:/g
15958s/:@srcdir@:/:/g
15959s/^:*//
15960s/:*$//
15961x
15962s/\(=[	 ]*\).*/\1/
15963G
15964s/\n//
15965s/^[^=]*=[	 ]*$//
15966}'
15967fi
15968
15969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15970fi # test -n "$CONFIG_FILES"
15971
15972# Set up the scripts for CONFIG_HEADERS section.
15973# No need to generate them if there are no CONFIG_HEADERS.
15974# This happens for instance with `./config.status Makefile'.
15975if test -n "$CONFIG_HEADERS"; then
15976cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15977BEGIN {
15978_ACEOF
15979
15980# Transform confdefs.h into an awk script `defines.awk', embedded as
15981# here-document in config.status, that substitutes the proper values into
15982# config.h.in to produce config.h.
15983
15984# Create a delimiter string that does not exist in confdefs.h, to ease
15985# handling of long lines.
15986ac_delim='%!_!# '
15987for ac_last_try in false false :; do
15988  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15989  if test -z "$ac_tt"; then
15990    break
15991  elif $ac_last_try; then
15992    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15993  else
15994    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15995  fi
15996done
15997
15998# For the awk script, D is an array of macro values keyed by name,
15999# likewise P contains macro parameters if any.  Preserve backslash
16000# newline sequences.
16001
16002ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16003sed -n '
16004s/.\{148\}/&'"$ac_delim"'/g
16005t rset
16006:rset
16007s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16008t def
16009d
16010:def
16011s/\\$//
16012t bsnl
16013s/["\\]/\\&/g
16014s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16015D["\1"]=" \3"/p
16016s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16017d
16018:bsnl
16019s/["\\]/\\&/g
16020s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16021D["\1"]=" \3\\\\\\n"\\/p
16022t cont
16023s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16024t cont
16025d
16026:cont
16027n
16028s/.\{148\}/&'"$ac_delim"'/g
16029t clear
16030:clear
16031s/\\$//
16032t bsnlc
16033s/["\\]/\\&/g; s/^/"/; s/$/"/p
16034d
16035:bsnlc
16036s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16037b cont
16038' <confdefs.h | sed '
16039s/'"$ac_delim"'/"\\\
16040"/g' >>$CONFIG_STATUS || ac_write_fail=1
16041
16042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16043  for (key in D) D_is_set[key] = 1
16044  FS = ""
16045}
16046/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16047  line = \$ 0
16048  split(line, arg, " ")
16049  if (arg[1] == "#") {
16050    defundef = arg[2]
16051    mac1 = arg[3]
16052  } else {
16053    defundef = substr(arg[1], 2)
16054    mac1 = arg[2]
16055  }
16056  split(mac1, mac2, "(") #)
16057  macro = mac2[1]
16058  prefix = substr(line, 1, index(line, defundef) - 1)
16059  if (D_is_set[macro]) {
16060    # Preserve the white space surrounding the "#".
16061    print prefix "define", macro P[macro] D[macro]
16062    next
16063  } else {
16064    # Replace #undef with comments.  This is necessary, for example,
16065    # in the case of _POSIX_SOURCE, which is predefined and required
16066    # on some systems where configure will not decide to define it.
16067    if (defundef == "undef") {
16068      print "/*", prefix defundef, macro, "*/"
16069      next
16070    }
16071  }
16072}
16073{ print }
16074_ACAWK
16075_ACEOF
16076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16077  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16078fi # test -n "$CONFIG_HEADERS"
16079
16080
16081eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16082shift
16083for ac_tag
16084do
16085  case $ac_tag in
16086  :[FHLC]) ac_mode=$ac_tag; continue;;
16087  esac
16088  case $ac_mode$ac_tag in
16089  :[FHL]*:*);;
16090  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16091  :[FH]-) ac_tag=-:-;;
16092  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16093  esac
16094  ac_save_IFS=$IFS
16095  IFS=:
16096  set x $ac_tag
16097  IFS=$ac_save_IFS
16098  shift
16099  ac_file=$1
16100  shift
16101
16102  case $ac_mode in
16103  :L) ac_source=$1;;
16104  :[FH])
16105    ac_file_inputs=
16106    for ac_f
16107    do
16108      case $ac_f in
16109      -) ac_f="$ac_tmp/stdin";;
16110      *) # Look for the file first in the build tree, then in the source tree
16111	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16112	 # because $ac_f cannot contain `:'.
16113	 test -f "$ac_f" ||
16114	   case $ac_f in
16115	   [\\/$]*) false;;
16116	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16117	   esac ||
16118	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16119      esac
16120      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16121      as_fn_append ac_file_inputs " '$ac_f'"
16122    done
16123
16124    # Let's still pretend it is `configure' which instantiates (i.e., don't
16125    # use $as_me), people would be surprised to read:
16126    #    /* config.h.  Generated by config.status.  */
16127    configure_input='Generated from '`
16128	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16129	`' by configure.'
16130    if test x"$ac_file" != x-; then
16131      configure_input="$ac_file.  $configure_input"
16132      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16133$as_echo "$as_me: creating $ac_file" >&6;}
16134    fi
16135    # Neutralize special characters interpreted by sed in replacement strings.
16136    case $configure_input in #(
16137    *\&* | *\|* | *\\* )
16138       ac_sed_conf_input=`$as_echo "$configure_input" |
16139       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16140    *) ac_sed_conf_input=$configure_input;;
16141    esac
16142
16143    case $ac_tag in
16144    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16145      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16146    esac
16147    ;;
16148  esac
16149
16150  ac_dir=`$as_dirname -- "$ac_file" ||
16151$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16152	 X"$ac_file" : 'X\(//\)[^/]' \| \
16153	 X"$ac_file" : 'X\(//\)$' \| \
16154	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16155$as_echo X"$ac_file" |
16156    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16157	    s//\1/
16158	    q
16159	  }
16160	  /^X\(\/\/\)[^/].*/{
16161	    s//\1/
16162	    q
16163	  }
16164	  /^X\(\/\/\)$/{
16165	    s//\1/
16166	    q
16167	  }
16168	  /^X\(\/\).*/{
16169	    s//\1/
16170	    q
16171	  }
16172	  s/.*/./; q'`
16173  as_dir="$ac_dir"; as_fn_mkdir_p
16174  ac_builddir=.
16175
16176case "$ac_dir" in
16177.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16178*)
16179  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16180  # A ".." for each directory in $ac_dir_suffix.
16181  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16182  case $ac_top_builddir_sub in
16183  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16184  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16185  esac ;;
16186esac
16187ac_abs_top_builddir=$ac_pwd
16188ac_abs_builddir=$ac_pwd$ac_dir_suffix
16189# for backward compatibility:
16190ac_top_builddir=$ac_top_build_prefix
16191
16192case $srcdir in
16193  .)  # We are building in place.
16194    ac_srcdir=.
16195    ac_top_srcdir=$ac_top_builddir_sub
16196    ac_abs_top_srcdir=$ac_pwd ;;
16197  [\\/]* | ?:[\\/]* )  # Absolute name.
16198    ac_srcdir=$srcdir$ac_dir_suffix;
16199    ac_top_srcdir=$srcdir
16200    ac_abs_top_srcdir=$srcdir ;;
16201  *) # Relative name.
16202    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16203    ac_top_srcdir=$ac_top_build_prefix$srcdir
16204    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16205esac
16206ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16207
16208
16209  case $ac_mode in
16210  :F)
16211  #
16212  # CONFIG_FILE
16213  #
16214
16215  case $INSTALL in
16216  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16217  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16218  esac
16219  ac_MKDIR_P=$MKDIR_P
16220  case $MKDIR_P in
16221  [\\/$]* | ?:[\\/]* ) ;;
16222  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16223  esac
16224_ACEOF
16225
16226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16227# If the template does not know about datarootdir, expand it.
16228# FIXME: This hack should be removed a few years after 2.60.
16229ac_datarootdir_hack=; ac_datarootdir_seen=
16230ac_sed_dataroot='
16231/datarootdir/ {
16232  p
16233  q
16234}
16235/@datadir@/p
16236/@docdir@/p
16237/@infodir@/p
16238/@localedir@/p
16239/@mandir@/p'
16240case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16241*datarootdir*) ac_datarootdir_seen=yes;;
16242*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16243  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16244$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16245_ACEOF
16246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247  ac_datarootdir_hack='
16248  s&@datadir@&$datadir&g
16249  s&@docdir@&$docdir&g
16250  s&@infodir@&$infodir&g
16251  s&@localedir@&$localedir&g
16252  s&@mandir@&$mandir&g
16253  s&\\\${datarootdir}&$datarootdir&g' ;;
16254esac
16255_ACEOF
16256
16257# Neutralize VPATH when `$srcdir' = `.'.
16258# Shell code in configure.ac might set extrasub.
16259# FIXME: do we really want to maintain this feature?
16260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16261ac_sed_extra="$ac_vpsub
16262$extrasub
16263_ACEOF
16264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16265:t
16266/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16267s|@configure_input@|$ac_sed_conf_input|;t t
16268s&@top_builddir@&$ac_top_builddir_sub&;t t
16269s&@top_build_prefix@&$ac_top_build_prefix&;t t
16270s&@srcdir@&$ac_srcdir&;t t
16271s&@abs_srcdir@&$ac_abs_srcdir&;t t
16272s&@top_srcdir@&$ac_top_srcdir&;t t
16273s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16274s&@builddir@&$ac_builddir&;t t
16275s&@abs_builddir@&$ac_abs_builddir&;t t
16276s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16277s&@INSTALL@&$ac_INSTALL&;t t
16278s&@MKDIR_P@&$ac_MKDIR_P&;t t
16279$ac_datarootdir_hack
16280"
16281eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16282  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16283
16284test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16285  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16286  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16287      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16288  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16289which seems to be undefined.  Please make sure it is defined" >&5
16290$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16291which seems to be undefined.  Please make sure it is defined" >&2;}
16292
16293  rm -f "$ac_tmp/stdin"
16294  case $ac_file in
16295  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16296  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16297  esac \
16298  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16299 ;;
16300  :H)
16301  #
16302  # CONFIG_HEADER
16303  #
16304  if test x"$ac_file" != x-; then
16305    {
16306      $as_echo "/* $configure_input  */" \
16307      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16308    } >"$ac_tmp/config.h" \
16309      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16310    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16311      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16312$as_echo "$as_me: $ac_file is unchanged" >&6;}
16313    else
16314      rm -f "$ac_file"
16315      mv "$ac_tmp/config.h" "$ac_file" \
16316	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16317    fi
16318  else
16319    $as_echo "/* $configure_input  */" \
16320      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16321      || as_fn_error $? "could not create -" "$LINENO" 5
16322  fi
16323# Compute "$ac_file"'s index in $config_headers.
16324_am_arg="$ac_file"
16325_am_stamp_count=1
16326for _am_header in $config_headers :; do
16327  case $_am_header in
16328    $_am_arg | $_am_arg:* )
16329      break ;;
16330    * )
16331      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16332  esac
16333done
16334echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16335$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16336	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16337	 X"$_am_arg" : 'X\(//\)$' \| \
16338	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16339$as_echo X"$_am_arg" |
16340    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16341	    s//\1/
16342	    q
16343	  }
16344	  /^X\(\/\/\)[^/].*/{
16345	    s//\1/
16346	    q
16347	  }
16348	  /^X\(\/\/\)$/{
16349	    s//\1/
16350	    q
16351	  }
16352	  /^X\(\/\).*/{
16353	    s//\1/
16354	    q
16355	  }
16356	  s/.*/./; q'`/stamp-h$_am_stamp_count
16357 ;;
16358
16359  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16360$as_echo "$as_me: executing $ac_file commands" >&6;}
16361 ;;
16362  esac
16363
16364
16365  case $ac_file$ac_mode in
16366    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16367  # Older Autoconf quotes --file arguments for eval, but not when files
16368  # are listed without --file.  Let's play safe and only enable the eval
16369  # if we detect the quoting.
16370  case $CONFIG_FILES in
16371  *\'*) eval set x "$CONFIG_FILES" ;;
16372  *)   set x $CONFIG_FILES ;;
16373  esac
16374  shift
16375  for mf
16376  do
16377    # Strip MF so we end up with the name of the file.
16378    mf=`echo "$mf" | sed -e 's/:.*$//'`
16379    # Check whether this is an Automake generated Makefile or not.
16380    # We used to match only the files named 'Makefile.in', but
16381    # some people rename them; so instead we look at the file content.
16382    # Grep'ing the first line is not enough: some people post-process
16383    # each Makefile.in and add a new line on top of each file to say so.
16384    # Grep'ing the whole file is not good either: AIX grep has a line
16385    # limit of 2048, but all sed's we know have understand at least 4000.
16386    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16387      dirpart=`$as_dirname -- "$mf" ||
16388$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16389	 X"$mf" : 'X\(//\)[^/]' \| \
16390	 X"$mf" : 'X\(//\)$' \| \
16391	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16392$as_echo X"$mf" |
16393    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16394	    s//\1/
16395	    q
16396	  }
16397	  /^X\(\/\/\)[^/].*/{
16398	    s//\1/
16399	    q
16400	  }
16401	  /^X\(\/\/\)$/{
16402	    s//\1/
16403	    q
16404	  }
16405	  /^X\(\/\).*/{
16406	    s//\1/
16407	    q
16408	  }
16409	  s/.*/./; q'`
16410    else
16411      continue
16412    fi
16413    # Extract the definition of DEPDIR, am__include, and am__quote
16414    # from the Makefile without running 'make'.
16415    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16416    test -z "$DEPDIR" && continue
16417    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16418    test -z "$am__include" && continue
16419    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16420    # Find all dependency output files, they are included files with
16421    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16422    # simplest approach to changing $(DEPDIR) to its actual value in the
16423    # expansion.
16424    for file in `sed -n "
16425      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16426	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16427      # Make sure the directory exists.
16428      test -f "$dirpart/$file" && continue
16429      fdir=`$as_dirname -- "$file" ||
16430$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16431	 X"$file" : 'X\(//\)[^/]' \| \
16432	 X"$file" : 'X\(//\)$' \| \
16433	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16434$as_echo X"$file" |
16435    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16436	    s//\1/
16437	    q
16438	  }
16439	  /^X\(\/\/\)[^/].*/{
16440	    s//\1/
16441	    q
16442	  }
16443	  /^X\(\/\/\)$/{
16444	    s//\1/
16445	    q
16446	  }
16447	  /^X\(\/\).*/{
16448	    s//\1/
16449	    q
16450	  }
16451	  s/.*/./; q'`
16452      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16453      # echo "creating $dirpart/$file"
16454      echo '# dummy' > "$dirpart/$file"
16455    done
16456  done
16457}
16458 ;;
16459    "libtool":C)
16460
16461    # See if we are running on zsh, and set the options that allow our
16462    # commands through without removal of \ escapes.
16463    if test -n "${ZSH_VERSION+set}"; then
16464      setopt NO_GLOB_SUBST
16465    fi
16466
16467    cfgfile=${ofile}T
16468    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16469    $RM "$cfgfile"
16470
16471    cat <<_LT_EOF >> "$cfgfile"
16472#! $SHELL
16473# Generated automatically by $as_me ($PACKAGE) $VERSION
16474# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16475
16476# Provide generalized library-building support services.
16477# Written by Gordon Matzigkeit, 1996
16478
16479# Copyright (C) 2014 Free Software Foundation, Inc.
16480# This is free software; see the source for copying conditions.  There is NO
16481# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16482
16483# GNU Libtool is free software; you can redistribute it and/or modify
16484# it under the terms of the GNU General Public License as published by
16485# the Free Software Foundation; either version 2 of of the License, or
16486# (at your option) any later version.
16487#
16488# As a special exception to the GNU General Public License, if you
16489# distribute this file as part of a program or library that is built
16490# using GNU Libtool, you may include this file under the  same
16491# distribution terms that you use for the rest of that program.
16492#
16493# GNU Libtool is distributed in the hope that it will be useful, but
16494# WITHOUT ANY WARRANTY; without even the implied warranty of
16495# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16496# GNU General Public License for more details.
16497#
16498# You should have received a copy of the GNU General Public License
16499# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16500
16501
16502# The names of the tagged configurations supported by this script.
16503available_tags=''
16504
16505# Configured defaults for sys_lib_dlsearch_path munging.
16506: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16507
16508# ### BEGIN LIBTOOL CONFIG
16509
16510# Which release of libtool.m4 was used?
16511macro_version=$macro_version
16512macro_revision=$macro_revision
16513
16514# Whether or not to build shared libraries.
16515build_libtool_libs=$enable_shared
16516
16517# Whether or not to build static libraries.
16518build_old_libs=$enable_static
16519
16520# What type of objects to build.
16521pic_mode=$pic_mode
16522
16523# Whether or not to optimize for fast installation.
16524fast_install=$enable_fast_install
16525
16526# Shared archive member basename,for filename based shared library versioning on AIX.
16527shared_archive_member_spec=$shared_archive_member_spec
16528
16529# Shell to use when invoking shell scripts.
16530SHELL=$lt_SHELL
16531
16532# An echo program that protects backslashes.
16533ECHO=$lt_ECHO
16534
16535# The PATH separator for the build system.
16536PATH_SEPARATOR=$lt_PATH_SEPARATOR
16537
16538# The host system.
16539host_alias=$host_alias
16540host=$host
16541host_os=$host_os
16542
16543# The build system.
16544build_alias=$build_alias
16545build=$build
16546build_os=$build_os
16547
16548# A sed program that does not truncate output.
16549SED=$lt_SED
16550
16551# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16552Xsed="\$SED -e 1s/^X//"
16553
16554# A grep program that handles long lines.
16555GREP=$lt_GREP
16556
16557# An ERE matcher.
16558EGREP=$lt_EGREP
16559
16560# A literal string matcher.
16561FGREP=$lt_FGREP
16562
16563# A BSD- or MS-compatible name lister.
16564NM=$lt_NM
16565
16566# Whether we need soft or hard links.
16567LN_S=$lt_LN_S
16568
16569# What is the maximum length of a command?
16570max_cmd_len=$max_cmd_len
16571
16572# Object file suffix (normally "o").
16573objext=$ac_objext
16574
16575# Executable file suffix (normally "").
16576exeext=$exeext
16577
16578# whether the shell understands "unset".
16579lt_unset=$lt_unset
16580
16581# turn spaces into newlines.
16582SP2NL=$lt_lt_SP2NL
16583
16584# turn newlines into spaces.
16585NL2SP=$lt_lt_NL2SP
16586
16587# convert \$build file names to \$host format.
16588to_host_file_cmd=$lt_cv_to_host_file_cmd
16589
16590# convert \$build files to toolchain format.
16591to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16592
16593# An object symbol dumper.
16594OBJDUMP=$lt_OBJDUMP
16595
16596# Method to check whether dependent libraries are shared objects.
16597deplibs_check_method=$lt_deplibs_check_method
16598
16599# Command to use when deplibs_check_method = "file_magic".
16600file_magic_cmd=$lt_file_magic_cmd
16601
16602# How to find potential files when deplibs_check_method = "file_magic".
16603file_magic_glob=$lt_file_magic_glob
16604
16605# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16606want_nocaseglob=$lt_want_nocaseglob
16607
16608# DLL creation program.
16609DLLTOOL=$lt_DLLTOOL
16610
16611# Command to associate shared and link libraries.
16612sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16613
16614# The archiver.
16615AR=$lt_AR
16616
16617# Flags to create an archive.
16618AR_FLAGS=$lt_AR_FLAGS
16619
16620# How to feed a file listing to the archiver.
16621archiver_list_spec=$lt_archiver_list_spec
16622
16623# A symbol stripping program.
16624STRIP=$lt_STRIP
16625
16626# Commands used to install an old-style archive.
16627RANLIB=$lt_RANLIB
16628old_postinstall_cmds=$lt_old_postinstall_cmds
16629old_postuninstall_cmds=$lt_old_postuninstall_cmds
16630
16631# Whether to use a lock for old archive extraction.
16632lock_old_archive_extraction=$lock_old_archive_extraction
16633
16634# A C compiler.
16635LTCC=$lt_CC
16636
16637# LTCC compiler flags.
16638LTCFLAGS=$lt_CFLAGS
16639
16640# Take the output of nm and produce a listing of raw symbols and C names.
16641global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16642
16643# Transform the output of nm in a proper C declaration.
16644global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16645
16646# Transform the output of nm into a list of symbols to manually relocate.
16647global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16648
16649# Transform the output of nm in a C name address pair.
16650global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16651
16652# Transform the output of nm in a C name address pair when lib prefix is needed.
16653global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16654
16655# The name lister interface.
16656nm_interface=$lt_lt_cv_nm_interface
16657
16658# Specify filename containing input files for \$NM.
16659nm_file_list_spec=$lt_nm_file_list_spec
16660
16661# The root where to search for dependent libraries,and where our libraries should be installed.
16662lt_sysroot=$lt_sysroot
16663
16664# Command to truncate a binary pipe.
16665lt_truncate_bin=$lt_lt_cv_truncate_bin
16666
16667# The name of the directory that contains temporary libtool files.
16668objdir=$objdir
16669
16670# Used to examine libraries when file_magic_cmd begins with "file".
16671MAGIC_CMD=$MAGIC_CMD
16672
16673# Must we lock files when doing compilation?
16674need_locks=$lt_need_locks
16675
16676# Manifest tool.
16677MANIFEST_TOOL=$lt_MANIFEST_TOOL
16678
16679# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16680DSYMUTIL=$lt_DSYMUTIL
16681
16682# Tool to change global to local symbols on Mac OS X.
16683NMEDIT=$lt_NMEDIT
16684
16685# Tool to manipulate fat objects and archives on Mac OS X.
16686LIPO=$lt_LIPO
16687
16688# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16689OTOOL=$lt_OTOOL
16690
16691# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16692OTOOL64=$lt_OTOOL64
16693
16694# Old archive suffix (normally "a").
16695libext=$libext
16696
16697# Shared library suffix (normally ".so").
16698shrext_cmds=$lt_shrext_cmds
16699
16700# The commands to extract the exported symbol list from a shared archive.
16701extract_expsyms_cmds=$lt_extract_expsyms_cmds
16702
16703# Variables whose values should be saved in libtool wrapper scripts and
16704# restored at link time.
16705variables_saved_for_relink=$lt_variables_saved_for_relink
16706
16707# Do we need the "lib" prefix for modules?
16708need_lib_prefix=$need_lib_prefix
16709
16710# Do we need a version for libraries?
16711need_version=$need_version
16712
16713# Library versioning type.
16714version_type=$version_type
16715
16716# Shared library runtime path variable.
16717runpath_var=$runpath_var
16718
16719# Shared library path variable.
16720shlibpath_var=$shlibpath_var
16721
16722# Is shlibpath searched before the hard-coded library search path?
16723shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16724
16725# Format of library name prefix.
16726libname_spec=$lt_libname_spec
16727
16728# List of archive names.  First name is the real one, the rest are links.
16729# The last name is the one that the linker finds with -lNAME
16730library_names_spec=$lt_library_names_spec
16731
16732# The coded name of the library, if different from the real name.
16733soname_spec=$lt_soname_spec
16734
16735# Permission mode override for installation of shared libraries.
16736install_override_mode=$lt_install_override_mode
16737
16738# Command to use after installation of a shared archive.
16739postinstall_cmds=$lt_postinstall_cmds
16740
16741# Command to use after uninstallation of a shared archive.
16742postuninstall_cmds=$lt_postuninstall_cmds
16743
16744# Commands used to finish a libtool library installation in a directory.
16745finish_cmds=$lt_finish_cmds
16746
16747# As "finish_cmds", except a single script fragment to be evaled but
16748# not shown.
16749finish_eval=$lt_finish_eval
16750
16751# Whether we should hardcode library paths into libraries.
16752hardcode_into_libs=$hardcode_into_libs
16753
16754# Compile-time system search path for libraries.
16755sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16756
16757# Detected run-time system search path for libraries.
16758sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16759
16760# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16761configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16762
16763# Whether dlopen is supported.
16764dlopen_support=$enable_dlopen
16765
16766# Whether dlopen of programs is supported.
16767dlopen_self=$enable_dlopen_self
16768
16769# Whether dlopen of statically linked programs is supported.
16770dlopen_self_static=$enable_dlopen_self_static
16771
16772# Commands to strip libraries.
16773old_striplib=$lt_old_striplib
16774striplib=$lt_striplib
16775
16776
16777# The linker used to build libraries.
16778LD=$lt_LD
16779
16780# How to create reloadable object files.
16781reload_flag=$lt_reload_flag
16782reload_cmds=$lt_reload_cmds
16783
16784# Commands used to build an old-style archive.
16785old_archive_cmds=$lt_old_archive_cmds
16786
16787# A language specific compiler.
16788CC=$lt_compiler
16789
16790# Is the compiler the GNU compiler?
16791with_gcc=$GCC
16792
16793# Compiler flag to turn off builtin functions.
16794no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16795
16796# Additional compiler flags for building library objects.
16797pic_flag=$lt_lt_prog_compiler_pic
16798
16799# How to pass a linker flag through the compiler.
16800wl=$lt_lt_prog_compiler_wl
16801
16802# Compiler flag to prevent dynamic linking.
16803link_static_flag=$lt_lt_prog_compiler_static
16804
16805# Does compiler simultaneously support -c and -o options?
16806compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16807
16808# Whether or not to add -lc for building shared libraries.
16809build_libtool_need_lc=$archive_cmds_need_lc
16810
16811# Whether or not to disallow shared libs when runtime libs are static.
16812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16813
16814# Compiler flag to allow reflexive dlopens.
16815export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16816
16817# Compiler flag to generate shared objects directly from archives.
16818whole_archive_flag_spec=$lt_whole_archive_flag_spec
16819
16820# Whether the compiler copes with passing no objects directly.
16821compiler_needs_object=$lt_compiler_needs_object
16822
16823# Create an old-style archive from a shared archive.
16824old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16825
16826# Create a temporary old-style archive to link instead of a shared archive.
16827old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16828
16829# Commands used to build a shared archive.
16830archive_cmds=$lt_archive_cmds
16831archive_expsym_cmds=$lt_archive_expsym_cmds
16832
16833# Commands used to build a loadable module if different from building
16834# a shared archive.
16835module_cmds=$lt_module_cmds
16836module_expsym_cmds=$lt_module_expsym_cmds
16837
16838# Whether we are building with GNU ld or not.
16839with_gnu_ld=$lt_with_gnu_ld
16840
16841# Flag that allows shared libraries with undefined symbols to be built.
16842allow_undefined_flag=$lt_allow_undefined_flag
16843
16844# Flag that enforces no undefined symbols.
16845no_undefined_flag=$lt_no_undefined_flag
16846
16847# Flag to hardcode \$libdir into a binary during linking.
16848# This must work even if \$libdir does not exist
16849hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16850
16851# Whether we need a single "-rpath" flag with a separated argument.
16852hardcode_libdir_separator=$lt_hardcode_libdir_separator
16853
16854# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16855# DIR into the resulting binary.
16856hardcode_direct=$hardcode_direct
16857
16858# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16859# DIR into the resulting binary and the resulting library dependency is
16860# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16861# library is relocated.
16862hardcode_direct_absolute=$hardcode_direct_absolute
16863
16864# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16865# into the resulting binary.
16866hardcode_minus_L=$hardcode_minus_L
16867
16868# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16869# into the resulting binary.
16870hardcode_shlibpath_var=$hardcode_shlibpath_var
16871
16872# Set to "yes" if building a shared library automatically hardcodes DIR
16873# into the library and all subsequent libraries and executables linked
16874# against it.
16875hardcode_automatic=$hardcode_automatic
16876
16877# Set to yes if linker adds runtime paths of dependent libraries
16878# to runtime path list.
16879inherit_rpath=$inherit_rpath
16880
16881# Whether libtool must link a program against all its dependency libraries.
16882link_all_deplibs=$link_all_deplibs
16883
16884# Set to "yes" if exported symbols are required.
16885always_export_symbols=$always_export_symbols
16886
16887# The commands to list exported symbols.
16888export_symbols_cmds=$lt_export_symbols_cmds
16889
16890# Symbols that should not be listed in the preloaded symbols.
16891exclude_expsyms=$lt_exclude_expsyms
16892
16893# Symbols that must always be exported.
16894include_expsyms=$lt_include_expsyms
16895
16896# Commands necessary for linking programs (against libraries) with templates.
16897prelink_cmds=$lt_prelink_cmds
16898
16899# Commands necessary for finishing linking programs.
16900postlink_cmds=$lt_postlink_cmds
16901
16902# Specify filename containing input files.
16903file_list_spec=$lt_file_list_spec
16904
16905# How to hardcode a shared library path into an executable.
16906hardcode_action=$hardcode_action
16907
16908# ### END LIBTOOL CONFIG
16909
16910_LT_EOF
16911
16912    cat <<'_LT_EOF' >> "$cfgfile"
16913
16914# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16915
16916# func_munge_path_list VARIABLE PATH
16917# -----------------------------------
16918# VARIABLE is name of variable containing _space_ separated list of
16919# directories to be munged by the contents of PATH, which is string
16920# having a format:
16921# "DIR[:DIR]:"
16922#       string "DIR[ DIR]" will be prepended to VARIABLE
16923# ":DIR[:DIR]"
16924#       string "DIR[ DIR]" will be appended to VARIABLE
16925# "DIRP[:DIRP]::[DIRA:]DIRA"
16926#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16927#       "DIRA[ DIRA]" will be appended to VARIABLE
16928# "DIR[:DIR]"
16929#       VARIABLE will be replaced by "DIR[ DIR]"
16930func_munge_path_list ()
16931{
16932    case x$2 in
16933    x)
16934        ;;
16935    *:)
16936        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16937        ;;
16938    x:*)
16939        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16940        ;;
16941    *::*)
16942        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16943        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16944        ;;
16945    *)
16946        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16947        ;;
16948    esac
16949}
16950
16951
16952# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16953func_cc_basename ()
16954{
16955    for cc_temp in $*""; do
16956      case $cc_temp in
16957        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16958        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16959        \-*) ;;
16960        *) break;;
16961      esac
16962    done
16963    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16964}
16965
16966
16967# ### END FUNCTIONS SHARED WITH CONFIGURE
16968
16969_LT_EOF
16970
16971  case $host_os in
16972  aix3*)
16973    cat <<\_LT_EOF >> "$cfgfile"
16974# AIX sometimes has problems with the GCC collect2 program.  For some
16975# reason, if we set the COLLECT_NAMES environment variable, the problems
16976# vanish in a puff of smoke.
16977if test set != "${COLLECT_NAMES+set}"; then
16978  COLLECT_NAMES=
16979  export COLLECT_NAMES
16980fi
16981_LT_EOF
16982    ;;
16983  esac
16984
16985
16986ltmain=$ac_aux_dir/ltmain.sh
16987
16988
16989  # We use sed instead of cat because bash on DJGPP gets confused if
16990  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16991  # text mode, it properly converts lines to CR/LF.  This bash problem
16992  # is reportedly fixed, but why not run on old versions too?
16993  sed '$q' "$ltmain" >> "$cfgfile" \
16994     || (rm -f "$cfgfile"; exit 1)
16995
16996   mv -f "$cfgfile" "$ofile" ||
16997    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16998  chmod +x "$ofile"
16999
17000 ;;
17001    "examples/perc/Makefile":F) chmod +x examples/perc/Makefile ;;
17002
17003  esac
17004done # for ac_tag
17005
17006
17007as_fn_exit 0
17008_ACEOF
17009ac_clean_files=$ac_clean_files_save
17010
17011test $ac_write_fail = 0 ||
17012  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17013
17014
17015# configure is writing to config.log, and then calls config.status.
17016# config.status does its own redirection, appending to config.log.
17017# Unfortunately, on DOS this fails, as config.log is still kept open
17018# by configure, so config.status won't be able to write to it; its
17019# output is simply discarded.  So we exec the FD to /dev/null,
17020# effectively closing config.log, so it can be properly (re)opened and
17021# appended to by config.status.  When coming back to configure, we
17022# need to make the FD available again.
17023if test "$no_create" != yes; then
17024  ac_cs_success=:
17025  ac_config_status_args=
17026  test "$silent" = yes &&
17027    ac_config_status_args="$ac_config_status_args --quiet"
17028  exec 5>/dev/null
17029  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17030  exec 5>>config.log
17031  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17032  # would make configure fail if this is the last instruction.
17033  $ac_cs_success || as_fn_exit 1
17034fi
17035if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17036  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17037$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17038fi
17039
17040
17041