xref: /netbsd-src/external/gpl3/gdb/dist/sim/configure (revision 889f3bb010ad20d396fb291b89f202288dac2c87)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sim 0.
4#
5# Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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
278$0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='sim'
593PACKAGE_TARNAME='sim'
594PACKAGE_VERSION='0'
595PACKAGE_STRING='sim 0'
596PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
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_header_list=
636ac_func_list=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640SIM_RX_CYCLE_ACCURATE_FLAGS
641SIM_RISCV_BITSIZE
642sim_ppc_model_issue
643sim_ppc_default_model
644sim_ppc_model
645sim_ppc_monitor
646sim_ppc_float
647sim_ppc_timebase
648sim_ppc_bitsize
649sim_ppc_igen_smp
650sim_ppc_smp
651sim_ppc_xor_endian
652sim_ppc_hw_obj
653sim_ppc_hw_src
654sim_ppc_icache
655sim_ppc_filter
656sim_ppc_jump
657sim_ppc_decode_mechanism
658sim_ppc_dup
659sim_ppc_switch
660sim_ppc_opcode
661sim_ppc_line_nr
662SIM_MIPS_GEN_MODE_MULTI_FALSE
663SIM_MIPS_GEN_MODE_MULTI_TRUE
664SIM_MIPS_GEN_MODE_M16_FALSE
665SIM_MIPS_GEN_MODE_M16_TRUE
666SIM_MIPS_GEN_MODE_SINGLE_FALSE
667SIM_MIPS_GEN_MODE_SINGLE_TRUE
668SIM_MIPS_MULTI_OBJ
669SIM_MIPS_MULTI_SRC
670SIM_MIPS_MULTI_IGEN_CONFIGS
671SIM_MIPS_IGEN_ITABLE_FLAGS
672SIM_MIPS_GEN
673SIM_MIPS_M16_FLAGS
674SIM_MIPS_SINGLE_FLAGS
675SIM_MIPS_FPU_BITSIZE
676SIM_MIPS_BITSIZE
677SIM_MIPS_SUBTARGET
678SIM_FRV_TRAPDUMP_FLAGS
679SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE
680SIM_CFLAG_WNO_SHADOW_LOCAL
681IGEN_FLAGS_SMP
682SIM_INLINE
683SIM_HW_SOCKSER
684SIM_HW_CFLAGS
685SIM_ENABLE_HW_FALSE
686SIM_ENABLE_HW_TRUE
687cgen
688cgendir
689CGEN_MAINT
690ENABLE_SIM_FALSE
691ENABLE_SIM_TRUE
692SIM_ENABLE_ARCH_examples_FALSE
693SIM_ENABLE_ARCH_examples_TRUE
694CC_FOR_TARGET_EXAMPLE_SYNACOR
695LD_FOR_TARGET_EXAMPLE_SYNACOR
696AS_FOR_TARGET_EXAMPLE_SYNACOR
697SIM_ENABLE_ARCH_v850_FALSE
698SIM_ENABLE_ARCH_v850_TRUE
699CC_FOR_TARGET_V850
700LD_FOR_TARGET_V850
701AS_FOR_TARGET_V850
702SIM_ENABLE_ARCH_erc32_FALSE
703SIM_ENABLE_ARCH_erc32_TRUE
704CC_FOR_TARGET_ERC32
705LD_FOR_TARGET_ERC32
706AS_FOR_TARGET_ERC32
707SIM_ENABLE_ARCH_sh_FALSE
708SIM_ENABLE_ARCH_sh_TRUE
709CC_FOR_TARGET_SH
710LD_FOR_TARGET_SH
711AS_FOR_TARGET_SH
712SIM_ENABLE_ARCH_rx_FALSE
713SIM_ENABLE_ARCH_rx_TRUE
714CC_FOR_TARGET_RX
715LD_FOR_TARGET_RX
716AS_FOR_TARGET_RX
717SIM_ENABLE_ARCH_rl78_FALSE
718SIM_ENABLE_ARCH_rl78_TRUE
719CC_FOR_TARGET_RL78
720LD_FOR_TARGET_RL78
721AS_FOR_TARGET_RL78
722SIM_ENABLE_ARCH_riscv_FALSE
723SIM_ENABLE_ARCH_riscv_TRUE
724CC_FOR_TARGET_RISCV
725LD_FOR_TARGET_RISCV
726AS_FOR_TARGET_RISCV
727SIM_ENABLE_ARCH_pru_FALSE
728SIM_ENABLE_ARCH_pru_TRUE
729CC_FOR_TARGET_PRU
730LD_FOR_TARGET_PRU
731AS_FOR_TARGET_PRU
732SIM_ENABLE_ARCH_ppc_FALSE
733SIM_ENABLE_ARCH_ppc_TRUE
734CC_FOR_TARGET_PPC
735LD_FOR_TARGET_PPC
736AS_FOR_TARGET_PPC
737SIM_ENABLE_ARCH_or1k_FALSE
738SIM_ENABLE_ARCH_or1k_TRUE
739CC_FOR_TARGET_OR1K
740LD_FOR_TARGET_OR1K
741AS_FOR_TARGET_OR1K
742SIM_ENABLE_ARCH_msp430_FALSE
743SIM_ENABLE_ARCH_msp430_TRUE
744CC_FOR_TARGET_MSP430
745LD_FOR_TARGET_MSP430
746AS_FOR_TARGET_MSP430
747SIM_ENABLE_ARCH_moxie_FALSE
748SIM_ENABLE_ARCH_moxie_TRUE
749CC_FOR_TARGET_MOXIE
750LD_FOR_TARGET_MOXIE
751AS_FOR_TARGET_MOXIE
752SIM_ENABLE_ARCH_mn10300_FALSE
753SIM_ENABLE_ARCH_mn10300_TRUE
754CC_FOR_TARGET_MN10300
755LD_FOR_TARGET_MN10300
756AS_FOR_TARGET_MN10300
757SIM_ENABLE_ARCH_mips_FALSE
758SIM_ENABLE_ARCH_mips_TRUE
759CC_FOR_TARGET_MIPS
760LD_FOR_TARGET_MIPS
761AS_FOR_TARGET_MIPS
762SIM_ENABLE_ARCH_microblaze_FALSE
763SIM_ENABLE_ARCH_microblaze_TRUE
764CC_FOR_TARGET_MICROBLAZE
765LD_FOR_TARGET_MICROBLAZE
766AS_FOR_TARGET_MICROBLAZE
767SIM_ENABLE_ARCH_mcore_FALSE
768SIM_ENABLE_ARCH_mcore_TRUE
769CC_FOR_TARGET_MCORE
770LD_FOR_TARGET_MCORE
771AS_FOR_TARGET_MCORE
772SIM_ENABLE_ARCH_m68hc11_FALSE
773SIM_ENABLE_ARCH_m68hc11_TRUE
774CC_FOR_TARGET_M68HC11
775LD_FOR_TARGET_M68HC11
776AS_FOR_TARGET_M68HC11
777SIM_ENABLE_ARCH_m32r_FALSE
778SIM_ENABLE_ARCH_m32r_TRUE
779CC_FOR_TARGET_M32R
780LD_FOR_TARGET_M32R
781AS_FOR_TARGET_M32R
782SIM_ENABLE_ARCH_m32c_FALSE
783SIM_ENABLE_ARCH_m32c_TRUE
784CC_FOR_TARGET_M32C
785LD_FOR_TARGET_M32C
786AS_FOR_TARGET_M32C
787SIM_ENABLE_ARCH_lm32_FALSE
788SIM_ENABLE_ARCH_lm32_TRUE
789CC_FOR_TARGET_LM32
790LD_FOR_TARGET_LM32
791AS_FOR_TARGET_LM32
792SIM_ENABLE_ARCH_iq2000_FALSE
793SIM_ENABLE_ARCH_iq2000_TRUE
794CC_FOR_TARGET_IQ2000
795LD_FOR_TARGET_IQ2000
796AS_FOR_TARGET_IQ2000
797SIM_ENABLE_ARCH_h8300_FALSE
798SIM_ENABLE_ARCH_h8300_TRUE
799CC_FOR_TARGET_H8300
800LD_FOR_TARGET_H8300
801AS_FOR_TARGET_H8300
802SIM_ENABLE_ARCH_ft32_FALSE
803SIM_ENABLE_ARCH_ft32_TRUE
804CC_FOR_TARGET_FT32
805LD_FOR_TARGET_FT32
806AS_FOR_TARGET_FT32
807SIM_ENABLE_ARCH_frv_FALSE
808SIM_ENABLE_ARCH_frv_TRUE
809CC_FOR_TARGET_FRV
810LD_FOR_TARGET_FRV
811AS_FOR_TARGET_FRV
812SIM_ENABLE_ARCH_d10v_FALSE
813SIM_ENABLE_ARCH_d10v_TRUE
814CC_FOR_TARGET_D10V
815LD_FOR_TARGET_D10V
816AS_FOR_TARGET_D10V
817SIM_ENABLE_ARCH_cris_FALSE
818SIM_ENABLE_ARCH_cris_TRUE
819CC_FOR_TARGET_CRIS
820LD_FOR_TARGET_CRIS
821AS_FOR_TARGET_CRIS
822SIM_ENABLE_ARCH_cr16_FALSE
823SIM_ENABLE_ARCH_cr16_TRUE
824CC_FOR_TARGET_CR16
825LD_FOR_TARGET_CR16
826AS_FOR_TARGET_CR16
827SIM_ENABLE_ARCH_bpf_FALSE
828SIM_ENABLE_ARCH_bpf_TRUE
829CC_FOR_TARGET_BPF
830LD_FOR_TARGET_BPF
831AS_FOR_TARGET_BPF
832SIM_ENABLE_ARCH_bfin_FALSE
833SIM_ENABLE_ARCH_bfin_TRUE
834CC_FOR_TARGET_BFIN
835LD_FOR_TARGET_BFIN
836AS_FOR_TARGET_BFIN
837SIM_ENABLE_ARCH_avr_FALSE
838SIM_ENABLE_ARCH_avr_TRUE
839CC_FOR_TARGET_AVR
840LD_FOR_TARGET_AVR
841AS_FOR_TARGET_AVR
842SIM_ENABLE_ARCH_arm_FALSE
843SIM_ENABLE_ARCH_arm_TRUE
844CC_FOR_TARGET_ARM
845LD_FOR_TARGET_ARM
846AS_FOR_TARGET_ARM
847SIM_ENABLE_ARCH_aarch64_FALSE
848SIM_ENABLE_ARCH_aarch64_TRUE
849CC_FOR_TARGET_AARCH64
850LD_FOR_TARGET_AARCH64
851AS_FOR_TARGET_AARCH64
852LD_FOR_TARGET
853AS_FOR_TARGET
854CC_FOR_TARGET
855SIM_ENABLED_ARCHES
856SIM_PRIMARY_TARGET
857AM_BACKSLASH
858AM_DEFAULT_VERBOSITY
859AM_DEFAULT_V
860AM_V
861am__fastdepCC_FALSE
862am__fastdepCC_TRUE
863CCDEPMODE
864am__nodep
865AMDEPBACKSLASH
866AMDEP_FALSE
867AMDEP_TRUE
868am__quote
869am__include
870DEPDIR
871am__untar
872am__tar
873AMTAR
874am__leading_dot
875SET_MAKE
876mkdir_p
877MKDIR_P
878INSTALL_STRIP_PROGRAM
879install_sh
880MAKEINFO
881AUTOHEADER
882AUTOMAKE
883AUTOCONF
884ACLOCAL
885VERSION
886PACKAGE
887CYGPATH_W
888am__isrc
889MAINT
890MAINTAINER_MODE_FALSE
891MAINTAINER_MODE_TRUE
892READLINE_CFLAGS
893READLINE_LIB
894TERMCAP_LIB
895SDL_LIBS
896SDL_CFLAGS
897OTOOL64
898OTOOL
899LIPO
900NMEDIT
901DSYMUTIL
902AWK
903STRIP
904OBJDUMP
905LN_S
906NM
907ac_ct_DUMPBIN
908DUMPBIN
909LD
910FGREP
911SED
912LIBTOOL
913LIBOBJS
914C_DIALECT
915PKG_CONFIG_LIBDIR
916PKG_CONFIG_PATH
917PKG_CONFIG
918RANLIB
919AR
920LDFLAGS_FOR_BUILD
921CPPFLAGS_FOR_BUILD
922CFLAGS_FOR_BUILD
923RANLIB_FOR_BUILD
924CC_FOR_BUILD
925AR_FOR_BUILD
926DTC
927INSTALL_DATA
928INSTALL_SCRIPT
929INSTALL_PROGRAM
930EGREP
931GREP
932CPP
933OBJEXT
934EXEEXT
935ac_ct_CC
936CPPFLAGS
937LDFLAGS
938CFLAGS
939CC
940target_os
941target_vendor
942target_cpu
943target
944host_os
945host_vendor
946host_cpu
947host
948build_os
949build_vendor
950build_cpu
951build
952REPORT_BUGS_TEXI
953REPORT_BUGS_TO
954PKGVERSION
955target_alias
956host_alias
957build_alias
958LIBS
959ECHO_T
960ECHO_N
961ECHO_C
962DEFS
963mandir
964localedir
965libdir
966psdir
967pdfdir
968dvidir
969htmldir
970infodir
971docdir
972oldincludedir
973includedir
974localstatedir
975sharedstatedir
976sysconfdir
977datadir
978datarootdir
979libexecdir
980sbindir
981bindir
982program_transform_name
983prefix
984exec_prefix
985PACKAGE_URL
986PACKAGE_BUGREPORT
987PACKAGE_STRING
988PACKAGE_VERSION
989PACKAGE_TARNAME
990PACKAGE_NAME
991PATH_SEPARATOR
992SHELL
993SIM_TOOLCHAIN_VARS
994BUILD_WERROR_CFLAGS
995BUILD_WARN_CFLAGS
996WERROR_CFLAGS
997WARN_CFLAGS'
998ac_subst_files=''
999ac_user_opts='
1000enable_option_checking
1001with_pkgversion
1002with_bugurl
1003enable_shared
1004enable_static
1005with_pic
1006enable_fast_install
1007with_gnu_ld
1008enable_libtool_lock
1009enable_maintainer_mode
1010enable_dependency_tracking
1011enable_silent_rules
1012enable_sim
1013enable_example_sims
1014enable_targets
1015enable_sim_alignment
1016enable_sim_assert
1017enable_cgen_maint
1018enable_sim_debug
1019enable_sim_endian
1020enable_sim_environment
1021enable_sim_hardware
1022enable_sim_inline
1023enable_sim_profile
1024enable_sim_reserved_bits
1025enable_sim_scache
1026enable_sim_smp
1027enable_sim_stdio
1028enable_sim_trace
1029enable_werror
1030enable_build_warnings
1031enable_sim_build_warnings
1032enable_sim_frv_trapdump
1033enable_sim_ppc_bitsize
1034enable_sim_ppc_decode_mechanism
1035enable_sim_ppc_default_model
1036enable_sim_ppc_duplicate
1037enable_sim_ppc_filter
1038enable_sim_ppc_float
1039enable_sim_ppc_hardware
1040enable_sim_ppc_icache
1041enable_sim_ppc_jump
1042enable_sim_ppc_line_nr
1043enable_sim_ppc_model
1044enable_sim_ppc_model_issue
1045enable_sim_ppc_monitor
1046enable_sim_ppc_opcode
1047enable_sim_ppc_smp
1048enable_sim_ppc_switch
1049enable_sim_ppc_timebase
1050enable_sim_ppc_xor_endian
1051enable_sim_rx_cycle_accurate
1052'
1053      ac_precious_vars='build_alias
1054host_alias
1055target_alias
1056CC
1057CFLAGS
1058LDFLAGS
1059LIBS
1060CPPFLAGS
1061CPP
1062PKG_CONFIG
1063PKG_CONFIG_PATH
1064PKG_CONFIG_LIBDIR
1065SDL_CFLAGS
1066SDL_LIBS
1067AS_FOR_TARGET_AARCH64
1068LD_FOR_TARGET_AARCH64
1069CC_FOR_TARGET_AARCH64
1070AS_FOR_TARGET_ARM
1071LD_FOR_TARGET_ARM
1072CC_FOR_TARGET_ARM
1073AS_FOR_TARGET_AVR
1074LD_FOR_TARGET_AVR
1075CC_FOR_TARGET_AVR
1076AS_FOR_TARGET_BFIN
1077LD_FOR_TARGET_BFIN
1078CC_FOR_TARGET_BFIN
1079AS_FOR_TARGET_BPF
1080LD_FOR_TARGET_BPF
1081CC_FOR_TARGET_BPF
1082AS_FOR_TARGET_CR16
1083LD_FOR_TARGET_CR16
1084CC_FOR_TARGET_CR16
1085AS_FOR_TARGET_CRIS
1086LD_FOR_TARGET_CRIS
1087CC_FOR_TARGET_CRIS
1088AS_FOR_TARGET_D10V
1089LD_FOR_TARGET_D10V
1090CC_FOR_TARGET_D10V
1091AS_FOR_TARGET_FRV
1092LD_FOR_TARGET_FRV
1093CC_FOR_TARGET_FRV
1094AS_FOR_TARGET_FT32
1095LD_FOR_TARGET_FT32
1096CC_FOR_TARGET_FT32
1097AS_FOR_TARGET_H8300
1098LD_FOR_TARGET_H8300
1099CC_FOR_TARGET_H8300
1100AS_FOR_TARGET_IQ2000
1101LD_FOR_TARGET_IQ2000
1102CC_FOR_TARGET_IQ2000
1103AS_FOR_TARGET_LM32
1104LD_FOR_TARGET_LM32
1105CC_FOR_TARGET_LM32
1106AS_FOR_TARGET_M32C
1107LD_FOR_TARGET_M32C
1108CC_FOR_TARGET_M32C
1109AS_FOR_TARGET_M32R
1110LD_FOR_TARGET_M32R
1111CC_FOR_TARGET_M32R
1112AS_FOR_TARGET_M68HC11
1113LD_FOR_TARGET_M68HC11
1114CC_FOR_TARGET_M68HC11
1115AS_FOR_TARGET_MCORE
1116LD_FOR_TARGET_MCORE
1117CC_FOR_TARGET_MCORE
1118AS_FOR_TARGET_MICROBLAZE
1119LD_FOR_TARGET_MICROBLAZE
1120CC_FOR_TARGET_MICROBLAZE
1121AS_FOR_TARGET_MIPS
1122LD_FOR_TARGET_MIPS
1123CC_FOR_TARGET_MIPS
1124AS_FOR_TARGET_MN10300
1125LD_FOR_TARGET_MN10300
1126CC_FOR_TARGET_MN10300
1127AS_FOR_TARGET_MOXIE
1128LD_FOR_TARGET_MOXIE
1129CC_FOR_TARGET_MOXIE
1130AS_FOR_TARGET_MSP430
1131LD_FOR_TARGET_MSP430
1132CC_FOR_TARGET_MSP430
1133AS_FOR_TARGET_OR1K
1134LD_FOR_TARGET_OR1K
1135CC_FOR_TARGET_OR1K
1136AS_FOR_TARGET_PPC
1137LD_FOR_TARGET_PPC
1138CC_FOR_TARGET_PPC
1139AS_FOR_TARGET_PRU
1140LD_FOR_TARGET_PRU
1141CC_FOR_TARGET_PRU
1142AS_FOR_TARGET_RISCV
1143LD_FOR_TARGET_RISCV
1144CC_FOR_TARGET_RISCV
1145AS_FOR_TARGET_RL78
1146LD_FOR_TARGET_RL78
1147CC_FOR_TARGET_RL78
1148AS_FOR_TARGET_RX
1149LD_FOR_TARGET_RX
1150CC_FOR_TARGET_RX
1151AS_FOR_TARGET_SH
1152LD_FOR_TARGET_SH
1153CC_FOR_TARGET_SH
1154AS_FOR_TARGET_ERC32
1155LD_FOR_TARGET_ERC32
1156CC_FOR_TARGET_ERC32
1157AS_FOR_TARGET_V850
1158LD_FOR_TARGET_V850
1159CC_FOR_TARGET_V850
1160AS_FOR_TARGET_EXAMPLE_SYNACOR
1161LD_FOR_TARGET_EXAMPLE_SYNACOR
1162CC_FOR_TARGET_EXAMPLE_SYNACOR'
1163
1164
1165# Initialize some variables set by options.
1166ac_init_help=
1167ac_init_version=false
1168ac_unrecognized_opts=
1169ac_unrecognized_sep=
1170# The variables have the same names as the options, with
1171# dashes changed to underlines.
1172cache_file=/dev/null
1173exec_prefix=NONE
1174no_create=
1175no_recursion=
1176prefix=NONE
1177program_prefix=NONE
1178program_suffix=NONE
1179program_transform_name=s,x,x,
1180silent=
1181site=
1182srcdir=
1183verbose=
1184x_includes=NONE
1185x_libraries=NONE
1186
1187# Installation directory options.
1188# These are left unexpanded so users can "make install exec_prefix=/foo"
1189# and all the variables that are supposed to be based on exec_prefix
1190# by default will actually change.
1191# Use braces instead of parens because sh, perl, etc. also accept them.
1192# (The list follows the same order as the GNU Coding Standards.)
1193bindir='${exec_prefix}/bin'
1194sbindir='${exec_prefix}/sbin'
1195libexecdir='${exec_prefix}/libexec'
1196datarootdir='${prefix}/share'
1197datadir='${datarootdir}'
1198sysconfdir='${prefix}/etc'
1199sharedstatedir='${prefix}/com'
1200localstatedir='${prefix}/var'
1201includedir='${prefix}/include'
1202oldincludedir='/usr/include'
1203docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1204infodir='${datarootdir}/info'
1205htmldir='${docdir}'
1206dvidir='${docdir}'
1207pdfdir='${docdir}'
1208psdir='${docdir}'
1209libdir='${exec_prefix}/lib'
1210localedir='${datarootdir}/locale'
1211mandir='${datarootdir}/man'
1212
1213ac_prev=
1214ac_dashdash=
1215for ac_option
1216do
1217  # If the previous option needs an argument, assign it.
1218  if test -n "$ac_prev"; then
1219    eval $ac_prev=\$ac_option
1220    ac_prev=
1221    continue
1222  fi
1223
1224  case $ac_option in
1225  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1226  *=)   ac_optarg= ;;
1227  *)    ac_optarg=yes ;;
1228  esac
1229
1230  # Accept the important Cygnus configure options, so we can diagnose typos.
1231
1232  case $ac_dashdash$ac_option in
1233  --)
1234    ac_dashdash=yes ;;
1235
1236  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1237    ac_prev=bindir ;;
1238  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1239    bindir=$ac_optarg ;;
1240
1241  -build | --build | --buil | --bui | --bu)
1242    ac_prev=build_alias ;;
1243  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1244    build_alias=$ac_optarg ;;
1245
1246  -cache-file | --cache-file | --cache-fil | --cache-fi \
1247  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1248    ac_prev=cache_file ;;
1249  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1250  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1251    cache_file=$ac_optarg ;;
1252
1253  --config-cache | -C)
1254    cache_file=config.cache ;;
1255
1256  -datadir | --datadir | --datadi | --datad)
1257    ac_prev=datadir ;;
1258  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1259    datadir=$ac_optarg ;;
1260
1261  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1262  | --dataroo | --dataro | --datar)
1263    ac_prev=datarootdir ;;
1264  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1265  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1266    datarootdir=$ac_optarg ;;
1267
1268  -disable-* | --disable-*)
1269    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1270    # Reject names that are not valid shell variable names.
1271    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272      as_fn_error $? "invalid feature name: $ac_useropt"
1273    ac_useropt_orig=$ac_useropt
1274    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275    case $ac_user_opts in
1276      *"
1277"enable_$ac_useropt"
1278"*) ;;
1279      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1280	 ac_unrecognized_sep=', ';;
1281    esac
1282    eval enable_$ac_useropt=no ;;
1283
1284  -docdir | --docdir | --docdi | --doc | --do)
1285    ac_prev=docdir ;;
1286  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1287    docdir=$ac_optarg ;;
1288
1289  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1290    ac_prev=dvidir ;;
1291  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1292    dvidir=$ac_optarg ;;
1293
1294  -enable-* | --enable-*)
1295    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1296    # Reject names that are not valid shell variable names.
1297    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298      as_fn_error $? "invalid feature name: $ac_useropt"
1299    ac_useropt_orig=$ac_useropt
1300    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301    case $ac_user_opts in
1302      *"
1303"enable_$ac_useropt"
1304"*) ;;
1305      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1306	 ac_unrecognized_sep=', ';;
1307    esac
1308    eval enable_$ac_useropt=\$ac_optarg ;;
1309
1310  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1311  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1312  | --exec | --exe | --ex)
1313    ac_prev=exec_prefix ;;
1314  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1315  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1316  | --exec=* | --exe=* | --ex=*)
1317    exec_prefix=$ac_optarg ;;
1318
1319  -gas | --gas | --ga | --g)
1320    # Obsolete; use --with-gas.
1321    with_gas=yes ;;
1322
1323  -help | --help | --hel | --he | -h)
1324    ac_init_help=long ;;
1325  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1326    ac_init_help=recursive ;;
1327  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1328    ac_init_help=short ;;
1329
1330  -host | --host | --hos | --ho)
1331    ac_prev=host_alias ;;
1332  -host=* | --host=* | --hos=* | --ho=*)
1333    host_alias=$ac_optarg ;;
1334
1335  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1336    ac_prev=htmldir ;;
1337  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1338  | --ht=*)
1339    htmldir=$ac_optarg ;;
1340
1341  -includedir | --includedir | --includedi | --included | --include \
1342  | --includ | --inclu | --incl | --inc)
1343    ac_prev=includedir ;;
1344  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1345  | --includ=* | --inclu=* | --incl=* | --inc=*)
1346    includedir=$ac_optarg ;;
1347
1348  -infodir | --infodir | --infodi | --infod | --info | --inf)
1349    ac_prev=infodir ;;
1350  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1351    infodir=$ac_optarg ;;
1352
1353  -libdir | --libdir | --libdi | --libd)
1354    ac_prev=libdir ;;
1355  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1356    libdir=$ac_optarg ;;
1357
1358  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1359  | --libexe | --libex | --libe)
1360    ac_prev=libexecdir ;;
1361  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1362  | --libexe=* | --libex=* | --libe=*)
1363    libexecdir=$ac_optarg ;;
1364
1365  -localedir | --localedir | --localedi | --localed | --locale)
1366    ac_prev=localedir ;;
1367  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1368    localedir=$ac_optarg ;;
1369
1370  -localstatedir | --localstatedir | --localstatedi | --localstated \
1371  | --localstate | --localstat | --localsta | --localst | --locals)
1372    ac_prev=localstatedir ;;
1373  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1374  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1375    localstatedir=$ac_optarg ;;
1376
1377  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1378    ac_prev=mandir ;;
1379  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1380    mandir=$ac_optarg ;;
1381
1382  -nfp | --nfp | --nf)
1383    # Obsolete; use --without-fp.
1384    with_fp=no ;;
1385
1386  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1387  | --no-cr | --no-c | -n)
1388    no_create=yes ;;
1389
1390  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1391  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1392    no_recursion=yes ;;
1393
1394  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1395  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1396  | --oldin | --oldi | --old | --ol | --o)
1397    ac_prev=oldincludedir ;;
1398  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1399  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1400  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1401    oldincludedir=$ac_optarg ;;
1402
1403  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1404    ac_prev=prefix ;;
1405  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1406    prefix=$ac_optarg ;;
1407
1408  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1409  | --program-pre | --program-pr | --program-p)
1410    ac_prev=program_prefix ;;
1411  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1412  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1413    program_prefix=$ac_optarg ;;
1414
1415  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1416  | --program-suf | --program-su | --program-s)
1417    ac_prev=program_suffix ;;
1418  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1419  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1420    program_suffix=$ac_optarg ;;
1421
1422  -program-transform-name | --program-transform-name \
1423  | --program-transform-nam | --program-transform-na \
1424  | --program-transform-n | --program-transform- \
1425  | --program-transform | --program-transfor \
1426  | --program-transfo | --program-transf \
1427  | --program-trans | --program-tran \
1428  | --progr-tra | --program-tr | --program-t)
1429    ac_prev=program_transform_name ;;
1430  -program-transform-name=* | --program-transform-name=* \
1431  | --program-transform-nam=* | --program-transform-na=* \
1432  | --program-transform-n=* | --program-transform-=* \
1433  | --program-transform=* | --program-transfor=* \
1434  | --program-transfo=* | --program-transf=* \
1435  | --program-trans=* | --program-tran=* \
1436  | --progr-tra=* | --program-tr=* | --program-t=*)
1437    program_transform_name=$ac_optarg ;;
1438
1439  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1440    ac_prev=pdfdir ;;
1441  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1442    pdfdir=$ac_optarg ;;
1443
1444  -psdir | --psdir | --psdi | --psd | --ps)
1445    ac_prev=psdir ;;
1446  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1447    psdir=$ac_optarg ;;
1448
1449  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1450  | -silent | --silent | --silen | --sile | --sil)
1451    silent=yes ;;
1452
1453  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1454    ac_prev=sbindir ;;
1455  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1456  | --sbi=* | --sb=*)
1457    sbindir=$ac_optarg ;;
1458
1459  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1460  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1461  | --sharedst | --shareds | --shared | --share | --shar \
1462  | --sha | --sh)
1463    ac_prev=sharedstatedir ;;
1464  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1465  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1466  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1467  | --sha=* | --sh=*)
1468    sharedstatedir=$ac_optarg ;;
1469
1470  -site | --site | --sit)
1471    ac_prev=site ;;
1472  -site=* | --site=* | --sit=*)
1473    site=$ac_optarg ;;
1474
1475  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1476    ac_prev=srcdir ;;
1477  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1478    srcdir=$ac_optarg ;;
1479
1480  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1481  | --syscon | --sysco | --sysc | --sys | --sy)
1482    ac_prev=sysconfdir ;;
1483  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1484  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1485    sysconfdir=$ac_optarg ;;
1486
1487  -target | --target | --targe | --targ | --tar | --ta | --t)
1488    ac_prev=target_alias ;;
1489  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1490    target_alias=$ac_optarg ;;
1491
1492  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1493    verbose=yes ;;
1494
1495  -version | --version | --versio | --versi | --vers | -V)
1496    ac_init_version=: ;;
1497
1498  -with-* | --with-*)
1499    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1500    # Reject names that are not valid shell variable names.
1501    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1502      as_fn_error $? "invalid package name: $ac_useropt"
1503    ac_useropt_orig=$ac_useropt
1504    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1505    case $ac_user_opts in
1506      *"
1507"with_$ac_useropt"
1508"*) ;;
1509      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1510	 ac_unrecognized_sep=', ';;
1511    esac
1512    eval with_$ac_useropt=\$ac_optarg ;;
1513
1514  -without-* | --without-*)
1515    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1516    # Reject names that are not valid shell variable names.
1517    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1518      as_fn_error $? "invalid package name: $ac_useropt"
1519    ac_useropt_orig=$ac_useropt
1520    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1521    case $ac_user_opts in
1522      *"
1523"with_$ac_useropt"
1524"*) ;;
1525      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1526	 ac_unrecognized_sep=', ';;
1527    esac
1528    eval with_$ac_useropt=no ;;
1529
1530  --x)
1531    # Obsolete; use --with-x.
1532    with_x=yes ;;
1533
1534  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1535  | --x-incl | --x-inc | --x-in | --x-i)
1536    ac_prev=x_includes ;;
1537  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1538  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1539    x_includes=$ac_optarg ;;
1540
1541  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1542  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1543    ac_prev=x_libraries ;;
1544  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1545  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1546    x_libraries=$ac_optarg ;;
1547
1548  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1549Try \`$0 --help' for more information"
1550    ;;
1551
1552  *=*)
1553    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1554    # Reject names that are not valid shell variable names.
1555    case $ac_envvar in #(
1556      '' | [0-9]* | *[!_$as_cr_alnum]* )
1557      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1558    esac
1559    eval $ac_envvar=\$ac_optarg
1560    export $ac_envvar ;;
1561
1562  *)
1563    # FIXME: should be removed in autoconf 3.0.
1564    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1565    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1566      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1567    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1568    ;;
1569
1570  esac
1571done
1572
1573if test -n "$ac_prev"; then
1574  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1575  as_fn_error $? "missing argument to $ac_option"
1576fi
1577
1578if test -n "$ac_unrecognized_opts"; then
1579  case $enable_option_checking in
1580    no) ;;
1581    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1582    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1583  esac
1584fi
1585
1586# Check all directory arguments for consistency.
1587for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1588		datadir sysconfdir sharedstatedir localstatedir includedir \
1589		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1590		libdir localedir mandir
1591do
1592  eval ac_val=\$$ac_var
1593  # Remove trailing slashes.
1594  case $ac_val in
1595    */ )
1596      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1597      eval $ac_var=\$ac_val;;
1598  esac
1599  # Be sure to have absolute directory names.
1600  case $ac_val in
1601    [\\/$]* | ?:[\\/]* )  continue;;
1602    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1603  esac
1604  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1605done
1606
1607# There might be people who depend on the old broken behavior: `$host'
1608# used to hold the argument of --host etc.
1609# FIXME: To remove some day.
1610build=$build_alias
1611host=$host_alias
1612target=$target_alias
1613
1614# FIXME: To remove some day.
1615if test "x$host_alias" != x; then
1616  if test "x$build_alias" = x; then
1617    cross_compiling=maybe
1618  elif test "x$build_alias" != "x$host_alias"; then
1619    cross_compiling=yes
1620  fi
1621fi
1622
1623ac_tool_prefix=
1624test -n "$host_alias" && ac_tool_prefix=$host_alias-
1625
1626test "$silent" = yes && exec 6>/dev/null
1627
1628
1629ac_pwd=`pwd` && test -n "$ac_pwd" &&
1630ac_ls_di=`ls -di .` &&
1631ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1632  as_fn_error $? "working directory cannot be determined"
1633test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1634  as_fn_error $? "pwd does not report name of working directory"
1635
1636
1637# Find the source files, if location was not specified.
1638if test -z "$srcdir"; then
1639  ac_srcdir_defaulted=yes
1640  # Try the directory containing this script, then the parent directory.
1641  ac_confdir=`$as_dirname -- "$as_myself" ||
1642$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1643	 X"$as_myself" : 'X\(//\)[^/]' \| \
1644	 X"$as_myself" : 'X\(//\)$' \| \
1645	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1646$as_echo X"$as_myself" |
1647    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1648	    s//\1/
1649	    q
1650	  }
1651	  /^X\(\/\/\)[^/].*/{
1652	    s//\1/
1653	    q
1654	  }
1655	  /^X\(\/\/\)$/{
1656	    s//\1/
1657	    q
1658	  }
1659	  /^X\(\/\).*/{
1660	    s//\1/
1661	    q
1662	  }
1663	  s/.*/./; q'`
1664  srcdir=$ac_confdir
1665  if test ! -r "$srcdir/$ac_unique_file"; then
1666    srcdir=..
1667  fi
1668else
1669  ac_srcdir_defaulted=no
1670fi
1671if test ! -r "$srcdir/$ac_unique_file"; then
1672  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1673  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1674fi
1675ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1676ac_abs_confdir=`(
1677	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1678	pwd)`
1679# When building in place, set srcdir=.
1680if test "$ac_abs_confdir" = "$ac_pwd"; then
1681  srcdir=.
1682fi
1683# Remove unnecessary trailing slashes from srcdir.
1684# Double slashes in file names in object file debugging info
1685# mess up M-x gdb in Emacs.
1686case $srcdir in
1687*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1688esac
1689for ac_var in $ac_precious_vars; do
1690  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1691  eval ac_env_${ac_var}_value=\$${ac_var}
1692  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1693  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1694done
1695
1696#
1697# Report the --help message.
1698#
1699if test "$ac_init_help" = "long"; then
1700  # Omit some internal or obsolete options to make the list less imposing.
1701  # This message is too long to be a string in the A/UX 3.1 sh.
1702  cat <<_ACEOF
1703\`configure' configures sim 0 to adapt to many kinds of systems.
1704
1705Usage: $0 [OPTION]... [VAR=VALUE]...
1706
1707To assign environment variables (e.g., CC, CFLAGS...), specify them as
1708VAR=VALUE.  See below for descriptions of some of the useful variables.
1709
1710Defaults for the options are specified in brackets.
1711
1712Configuration:
1713  -h, --help              display this help and exit
1714      --help=short        display options specific to this package
1715      --help=recursive    display the short help of all the included packages
1716  -V, --version           display version information and exit
1717  -q, --quiet, --silent   do not print \`checking ...' messages
1718      --cache-file=FILE   cache test results in FILE [disabled]
1719  -C, --config-cache      alias for \`--cache-file=config.cache'
1720  -n, --no-create         do not create output files
1721      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1722
1723Installation directories:
1724  --prefix=PREFIX         install architecture-independent files in PREFIX
1725                          [$ac_default_prefix]
1726  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1727                          [PREFIX]
1728
1729By default, \`make install' will install all the files in
1730\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1731an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1732for instance \`--prefix=\$HOME'.
1733
1734For better control, use the options below.
1735
1736Fine tuning of the installation directories:
1737  --bindir=DIR            user executables [EPREFIX/bin]
1738  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1739  --libexecdir=DIR        program executables [EPREFIX/libexec]
1740  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1741  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1742  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1743  --libdir=DIR            object code libraries [EPREFIX/lib]
1744  --includedir=DIR        C header files [PREFIX/include]
1745  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1746  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1747  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1748  --infodir=DIR           info documentation [DATAROOTDIR/info]
1749  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1750  --mandir=DIR            man documentation [DATAROOTDIR/man]
1751  --docdir=DIR            documentation root [DATAROOTDIR/doc/sim]
1752  --htmldir=DIR           html documentation [DOCDIR]
1753  --dvidir=DIR            dvi documentation [DOCDIR]
1754  --pdfdir=DIR            pdf documentation [DOCDIR]
1755  --psdir=DIR             ps documentation [DOCDIR]
1756_ACEOF
1757
1758  cat <<\_ACEOF
1759
1760Program names:
1761  --program-prefix=PREFIX            prepend PREFIX to installed program names
1762  --program-suffix=SUFFIX            append SUFFIX to installed program names
1763  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1764
1765System types:
1766  --build=BUILD     configure for building on BUILD [guessed]
1767  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1768  --target=TARGET   configure for building compilers for TARGET [HOST]
1769_ACEOF
1770fi
1771
1772if test -n "$ac_init_help"; then
1773  case $ac_init_help in
1774     short | recursive ) echo "Configuration of sim 0:";;
1775   esac
1776  cat <<\_ACEOF
1777
1778Optional Features:
1779  --disable-option-checking  ignore unrecognized --enable/--with options
1780  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1781  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1782  --enable-shared[=PKGS]  build shared libraries [default=yes]
1783  --enable-static[=PKGS]  build static libraries [default=yes]
1784  --enable-fast-install[=PKGS]
1785                          optimize for fast installation [default=yes]
1786  --disable-libtool-lock  avoid locking (might break parallel builds)
1787  --enable-maintainer-mode
1788                          enable make rules and dependencies not useful (and
1789                          sometimes confusing) to the casual installer
1790  --enable-dependency-tracking
1791                          do not reject slow dependency extractors
1792  --disable-dependency-tracking
1793                          speeds up one-time build
1794  --enable-silent-rules   less verbose build output (undo: "make V=1")
1795  --disable-silent-rules  verbose build output (undo: "make V=0")
1796  --enable-sim            Enable the GNU simulator
1797  --enable-example-sims   enable example GNU simulators
1798  --enable-targets        alternative target configurations
1799  --enable-sim-alignment=align
1800                          Specify strict, nonstrict or forced alignment of
1801                          memory accesses
1802  --enable-sim-assert     Specify whether to perform random assertions
1803  --enable-cgen-maint=DIR build cgen generated files
1804  --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1805                          itself)
1806  --enable-sim-endian=endian
1807                          Specify target byte endian orientation
1808  --enable-sim-environment=environment
1809                          Specify mixed, user, virtual or operating
1810                          environment
1811  --enable-sim-hardware   Whether to enable hardware/device simulation
1812  --enable-sim-inline=inlines
1813                          Specify which functions should be inlined
1814  --enable-sim-profile=opts
1815                          Enable profiling flags
1816  --enable-sim-reserved-bits
1817                          Specify whether to check reserved bits in
1818                          instruction
1819  --enable-sim-scache=size
1820                          Specify simulator execution cache size
1821  --enable-sim-smp=n      Specify number of processors to configure for
1822                          (default 1)
1823  --enable-sim-stdio      Specify whether to use stdio for console
1824                          input/output
1825  --enable-sim-trace=opts Enable tracing of simulated programs
1826  --enable-werror         treat compile warnings as errors
1827  --enable-build-warnings enable build-time compiler warnings if gcc is used
1828  --enable-sim-build-warnings
1829                          enable SIM specific build-time compiler warnings if
1830                          gcc is used
1831  --enable-sim-frv-trapdump
1832                          Make unknown traps dump the registers
1833  --enable-sim-ppc-bitsize=n
1834                          Specify target bitsize (32 or 64).
1835  --enable-sim-ppc-decode-mechanism=which
1836                          Specify the instruction decode mechanism.
1837  --enable-sim-ppc-default-model=which
1838                          Specify default PowerPC to model.
1839  --enable-sim-ppc-duplicate
1840                          Expand (duplicate) semantic functions.
1841  --enable-sim-ppc-filter=rule
1842                          Specify filter rules.
1843  --enable-sim-ppc-float  Specify whether the target has hard, soft, altivec
1844                          or e500 floating point.
1845  --enable-sim-ppc-hardware=list
1846                          Specify the hardware to be included in the build.
1847  --enable-sim-ppc-icache=size
1848                          Specify instruction-decode cache size and type.
1849  --enable-sim-ppc-jump   Jump between semantic code (instead of call/return).
1850  --enable-sim-ppc-line-nr=opts
1851                          Generate extra CPP code that references source
1852                          rather than generated code
1853  --enable-sim-ppc-model=which
1854                          Specify PowerPC to model.
1855  --enable-sim-ppc-model-issue
1856                          Specify whether to simulate model specific actions
1857  --enable-sim-ppc-monitor=mon
1858                          Specify whether to enable monitoring events.
1859  --enable-sim-ppc-opcode=which
1860                          Override default opcode lookup.
1861  --enable-sim-ppc-smp=n  Specify number of processors to configure for.
1862  --enable-sim-ppc-switch Use a switch instead of a table for instruction
1863                          call.
1864  --enable-sim-ppc-timebase
1865                          Specify whether the PPC timebase is supported.
1866  --enable-sim-ppc-xor-endian=n
1867                          Specify number bytes involved in PowerPC XOR
1868                          bi-endian mode (default 8).
1869  --disable-sim-rx-cycle-accurate
1870                          Disable cycle accurate simulation (faster runtime)
1871
1872Optional Packages:
1873  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1874  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1875  --with-pkgversion=PKG   Use PKG in the version string in place of "SIM"
1876  --with-bugurl=URL       Direct users to URL to report a bug
1877  --with-pic              try to use only PIC/non-PIC objects [default=use
1878                          both]
1879  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1880
1881Some influential environment variables:
1882  CC          C compiler command
1883  CFLAGS      C compiler flags
1884  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1885              nonstandard directory <lib dir>
1886  LIBS        libraries to pass to the linker, e.g. -l<library>
1887  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1888              you have headers in a nonstandard directory <include dir>
1889  CPP         C preprocessor
1890  PKG_CONFIG  path to pkg-config utility
1891  PKG_CONFIG_PATH
1892              directories to add to pkg-config's search path
1893  PKG_CONFIG_LIBDIR
1894              path overriding pkg-config's built-in search path
1895  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1896  SDL_LIBS    linker flags for SDL, overriding pkg-config
1897  AS_FOR_TARGET_AARCH64
1898              Assembler for aarch64 tests
1899  LD_FOR_TARGET_AARCH64
1900              Linker for aarch64 tests
1901  CC_FOR_TARGET_AARCH64
1902              C compiler for aarch64 tests
1903  AS_FOR_TARGET_ARM
1904              Assembler for arm tests
1905  LD_FOR_TARGET_ARM
1906              Linker for arm tests
1907  CC_FOR_TARGET_ARM
1908              C compiler for arm tests
1909  AS_FOR_TARGET_AVR
1910              Assembler for avr tests
1911  LD_FOR_TARGET_AVR
1912              Linker for avr tests
1913  CC_FOR_TARGET_AVR
1914              C compiler for avr tests
1915  AS_FOR_TARGET_BFIN
1916              Assembler for bfin tests
1917  LD_FOR_TARGET_BFIN
1918              Linker for bfin tests
1919  CC_FOR_TARGET_BFIN
1920              C compiler for bfin tests
1921  AS_FOR_TARGET_BPF
1922              Assembler for bpf tests
1923  LD_FOR_TARGET_BPF
1924              Linker for bpf tests
1925  CC_FOR_TARGET_BPF
1926              C compiler for bpf tests
1927  AS_FOR_TARGET_CR16
1928              Assembler for cr16 tests
1929  LD_FOR_TARGET_CR16
1930              Linker for cr16 tests
1931  CC_FOR_TARGET_CR16
1932              C compiler for cr16 tests
1933  AS_FOR_TARGET_CRIS
1934              Assembler for cris tests
1935  LD_FOR_TARGET_CRIS
1936              Linker for cris tests
1937  CC_FOR_TARGET_CRIS
1938              C compiler for cris tests
1939  AS_FOR_TARGET_D10V
1940              Assembler for d10v tests
1941  LD_FOR_TARGET_D10V
1942              Linker for d10v tests
1943  CC_FOR_TARGET_D10V
1944              C compiler for d10v tests
1945  AS_FOR_TARGET_FRV
1946              Assembler for frv tests
1947  LD_FOR_TARGET_FRV
1948              Linker for frv tests
1949  CC_FOR_TARGET_FRV
1950              C compiler for frv tests
1951  AS_FOR_TARGET_FT32
1952              Assembler for ft32 tests
1953  LD_FOR_TARGET_FT32
1954              Linker for ft32 tests
1955  CC_FOR_TARGET_FT32
1956              C compiler for ft32 tests
1957  AS_FOR_TARGET_H8300
1958              Assembler for h8300 tests
1959  LD_FOR_TARGET_H8300
1960              Linker for h8300 tests
1961  CC_FOR_TARGET_H8300
1962              C compiler for h8300 tests
1963  AS_FOR_TARGET_IQ2000
1964              Assembler for iq2000 tests
1965  LD_FOR_TARGET_IQ2000
1966              Linker for iq2000 tests
1967  CC_FOR_TARGET_IQ2000
1968              C compiler for iq2000 tests
1969  AS_FOR_TARGET_LM32
1970              Assembler for lm32 tests
1971  LD_FOR_TARGET_LM32
1972              Linker for lm32 tests
1973  CC_FOR_TARGET_LM32
1974              C compiler for lm32 tests
1975  AS_FOR_TARGET_M32C
1976              Assembler for m32c tests
1977  LD_FOR_TARGET_M32C
1978              Linker for m32c tests
1979  CC_FOR_TARGET_M32C
1980              C compiler for m32c tests
1981  AS_FOR_TARGET_M32R
1982              Assembler for m32r tests
1983  LD_FOR_TARGET_M32R
1984              Linker for m32r tests
1985  CC_FOR_TARGET_M32R
1986              C compiler for m32r tests
1987  AS_FOR_TARGET_M68HC11
1988              Assembler for m68hc11 tests
1989  LD_FOR_TARGET_M68HC11
1990              Linker for m68hc11 tests
1991  CC_FOR_TARGET_M68HC11
1992              C compiler for m68hc11 tests
1993  AS_FOR_TARGET_MCORE
1994              Assembler for mcore tests
1995  LD_FOR_TARGET_MCORE
1996              Linker for mcore tests
1997  CC_FOR_TARGET_MCORE
1998              C compiler for mcore tests
1999  AS_FOR_TARGET_MICROBLAZE
2000              Assembler for microblaze tests
2001  LD_FOR_TARGET_MICROBLAZE
2002              Linker for microblaze tests
2003  CC_FOR_TARGET_MICROBLAZE
2004              C compiler for microblaze tests
2005  AS_FOR_TARGET_MIPS
2006              Assembler for mips tests
2007  LD_FOR_TARGET_MIPS
2008              Linker for mips tests
2009  CC_FOR_TARGET_MIPS
2010              C compiler for mips tests
2011  AS_FOR_TARGET_MN10300
2012              Assembler for mn10300 tests
2013  LD_FOR_TARGET_MN10300
2014              Linker for mn10300 tests
2015  CC_FOR_TARGET_MN10300
2016              C compiler for mn10300 tests
2017  AS_FOR_TARGET_MOXIE
2018              Assembler for moxie tests
2019  LD_FOR_TARGET_MOXIE
2020              Linker for moxie tests
2021  CC_FOR_TARGET_MOXIE
2022              C compiler for moxie tests
2023  AS_FOR_TARGET_MSP430
2024              Assembler for msp430 tests
2025  LD_FOR_TARGET_MSP430
2026              Linker for msp430 tests
2027  CC_FOR_TARGET_MSP430
2028              C compiler for msp430 tests
2029  AS_FOR_TARGET_OR1K
2030              Assembler for or1k tests
2031  LD_FOR_TARGET_OR1K
2032              Linker for or1k tests
2033  CC_FOR_TARGET_OR1K
2034              C compiler for or1k tests
2035  AS_FOR_TARGET_PPC
2036              Assembler for ppc tests
2037  LD_FOR_TARGET_PPC
2038              Linker for ppc tests
2039  CC_FOR_TARGET_PPC
2040              C compiler for ppc tests
2041  AS_FOR_TARGET_PRU
2042              Assembler for pru tests
2043  LD_FOR_TARGET_PRU
2044              Linker for pru tests
2045  CC_FOR_TARGET_PRU
2046              C compiler for pru tests
2047  AS_FOR_TARGET_RISCV
2048              Assembler for riscv tests
2049  LD_FOR_TARGET_RISCV
2050              Linker for riscv tests
2051  CC_FOR_TARGET_RISCV
2052              C compiler for riscv tests
2053  AS_FOR_TARGET_RL78
2054              Assembler for rl78 tests
2055  LD_FOR_TARGET_RL78
2056              Linker for rl78 tests
2057  CC_FOR_TARGET_RL78
2058              C compiler for rl78 tests
2059  AS_FOR_TARGET_RX
2060              Assembler for rx tests
2061  LD_FOR_TARGET_RX
2062              Linker for rx tests
2063  CC_FOR_TARGET_RX
2064              C compiler for rx tests
2065  AS_FOR_TARGET_SH
2066              Assembler for sh tests
2067  LD_FOR_TARGET_SH
2068              Linker for sh tests
2069  CC_FOR_TARGET_SH
2070              C compiler for sh tests
2071  AS_FOR_TARGET_ERC32
2072              Assembler for erc32 tests
2073  LD_FOR_TARGET_ERC32
2074              Linker for erc32 tests
2075  CC_FOR_TARGET_ERC32
2076              C compiler for erc32 tests
2077  AS_FOR_TARGET_V850
2078              Assembler for v850 tests
2079  LD_FOR_TARGET_V850
2080              Linker for v850 tests
2081  CC_FOR_TARGET_V850
2082              C compiler for v850 tests
2083  AS_FOR_TARGET_EXAMPLE_SYNACOR
2084              Assembler for example-synacor tests
2085  LD_FOR_TARGET_EXAMPLE_SYNACOR
2086              Linker for example-synacor tests
2087  CC_FOR_TARGET_EXAMPLE_SYNACOR
2088              C compiler for example-synacor tests
2089
2090Use these variables to override the choices made by `configure' or to help
2091it to find libraries and programs with nonstandard names/locations.
2092
2093Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2094sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2095_ACEOF
2096ac_status=$?
2097fi
2098
2099if test "$ac_init_help" = "recursive"; then
2100  # If there are subdirs, report their specific --help.
2101  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2102    test -d "$ac_dir" ||
2103      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2104      continue
2105    ac_builddir=.
2106
2107case "$ac_dir" in
2108.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2109*)
2110  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2111  # A ".." for each directory in $ac_dir_suffix.
2112  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2113  case $ac_top_builddir_sub in
2114  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2115  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2116  esac ;;
2117esac
2118ac_abs_top_builddir=$ac_pwd
2119ac_abs_builddir=$ac_pwd$ac_dir_suffix
2120# for backward compatibility:
2121ac_top_builddir=$ac_top_build_prefix
2122
2123case $srcdir in
2124  .)  # We are building in place.
2125    ac_srcdir=.
2126    ac_top_srcdir=$ac_top_builddir_sub
2127    ac_abs_top_srcdir=$ac_pwd ;;
2128  [\\/]* | ?:[\\/]* )  # Absolute name.
2129    ac_srcdir=$srcdir$ac_dir_suffix;
2130    ac_top_srcdir=$srcdir
2131    ac_abs_top_srcdir=$srcdir ;;
2132  *) # Relative name.
2133    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2134    ac_top_srcdir=$ac_top_build_prefix$srcdir
2135    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2136esac
2137ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2138
2139    cd "$ac_dir" || { ac_status=$?; continue; }
2140    # Check for guested configure.
2141    if test -f "$ac_srcdir/configure.gnu"; then
2142      echo &&
2143      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2144    elif test -f "$ac_srcdir/configure"; then
2145      echo &&
2146      $SHELL "$ac_srcdir/configure" --help=recursive
2147    else
2148      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2149    fi || ac_status=$?
2150    cd "$ac_pwd" || { ac_status=$?; break; }
2151  done
2152fi
2153
2154test -n "$ac_init_help" && exit $ac_status
2155if $ac_init_version; then
2156  cat <<\_ACEOF
2157sim configure 0
2158generated by GNU Autoconf 2.69
2159
2160Copyright (C) 2012 Free Software Foundation, Inc.
2161This configure script is free software; the Free Software Foundation
2162gives unlimited permission to copy, distribute and modify it.
2163_ACEOF
2164  exit
2165fi
2166
2167## ------------------------ ##
2168## Autoconf initialization. ##
2169## ------------------------ ##
2170
2171# ac_fn_c_try_compile LINENO
2172# --------------------------
2173# Try to compile conftest.$ac_ext, and return whether this succeeded.
2174ac_fn_c_try_compile ()
2175{
2176  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177  rm -f conftest.$ac_objext
2178  if { { ac_try="$ac_compile"
2179case "(($ac_try" in
2180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181  *) ac_try_echo=$ac_try;;
2182esac
2183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184$as_echo "$ac_try_echo"; } >&5
2185  (eval "$ac_compile") 2>conftest.err
2186  ac_status=$?
2187  if test -s conftest.err; then
2188    grep -v '^ *+' conftest.err >conftest.er1
2189    cat conftest.er1 >&5
2190    mv -f conftest.er1 conftest.err
2191  fi
2192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193  test $ac_status = 0; } && {
2194	 test -z "$ac_c_werror_flag" ||
2195	 test ! -s conftest.err
2196       } && test -s conftest.$ac_objext; then :
2197  ac_retval=0
2198else
2199  $as_echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202	ac_retval=1
2203fi
2204  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205  as_fn_set_status $ac_retval
2206
2207} # ac_fn_c_try_compile
2208
2209# ac_fn_c_try_cpp LINENO
2210# ----------------------
2211# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2212ac_fn_c_try_cpp ()
2213{
2214  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215  if { { ac_try="$ac_cpp conftest.$ac_ext"
2216case "(($ac_try" in
2217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218  *) ac_try_echo=$ac_try;;
2219esac
2220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221$as_echo "$ac_try_echo"; } >&5
2222  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2223  ac_status=$?
2224  if test -s conftest.err; then
2225    grep -v '^ *+' conftest.err >conftest.er1
2226    cat conftest.er1 >&5
2227    mv -f conftest.er1 conftest.err
2228  fi
2229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230  test $ac_status = 0; } > conftest.i && {
2231	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2232	 test ! -s conftest.err
2233       }; then :
2234  ac_retval=0
2235else
2236  $as_echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239    ac_retval=1
2240fi
2241  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242  as_fn_set_status $ac_retval
2243
2244} # ac_fn_c_try_cpp
2245
2246# ac_fn_c_try_run LINENO
2247# ----------------------
2248# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2249# that executables *can* be run.
2250ac_fn_c_try_run ()
2251{
2252  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253  if { { ac_try="$ac_link"
2254case "(($ac_try" in
2255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256  *) ac_try_echo=$ac_try;;
2257esac
2258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259$as_echo "$ac_try_echo"; } >&5
2260  (eval "$ac_link") 2>&5
2261  ac_status=$?
2262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2264  { { case "(($ac_try" in
2265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266  *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270  (eval "$ac_try") 2>&5
2271  ac_status=$?
2272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273  test $ac_status = 0; }; }; then :
2274  ac_retval=0
2275else
2276  $as_echo "$as_me: program exited with status $ac_status" >&5
2277       $as_echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280       ac_retval=$ac_status
2281fi
2282  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2283  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284  as_fn_set_status $ac_retval
2285
2286} # ac_fn_c_try_run
2287
2288# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2289# -------------------------------------------------------
2290# Tests whether HEADER exists and can be compiled using the include files in
2291# INCLUDES, setting the cache variable VAR accordingly.
2292ac_fn_c_check_header_compile ()
2293{
2294  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296$as_echo_n "checking for $2... " >&6; }
2297if eval \${$3+:} false; then :
2298  $as_echo_n "(cached) " >&6
2299else
2300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h.  */
2302$4
2303#include <$2>
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306  eval "$3=yes"
2307else
2308  eval "$3=no"
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311fi
2312eval ac_res=\$$3
2313	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314$as_echo "$ac_res" >&6; }
2315  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316
2317} # ac_fn_c_check_header_compile
2318
2319# ac_fn_c_try_link LINENO
2320# -----------------------
2321# Try to link conftest.$ac_ext, and return whether this succeeded.
2322ac_fn_c_try_link ()
2323{
2324  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325  rm -f conftest.$ac_objext conftest$ac_exeext
2326  if { { ac_try="$ac_link"
2327case "(($ac_try" in
2328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329  *) ac_try_echo=$ac_try;;
2330esac
2331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332$as_echo "$ac_try_echo"; } >&5
2333  (eval "$ac_link") 2>conftest.err
2334  ac_status=$?
2335  if test -s conftest.err; then
2336    grep -v '^ *+' conftest.err >conftest.er1
2337    cat conftest.er1 >&5
2338    mv -f conftest.er1 conftest.err
2339  fi
2340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341  test $ac_status = 0; } && {
2342	 test -z "$ac_c_werror_flag" ||
2343	 test ! -s conftest.err
2344       } && test -s conftest$ac_exeext && {
2345	 test "$cross_compiling" = yes ||
2346	 test -x conftest$ac_exeext
2347       }; then :
2348  ac_retval=0
2349else
2350  $as_echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353	ac_retval=1
2354fi
2355  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357  # interfere with the next link command; also delete a directory that is
2358  # left behind by Apple's compiler.  We do this before executing the actions.
2359  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361  as_fn_set_status $ac_retval
2362
2363} # ac_fn_c_try_link
2364
2365# ac_fn_c_check_func LINENO FUNC VAR
2366# ----------------------------------
2367# Tests whether FUNC exists, setting the cache variable VAR accordingly
2368ac_fn_c_check_func ()
2369{
2370  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2372$as_echo_n "checking for $2... " >&6; }
2373if eval \${$3+:} false; then :
2374  $as_echo_n "(cached) " >&6
2375else
2376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377/* end confdefs.h.  */
2378/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2379   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2380#define $2 innocuous_$2
2381
2382/* System header to define __stub macros and hopefully few prototypes,
2383    which can conflict with char $2 (); below.
2384    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2385    <limits.h> exists even on freestanding compilers.  */
2386
2387#ifdef __STDC__
2388# include <limits.h>
2389#else
2390# include <assert.h>
2391#endif
2392
2393#undef $2
2394
2395/* Override any GCC internal prototype to avoid an error.
2396   Use char because int might match the return type of a GCC
2397   builtin and then its argument prototype would still apply.  */
2398#ifdef __cplusplus
2399extern "C"
2400#endif
2401char $2 ();
2402/* The GNU C library defines this for functions which it implements
2403    to always fail with ENOSYS.  Some functions are actually named
2404    something starting with __ and the normal name is an alias.  */
2405#if defined __stub_$2 || defined __stub___$2
2406choke me
2407#endif
2408
2409int
2410main ()
2411{
2412return $2 ();
2413  ;
2414  return 0;
2415}
2416_ACEOF
2417if ac_fn_c_try_link "$LINENO"; then :
2418  eval "$3=yes"
2419else
2420  eval "$3=no"
2421fi
2422rm -f core conftest.err conftest.$ac_objext \
2423    conftest$ac_exeext conftest.$ac_ext
2424fi
2425eval ac_res=\$$3
2426	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427$as_echo "$ac_res" >&6; }
2428  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2429
2430} # ac_fn_c_check_func
2431
2432# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2433# ----------------------------------------------------
2434# Tries to find if the field MEMBER exists in type AGGR, after including
2435# INCLUDES, setting cache variable VAR accordingly.
2436ac_fn_c_check_member ()
2437{
2438  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2440$as_echo_n "checking for $2.$3... " >&6; }
2441if eval \${$4+:} false; then :
2442  $as_echo_n "(cached) " >&6
2443else
2444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445/* end confdefs.h.  */
2446$5
2447int
2448main ()
2449{
2450static $2 ac_aggr;
2451if (ac_aggr.$3)
2452return 0;
2453  ;
2454  return 0;
2455}
2456_ACEOF
2457if ac_fn_c_try_compile "$LINENO"; then :
2458  eval "$4=yes"
2459else
2460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461/* end confdefs.h.  */
2462$5
2463int
2464main ()
2465{
2466static $2 ac_aggr;
2467if (sizeof ac_aggr.$3)
2468return 0;
2469  ;
2470  return 0;
2471}
2472_ACEOF
2473if ac_fn_c_try_compile "$LINENO"; then :
2474  eval "$4=yes"
2475else
2476  eval "$4=no"
2477fi
2478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479fi
2480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2481fi
2482eval ac_res=\$$4
2483	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484$as_echo "$ac_res" >&6; }
2485  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486
2487} # ac_fn_c_check_member
2488
2489# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2490# ---------------------------------------------
2491# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2492# accordingly.
2493ac_fn_c_check_decl ()
2494{
2495  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496  as_decl_name=`echo $2|sed 's/ *(.*//'`
2497  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2499$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2500if eval \${$3+:} false; then :
2501  $as_echo_n "(cached) " >&6
2502else
2503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504/* end confdefs.h.  */
2505$4
2506int
2507main ()
2508{
2509#ifndef $as_decl_name
2510#ifdef __cplusplus
2511  (void) $as_decl_use;
2512#else
2513  (void) $as_decl_name;
2514#endif
2515#endif
2516
2517  ;
2518  return 0;
2519}
2520_ACEOF
2521if ac_fn_c_try_compile "$LINENO"; then :
2522  eval "$3=yes"
2523else
2524  eval "$3=no"
2525fi
2526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527fi
2528eval ac_res=\$$3
2529	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530$as_echo "$ac_res" >&6; }
2531  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532
2533} # ac_fn_c_check_decl
2534
2535# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2536# -------------------------------------------
2537# Tests whether TYPE exists after having included INCLUDES, setting cache
2538# variable VAR accordingly.
2539ac_fn_c_check_type ()
2540{
2541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2543$as_echo_n "checking for $2... " >&6; }
2544if eval \${$3+:} false; then :
2545  $as_echo_n "(cached) " >&6
2546else
2547  eval "$3=no"
2548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549/* end confdefs.h.  */
2550$4
2551int
2552main ()
2553{
2554if (sizeof ($2))
2555	 return 0;
2556  ;
2557  return 0;
2558}
2559_ACEOF
2560if ac_fn_c_try_compile "$LINENO"; then :
2561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562/* end confdefs.h.  */
2563$4
2564int
2565main ()
2566{
2567if (sizeof (($2)))
2568	    return 0;
2569  ;
2570  return 0;
2571}
2572_ACEOF
2573if ac_fn_c_try_compile "$LINENO"; then :
2574
2575else
2576  eval "$3=yes"
2577fi
2578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579fi
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581fi
2582eval ac_res=\$$3
2583	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584$as_echo "$ac_res" >&6; }
2585  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2586
2587} # ac_fn_c_check_type
2588
2589# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2590# --------------------------------------------
2591# Tries to find the compile-time value of EXPR in a program that includes
2592# INCLUDES, setting VAR accordingly. Returns whether the value could be
2593# computed
2594ac_fn_c_compute_int ()
2595{
2596  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597  if test "$cross_compiling" = yes; then
2598    # Depending upon the size, compute the lo and hi bounds.
2599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600/* end confdefs.h.  */
2601$4
2602int
2603main ()
2604{
2605static int test_array [1 - 2 * !(($2) >= 0)];
2606test_array [0] = 0;
2607return test_array [0];
2608
2609  ;
2610  return 0;
2611}
2612_ACEOF
2613if ac_fn_c_try_compile "$LINENO"; then :
2614  ac_lo=0 ac_mid=0
2615  while :; do
2616    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617/* end confdefs.h.  */
2618$4
2619int
2620main ()
2621{
2622static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2623test_array [0] = 0;
2624return test_array [0];
2625
2626  ;
2627  return 0;
2628}
2629_ACEOF
2630if ac_fn_c_try_compile "$LINENO"; then :
2631  ac_hi=$ac_mid; break
2632else
2633  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2634			if test $ac_lo -le $ac_mid; then
2635			  ac_lo= ac_hi=
2636			  break
2637			fi
2638			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2639fi
2640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641  done
2642else
2643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644/* end confdefs.h.  */
2645$4
2646int
2647main ()
2648{
2649static int test_array [1 - 2 * !(($2) < 0)];
2650test_array [0] = 0;
2651return test_array [0];
2652
2653  ;
2654  return 0;
2655}
2656_ACEOF
2657if ac_fn_c_try_compile "$LINENO"; then :
2658  ac_hi=-1 ac_mid=-1
2659  while :; do
2660    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661/* end confdefs.h.  */
2662$4
2663int
2664main ()
2665{
2666static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2667test_array [0] = 0;
2668return test_array [0];
2669
2670  ;
2671  return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_compile "$LINENO"; then :
2675  ac_lo=$ac_mid; break
2676else
2677  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2678			if test $ac_mid -le $ac_hi; then
2679			  ac_lo= ac_hi=
2680			  break
2681			fi
2682			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2683fi
2684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685  done
2686else
2687  ac_lo= ac_hi=
2688fi
2689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690fi
2691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692# Binary search between lo and hi bounds.
2693while test "x$ac_lo" != "x$ac_hi"; do
2694  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696/* end confdefs.h.  */
2697$4
2698int
2699main ()
2700{
2701static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2702test_array [0] = 0;
2703return test_array [0];
2704
2705  ;
2706  return 0;
2707}
2708_ACEOF
2709if ac_fn_c_try_compile "$LINENO"; then :
2710  ac_hi=$ac_mid
2711else
2712  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2713fi
2714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715done
2716case $ac_lo in #((
2717?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2718'') ac_retval=1 ;;
2719esac
2720  else
2721    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722/* end confdefs.h.  */
2723$4
2724static long int longval () { return $2; }
2725static unsigned long int ulongval () { return $2; }
2726#include <stdio.h>
2727#include <stdlib.h>
2728int
2729main ()
2730{
2731
2732  FILE *f = fopen ("conftest.val", "w");
2733  if (! f)
2734    return 1;
2735  if (($2) < 0)
2736    {
2737      long int i = longval ();
2738      if (i != ($2))
2739	return 1;
2740      fprintf (f, "%ld", i);
2741    }
2742  else
2743    {
2744      unsigned long int i = ulongval ();
2745      if (i != ($2))
2746	return 1;
2747      fprintf (f, "%lu", i);
2748    }
2749  /* Do not output a trailing newline, as this causes \r\n confusion
2750     on some platforms.  */
2751  return ferror (f) || fclose (f) != 0;
2752
2753  ;
2754  return 0;
2755}
2756_ACEOF
2757if ac_fn_c_try_run "$LINENO"; then :
2758  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2759else
2760  ac_retval=1
2761fi
2762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2763  conftest.$ac_objext conftest.beam conftest.$ac_ext
2764rm -f conftest.val
2765
2766  fi
2767  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2768  as_fn_set_status $ac_retval
2769
2770} # ac_fn_c_compute_int
2771cat >config.log <<_ACEOF
2772This file contains any messages produced by compilers while
2773running configure, to aid debugging if configure makes a mistake.
2774
2775It was created by sim $as_me 0, which was
2776generated by GNU Autoconf 2.69.  Invocation command line was
2777
2778  $ $0 $@
2779
2780_ACEOF
2781exec 5>>config.log
2782{
2783cat <<_ASUNAME
2784## --------- ##
2785## Platform. ##
2786## --------- ##
2787
2788hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2789uname -m = `(uname -m) 2>/dev/null || echo unknown`
2790uname -r = `(uname -r) 2>/dev/null || echo unknown`
2791uname -s = `(uname -s) 2>/dev/null || echo unknown`
2792uname -v = `(uname -v) 2>/dev/null || echo unknown`
2793
2794/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2795/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2796
2797/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2798/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2799/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2800/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2801/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2802/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2803/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2804
2805_ASUNAME
2806
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812    $as_echo "PATH: $as_dir"
2813  done
2814IFS=$as_save_IFS
2815
2816} >&5
2817
2818cat >&5 <<_ACEOF
2819
2820
2821## ----------- ##
2822## Core tests. ##
2823## ----------- ##
2824
2825_ACEOF
2826
2827
2828# Keep a trace of the command line.
2829# Strip out --no-create and --no-recursion so they do not pile up.
2830# Strip out --silent because we don't want to record it for future runs.
2831# Also quote any args containing shell meta-characters.
2832# Make two passes to allow for proper duplicate-argument suppression.
2833ac_configure_args=
2834ac_configure_args0=
2835ac_configure_args1=
2836ac_must_keep_next=false
2837for ac_pass in 1 2
2838do
2839  for ac_arg
2840  do
2841    case $ac_arg in
2842    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2843    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2844    | -silent | --silent | --silen | --sile | --sil)
2845      continue ;;
2846    *\'*)
2847      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2848    esac
2849    case $ac_pass in
2850    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2851    2)
2852      as_fn_append ac_configure_args1 " '$ac_arg'"
2853      if test $ac_must_keep_next = true; then
2854	ac_must_keep_next=false # Got value, back to normal.
2855      else
2856	case $ac_arg in
2857	  *=* | --config-cache | -C | -disable-* | --disable-* \
2858	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2859	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2860	  | -with-* | --with-* | -without-* | --without-* | --x)
2861	    case "$ac_configure_args0 " in
2862	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2863	    esac
2864	    ;;
2865	  -* ) ac_must_keep_next=true ;;
2866	esac
2867      fi
2868      as_fn_append ac_configure_args " '$ac_arg'"
2869      ;;
2870    esac
2871  done
2872done
2873{ ac_configure_args0=; unset ac_configure_args0;}
2874{ ac_configure_args1=; unset ac_configure_args1;}
2875
2876# When interrupted or exit'd, cleanup temporary files, and complete
2877# config.log.  We remove comments because anyway the quotes in there
2878# would cause problems or look ugly.
2879# WARNING: Use '\'' to represent an apostrophe within the trap.
2880# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2881trap 'exit_status=$?
2882  # Save into config.log some information that might help in debugging.
2883  {
2884    echo
2885
2886    $as_echo "## ---------------- ##
2887## Cache variables. ##
2888## ---------------- ##"
2889    echo
2890    # The following way of writing the cache mishandles newlines in values,
2891(
2892  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2893    eval ac_val=\$$ac_var
2894    case $ac_val in #(
2895    *${as_nl}*)
2896      case $ac_var in #(
2897      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2898$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2899      esac
2900      case $ac_var in #(
2901      _ | IFS | as_nl) ;; #(
2902      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2903      *) { eval $ac_var=; unset $ac_var;} ;;
2904      esac ;;
2905    esac
2906  done
2907  (set) 2>&1 |
2908    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2909    *${as_nl}ac_space=\ *)
2910      sed -n \
2911	"s/'\''/'\''\\\\'\'''\''/g;
2912	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2913      ;; #(
2914    *)
2915      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2916      ;;
2917    esac |
2918    sort
2919)
2920    echo
2921
2922    $as_echo "## ----------------- ##
2923## Output variables. ##
2924## ----------------- ##"
2925    echo
2926    for ac_var in $ac_subst_vars
2927    do
2928      eval ac_val=\$$ac_var
2929      case $ac_val in
2930      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2931      esac
2932      $as_echo "$ac_var='\''$ac_val'\''"
2933    done | sort
2934    echo
2935
2936    if test -n "$ac_subst_files"; then
2937      $as_echo "## ------------------- ##
2938## File substitutions. ##
2939## ------------------- ##"
2940      echo
2941      for ac_var in $ac_subst_files
2942      do
2943	eval ac_val=\$$ac_var
2944	case $ac_val in
2945	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2946	esac
2947	$as_echo "$ac_var='\''$ac_val'\''"
2948      done | sort
2949      echo
2950    fi
2951
2952    if test -s confdefs.h; then
2953      $as_echo "## ----------- ##
2954## confdefs.h. ##
2955## ----------- ##"
2956      echo
2957      cat confdefs.h
2958      echo
2959    fi
2960    test "$ac_signal" != 0 &&
2961      $as_echo "$as_me: caught signal $ac_signal"
2962    $as_echo "$as_me: exit $exit_status"
2963  } >&5
2964  rm -f core *.core core.conftest.* &&
2965    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2966    exit $exit_status
2967' 0
2968for ac_signal in 1 2 13 15; do
2969  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2970done
2971ac_signal=0
2972
2973# confdefs.h avoids OS command line length limits that DEFS can exceed.
2974rm -f -r conftest* confdefs.h
2975
2976$as_echo "/* confdefs.h */" > confdefs.h
2977
2978# Predefined preprocessor variables.
2979
2980cat >>confdefs.h <<_ACEOF
2981#define PACKAGE_NAME "$PACKAGE_NAME"
2982_ACEOF
2983
2984cat >>confdefs.h <<_ACEOF
2985#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2986_ACEOF
2987
2988cat >>confdefs.h <<_ACEOF
2989#define PACKAGE_VERSION "$PACKAGE_VERSION"
2990_ACEOF
2991
2992cat >>confdefs.h <<_ACEOF
2993#define PACKAGE_STRING "$PACKAGE_STRING"
2994_ACEOF
2995
2996cat >>confdefs.h <<_ACEOF
2997#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2998_ACEOF
2999
3000cat >>confdefs.h <<_ACEOF
3001#define PACKAGE_URL "$PACKAGE_URL"
3002_ACEOF
3003
3004
3005# Let the site file select an alternate cache file if it wants to.
3006# Prefer an explicitly selected file to automatically selected ones.
3007ac_site_file1=NONE
3008ac_site_file2=NONE
3009if test -n "$CONFIG_SITE"; then
3010  # We do not want a PATH search for config.site.
3011  case $CONFIG_SITE in #((
3012    -*)  ac_site_file1=./$CONFIG_SITE;;
3013    */*) ac_site_file1=$CONFIG_SITE;;
3014    *)   ac_site_file1=./$CONFIG_SITE;;
3015  esac
3016elif test "x$prefix" != xNONE; then
3017  ac_site_file1=$prefix/share/config.site
3018  ac_site_file2=$prefix/etc/config.site
3019else
3020  ac_site_file1=$ac_default_prefix/share/config.site
3021  ac_site_file2=$ac_default_prefix/etc/config.site
3022fi
3023for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3024do
3025  test "x$ac_site_file" = xNONE && continue
3026  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3027    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3028$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3029    sed 's/^/| /' "$ac_site_file" >&5
3030    . "$ac_site_file" \
3031      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033as_fn_error $? "failed to load site script $ac_site_file
3034See \`config.log' for more details" "$LINENO" 5; }
3035  fi
3036done
3037
3038if test -r "$cache_file"; then
3039  # Some versions of bash will fail to source /dev/null (special files
3040  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3041  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3042    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3043$as_echo "$as_me: loading cache $cache_file" >&6;}
3044    case $cache_file in
3045      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3046      *)                      . "./$cache_file";;
3047    esac
3048  fi
3049else
3050  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3051$as_echo "$as_me: creating cache $cache_file" >&6;}
3052  >$cache_file
3053fi
3054
3055as_fn_append ac_header_list " dlfcn.h"
3056as_fn_append ac_header_list " fcntl.h"
3057as_fn_append ac_header_list " fpu_control.h"
3058as_fn_append ac_header_list " termios.h"
3059as_fn_append ac_header_list " utime.h"
3060as_fn_append ac_header_list " linux/if_tun.h"
3061as_fn_append ac_header_list " linux/mii.h"
3062as_fn_append ac_header_list " linux/types.h"
3063as_fn_append ac_header_list " net/if.h"
3064as_fn_append ac_header_list " netinet/in.h"
3065as_fn_append ac_header_list " netinet/tcp.h"
3066as_fn_append ac_header_list " sys/ioctl.h"
3067as_fn_append ac_header_list " sys/mman.h"
3068as_fn_append ac_header_list " sys/mount.h"
3069as_fn_append ac_header_list " sys/param.h"
3070as_fn_append ac_header_list " sys/resource.h"
3071as_fn_append ac_header_list " sys/socket.h"
3072as_fn_append ac_header_list " sys/statfs.h"
3073as_fn_append ac_header_list " sys/termio.h"
3074as_fn_append ac_header_list " sys/termios.h"
3075as_fn_append ac_header_list " sys/types.h"
3076as_fn_append ac_header_list " sys/vfs.h"
3077as_fn_append ac_func_list " __setfpucw"
3078as_fn_append ac_func_list " access"
3079as_fn_append ac_func_list " aint"
3080as_fn_append ac_func_list " anint"
3081as_fn_append ac_func_list " cfgetispeed"
3082as_fn_append ac_func_list " cfgetospeed"
3083as_fn_append ac_func_list " cfsetispeed"
3084as_fn_append ac_func_list " cfsetospeed"
3085as_fn_append ac_func_list " chdir"
3086as_fn_append ac_func_list " chmod"
3087as_fn_append ac_func_list " dup"
3088as_fn_append ac_func_list " dup2"
3089as_fn_append ac_func_list " execv"
3090as_fn_append ac_func_list " execve"
3091as_fn_append ac_func_list " fcntl"
3092as_fn_append ac_func_list " fork"
3093as_fn_append ac_func_list " fstat"
3094as_fn_append ac_func_list " fstatfs"
3095as_fn_append ac_func_list " ftruncate"
3096as_fn_append ac_func_list " getdirentries"
3097as_fn_append ac_func_list " getegid"
3098as_fn_append ac_func_list " geteuid"
3099as_fn_append ac_func_list " getgid"
3100as_fn_append ac_func_list " getpid"
3101as_fn_append ac_func_list " getppid"
3102as_fn_append ac_func_list " getrusage"
3103as_fn_append ac_func_list " gettimeofday"
3104as_fn_append ac_func_list " getuid"
3105as_fn_append ac_func_list " ioctl"
3106as_fn_append ac_func_list " kill"
3107as_fn_append ac_func_list " link"
3108as_fn_append ac_func_list " lseek"
3109as_fn_append ac_func_list " lstat"
3110as_fn_append ac_func_list " mkdir"
3111as_fn_append ac_func_list " mmap"
3112as_fn_append ac_func_list " munmap"
3113as_fn_append ac_func_list " pipe"
3114as_fn_append ac_func_list " posix_fallocate"
3115as_fn_append ac_func_list " pread"
3116as_fn_append ac_func_list " rmdir"
3117as_fn_append ac_func_list " setregid"
3118as_fn_append ac_func_list " setreuid"
3119as_fn_append ac_func_list " setgid"
3120as_fn_append ac_func_list " setuid"
3121as_fn_append ac_func_list " sigaction"
3122as_fn_append ac_func_list " sigprocmask"
3123as_fn_append ac_func_list " sqrt"
3124as_fn_append ac_func_list " stat"
3125as_fn_append ac_func_list " strsignal"
3126as_fn_append ac_func_list " symlink"
3127as_fn_append ac_func_list " tcdrain"
3128as_fn_append ac_func_list " tcflow"
3129as_fn_append ac_func_list " tcflush"
3130as_fn_append ac_func_list " tcgetattr"
3131as_fn_append ac_func_list " tcgetpgrp"
3132as_fn_append ac_func_list " tcsendbreak"
3133as_fn_append ac_func_list " tcsetattr"
3134as_fn_append ac_func_list " tcsetpgrp"
3135as_fn_append ac_func_list " time"
3136as_fn_append ac_func_list " truncate"
3137as_fn_append ac_func_list " umask"
3138as_fn_append ac_func_list " unlink"
3139as_fn_append ac_func_list " utime"
3140# Check that the precious variables saved in the cache have kept the same
3141# value.
3142ac_cache_corrupted=false
3143for ac_var in $ac_precious_vars; do
3144  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3145  eval ac_new_set=\$ac_env_${ac_var}_set
3146  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3147  eval ac_new_val=\$ac_env_${ac_var}_value
3148  case $ac_old_set,$ac_new_set in
3149    set,)
3150      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3151$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3152      ac_cache_corrupted=: ;;
3153    ,set)
3154      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3155$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3156      ac_cache_corrupted=: ;;
3157    ,);;
3158    *)
3159      if test "x$ac_old_val" != "x$ac_new_val"; then
3160	# differences in whitespace do not lead to failure.
3161	ac_old_val_w=`echo x $ac_old_val`
3162	ac_new_val_w=`echo x $ac_new_val`
3163	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3164	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3165$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3166	  ac_cache_corrupted=:
3167	else
3168	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3169$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3170	  eval $ac_var=\$ac_old_val
3171	fi
3172	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3173$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3174	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3175$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3176      fi;;
3177  esac
3178  # Pass precious variables to config.status.
3179  if test "$ac_new_set" = set; then
3180    case $ac_new_val in
3181    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3182    *) ac_arg=$ac_var=$ac_new_val ;;
3183    esac
3184    case " $ac_configure_args " in
3185      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3186      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3187    esac
3188  fi
3189done
3190if $ac_cache_corrupted; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3194$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3195  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3196fi
3197## -------------------- ##
3198## Main body of script. ##
3199## -------------------- ##
3200
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207
3208
3209
3210
3211
3212
3213
3214# Check whether --with-pkgversion was given.
3215if test "${with_pkgversion+set}" = set; then :
3216  withval=$with_pkgversion; case "$withval" in
3217      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
3218      no)  PKGVERSION= ;;
3219      *)   PKGVERSION="($withval) " ;;
3220     esac
3221else
3222  PKGVERSION="(SIM) "
3223
3224fi
3225
3226
3227
3228
3229cat >>confdefs.h <<_ACEOF
3230#define PKGVERSION "$PKGVERSION"
3231_ACEOF
3232
3233
3234
3235# Check whether --with-bugurl was given.
3236if test "${with_bugurl+set}" = set; then :
3237  withval=$with_bugurl; case "$withval" in
3238      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
3239      no)  BUGURL=
3240	   ;;
3241      *)   BUGURL="$withval"
3242	   ;;
3243     esac
3244else
3245  BUGURL="$PACKAGE_BUGREPORT"
3246
3247fi
3248
3249  case ${BUGURL} in
3250  "")
3251    REPORT_BUGS_TO=
3252    REPORT_BUGS_TEXI=
3253    ;;
3254  *)
3255    REPORT_BUGS_TO="<$BUGURL>"
3256    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3257    ;;
3258  esac;
3259
3260
3261
3262
3263cat >>confdefs.h <<_ACEOF
3264#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3265_ACEOF
3266
3267
3268ac_config_headers="$ac_config_headers config.h"
3269
3270
3271. $srcdir/../bfd/development.sh
3272
3273ac_aux_dir=
3274for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3275  if test -f "$ac_dir/install-sh"; then
3276    ac_aux_dir=$ac_dir
3277    ac_install_sh="$ac_aux_dir/install-sh -c"
3278    break
3279  elif test -f "$ac_dir/install.sh"; then
3280    ac_aux_dir=$ac_dir
3281    ac_install_sh="$ac_aux_dir/install.sh -c"
3282    break
3283  elif test -f "$ac_dir/shtool"; then
3284    ac_aux_dir=$ac_dir
3285    ac_install_sh="$ac_aux_dir/shtool install -c"
3286    break
3287  fi
3288done
3289if test -z "$ac_aux_dir"; then
3290  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3291fi
3292
3293# These three variables are undocumented and unsupported,
3294# and are intended to be withdrawn in a future Autoconf release.
3295# They can cause serious problems if a builder's source tree is in a directory
3296# whose full name contains unusual characters.
3297ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3298ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3299ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3300
3301
3302# Make sure we can run config.sub.
3303$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3304  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3305
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3307$as_echo_n "checking build system type... " >&6; }
3308if ${ac_cv_build+:} false; then :
3309  $as_echo_n "(cached) " >&6
3310else
3311  ac_build_alias=$build_alias
3312test "x$ac_build_alias" = x &&
3313  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3314test "x$ac_build_alias" = x &&
3315  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3316ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3317  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3318
3319fi
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3321$as_echo "$ac_cv_build" >&6; }
3322case $ac_cv_build in
3323*-*-*) ;;
3324*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3325esac
3326build=$ac_cv_build
3327ac_save_IFS=$IFS; IFS='-'
3328set x $ac_cv_build
3329shift
3330build_cpu=$1
3331build_vendor=$2
3332shift; shift
3333# Remember, the first character of IFS is used to create $*,
3334# except with old shells:
3335build_os=$*
3336IFS=$ac_save_IFS
3337case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3338
3339
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3341$as_echo_n "checking host system type... " >&6; }
3342if ${ac_cv_host+:} false; then :
3343  $as_echo_n "(cached) " >&6
3344else
3345  if test "x$host_alias" = x; then
3346  ac_cv_host=$ac_cv_build
3347else
3348  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3349    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3350fi
3351
3352fi
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3354$as_echo "$ac_cv_host" >&6; }
3355case $ac_cv_host in
3356*-*-*) ;;
3357*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3358esac
3359host=$ac_cv_host
3360ac_save_IFS=$IFS; IFS='-'
3361set x $ac_cv_host
3362shift
3363host_cpu=$1
3364host_vendor=$2
3365shift; shift
3366# Remember, the first character of IFS is used to create $*,
3367# except with old shells:
3368host_os=$*
3369IFS=$ac_save_IFS
3370case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3371
3372
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3374$as_echo_n "checking target system type... " >&6; }
3375if ${ac_cv_target+:} false; then :
3376  $as_echo_n "(cached) " >&6
3377else
3378  if test "x$target_alias" = x; then
3379  ac_cv_target=$ac_cv_host
3380else
3381  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3382    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3383fi
3384
3385fi
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3387$as_echo "$ac_cv_target" >&6; }
3388case $ac_cv_target in
3389*-*-*) ;;
3390*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3391esac
3392target=$ac_cv_target
3393ac_save_IFS=$IFS; IFS='-'
3394set x $ac_cv_target
3395shift
3396target_cpu=$1
3397target_vendor=$2
3398shift; shift
3399# Remember, the first character of IFS is used to create $*,
3400# except with old shells:
3401target_os=$*
3402IFS=$ac_save_IFS
3403case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3404
3405
3406# The aliases save the names the user supplied, while $host etc.
3407# will get canonicalized.
3408test -n "$target_alias" &&
3409  test "$program_prefix$program_suffix$program_transform_name" = \
3410    NONENONEs,x,x, &&
3411  program_prefix=${target_alias}-
3412# Expand $ac_aux_dir to an absolute path.
3413am_aux_dir=`cd "$ac_aux_dir" && pwd`
3414
3415ac_ext=c
3416ac_cpp='$CPP $CPPFLAGS'
3417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420if test -n "$ac_tool_prefix"; then
3421  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3422set dummy ${ac_tool_prefix}gcc; ac_word=$2
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424$as_echo_n "checking for $ac_word... " >&6; }
3425if ${ac_cv_prog_CC+:} false; then :
3426  $as_echo_n "(cached) " >&6
3427else
3428  if test -n "$CC"; then
3429  ac_cv_prog_CC="$CC" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434  IFS=$as_save_IFS
3435  test -z "$as_dir" && as_dir=.
3436    for ac_exec_ext in '' $ac_executable_extensions; do
3437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440    break 2
3441  fi
3442done
3443  done
3444IFS=$as_save_IFS
3445
3446fi
3447fi
3448CC=$ac_cv_prog_CC
3449if test -n "$CC"; then
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451$as_echo "$CC" >&6; }
3452else
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454$as_echo "no" >&6; }
3455fi
3456
3457
3458fi
3459if test -z "$ac_cv_prog_CC"; then
3460  ac_ct_CC=$CC
3461  # Extract the first word of "gcc", so it can be a program name with args.
3462set dummy gcc; ac_word=$2
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464$as_echo_n "checking for $ac_word... " >&6; }
3465if ${ac_cv_prog_ac_ct_CC+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  if test -n "$ac_ct_CC"; then
3469  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474  IFS=$as_save_IFS
3475  test -z "$as_dir" && as_dir=.
3476    for ac_exec_ext in '' $ac_executable_extensions; do
3477  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478    ac_cv_prog_ac_ct_CC="gcc"
3479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480    break 2
3481  fi
3482done
3483  done
3484IFS=$as_save_IFS
3485
3486fi
3487fi
3488ac_ct_CC=$ac_cv_prog_ac_ct_CC
3489if test -n "$ac_ct_CC"; then
3490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3491$as_echo "$ac_ct_CC" >&6; }
3492else
3493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494$as_echo "no" >&6; }
3495fi
3496
3497  if test "x$ac_ct_CC" = x; then
3498    CC=""
3499  else
3500    case $cross_compiling:$ac_tool_warned in
3501yes:)
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3504ac_tool_warned=yes ;;
3505esac
3506    CC=$ac_ct_CC
3507  fi
3508else
3509  CC="$ac_cv_prog_CC"
3510fi
3511
3512if test -z "$CC"; then
3513          if test -n "$ac_tool_prefix"; then
3514    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3515set dummy ${ac_tool_prefix}cc; ac_word=$2
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517$as_echo_n "checking for $ac_word... " >&6; }
3518if ${ac_cv_prog_CC+:} false; then :
3519  $as_echo_n "(cached) " >&6
3520else
3521  if test -n "$CC"; then
3522  ac_cv_prog_CC="$CC" # Let the user override the test.
3523else
3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527  IFS=$as_save_IFS
3528  test -z "$as_dir" && as_dir=.
3529    for ac_exec_ext in '' $ac_executable_extensions; do
3530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531    ac_cv_prog_CC="${ac_tool_prefix}cc"
3532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533    break 2
3534  fi
3535done
3536  done
3537IFS=$as_save_IFS
3538
3539fi
3540fi
3541CC=$ac_cv_prog_CC
3542if test -n "$CC"; then
3543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544$as_echo "$CC" >&6; }
3545else
3546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547$as_echo "no" >&6; }
3548fi
3549
3550
3551  fi
3552fi
3553if test -z "$CC"; then
3554  # Extract the first word of "cc", so it can be a program name with args.
3555set dummy cc; ac_word=$2
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557$as_echo_n "checking for $ac_word... " >&6; }
3558if ${ac_cv_prog_CC+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  if test -n "$CC"; then
3562  ac_cv_prog_CC="$CC" # Let the user override the test.
3563else
3564  ac_prog_rejected=no
3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH
3567do
3568  IFS=$as_save_IFS
3569  test -z "$as_dir" && as_dir=.
3570    for ac_exec_ext in '' $ac_executable_extensions; do
3571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3573       ac_prog_rejected=yes
3574       continue
3575     fi
3576    ac_cv_prog_CC="cc"
3577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578    break 2
3579  fi
3580done
3581  done
3582IFS=$as_save_IFS
3583
3584if test $ac_prog_rejected = yes; then
3585  # We found a bogon in the path, so make sure we never use it.
3586  set dummy $ac_cv_prog_CC
3587  shift
3588  if test $# != 0; then
3589    # We chose a different compiler from the bogus one.
3590    # However, it has the same basename, so the bogon will be chosen
3591    # first if we set CC to just the basename; use the full file name.
3592    shift
3593    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3594  fi
3595fi
3596fi
3597fi
3598CC=$ac_cv_prog_CC
3599if test -n "$CC"; then
3600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601$as_echo "$CC" >&6; }
3602else
3603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604$as_echo "no" >&6; }
3605fi
3606
3607
3608fi
3609if test -z "$CC"; then
3610  if test -n "$ac_tool_prefix"; then
3611  for ac_prog in cl.exe
3612  do
3613    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616$as_echo_n "checking for $ac_word... " >&6; }
3617if ${ac_cv_prog_CC+:} false; then :
3618  $as_echo_n "(cached) " >&6
3619else
3620  if test -n "$CC"; then
3621  ac_cv_prog_CC="$CC" # Let the user override the test.
3622else
3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH
3625do
3626  IFS=$as_save_IFS
3627  test -z "$as_dir" && as_dir=.
3628    for ac_exec_ext in '' $ac_executable_extensions; do
3629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632    break 2
3633  fi
3634done
3635  done
3636IFS=$as_save_IFS
3637
3638fi
3639fi
3640CC=$ac_cv_prog_CC
3641if test -n "$CC"; then
3642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3643$as_echo "$CC" >&6; }
3644else
3645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646$as_echo "no" >&6; }
3647fi
3648
3649
3650    test -n "$CC" && break
3651  done
3652fi
3653if test -z "$CC"; then
3654  ac_ct_CC=$CC
3655  for ac_prog in cl.exe
3656do
3657  # Extract the first word of "$ac_prog", so it can be a program name with args.
3658set dummy $ac_prog; ac_word=$2
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660$as_echo_n "checking for $ac_word... " >&6; }
3661if ${ac_cv_prog_ac_ct_CC+:} false; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  if test -n "$ac_ct_CC"; then
3665  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3666else
3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670  IFS=$as_save_IFS
3671  test -z "$as_dir" && as_dir=.
3672    for ac_exec_ext in '' $ac_executable_extensions; do
3673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674    ac_cv_prog_ac_ct_CC="$ac_prog"
3675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676    break 2
3677  fi
3678done
3679  done
3680IFS=$as_save_IFS
3681
3682fi
3683fi
3684ac_ct_CC=$ac_cv_prog_ac_ct_CC
3685if test -n "$ac_ct_CC"; then
3686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3687$as_echo "$ac_ct_CC" >&6; }
3688else
3689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690$as_echo "no" >&6; }
3691fi
3692
3693
3694  test -n "$ac_ct_CC" && break
3695done
3696
3697  if test "x$ac_ct_CC" = x; then
3698    CC=""
3699  else
3700    case $cross_compiling:$ac_tool_warned in
3701yes:)
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3704ac_tool_warned=yes ;;
3705esac
3706    CC=$ac_ct_CC
3707  fi
3708fi
3709
3710fi
3711
3712
3713test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715as_fn_error $? "no acceptable C compiler found in \$PATH
3716See \`config.log' for more details" "$LINENO" 5; }
3717
3718# Provide some information about the compiler.
3719$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3720set X $ac_compile
3721ac_compiler=$2
3722for ac_option in --version -v -V -qversion; do
3723  { { ac_try="$ac_compiler $ac_option >&5"
3724case "(($ac_try" in
3725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726  *) ac_try_echo=$ac_try;;
3727esac
3728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729$as_echo "$ac_try_echo"; } >&5
3730  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3731  ac_status=$?
3732  if test -s conftest.err; then
3733    sed '10a\
3734... rest of stderr output deleted ...
3735         10q' conftest.err >conftest.er1
3736    cat conftest.er1 >&5
3737  fi
3738  rm -f conftest.er1 conftest.err
3739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740  test $ac_status = 0; }
3741done
3742
3743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h.  */
3745
3746int
3747main ()
3748{
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754ac_clean_files_save=$ac_clean_files
3755ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3756# Try to create an executable without -o first, disregard a.out.
3757# It will help us diagnose broken compilers, and finding out an intuition
3758# of exeext.
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3760$as_echo_n "checking whether the C compiler works... " >&6; }
3761ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3762
3763# The possible output files:
3764ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3765
3766ac_rmfiles=
3767for ac_file in $ac_files
3768do
3769  case $ac_file in
3770    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3772  esac
3773done
3774rm -f $ac_rmfiles
3775
3776if { { ac_try="$ac_link_default"
3777case "(($ac_try" in
3778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779  *) ac_try_echo=$ac_try;;
3780esac
3781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782$as_echo "$ac_try_echo"; } >&5
3783  (eval "$ac_link_default") 2>&5
3784  ac_status=$?
3785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786  test $ac_status = 0; }; then :
3787  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3788# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3789# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3790# so that the user can short-circuit this test for compilers unknown to
3791# Autoconf.
3792for ac_file in $ac_files ''
3793do
3794  test -f "$ac_file" || continue
3795  case $ac_file in
3796    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3797	;;
3798    [ab].out )
3799	# We found the default executable, but exeext='' is most
3800	# certainly right.
3801	break;;
3802    *.* )
3803	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3804	then :; else
3805	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3806	fi
3807	# We set ac_cv_exeext here because the later test for it is not
3808	# safe: cross compilers may not add the suffix if given an `-o'
3809	# argument, so we may need to know it at that point already.
3810	# Even if this section looks crufty: it has the advantage of
3811	# actually working.
3812	break;;
3813    * )
3814	break;;
3815  esac
3816done
3817test "$ac_cv_exeext" = no && ac_cv_exeext=
3818
3819else
3820  ac_file=''
3821fi
3822if test -z "$ac_file"; then :
3823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
3825$as_echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830as_fn_error 77 "C compiler cannot create executables
3831See \`config.log' for more details" "$LINENO" 5; }
3832else
3833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3834$as_echo "yes" >&6; }
3835fi
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3837$as_echo_n "checking for C compiler default output file name... " >&6; }
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3839$as_echo "$ac_file" >&6; }
3840ac_exeext=$ac_cv_exeext
3841
3842rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3843ac_clean_files=$ac_clean_files_save
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3845$as_echo_n "checking for suffix of executables... " >&6; }
3846if { { ac_try="$ac_link"
3847case "(($ac_try" in
3848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849  *) ac_try_echo=$ac_try;;
3850esac
3851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852$as_echo "$ac_try_echo"; } >&5
3853  (eval "$ac_link") 2>&5
3854  ac_status=$?
3855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856  test $ac_status = 0; }; then :
3857  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3858# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3859# work properly (i.e., refer to `conftest.exe'), while it won't with
3860# `rm'.
3861for ac_file in conftest.exe conftest conftest.*; do
3862  test -f "$ac_file" || continue
3863  case $ac_file in
3864    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3866	  break;;
3867    * ) break;;
3868  esac
3869done
3870else
3871  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3874See \`config.log' for more details" "$LINENO" 5; }
3875fi
3876rm -f conftest conftest$ac_cv_exeext
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3878$as_echo "$ac_cv_exeext" >&6; }
3879
3880rm -f conftest.$ac_ext
3881EXEEXT=$ac_cv_exeext
3882ac_exeext=$EXEEXT
3883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884/* end confdefs.h.  */
3885#include <stdio.h>
3886int
3887main ()
3888{
3889FILE *f = fopen ("conftest.out", "w");
3890 return ferror (f) || fclose (f) != 0;
3891
3892  ;
3893  return 0;
3894}
3895_ACEOF
3896ac_clean_files="$ac_clean_files conftest.out"
3897# Check that the compiler produces executables we can run.  If not, either
3898# the compiler is broken, or we cross compile.
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3900$as_echo_n "checking whether we are cross compiling... " >&6; }
3901if test "$cross_compiling" != yes; then
3902  { { ac_try="$ac_link"
3903case "(($ac_try" in
3904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905  *) ac_try_echo=$ac_try;;
3906esac
3907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908$as_echo "$ac_try_echo"; } >&5
3909  (eval "$ac_link") 2>&5
3910  ac_status=$?
3911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912  test $ac_status = 0; }
3913  if { ac_try='./conftest$ac_cv_exeext'
3914  { { case "(($ac_try" in
3915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916  *) ac_try_echo=$ac_try;;
3917esac
3918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919$as_echo "$ac_try_echo"; } >&5
3920  (eval "$ac_try") 2>&5
3921  ac_status=$?
3922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923  test $ac_status = 0; }; }; then
3924    cross_compiling=no
3925  else
3926    if test "$cross_compiling" = maybe; then
3927	cross_compiling=yes
3928    else
3929	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931as_fn_error $? "cannot run C compiled programs.
3932If you meant to cross compile, use \`--host'.
3933See \`config.log' for more details" "$LINENO" 5; }
3934    fi
3935  fi
3936fi
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3938$as_echo "$cross_compiling" >&6; }
3939
3940rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3941ac_clean_files=$ac_clean_files_save
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3943$as_echo_n "checking for suffix of object files... " >&6; }
3944if ${ac_cv_objext+:} false; then :
3945  $as_echo_n "(cached) " >&6
3946else
3947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948/* end confdefs.h.  */
3949
3950int
3951main ()
3952{
3953
3954  ;
3955  return 0;
3956}
3957_ACEOF
3958rm -f conftest.o conftest.obj
3959if { { ac_try="$ac_compile"
3960case "(($ac_try" in
3961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962  *) ac_try_echo=$ac_try;;
3963esac
3964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965$as_echo "$ac_try_echo"; } >&5
3966  (eval "$ac_compile") 2>&5
3967  ac_status=$?
3968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969  test $ac_status = 0; }; then :
3970  for ac_file in conftest.o conftest.obj conftest.*; do
3971  test -f "$ac_file" || continue;
3972  case $ac_file in
3973    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3974    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3975       break;;
3976  esac
3977done
3978else
3979  $as_echo "$as_me: failed program was:" >&5
3980sed 's/^/| /' conftest.$ac_ext >&5
3981
3982{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984as_fn_error $? "cannot compute suffix of object files: cannot compile
3985See \`config.log' for more details" "$LINENO" 5; }
3986fi
3987rm -f conftest.$ac_cv_objext conftest.$ac_ext
3988fi
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3990$as_echo "$ac_cv_objext" >&6; }
3991OBJEXT=$ac_cv_objext
3992ac_objext=$OBJEXT
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3994$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3995if ${ac_cv_c_compiler_gnu+:} false; then :
3996  $as_echo_n "(cached) " >&6
3997else
3998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999/* end confdefs.h.  */
4000
4001int
4002main ()
4003{
4004#ifndef __GNUC__
4005       choke me
4006#endif
4007
4008  ;
4009  return 0;
4010}
4011_ACEOF
4012if ac_fn_c_try_compile "$LINENO"; then :
4013  ac_compiler_gnu=yes
4014else
4015  ac_compiler_gnu=no
4016fi
4017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018ac_cv_c_compiler_gnu=$ac_compiler_gnu
4019
4020fi
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4022$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4023if test $ac_compiler_gnu = yes; then
4024  GCC=yes
4025else
4026  GCC=
4027fi
4028ac_test_CFLAGS=${CFLAGS+set}
4029ac_save_CFLAGS=$CFLAGS
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4031$as_echo_n "checking whether $CC accepts -g... " >&6; }
4032if ${ac_cv_prog_cc_g+:} false; then :
4033  $as_echo_n "(cached) " >&6
4034else
4035  ac_save_c_werror_flag=$ac_c_werror_flag
4036   ac_c_werror_flag=yes
4037   ac_cv_prog_cc_g=no
4038   CFLAGS="-g"
4039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h.  */
4041
4042int
4043main ()
4044{
4045
4046  ;
4047  return 0;
4048}
4049_ACEOF
4050if ac_fn_c_try_compile "$LINENO"; then :
4051  ac_cv_prog_cc_g=yes
4052else
4053  CFLAGS=""
4054      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h.  */
4056
4057int
4058main ()
4059{
4060
4061  ;
4062  return 0;
4063}
4064_ACEOF
4065if ac_fn_c_try_compile "$LINENO"; then :
4066
4067else
4068  ac_c_werror_flag=$ac_save_c_werror_flag
4069	 CFLAGS="-g"
4070	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h.  */
4072
4073int
4074main ()
4075{
4076
4077  ;
4078  return 0;
4079}
4080_ACEOF
4081if ac_fn_c_try_compile "$LINENO"; then :
4082  ac_cv_prog_cc_g=yes
4083fi
4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085fi
4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087fi
4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089   ac_c_werror_flag=$ac_save_c_werror_flag
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4092$as_echo "$ac_cv_prog_cc_g" >&6; }
4093if test "$ac_test_CFLAGS" = set; then
4094  CFLAGS=$ac_save_CFLAGS
4095elif test $ac_cv_prog_cc_g = yes; then
4096  if test "$GCC" = yes; then
4097    CFLAGS="-g -O2"
4098  else
4099    CFLAGS="-g"
4100  fi
4101else
4102  if test "$GCC" = yes; then
4103    CFLAGS="-O2"
4104  else
4105    CFLAGS=
4106  fi
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4109$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4110if ${ac_cv_prog_cc_c89+:} false; then :
4111  $as_echo_n "(cached) " >&6
4112else
4113  ac_cv_prog_cc_c89=no
4114ac_save_CC=$CC
4115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117#include <stdarg.h>
4118#include <stdio.h>
4119struct stat;
4120/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4121struct buf { int x; };
4122FILE * (*rcsopen) (struct buf *, struct stat *, int);
4123static char *e (p, i)
4124     char **p;
4125     int i;
4126{
4127  return p[i];
4128}
4129static char *f (char * (*g) (char **, int), char **p, ...)
4130{
4131  char *s;
4132  va_list v;
4133  va_start (v,p);
4134  s = g (p, va_arg (v,int));
4135  va_end (v);
4136  return s;
4137}
4138
4139/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4140   function prototypes and stuff, but not '\xHH' hex character constants.
4141   These don't provoke an error unfortunately, instead are silently treated
4142   as 'x'.  The following induces an error, until -std is added to get
4143   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4144   array size at least.  It's necessary to write '\x00'==0 to get something
4145   that's true only with -std.  */
4146int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4147
4148/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4149   inside strings and character constants.  */
4150#define FOO(x) 'x'
4151int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4152
4153int test (int i, double x);
4154struct s1 {int (*f) (int a);};
4155struct s2 {int (*f) (double a);};
4156int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4157int argc;
4158char **argv;
4159int
4160main ()
4161{
4162return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4163  ;
4164  return 0;
4165}
4166_ACEOF
4167for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4168	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4169do
4170  CC="$ac_save_CC $ac_arg"
4171  if ac_fn_c_try_compile "$LINENO"; then :
4172  ac_cv_prog_cc_c89=$ac_arg
4173fi
4174rm -f core conftest.err conftest.$ac_objext
4175  test "x$ac_cv_prog_cc_c89" != "xno" && break
4176done
4177rm -f conftest.$ac_ext
4178CC=$ac_save_CC
4179
4180fi
4181# AC_CACHE_VAL
4182case "x$ac_cv_prog_cc_c89" in
4183  x)
4184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185$as_echo "none needed" >&6; } ;;
4186  xno)
4187    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4188$as_echo "unsupported" >&6; } ;;
4189  *)
4190    CC="$CC $ac_cv_prog_cc_c89"
4191    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4192$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4193esac
4194if test "x$ac_cv_prog_cc_c89" != xno; then :
4195
4196fi
4197
4198ac_ext=c
4199ac_cpp='$CPP $CPPFLAGS'
4200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203
4204ac_ext=c
4205ac_cpp='$CPP $CPPFLAGS'
4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4210$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4211if ${am_cv_prog_cc_c_o+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216
4217int
4218main ()
4219{
4220
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225  # Make sure it works both with $CC and with simple cc.
4226  # Following AC_PROG_CC_C_O, we do the test twice because some
4227  # compilers refuse to overwrite an existing .o file with -o,
4228  # though they will create one.
4229  am_cv_prog_cc_c_o=yes
4230  for am_i in 1 2; do
4231    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4232   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } \
4236         && test -f conftest2.$ac_objext; then
4237      : OK
4238    else
4239      am_cv_prog_cc_c_o=no
4240      break
4241    fi
4242  done
4243  rm -f core conftest*
4244  unset am_i
4245fi
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4247$as_echo "$am_cv_prog_cc_c_o" >&6; }
4248if test "$am_cv_prog_cc_c_o" != yes; then
4249   # Losing compiler, so override with the script.
4250   # FIXME: It is wrong to rewrite CC.
4251   # But if we don't then we get into trouble of one sort or another.
4252   # A longer-term fix would be to have automake use am__CC in this case,
4253   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4254   CC="$am_aux_dir/compile $CC"
4255fi
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262
4263ac_ext=c
4264ac_cpp='$CPP $CPPFLAGS'
4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4269$as_echo_n "checking how to run the C preprocessor... " >&6; }
4270# On Suns, sometimes $CPP names a directory.
4271if test -n "$CPP" && test -d "$CPP"; then
4272  CPP=
4273fi
4274if test -z "$CPP"; then
4275  if ${ac_cv_prog_CPP+:} false; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278      # Double quotes because CPP needs to be expanded
4279    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4280    do
4281      ac_preproc_ok=false
4282for ac_c_preproc_warn_flag in '' yes
4283do
4284  # Use a header file that comes with gcc, so configuring glibc
4285  # with a fresh cross-compiler works.
4286  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287  # <limits.h> exists even on freestanding compilers.
4288  # On the NeXT, cc -E runs the code through the compiler's parser,
4289  # not just through cpp. "Syntax error" is here to catch this case.
4290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292#ifdef __STDC__
4293# include <limits.h>
4294#else
4295# include <assert.h>
4296#endif
4297		     Syntax error
4298_ACEOF
4299if ac_fn_c_try_cpp "$LINENO"; then :
4300
4301else
4302  # Broken: fails on valid input.
4303continue
4304fi
4305rm -f conftest.err conftest.i conftest.$ac_ext
4306
4307  # OK, works on sane cases.  Now check whether nonexistent headers
4308  # can be detected and how.
4309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310/* end confdefs.h.  */
4311#include <ac_nonexistent.h>
4312_ACEOF
4313if ac_fn_c_try_cpp "$LINENO"; then :
4314  # Broken: success on invalid input.
4315continue
4316else
4317  # Passes both tests.
4318ac_preproc_ok=:
4319break
4320fi
4321rm -f conftest.err conftest.i conftest.$ac_ext
4322
4323done
4324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4325rm -f conftest.i conftest.err conftest.$ac_ext
4326if $ac_preproc_ok; then :
4327  break
4328fi
4329
4330    done
4331    ac_cv_prog_CPP=$CPP
4332
4333fi
4334  CPP=$ac_cv_prog_CPP
4335else
4336  ac_cv_prog_CPP=$CPP
4337fi
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4339$as_echo "$CPP" >&6; }
4340ac_preproc_ok=false
4341for ac_c_preproc_warn_flag in '' yes
4342do
4343  # Use a header file that comes with gcc, so configuring glibc
4344  # with a fresh cross-compiler works.
4345  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346  # <limits.h> exists even on freestanding compilers.
4347  # On the NeXT, cc -E runs the code through the compiler's parser,
4348  # not just through cpp. "Syntax error" is here to catch this case.
4349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h.  */
4351#ifdef __STDC__
4352# include <limits.h>
4353#else
4354# include <assert.h>
4355#endif
4356		     Syntax error
4357_ACEOF
4358if ac_fn_c_try_cpp "$LINENO"; then :
4359
4360else
4361  # Broken: fails on valid input.
4362continue
4363fi
4364rm -f conftest.err conftest.i conftest.$ac_ext
4365
4366  # OK, works on sane cases.  Now check whether nonexistent headers
4367  # can be detected and how.
4368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h.  */
4370#include <ac_nonexistent.h>
4371_ACEOF
4372if ac_fn_c_try_cpp "$LINENO"; then :
4373  # Broken: success on invalid input.
4374continue
4375else
4376  # Passes both tests.
4377ac_preproc_ok=:
4378break
4379fi
4380rm -f conftest.err conftest.i conftest.$ac_ext
4381
4382done
4383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4384rm -f conftest.i conftest.err conftest.$ac_ext
4385if $ac_preproc_ok; then :
4386
4387else
4388  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4390as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4391See \`config.log' for more details" "$LINENO" 5; }
4392fi
4393
4394ac_ext=c
4395ac_cpp='$CPP $CPPFLAGS'
4396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399
4400
4401
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4403$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4404if ${ac_cv_path_GREP+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  if test -z "$GREP"; then
4408  ac_path_GREP_found=false
4409  # Loop through the user's path and test for each of PROGNAME-LIST
4410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412do
4413  IFS=$as_save_IFS
4414  test -z "$as_dir" && as_dir=.
4415    for ac_prog in grep ggrep; do
4416    for ac_exec_ext in '' $ac_executable_extensions; do
4417      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4418      as_fn_executable_p "$ac_path_GREP" || continue
4419# Check for GNU ac_path_GREP and select it if it is found.
4420  # Check for GNU $ac_path_GREP
4421case `"$ac_path_GREP" --version 2>&1` in
4422*GNU*)
4423  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4424*)
4425  ac_count=0
4426  $as_echo_n 0123456789 >"conftest.in"
4427  while :
4428  do
4429    cat "conftest.in" "conftest.in" >"conftest.tmp"
4430    mv "conftest.tmp" "conftest.in"
4431    cp "conftest.in" "conftest.nl"
4432    $as_echo 'GREP' >> "conftest.nl"
4433    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435    as_fn_arith $ac_count + 1 && ac_count=$as_val
4436    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4437      # Best one so far, save it but keep looking for a better one
4438      ac_cv_path_GREP="$ac_path_GREP"
4439      ac_path_GREP_max=$ac_count
4440    fi
4441    # 10*(2^10) chars as input seems more than enough
4442    test $ac_count -gt 10 && break
4443  done
4444  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445esac
4446
4447      $ac_path_GREP_found && break 3
4448    done
4449  done
4450  done
4451IFS=$as_save_IFS
4452  if test -z "$ac_cv_path_GREP"; then
4453    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454  fi
4455else
4456  ac_cv_path_GREP=$GREP
4457fi
4458
4459fi
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4461$as_echo "$ac_cv_path_GREP" >&6; }
4462 GREP="$ac_cv_path_GREP"
4463
4464
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4466$as_echo_n "checking for egrep... " >&6; }
4467if ${ac_cv_path_EGREP+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4471   then ac_cv_path_EGREP="$GREP -E"
4472   else
4473     if test -z "$EGREP"; then
4474  ac_path_EGREP_found=false
4475  # Loop through the user's path and test for each of PROGNAME-LIST
4476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4478do
4479  IFS=$as_save_IFS
4480  test -z "$as_dir" && as_dir=.
4481    for ac_prog in egrep; do
4482    for ac_exec_ext in '' $ac_executable_extensions; do
4483      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4484      as_fn_executable_p "$ac_path_EGREP" || continue
4485# Check for GNU ac_path_EGREP and select it if it is found.
4486  # Check for GNU $ac_path_EGREP
4487case `"$ac_path_EGREP" --version 2>&1` in
4488*GNU*)
4489  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4490*)
4491  ac_count=0
4492  $as_echo_n 0123456789 >"conftest.in"
4493  while :
4494  do
4495    cat "conftest.in" "conftest.in" >"conftest.tmp"
4496    mv "conftest.tmp" "conftest.in"
4497    cp "conftest.in" "conftest.nl"
4498    $as_echo 'EGREP' >> "conftest.nl"
4499    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4500    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4501    as_fn_arith $ac_count + 1 && ac_count=$as_val
4502    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4503      # Best one so far, save it but keep looking for a better one
4504      ac_cv_path_EGREP="$ac_path_EGREP"
4505      ac_path_EGREP_max=$ac_count
4506    fi
4507    # 10*(2^10) chars as input seems more than enough
4508    test $ac_count -gt 10 && break
4509  done
4510  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4511esac
4512
4513      $ac_path_EGREP_found && break 3
4514    done
4515  done
4516  done
4517IFS=$as_save_IFS
4518  if test -z "$ac_cv_path_EGREP"; then
4519    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4520  fi
4521else
4522  ac_cv_path_EGREP=$EGREP
4523fi
4524
4525   fi
4526fi
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4528$as_echo "$ac_cv_path_EGREP" >&6; }
4529 EGREP="$ac_cv_path_EGREP"
4530
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4533$as_echo_n "checking for ANSI C header files... " >&6; }
4534if ${ac_cv_header_stdc+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h.  */
4539#include <stdlib.h>
4540#include <stdarg.h>
4541#include <string.h>
4542#include <float.h>
4543
4544int
4545main ()
4546{
4547
4548  ;
4549  return 0;
4550}
4551_ACEOF
4552if ac_fn_c_try_compile "$LINENO"; then :
4553  ac_cv_header_stdc=yes
4554else
4555  ac_cv_header_stdc=no
4556fi
4557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558
4559if test $ac_cv_header_stdc = yes; then
4560  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562/* end confdefs.h.  */
4563#include <string.h>
4564
4565_ACEOF
4566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4567  $EGREP "memchr" >/dev/null 2>&1; then :
4568
4569else
4570  ac_cv_header_stdc=no
4571fi
4572rm -f conftest*
4573
4574fi
4575
4576if test $ac_cv_header_stdc = yes; then
4577  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h.  */
4580#include <stdlib.h>
4581
4582_ACEOF
4583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584  $EGREP "free" >/dev/null 2>&1; then :
4585
4586else
4587  ac_cv_header_stdc=no
4588fi
4589rm -f conftest*
4590
4591fi
4592
4593if test $ac_cv_header_stdc = yes; then
4594  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4595  if test "$cross_compiling" = yes; then :
4596  :
4597else
4598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599/* end confdefs.h.  */
4600#include <ctype.h>
4601#include <stdlib.h>
4602#if ((' ' & 0x0FF) == 0x020)
4603# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4604# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4605#else
4606# define ISLOWER(c) \
4607		   (('a' <= (c) && (c) <= 'i') \
4608		     || ('j' <= (c) && (c) <= 'r') \
4609		     || ('s' <= (c) && (c) <= 'z'))
4610# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4611#endif
4612
4613#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4614int
4615main ()
4616{
4617  int i;
4618  for (i = 0; i < 256; i++)
4619    if (XOR (islower (i), ISLOWER (i))
4620	|| toupper (i) != TOUPPER (i))
4621      return 2;
4622  return 0;
4623}
4624_ACEOF
4625if ac_fn_c_try_run "$LINENO"; then :
4626
4627else
4628  ac_cv_header_stdc=no
4629fi
4630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4631  conftest.$ac_objext conftest.beam conftest.$ac_ext
4632fi
4633
4634fi
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4637$as_echo "$ac_cv_header_stdc" >&6; }
4638if test $ac_cv_header_stdc = yes; then
4639
4640$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4641
4642fi
4643
4644# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4645for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4646		  inttypes.h stdint.h unistd.h
4647do :
4648  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4650"
4651if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4652  cat >>confdefs.h <<_ACEOF
4653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4654_ACEOF
4655
4656fi
4657
4658done
4659
4660
4661test "$program_prefix" != NONE &&
4662  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4663# Use a double $ so make ignores it.
4664test "$program_suffix" != NONE &&
4665  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4666# Double any \ or $.
4667# By default was `s,x,x', remove it if useless.
4668ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4669program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4670
4671# Find a good install program.  We prefer a C program (faster),
4672# so one script is as good as another.  But avoid the broken or
4673# incompatible versions:
4674# SysV /etc/install, /usr/sbin/install
4675# SunOS /usr/etc/install
4676# IRIX /sbin/install
4677# AIX /bin/install
4678# AmigaOS /C/install, which installs bootblocks on floppy discs
4679# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4680# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4681# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4682# OS/2's system install, which has a completely different semantic
4683# ./install, which can be erroneously created by make from ./install.sh.
4684# Reject install programs that cannot install multiple files.
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4686$as_echo_n "checking for a BSD-compatible install... " >&6; }
4687if test -z "$INSTALL"; then
4688if ${ac_cv_path_install+:} false; then :
4689  $as_echo_n "(cached) " >&6
4690else
4691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692for as_dir in $PATH
4693do
4694  IFS=$as_save_IFS
4695  test -z "$as_dir" && as_dir=.
4696    # Account for people who put trailing slashes in PATH elements.
4697case $as_dir/ in #((
4698  ./ | .// | /[cC]/* | \
4699  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4700  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4701  /usr/ucb/* ) ;;
4702  *)
4703    # OSF1 and SCO ODT 3.0 have their own names for install.
4704    # Don't use installbsd from OSF since it installs stuff as root
4705    # by default.
4706    for ac_prog in ginstall scoinst install; do
4707      for ac_exec_ext in '' $ac_executable_extensions; do
4708	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4709	  if test $ac_prog = install &&
4710	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4711	    # AIX install.  It has an incompatible calling convention.
4712	    :
4713	  elif test $ac_prog = install &&
4714	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4715	    # program-specific install script used by HP pwplus--don't use.
4716	    :
4717	  else
4718	    rm -rf conftest.one conftest.two conftest.dir
4719	    echo one > conftest.one
4720	    echo two > conftest.two
4721	    mkdir conftest.dir
4722	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4723	      test -s conftest.one && test -s conftest.two &&
4724	      test -s conftest.dir/conftest.one &&
4725	      test -s conftest.dir/conftest.two
4726	    then
4727	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4728	      break 3
4729	    fi
4730	  fi
4731	fi
4732      done
4733    done
4734    ;;
4735esac
4736
4737  done
4738IFS=$as_save_IFS
4739
4740rm -rf conftest.one conftest.two conftest.dir
4741
4742fi
4743  if test "${ac_cv_path_install+set}" = set; then
4744    INSTALL=$ac_cv_path_install
4745  else
4746    # As a last resort, use the slow shell script.  Don't cache a
4747    # value for INSTALL within a source directory, because that will
4748    # break other packages using the cache if that directory is
4749    # removed, or if the value is a relative name.
4750    INSTALL=$ac_install_sh
4751  fi
4752fi
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4754$as_echo "$INSTALL" >&6; }
4755
4756# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4757# It thinks the first close brace ends the variable substitution.
4758test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4759
4760test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4761
4762test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4763
4764
4765
4766
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4768$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4769if ${ac_cv_c_bigendian+:} false; then :
4770  $as_echo_n "(cached) " >&6
4771else
4772  ac_cv_c_bigendian=unknown
4773    # See if we're dealing with a universal compiler.
4774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h.  */
4776#ifndef __APPLE_CC__
4777	       not a universal capable compiler
4778	     #endif
4779	     typedef int dummy;
4780
4781_ACEOF
4782if ac_fn_c_try_compile "$LINENO"; then :
4783
4784	# Check for potential -arch flags.  It is not universal unless
4785	# there are at least two -arch flags with different values.
4786	ac_arch=
4787	ac_prev=
4788	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4789	 if test -n "$ac_prev"; then
4790	   case $ac_word in
4791	     i?86 | x86_64 | ppc | ppc64)
4792	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4793		 ac_arch=$ac_word
4794	       else
4795		 ac_cv_c_bigendian=universal
4796		 break
4797	       fi
4798	       ;;
4799	   esac
4800	   ac_prev=
4801	 elif test "x$ac_word" = "x-arch"; then
4802	   ac_prev=arch
4803	 fi
4804       done
4805fi
4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807    if test $ac_cv_c_bigendian = unknown; then
4808      # See if sys/param.h defines the BYTE_ORDER macro.
4809      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810/* end confdefs.h.  */
4811#include <sys/types.h>
4812	     #include <sys/param.h>
4813
4814int
4815main ()
4816{
4817#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4818		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4819		     && LITTLE_ENDIAN)
4820	      bogus endian macros
4821	     #endif
4822
4823  ;
4824  return 0;
4825}
4826_ACEOF
4827if ac_fn_c_try_compile "$LINENO"; then :
4828  # It does; now see whether it defined to BIG_ENDIAN or not.
4829	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h.  */
4831#include <sys/types.h>
4832		#include <sys/param.h>
4833
4834int
4835main ()
4836{
4837#if BYTE_ORDER != BIG_ENDIAN
4838		 not big endian
4839		#endif
4840
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845if ac_fn_c_try_compile "$LINENO"; then :
4846  ac_cv_c_bigendian=yes
4847else
4848  ac_cv_c_bigendian=no
4849fi
4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851fi
4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853    fi
4854    if test $ac_cv_c_bigendian = unknown; then
4855      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4856      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h.  */
4858#include <limits.h>
4859
4860int
4861main ()
4862{
4863#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4864	      bogus endian macros
4865	     #endif
4866
4867  ;
4868  return 0;
4869}
4870_ACEOF
4871if ac_fn_c_try_compile "$LINENO"; then :
4872  # It does; now see whether it defined to _BIG_ENDIAN or not.
4873	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h.  */
4875#include <limits.h>
4876
4877int
4878main ()
4879{
4880#ifndef _BIG_ENDIAN
4881		 not big endian
4882		#endif
4883
4884  ;
4885  return 0;
4886}
4887_ACEOF
4888if ac_fn_c_try_compile "$LINENO"; then :
4889  ac_cv_c_bigendian=yes
4890else
4891  ac_cv_c_bigendian=no
4892fi
4893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894fi
4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896    fi
4897    if test $ac_cv_c_bigendian = unknown; then
4898      # Compile a test program.
4899      if test "$cross_compiling" = yes; then :
4900  # Try to guess by grepping values from an object file.
4901	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902/* end confdefs.h.  */
4903short int ascii_mm[] =
4904		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4905		short int ascii_ii[] =
4906		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4907		int use_ascii (int i) {
4908		  return ascii_mm[i] + ascii_ii[i];
4909		}
4910		short int ebcdic_ii[] =
4911		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4912		short int ebcdic_mm[] =
4913		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4914		int use_ebcdic (int i) {
4915		  return ebcdic_mm[i] + ebcdic_ii[i];
4916		}
4917		extern int foo;
4918
4919int
4920main ()
4921{
4922return use_ascii (foo) == use_ebcdic (foo);
4923  ;
4924  return 0;
4925}
4926_ACEOF
4927if ac_fn_c_try_compile "$LINENO"; then :
4928  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4929	      ac_cv_c_bigendian=yes
4930	    fi
4931	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4932	      if test "$ac_cv_c_bigendian" = unknown; then
4933		ac_cv_c_bigendian=no
4934	      else
4935		# finding both strings is unlikely to happen, but who knows?
4936		ac_cv_c_bigendian=unknown
4937	      fi
4938	    fi
4939fi
4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941else
4942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h.  */
4944$ac_includes_default
4945int
4946main ()
4947{
4948
4949	     /* Are we little or big endian?  From Harbison&Steele.  */
4950	     union
4951	     {
4952	       long int l;
4953	       char c[sizeof (long int)];
4954	     } u;
4955	     u.l = 1;
4956	     return u.c[sizeof (long int) - 1] == 1;
4957
4958  ;
4959  return 0;
4960}
4961_ACEOF
4962if ac_fn_c_try_run "$LINENO"; then :
4963  ac_cv_c_bigendian=no
4964else
4965  ac_cv_c_bigendian=yes
4966fi
4967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4968  conftest.$ac_objext conftest.beam conftest.$ac_ext
4969fi
4970
4971    fi
4972fi
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4974$as_echo "$ac_cv_c_bigendian" >&6; }
4975 case $ac_cv_c_bigendian in #(
4976   yes)
4977     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4978;; #(
4979   no)
4980      ;; #(
4981   universal)
4982
4983$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4984
4985     ;; #(
4986   *)
4987     as_fn_error $? "unknown endianness
4988 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4989 esac
4990
4991
4992
4993
4994if test -n "$ac_tool_prefix"; then
4995  # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4996set dummy ${ac_tool_prefix}dtc; ac_word=$2
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998$as_echo_n "checking for $ac_word... " >&6; }
4999if ${ac_cv_prog_DTC+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002  if test -n "$DTC"; then
5003  ac_cv_prog_DTC="$DTC" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008  IFS=$as_save_IFS
5009  test -z "$as_dir" && as_dir=.
5010    for ac_exec_ext in '' $ac_executable_extensions; do
5011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012    ac_cv_prog_DTC="${ac_tool_prefix}dtc"
5013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014    break 2
5015  fi
5016done
5017  done
5018IFS=$as_save_IFS
5019
5020fi
5021fi
5022DTC=$ac_cv_prog_DTC
5023if test -n "$DTC"; then
5024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
5025$as_echo "$DTC" >&6; }
5026else
5027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5029fi
5030
5031
5032fi
5033if test -z "$ac_cv_prog_DTC"; then
5034  ac_ct_DTC=$DTC
5035  # Extract the first word of "dtc", so it can be a program name with args.
5036set dummy dtc; ac_word=$2
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038$as_echo_n "checking for $ac_word... " >&6; }
5039if ${ac_cv_prog_ac_ct_DTC+:} false; then :
5040  $as_echo_n "(cached) " >&6
5041else
5042  if test -n "$ac_ct_DTC"; then
5043  ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
5044else
5045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH
5047do
5048  IFS=$as_save_IFS
5049  test -z "$as_dir" && as_dir=.
5050    for ac_exec_ext in '' $ac_executable_extensions; do
5051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052    ac_cv_prog_ac_ct_DTC="dtc"
5053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054    break 2
5055  fi
5056done
5057  done
5058IFS=$as_save_IFS
5059
5060fi
5061fi
5062ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
5063if test -n "$ac_ct_DTC"; then
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
5065$as_echo "$ac_ct_DTC" >&6; }
5066else
5067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068$as_echo "no" >&6; }
5069fi
5070
5071  if test "x$ac_ct_DTC" = x; then
5072    DTC=""
5073  else
5074    case $cross_compiling:$ac_tool_warned in
5075yes:)
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5078ac_tool_warned=yes ;;
5079esac
5080    DTC=$ac_ct_DTC
5081  fi
5082else
5083  DTC="$ac_cv_prog_DTC"
5084fi
5085
5086
5087if test "x$cross_compiling" = "xno"; then
5088  : "${AR_FOR_BUILD:=\$(AR)}"
5089  : "${CC_FOR_BUILD:=\$(CC)}"
5090  : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
5091  : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
5092  : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
5093  : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
5094else
5095  : "${AR_FOR_BUILD:=ar}"
5096  : "${CC_FOR_BUILD:=gcc}"
5097  : "${RANLIB_FOR_BUILD:=ranlib}"
5098  : "${CFLAGS_FOR_BUILD:=-g -O}"
5099  : "${CPPFLAGS_FOR_BUILD:=}"
5100  : "${LDLFAGS_FOR_BUILD:=}"
5101fi
5102
5103
5104
5105
5106
5107
5108
5109
5110if test -n "$ac_tool_prefix"; then
5111  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5112set dummy ${ac_tool_prefix}ar; ac_word=$2
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
5115if ${ac_cv_prog_AR+:} false; then :
5116  $as_echo_n "(cached) " >&6
5117else
5118  if test -n "$AR"; then
5119  ac_cv_prog_AR="$AR" # Let the user override the test.
5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124  IFS=$as_save_IFS
5125  test -z "$as_dir" && as_dir=.
5126    for ac_exec_ext in '' $ac_executable_extensions; do
5127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128    ac_cv_prog_AR="${ac_tool_prefix}ar"
5129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130    break 2
5131  fi
5132done
5133  done
5134IFS=$as_save_IFS
5135
5136fi
5137fi
5138AR=$ac_cv_prog_AR
5139if test -n "$AR"; then
5140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5141$as_echo "$AR" >&6; }
5142else
5143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145fi
5146
5147
5148fi
5149if test -z "$ac_cv_prog_AR"; then
5150  ac_ct_AR=$AR
5151  # Extract the first word of "ar", so it can be a program name with args.
5152set dummy ar; ac_word=$2
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
5155if ${ac_cv_prog_ac_ct_AR+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158  if test -n "$ac_ct_AR"; then
5159  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164  IFS=$as_save_IFS
5165  test -z "$as_dir" && as_dir=.
5166    for ac_exec_ext in '' $ac_executable_extensions; do
5167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168    ac_cv_prog_ac_ct_AR="ar"
5169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170    break 2
5171  fi
5172done
5173  done
5174IFS=$as_save_IFS
5175
5176fi
5177fi
5178ac_ct_AR=$ac_cv_prog_ac_ct_AR
5179if test -n "$ac_ct_AR"; then
5180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5181$as_echo "$ac_ct_AR" >&6; }
5182else
5183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184$as_echo "no" >&6; }
5185fi
5186
5187  if test "x$ac_ct_AR" = x; then
5188    AR=""
5189  else
5190    case $cross_compiling:$ac_tool_warned in
5191yes:)
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5194ac_tool_warned=yes ;;
5195esac
5196    AR=$ac_ct_AR
5197  fi
5198else
5199  AR="$ac_cv_prog_AR"
5200fi
5201
5202if test -n "$ac_tool_prefix"; then
5203  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5204set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206$as_echo_n "checking for $ac_word... " >&6; }
5207if ${ac_cv_prog_RANLIB+:} false; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210  if test -n "$RANLIB"; then
5211  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5212else
5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216  IFS=$as_save_IFS
5217  test -z "$as_dir" && as_dir=.
5218    for ac_exec_ext in '' $ac_executable_extensions; do
5219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222    break 2
5223  fi
5224done
5225  done
5226IFS=$as_save_IFS
5227
5228fi
5229fi
5230RANLIB=$ac_cv_prog_RANLIB
5231if test -n "$RANLIB"; then
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5233$as_echo "$RANLIB" >&6; }
5234else
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236$as_echo "no" >&6; }
5237fi
5238
5239
5240fi
5241if test -z "$ac_cv_prog_RANLIB"; then
5242  ac_ct_RANLIB=$RANLIB
5243  # Extract the first word of "ranlib", so it can be a program name with args.
5244set dummy ranlib; ac_word=$2
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246$as_echo_n "checking for $ac_word... " >&6; }
5247if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5248  $as_echo_n "(cached) " >&6
5249else
5250  if test -n "$ac_ct_RANLIB"; then
5251  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5252else
5253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254for as_dir in $PATH
5255do
5256  IFS=$as_save_IFS
5257  test -z "$as_dir" && as_dir=.
5258    for ac_exec_ext in '' $ac_executable_extensions; do
5259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260    ac_cv_prog_ac_ct_RANLIB="ranlib"
5261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262    break 2
5263  fi
5264done
5265  done
5266IFS=$as_save_IFS
5267
5268fi
5269fi
5270ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5271if test -n "$ac_ct_RANLIB"; then
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5273$as_echo "$ac_ct_RANLIB" >&6; }
5274else
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276$as_echo "no" >&6; }
5277fi
5278
5279  if test "x$ac_ct_RANLIB" = x; then
5280    RANLIB=":"
5281  else
5282    case $cross_compiling:$ac_tool_warned in
5283yes:)
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286ac_tool_warned=yes ;;
5287esac
5288    RANLIB=$ac_ct_RANLIB
5289  fi
5290else
5291  RANLIB="$ac_cv_prog_RANLIB"
5292fi
5293
5294
5295
5296
5297
5298
5299
5300
5301if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5302	if test -n "$ac_tool_prefix"; then
5303  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5304set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306$as_echo_n "checking for $ac_word... " >&6; }
5307if ${ac_cv_path_PKG_CONFIG+:} false; then :
5308  $as_echo_n "(cached) " >&6
5309else
5310  case $PKG_CONFIG in
5311  [\\/]* | ?:[\\/]*)
5312  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5313  ;;
5314  *)
5315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318  IFS=$as_save_IFS
5319  test -z "$as_dir" && as_dir=.
5320    for ac_exec_ext in '' $ac_executable_extensions; do
5321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324    break 2
5325  fi
5326done
5327  done
5328IFS=$as_save_IFS
5329
5330  ;;
5331esac
5332fi
5333PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5334if test -n "$PKG_CONFIG"; then
5335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5336$as_echo "$PKG_CONFIG" >&6; }
5337else
5338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339$as_echo "no" >&6; }
5340fi
5341
5342
5343fi
5344if test -z "$ac_cv_path_PKG_CONFIG"; then
5345  ac_pt_PKG_CONFIG=$PKG_CONFIG
5346  # Extract the first word of "pkg-config", so it can be a program name with args.
5347set dummy pkg-config; ac_word=$2
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
5350if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5351  $as_echo_n "(cached) " >&6
5352else
5353  case $ac_pt_PKG_CONFIG in
5354  [\\/]* | ?:[\\/]*)
5355  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5356  ;;
5357  *)
5358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361  IFS=$as_save_IFS
5362  test -z "$as_dir" && as_dir=.
5363    for ac_exec_ext in '' $ac_executable_extensions; do
5364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367    break 2
5368  fi
5369done
5370  done
5371IFS=$as_save_IFS
5372
5373  ;;
5374esac
5375fi
5376ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5377if test -n "$ac_pt_PKG_CONFIG"; then
5378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5379$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5380else
5381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382$as_echo "no" >&6; }
5383fi
5384
5385  if test "x$ac_pt_PKG_CONFIG" = x; then
5386    PKG_CONFIG=""
5387  else
5388    case $cross_compiling:$ac_tool_warned in
5389yes:)
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392ac_tool_warned=yes ;;
5393esac
5394    PKG_CONFIG=$ac_pt_PKG_CONFIG
5395  fi
5396else
5397  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5398fi
5399
5400fi
5401if test -n "$PKG_CONFIG"; then
5402	_pkg_min_version=0.9.0
5403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5404$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5405	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5407$as_echo "yes" >&6; }
5408	else
5409		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410$as_echo "no" >&6; }
5411		PKG_CONFIG=""
5412	fi
5413fi
5414
5415# Require C11 or newer.  Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5416# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5417# is C99.  So handle it ourselves.
5418:
5419C_DIALECT=
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5421$as_echo_n "checking whether C11 is supported by default... " >&6; }
5422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h.  */
5424
5425#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5426# error "C11 support not found"
5427#endif
5428
5429_ACEOF
5430if ac_fn_c_try_compile "$LINENO"; then :
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5432$as_echo "yes" >&6; }
5433else
5434
5435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436$as_echo "no" >&6; }
5437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5438$as_echo_n "checking for -std=c11 support... " >&6; }
5439  ac_save_CC="$CC"
5440  CC="$CC -std=c11"
5441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h.  */
5443
5444#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5445# error "C11 support not found"
5446#endif
5447
5448_ACEOF
5449if ac_fn_c_try_compile "$LINENO"; then :
5450
5451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452$as_echo "yes" >&6; }
5453  CC="$ac_save_CC"
5454  C_DIALECT="-std=c11"
5455
5456else
5457  as_fn_error $? "C11 is required" "$LINENO" 5
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460fi
5461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462
5463
5464
5465
5466
5467  for ac_header in $ac_header_list
5468do :
5469  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5471"
5472if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5473  cat >>confdefs.h <<_ACEOF
5474#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5475_ACEOF
5476
5477fi
5478
5479done
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528  for ac_func in $ac_func_list
5529do :
5530  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5532if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5533  cat >>confdefs.h <<_ACEOF
5534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5535_ACEOF
5536
5537fi
5538done
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5667$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5668if ${ac_cv_struct_tm+:} false; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672/* end confdefs.h.  */
5673#include <sys/types.h>
5674#include <time.h>
5675
5676int
5677main ()
5678{
5679struct tm tm;
5680				     int *p = &tm.tm_sec;
5681				     return !p;
5682  ;
5683  return 0;
5684}
5685_ACEOF
5686if ac_fn_c_try_compile "$LINENO"; then :
5687  ac_cv_struct_tm=time.h
5688else
5689  ac_cv_struct_tm=sys/time.h
5690fi
5691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5694$as_echo "$ac_cv_struct_tm" >&6; }
5695if test $ac_cv_struct_tm = sys/time.h; then
5696
5697$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5698
5699fi
5700
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5702$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5703if ${ac_cv_type_uid_t+:} false; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708#include <sys/types.h>
5709
5710_ACEOF
5711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5712  $EGREP "uid_t" >/dev/null 2>&1; then :
5713  ac_cv_type_uid_t=yes
5714else
5715  ac_cv_type_uid_t=no
5716fi
5717rm -f conftest*
5718
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5721$as_echo "$ac_cv_type_uid_t" >&6; }
5722if test $ac_cv_type_uid_t = no; then
5723
5724$as_echo "#define uid_t int" >>confdefs.h
5725
5726
5727$as_echo "#define gid_t int" >>confdefs.h
5728
5729fi
5730
5731case `pwd` in
5732  *\ * | *\	*)
5733    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5734$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5735esac
5736
5737
5738
5739macro_version='2.2.7a'
5740macro_revision='1.3134'
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754ltmain="$ac_aux_dir/ltmain.sh"
5755
5756# Backslashify metacharacters that are still active within
5757# double-quoted strings.
5758sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5759
5760# Same as above, but do not quote variable references.
5761double_quote_subst='s/\(["`\\]\)/\\\1/g'
5762
5763# Sed substitution to delay expansion of an escaped shell variable in a
5764# double_quote_subst'ed string.
5765delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5766
5767# Sed substitution to delay expansion of an escaped single quote.
5768delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5769
5770# Sed substitution to avoid accidental globbing in evaled expressions
5771no_glob_subst='s/\*/\\\*/g'
5772
5773ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5774ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5775ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5776
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5778$as_echo_n "checking how to print strings... " >&6; }
5779# Test print first, because it will be a builtin if present.
5780if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5781   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5782  ECHO='print -r --'
5783elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5784  ECHO='printf %s\n'
5785else
5786  # Use this function as a fallback that always works.
5787  func_fallback_echo ()
5788  {
5789    eval 'cat <<_LTECHO_EOF
5790$1
5791_LTECHO_EOF'
5792  }
5793  ECHO='func_fallback_echo'
5794fi
5795
5796# func_echo_all arg...
5797# Invoke $ECHO with all args, space-separated.
5798func_echo_all ()
5799{
5800    $ECHO ""
5801}
5802
5803case "$ECHO" in
5804  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5805$as_echo "printf" >&6; } ;;
5806  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5807$as_echo "print -r" >&6; } ;;
5808  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5809$as_echo "cat" >&6; } ;;
5810esac
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5826$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5827if ${ac_cv_path_SED+:} false; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5831     for ac_i in 1 2 3 4 5 6 7; do
5832       ac_script="$ac_script$as_nl$ac_script"
5833     done
5834     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5835     { ac_script=; unset ac_script;}
5836     if test -z "$SED"; then
5837  ac_path_SED_found=false
5838  # Loop through the user's path and test for each of PROGNAME-LIST
5839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842  IFS=$as_save_IFS
5843  test -z "$as_dir" && as_dir=.
5844    for ac_prog in sed gsed; do
5845    for ac_exec_ext in '' $ac_executable_extensions; do
5846      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5847      as_fn_executable_p "$ac_path_SED" || continue
5848# Check for GNU ac_path_SED and select it if it is found.
5849  # Check for GNU $ac_path_SED
5850case `"$ac_path_SED" --version 2>&1` in
5851*GNU*)
5852  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5853*)
5854  ac_count=0
5855  $as_echo_n 0123456789 >"conftest.in"
5856  while :
5857  do
5858    cat "conftest.in" "conftest.in" >"conftest.tmp"
5859    mv "conftest.tmp" "conftest.in"
5860    cp "conftest.in" "conftest.nl"
5861    $as_echo '' >> "conftest.nl"
5862    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5863    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5864    as_fn_arith $ac_count + 1 && ac_count=$as_val
5865    if test $ac_count -gt ${ac_path_SED_max-0}; then
5866      # Best one so far, save it but keep looking for a better one
5867      ac_cv_path_SED="$ac_path_SED"
5868      ac_path_SED_max=$ac_count
5869    fi
5870    # 10*(2^10) chars as input seems more than enough
5871    test $ac_count -gt 10 && break
5872  done
5873  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5874esac
5875
5876      $ac_path_SED_found && break 3
5877    done
5878  done
5879  done
5880IFS=$as_save_IFS
5881  if test -z "$ac_cv_path_SED"; then
5882    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5883  fi
5884else
5885  ac_cv_path_SED=$SED
5886fi
5887
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5890$as_echo "$ac_cv_path_SED" >&6; }
5891 SED="$ac_cv_path_SED"
5892  rm -f conftest.sed
5893
5894test -z "$SED" && SED=sed
5895Xsed="$SED -e 1s/^X//"
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5908$as_echo_n "checking for fgrep... " >&6; }
5909if ${ac_cv_path_FGREP+:} false; then :
5910  $as_echo_n "(cached) " >&6
5911else
5912  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5913   then ac_cv_path_FGREP="$GREP -F"
5914   else
5915     if test -z "$FGREP"; then
5916  ac_path_FGREP_found=false
5917  # Loop through the user's path and test for each of PROGNAME-LIST
5918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5920do
5921  IFS=$as_save_IFS
5922  test -z "$as_dir" && as_dir=.
5923    for ac_prog in fgrep; do
5924    for ac_exec_ext in '' $ac_executable_extensions; do
5925      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5926      as_fn_executable_p "$ac_path_FGREP" || continue
5927# Check for GNU ac_path_FGREP and select it if it is found.
5928  # Check for GNU $ac_path_FGREP
5929case `"$ac_path_FGREP" --version 2>&1` in
5930*GNU*)
5931  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5932*)
5933  ac_count=0
5934  $as_echo_n 0123456789 >"conftest.in"
5935  while :
5936  do
5937    cat "conftest.in" "conftest.in" >"conftest.tmp"
5938    mv "conftest.tmp" "conftest.in"
5939    cp "conftest.in" "conftest.nl"
5940    $as_echo 'FGREP' >> "conftest.nl"
5941    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5942    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5943    as_fn_arith $ac_count + 1 && ac_count=$as_val
5944    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5945      # Best one so far, save it but keep looking for a better one
5946      ac_cv_path_FGREP="$ac_path_FGREP"
5947      ac_path_FGREP_max=$ac_count
5948    fi
5949    # 10*(2^10) chars as input seems more than enough
5950    test $ac_count -gt 10 && break
5951  done
5952  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5953esac
5954
5955      $ac_path_FGREP_found && break 3
5956    done
5957  done
5958  done
5959IFS=$as_save_IFS
5960  if test -z "$ac_cv_path_FGREP"; then
5961    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5962  fi
5963else
5964  ac_cv_path_FGREP=$FGREP
5965fi
5966
5967   fi
5968fi
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5970$as_echo "$ac_cv_path_FGREP" >&6; }
5971 FGREP="$ac_cv_path_FGREP"
5972
5973
5974test -z "$GREP" && GREP=grep
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994# Check whether --with-gnu-ld was given.
5995if test "${with_gnu_ld+set}" = set; then :
5996  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5997else
5998  with_gnu_ld=no
5999fi
6000
6001ac_prog=ld
6002if test "$GCC" = yes; then
6003  # Check if gcc -print-prog-name=ld gives a path.
6004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6005$as_echo_n "checking for ld used by $CC... " >&6; }
6006  case $host in
6007  *-*-mingw*)
6008    # gcc leaves a trailing carriage return which upsets mingw
6009    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6010  *)
6011    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6012  esac
6013  case $ac_prog in
6014    # Accept absolute paths.
6015    [\\/]* | ?:[\\/]*)
6016      re_direlt='/[^/][^/]*/\.\./'
6017      # Canonicalize the pathname of ld
6018      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6019      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6020	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6021      done
6022      test -z "$LD" && LD="$ac_prog"
6023      ;;
6024  "")
6025    # If it fails, then pretend we aren't using GCC.
6026    ac_prog=ld
6027    ;;
6028  *)
6029    # If it is relative, then search for the first ld in PATH.
6030    with_gnu_ld=unknown
6031    ;;
6032  esac
6033elif test "$with_gnu_ld" = yes; then
6034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6035$as_echo_n "checking for GNU ld... " >&6; }
6036else
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6038$as_echo_n "checking for non-GNU ld... " >&6; }
6039fi
6040if ${lt_cv_path_LD+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  if test -z "$LD"; then
6044  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6045  for ac_dir in $PATH; do
6046    IFS="$lt_save_ifs"
6047    test -z "$ac_dir" && ac_dir=.
6048    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6049      lt_cv_path_LD="$ac_dir/$ac_prog"
6050      # Check to see if the program is GNU ld.  I'd rather use --version,
6051      # but apparently some variants of GNU ld only accept -v.
6052      # Break only if it was the GNU/non-GNU ld that we prefer.
6053      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6054      *GNU* | *'with BFD'*)
6055	test "$with_gnu_ld" != no && break
6056	;;
6057      *)
6058	test "$with_gnu_ld" != yes && break
6059	;;
6060      esac
6061    fi
6062  done
6063  IFS="$lt_save_ifs"
6064else
6065  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6066fi
6067fi
6068
6069LD="$lt_cv_path_LD"
6070if test -n "$LD"; then
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6072$as_echo "$LD" >&6; }
6073else
6074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075$as_echo "no" >&6; }
6076fi
6077test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6079$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6080if ${lt_cv_prog_gnu_ld+:} false; then :
6081  $as_echo_n "(cached) " >&6
6082else
6083  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6084case `$LD -v 2>&1 </dev/null` in
6085*GNU* | *'with BFD'*)
6086  lt_cv_prog_gnu_ld=yes
6087  ;;
6088*)
6089  lt_cv_prog_gnu_ld=no
6090  ;;
6091esac
6092fi
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6094$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6095with_gnu_ld=$lt_cv_prog_gnu_ld
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6106$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6107if ${lt_cv_path_NM+:} false; then :
6108  $as_echo_n "(cached) " >&6
6109else
6110  if test -n "$NM"; then
6111   # Let the user override the nm to test.
6112   lt_nm_to_check="$NM"
6113 else
6114   lt_nm_to_check="${ac_tool_prefix}nm"
6115   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6116     lt_nm_to_check="$lt_nm_to_check nm"
6117   fi
6118 fi
6119 for lt_tmp_nm in "$lt_nm_to_check"; do
6120   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6121   for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6122     IFS="$lt_save_ifs"
6123     test -z "$ac_dir" && ac_dir=.
6124     # Strip out any user-provided options from the nm to test twice,
6125     # the first time to test to see if nm (rather than its options) has
6126     # an explicit path, the second time to yield a file which can be
6127     # nm'ed itself.
6128     tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6129     case "$tmp_nm_path" in
6130     */*|*\\*) tmp_nm="$lt_tmp_nm";;
6131     *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6132     esac
6133     tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6134     if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6135       # Check to see if the nm accepts a BSD-compat flag.
6136       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6137       #   nm: unknown option "B" ignored
6138       case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6139       *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6140	 break
6141	 ;;
6142       *)
6143	 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6144	 *$tmp_nm*)
6145	   lt_cv_path_NM="$tmp_nm -p"
6146	   break
6147	   ;;
6148	 *)
6149	   lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6150	   continue # so that we can try to find one that supports BSD flags
6151	   ;;
6152	 esac
6153	 ;;
6154       esac
6155     fi
6156   done
6157   IFS="$lt_save_ifs"
6158 done
6159 : ${lt_cv_path_NM=no}
6160fi
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6162$as_echo "$lt_cv_path_NM" >&6; }
6163if test "$lt_cv_path_NM" != "no"; then
6164  NM="$lt_cv_path_NM"
6165else
6166  # Didn't find any BSD compatible name lister, look for dumpbin.
6167  if test -n "$DUMPBIN"; then :
6168    # Let the user override the test.
6169  else
6170    if test -n "$ac_tool_prefix"; then
6171  for ac_prog in dumpbin "link -dump"
6172  do
6173    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176$as_echo_n "checking for $ac_word... " >&6; }
6177if ${ac_cv_prog_DUMPBIN+:} false; then :
6178  $as_echo_n "(cached) " >&6
6179else
6180  if test -n "$DUMPBIN"; then
6181  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186  IFS=$as_save_IFS
6187  test -z "$as_dir" && as_dir=.
6188    for ac_exec_ext in '' $ac_executable_extensions; do
6189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192    break 2
6193  fi
6194done
6195  done
6196IFS=$as_save_IFS
6197
6198fi
6199fi
6200DUMPBIN=$ac_cv_prog_DUMPBIN
6201if test -n "$DUMPBIN"; then
6202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6203$as_echo "$DUMPBIN" >&6; }
6204else
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206$as_echo "no" >&6; }
6207fi
6208
6209
6210    test -n "$DUMPBIN" && break
6211  done
6212fi
6213if test -z "$DUMPBIN"; then
6214  ac_ct_DUMPBIN=$DUMPBIN
6215  for ac_prog in dumpbin "link -dump"
6216do
6217  # Extract the first word of "$ac_prog", so it can be a program name with args.
6218set dummy $ac_prog; ac_word=$2
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220$as_echo_n "checking for $ac_word... " >&6; }
6221if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6222  $as_echo_n "(cached) " >&6
6223else
6224  if test -n "$ac_ct_DUMPBIN"; then
6225  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6226else
6227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in $PATH
6229do
6230  IFS=$as_save_IFS
6231  test -z "$as_dir" && as_dir=.
6232    for ac_exec_ext in '' $ac_executable_extensions; do
6233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236    break 2
6237  fi
6238done
6239  done
6240IFS=$as_save_IFS
6241
6242fi
6243fi
6244ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6245if test -n "$ac_ct_DUMPBIN"; then
6246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6247$as_echo "$ac_ct_DUMPBIN" >&6; }
6248else
6249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250$as_echo "no" >&6; }
6251fi
6252
6253
6254  test -n "$ac_ct_DUMPBIN" && break
6255done
6256
6257  if test "x$ac_ct_DUMPBIN" = x; then
6258    DUMPBIN=":"
6259  else
6260    case $cross_compiling:$ac_tool_warned in
6261yes:)
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264ac_tool_warned=yes ;;
6265esac
6266    DUMPBIN=$ac_ct_DUMPBIN
6267  fi
6268fi
6269
6270    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6271    *COFF*)
6272      DUMPBIN="$DUMPBIN -symbols"
6273      ;;
6274    *)
6275      DUMPBIN=:
6276      ;;
6277    esac
6278  fi
6279
6280  if test "$DUMPBIN" != ":"; then
6281    NM="$DUMPBIN"
6282  fi
6283fi
6284test -z "$NM" && NM=nm
6285
6286
6287
6288
6289
6290
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6292$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6293if ${lt_cv_nm_interface+:} false; then :
6294  $as_echo_n "(cached) " >&6
6295else
6296  lt_cv_nm_interface="BSD nm"
6297  echo "int some_variable = 0;" > conftest.$ac_ext
6298  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6299  (eval "$ac_compile" 2>conftest.err)
6300  cat conftest.err >&5
6301  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6302  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6303  cat conftest.err >&5
6304  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6305  cat conftest.out >&5
6306  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6307    lt_cv_nm_interface="MS dumpbin"
6308  fi
6309  rm -f conftest*
6310fi
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6312$as_echo "$lt_cv_nm_interface" >&6; }
6313
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6315$as_echo_n "checking whether ln -s works... " >&6; }
6316LN_S=$as_ln_s
6317if test "$LN_S" = "ln -s"; then
6318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6319$as_echo "yes" >&6; }
6320else
6321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6322$as_echo "no, using $LN_S" >&6; }
6323fi
6324
6325# find the maximum length of command line arguments
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6327$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6328if ${lt_cv_sys_max_cmd_len+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331    i=0
6332  teststring="ABCD"
6333
6334  case $build_os in
6335  msdosdjgpp*)
6336    # On DJGPP, this test can blow up pretty badly due to problems in libc
6337    # (any single argument exceeding 2000 bytes causes a buffer overrun
6338    # during glob expansion).  Even if it were fixed, the result of this
6339    # check would be larger than it should be.
6340    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6341    ;;
6342
6343  gnu*)
6344    # Under GNU Hurd, this test is not required because there is
6345    # no limit to the length of command line arguments.
6346    # Libtool will interpret -1 as no limit whatsoever
6347    lt_cv_sys_max_cmd_len=-1;
6348    ;;
6349
6350  cygwin* | mingw* | cegcc*)
6351    # On Win9x/ME, this test blows up -- it succeeds, but takes
6352    # about 5 minutes as the teststring grows exponentially.
6353    # Worse, since 9x/ME are not pre-emptively multitasking,
6354    # you end up with a "frozen" computer, even though with patience
6355    # the test eventually succeeds (with a max line length of 256k).
6356    # Instead, let's just punt: use the minimum linelength reported by
6357    # all of the supported platforms: 8192 (on NT/2K/XP).
6358    lt_cv_sys_max_cmd_len=8192;
6359    ;;
6360
6361  mint*)
6362    # On MiNT this can take a long time and run out of memory.
6363    lt_cv_sys_max_cmd_len=8192;
6364    ;;
6365
6366  amigaos*)
6367    # On AmigaOS with pdksh, this test takes hours, literally.
6368    # So we just punt and use a minimum line length of 8192.
6369    lt_cv_sys_max_cmd_len=8192;
6370    ;;
6371
6372  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6373    # This has been around since 386BSD, at least.  Likely further.
6374    if test -x /sbin/sysctl; then
6375      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6376    elif test -x /usr/sbin/sysctl; then
6377      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6378    else
6379      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6380    fi
6381    # And add a safety zone
6382    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6383    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6384    ;;
6385
6386  interix*)
6387    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6388    lt_cv_sys_max_cmd_len=196608
6389    ;;
6390
6391  osf*)
6392    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6393    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6394    # nice to cause kernel panics so lets avoid the loop below.
6395    # First set a reasonable default.
6396    lt_cv_sys_max_cmd_len=16384
6397    #
6398    if test -x /sbin/sysconfig; then
6399      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6400        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6401      esac
6402    fi
6403    ;;
6404  sco3.2v5*)
6405    lt_cv_sys_max_cmd_len=102400
6406    ;;
6407  sysv5* | sco5v6* | sysv4.2uw2*)
6408    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6409    if test -n "$kargmax"; then
6410      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6411    else
6412      lt_cv_sys_max_cmd_len=32768
6413    fi
6414    ;;
6415  *)
6416    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6417    if test -n "$lt_cv_sys_max_cmd_len"; then
6418      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6419      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6420    else
6421      # Make teststring a little bigger before we do anything with it.
6422      # a 1K string should be a reasonable start.
6423      for i in 1 2 3 4 5 6 7 8 ; do
6424        teststring=$teststring$teststring
6425      done
6426      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6427      # If test is not a shell built-in, we'll probably end up computing a
6428      # maximum length that is only half of the actual maximum length, but
6429      # we can't tell.
6430      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6431	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6432	      test $i != 17 # 1/2 MB should be enough
6433      do
6434        i=`expr $i + 1`
6435        teststring=$teststring$teststring
6436      done
6437      # Only check the string length outside the loop.
6438      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6439      teststring=
6440      # Add a significant safety factor because C++ compilers can tack on
6441      # massive amounts of additional arguments before passing them to the
6442      # linker.  It appears as though 1/2 is a usable value.
6443      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6444    fi
6445    ;;
6446  esac
6447
6448fi
6449
6450if test -n $lt_cv_sys_max_cmd_len ; then
6451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6452$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6453else
6454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6455$as_echo "none" >&6; }
6456fi
6457max_cmd_len=$lt_cv_sys_max_cmd_len
6458
6459
6460
6461
6462
6463
6464: ${CP="cp -f"}
6465: ${MV="mv -f"}
6466: ${RM="rm -f"}
6467
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6469$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6470# Try some XSI features
6471xsi_shell=no
6472( _lt_dummy="a/b/c"
6473  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6474      = c,a/b,, \
6475    && eval 'test $(( 1 + 1 )) -eq 2 \
6476    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6477  && xsi_shell=yes
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6479$as_echo "$xsi_shell" >&6; }
6480
6481
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6483$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6484lt_shell_append=no
6485( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6486    >/dev/null 2>&1 \
6487  && lt_shell_append=yes
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6489$as_echo "$lt_shell_append" >&6; }
6490
6491
6492if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6493  lt_unset=unset
6494else
6495  lt_unset=false
6496fi
6497
6498
6499
6500
6501
6502# test EBCDIC or ASCII
6503case `echo X|tr X '\101'` in
6504 A) # ASCII based system
6505    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6506  lt_SP2NL='tr \040 \012'
6507  lt_NL2SP='tr \015\012 \040\040'
6508  ;;
6509 *) # EBCDIC based system
6510  lt_SP2NL='tr \100 \n'
6511  lt_NL2SP='tr \r\n \100\100'
6512  ;;
6513esac
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6524$as_echo_n "checking for $LD option to reload object files... " >&6; }
6525if ${lt_cv_ld_reload_flag+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  lt_cv_ld_reload_flag='-r'
6529fi
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6531$as_echo "$lt_cv_ld_reload_flag" >&6; }
6532reload_flag=$lt_cv_ld_reload_flag
6533case $reload_flag in
6534"" | " "*) ;;
6535*) reload_flag=" $reload_flag" ;;
6536esac
6537reload_cmds='$LD$reload_flag -o $output$reload_objs'
6538case $host_os in
6539  darwin*)
6540    if test "$GCC" = yes; then
6541      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6542    else
6543      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6544    fi
6545    ;;
6546esac
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556if test -n "$ac_tool_prefix"; then
6557  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6558set dummy ${ac_tool_prefix}objdump; ac_word=$2
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560$as_echo_n "checking for $ac_word... " >&6; }
6561if ${ac_cv_prog_OBJDUMP+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  if test -n "$OBJDUMP"; then
6565  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6566else
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570  IFS=$as_save_IFS
6571  test -z "$as_dir" && as_dir=.
6572    for ac_exec_ext in '' $ac_executable_extensions; do
6573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576    break 2
6577  fi
6578done
6579  done
6580IFS=$as_save_IFS
6581
6582fi
6583fi
6584OBJDUMP=$ac_cv_prog_OBJDUMP
6585if test -n "$OBJDUMP"; then
6586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6587$as_echo "$OBJDUMP" >&6; }
6588else
6589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590$as_echo "no" >&6; }
6591fi
6592
6593
6594fi
6595if test -z "$ac_cv_prog_OBJDUMP"; then
6596  ac_ct_OBJDUMP=$OBJDUMP
6597  # Extract the first word of "objdump", so it can be a program name with args.
6598set dummy objdump; ac_word=$2
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600$as_echo_n "checking for $ac_word... " >&6; }
6601if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  if test -n "$ac_ct_OBJDUMP"; then
6605  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610  IFS=$as_save_IFS
6611  test -z "$as_dir" && as_dir=.
6612    for ac_exec_ext in '' $ac_executable_extensions; do
6613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616    break 2
6617  fi
6618done
6619  done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6625if test -n "$ac_ct_OBJDUMP"; then
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6627$as_echo "$ac_ct_OBJDUMP" >&6; }
6628else
6629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633  if test "x$ac_ct_OBJDUMP" = x; then
6634    OBJDUMP="false"
6635  else
6636    case $cross_compiling:$ac_tool_warned in
6637yes:)
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6640ac_tool_warned=yes ;;
6641esac
6642    OBJDUMP=$ac_ct_OBJDUMP
6643  fi
6644else
6645  OBJDUMP="$ac_cv_prog_OBJDUMP"
6646fi
6647
6648test -z "$OBJDUMP" && OBJDUMP=objdump
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6659$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6660if ${lt_cv_deplibs_check_method+:} false; then :
6661  $as_echo_n "(cached) " >&6
6662else
6663  lt_cv_file_magic_cmd='$MAGIC_CMD'
6664lt_cv_file_magic_test_file=
6665lt_cv_deplibs_check_method='unknown'
6666# Need to set the preceding variable on all platforms that support
6667# interlibrary dependencies.
6668# 'none' -- dependencies not supported.
6669# `unknown' -- same as none, but documents that we really don't know.
6670# 'pass_all' -- all dependencies passed with no checks.
6671# 'test_compile' -- check by making test program.
6672# 'file_magic [[regex]]' -- check by looking for files in library path
6673# which responds to the $file_magic_cmd with a given extended regex.
6674# If you have `file' or equivalent on your system and you're not sure
6675# whether `pass_all' will *always* work, you probably want this one.
6676
6677case $host_os in
6678aix[4-9]*)
6679  lt_cv_deplibs_check_method=pass_all
6680  ;;
6681
6682beos*)
6683  lt_cv_deplibs_check_method=pass_all
6684  ;;
6685
6686bsdi[45]*)
6687  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6688  lt_cv_file_magic_cmd='/usr/bin/file -L'
6689  lt_cv_file_magic_test_file=/shlib/libc.so
6690  ;;
6691
6692cygwin*)
6693  # func_win32_libid is a shell function defined in ltmain.sh
6694  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6695  lt_cv_file_magic_cmd='func_win32_libid'
6696  ;;
6697
6698mingw* | pw32*)
6699  # Base MSYS/MinGW do not provide the 'file' command needed by
6700  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6701  # unless we find 'file', for example because we are cross-compiling.
6702  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6703  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6704    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6705    lt_cv_file_magic_cmd='func_win32_libid'
6706  else
6707    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6708    lt_cv_file_magic_cmd='$OBJDUMP -f'
6709  fi
6710  ;;
6711
6712cegcc*)
6713  # use the weaker test based on 'objdump'. See mingw*.
6714  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6715  lt_cv_file_magic_cmd='$OBJDUMP -f'
6716  ;;
6717
6718darwin* | rhapsody*)
6719  lt_cv_deplibs_check_method=pass_all
6720  ;;
6721
6722freebsd* | dragonfly*)
6723  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6724    case $host_cpu in
6725    i*86 )
6726      # Not sure whether the presence of OpenBSD here was a mistake.
6727      # Let's accept both of them until this is cleared up.
6728      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6729      lt_cv_file_magic_cmd=/usr/bin/file
6730      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6731      ;;
6732    esac
6733  else
6734    lt_cv_deplibs_check_method=pass_all
6735  fi
6736  ;;
6737
6738gnu*)
6739  lt_cv_deplibs_check_method=pass_all
6740  ;;
6741
6742haiku*)
6743  lt_cv_deplibs_check_method=pass_all
6744  ;;
6745
6746hpux10.20* | hpux11*)
6747  lt_cv_file_magic_cmd=/usr/bin/file
6748  case $host_cpu in
6749  ia64*)
6750    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6751    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6752    ;;
6753  hppa*64*)
6754    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]'
6755    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6756    ;;
6757  *)
6758    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6759    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6760    ;;
6761  esac
6762  ;;
6763
6764interix[3-9]*)
6765  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6766  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6767  ;;
6768
6769irix5* | irix6* | nonstopux*)
6770  case $LD in
6771  *-32|*"-32 ") libmagic=32-bit;;
6772  *-n32|*"-n32 ") libmagic=N32;;
6773  *-64|*"-64 ") libmagic=64-bit;;
6774  *) libmagic=never-match;;
6775  esac
6776  lt_cv_deplibs_check_method=pass_all
6777  ;;
6778
6779# This must be Linux ELF.
6780linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6781  lt_cv_deplibs_check_method=pass_all
6782  ;;
6783
6784netbsd*)
6785  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6786    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6787  else
6788    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6789  fi
6790  ;;
6791
6792newos6*)
6793  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6794  lt_cv_file_magic_cmd=/usr/bin/file
6795  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6796  ;;
6797
6798*nto* | *qnx*)
6799  lt_cv_deplibs_check_method=pass_all
6800  ;;
6801
6802openbsd*)
6803  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6804    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6805  else
6806    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6807  fi
6808  ;;
6809
6810osf3* | osf4* | osf5*)
6811  lt_cv_deplibs_check_method=pass_all
6812  ;;
6813
6814rdos*)
6815  lt_cv_deplibs_check_method=pass_all
6816  ;;
6817
6818solaris*)
6819  lt_cv_deplibs_check_method=pass_all
6820  ;;
6821
6822sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6823  lt_cv_deplibs_check_method=pass_all
6824  ;;
6825
6826sysv4 | sysv4.3*)
6827  case $host_vendor in
6828  motorola)
6829    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]'
6830    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6831    ;;
6832  ncr)
6833    lt_cv_deplibs_check_method=pass_all
6834    ;;
6835  sequent)
6836    lt_cv_file_magic_cmd='/bin/file'
6837    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6838    ;;
6839  sni)
6840    lt_cv_file_magic_cmd='/bin/file'
6841    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6842    lt_cv_file_magic_test_file=/lib/libc.so
6843    ;;
6844  siemens)
6845    lt_cv_deplibs_check_method=pass_all
6846    ;;
6847  pc)
6848    lt_cv_deplibs_check_method=pass_all
6849    ;;
6850  esac
6851  ;;
6852
6853tpf*)
6854  lt_cv_deplibs_check_method=pass_all
6855  ;;
6856vxworks*)
6857  # Assume VxWorks cross toolchains are built on Linux, possibly
6858  # as canadian for Windows hosts.
6859  lt_cv_deplibs_check_method=pass_all
6860  ;;
6861esac
6862
6863fi
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6865$as_echo "$lt_cv_deplibs_check_method" >&6; }
6866file_magic_cmd=$lt_cv_file_magic_cmd
6867deplibs_check_method=$lt_cv_deplibs_check_method
6868test -z "$deplibs_check_method" && deplibs_check_method=unknown
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881plugin_option=
6882plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6883for plugin in $plugin_names; do
6884  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6885  if test x$plugin_so = x$plugin; then
6886    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6887  fi
6888  if test x$plugin_so != x$plugin; then
6889    plugin_option="--plugin $plugin_so"
6890    break
6891  fi
6892done
6893
6894if test -n "$ac_tool_prefix"; then
6895  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6896set dummy ${ac_tool_prefix}ar; ac_word=$2
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898$as_echo_n "checking for $ac_word... " >&6; }
6899if ${ac_cv_prog_AR+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  if test -n "$AR"; then
6903  ac_cv_prog_AR="$AR" # Let the user override the test.
6904else
6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908  IFS=$as_save_IFS
6909  test -z "$as_dir" && as_dir=.
6910    for ac_exec_ext in '' $ac_executable_extensions; do
6911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912    ac_cv_prog_AR="${ac_tool_prefix}ar"
6913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914    break 2
6915  fi
6916done
6917  done
6918IFS=$as_save_IFS
6919
6920fi
6921fi
6922AR=$ac_cv_prog_AR
6923if test -n "$AR"; then
6924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6925$as_echo "$AR" >&6; }
6926else
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928$as_echo "no" >&6; }
6929fi
6930
6931
6932fi
6933if test -z "$ac_cv_prog_AR"; then
6934  ac_ct_AR=$AR
6935  # Extract the first word of "ar", so it can be a program name with args.
6936set dummy ar; ac_word=$2
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938$as_echo_n "checking for $ac_word... " >&6; }
6939if ${ac_cv_prog_ac_ct_AR+:} false; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  if test -n "$ac_ct_AR"; then
6943  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6944else
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948  IFS=$as_save_IFS
6949  test -z "$as_dir" && as_dir=.
6950    for ac_exec_ext in '' $ac_executable_extensions; do
6951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952    ac_cv_prog_ac_ct_AR="ar"
6953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954    break 2
6955  fi
6956done
6957  done
6958IFS=$as_save_IFS
6959
6960fi
6961fi
6962ac_ct_AR=$ac_cv_prog_ac_ct_AR
6963if test -n "$ac_ct_AR"; then
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6965$as_echo "$ac_ct_AR" >&6; }
6966else
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968$as_echo "no" >&6; }
6969fi
6970
6971  if test "x$ac_ct_AR" = x; then
6972    AR="false"
6973  else
6974    case $cross_compiling:$ac_tool_warned in
6975yes:)
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978ac_tool_warned=yes ;;
6979esac
6980    AR=$ac_ct_AR
6981  fi
6982else
6983  AR="$ac_cv_prog_AR"
6984fi
6985
6986test -z "$AR" && AR=ar
6987if test -n "$plugin_option"; then
6988  if $AR --help 2>&1 | grep -q "\--plugin"; then
6989    touch conftest.c
6990    $AR $plugin_option rc conftest.a conftest.c
6991    if test "$?" != 0; then
6992      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6993$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6994    else
6995      AR="$AR $plugin_option"
6996    fi
6997    rm -f conftest.*
6998  fi
6999fi
7000test -z "$AR_FLAGS" && AR_FLAGS=cru
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012if test -n "$ac_tool_prefix"; then
7013  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7014set dummy ${ac_tool_prefix}strip; ac_word=$2
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016$as_echo_n "checking for $ac_word... " >&6; }
7017if ${ac_cv_prog_STRIP+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  if test -n "$STRIP"; then
7021  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7022else
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026  IFS=$as_save_IFS
7027  test -z "$as_dir" && as_dir=.
7028    for ac_exec_ext in '' $ac_executable_extensions; do
7029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032    break 2
7033  fi
7034done
7035  done
7036IFS=$as_save_IFS
7037
7038fi
7039fi
7040STRIP=$ac_cv_prog_STRIP
7041if test -n "$STRIP"; then
7042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7043$as_echo "$STRIP" >&6; }
7044else
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046$as_echo "no" >&6; }
7047fi
7048
7049
7050fi
7051if test -z "$ac_cv_prog_STRIP"; then
7052  ac_ct_STRIP=$STRIP
7053  # Extract the first word of "strip", so it can be a program name with args.
7054set dummy strip; ac_word=$2
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056$as_echo_n "checking for $ac_word... " >&6; }
7057if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  if test -n "$ac_ct_STRIP"; then
7061  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7062else
7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066  IFS=$as_save_IFS
7067  test -z "$as_dir" && as_dir=.
7068    for ac_exec_ext in '' $ac_executable_extensions; do
7069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070    ac_cv_prog_ac_ct_STRIP="strip"
7071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072    break 2
7073  fi
7074done
7075  done
7076IFS=$as_save_IFS
7077
7078fi
7079fi
7080ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7081if test -n "$ac_ct_STRIP"; then
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7083$as_echo "$ac_ct_STRIP" >&6; }
7084else
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }
7087fi
7088
7089  if test "x$ac_ct_STRIP" = x; then
7090    STRIP=":"
7091  else
7092    case $cross_compiling:$ac_tool_warned in
7093yes:)
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7096ac_tool_warned=yes ;;
7097esac
7098    STRIP=$ac_ct_STRIP
7099  fi
7100else
7101  STRIP="$ac_cv_prog_STRIP"
7102fi
7103
7104test -z "$STRIP" && STRIP=:
7105
7106
7107
7108
7109
7110
7111if test -n "$ac_tool_prefix"; then
7112  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7113set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  if test -n "$RANLIB"; then
7120  ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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
7139RANLIB=$ac_cv_prog_RANLIB
7140if test -n "$RANLIB"; then
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7142$as_echo "$RANLIB" >&6; }
7143else
7144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148
7149fi
7150if test -z "$ac_cv_prog_RANLIB"; then
7151  ac_ct_RANLIB=$RANLIB
7152  # Extract the first word of "ranlib", so it can be a program name with args.
7153set dummy ranlib; ac_word=$2
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155$as_echo_n "checking for $ac_word... " >&6; }
7156if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  if test -n "$ac_ct_RANLIB"; then
7160  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7161else
7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163for as_dir in $PATH
7164do
7165  IFS=$as_save_IFS
7166  test -z "$as_dir" && as_dir=.
7167    for ac_exec_ext in '' $ac_executable_extensions; do
7168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169    ac_cv_prog_ac_ct_RANLIB="ranlib"
7170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171    break 2
7172  fi
7173done
7174  done
7175IFS=$as_save_IFS
7176
7177fi
7178fi
7179ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7180if test -n "$ac_ct_RANLIB"; then
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7182$as_echo "$ac_ct_RANLIB" >&6; }
7183else
7184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
7186fi
7187
7188  if test "x$ac_ct_RANLIB" = x; then
7189    RANLIB=":"
7190  else
7191    case $cross_compiling:$ac_tool_warned in
7192yes:)
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195ac_tool_warned=yes ;;
7196esac
7197    RANLIB=$ac_ct_RANLIB
7198  fi
7199else
7200  RANLIB="$ac_cv_prog_RANLIB"
7201fi
7202
7203test -z "$RANLIB" && RANLIB=:
7204if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7205  if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7206    RANLIB="$RANLIB $plugin_option"
7207  fi
7208fi
7209
7210
7211
7212
7213
7214
7215# Determine commands to create old-style static archives.
7216old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7217old_postinstall_cmds='chmod 644 $oldlib'
7218old_postuninstall_cmds=
7219
7220if test -n "$RANLIB"; then
7221  case $host_os in
7222  openbsd*)
7223    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7224    ;;
7225  *)
7226    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7227    ;;
7228  esac
7229  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7230fi
7231
7232case $host_os in
7233  darwin*)
7234    lock_old_archive_extraction=yes ;;
7235  *)
7236    lock_old_archive_extraction=no ;;
7237esac
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259for ac_prog in gawk mawk nawk awk
7260do
7261  # Extract the first word of "$ac_prog", so it can be a program name with args.
7262set dummy $ac_prog; ac_word=$2
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264$as_echo_n "checking for $ac_word... " >&6; }
7265if ${ac_cv_prog_AWK+:} false; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  if test -n "$AWK"; then
7269  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274  IFS=$as_save_IFS
7275  test -z "$as_dir" && as_dir=.
7276    for ac_exec_ext in '' $ac_executable_extensions; do
7277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278    ac_cv_prog_AWK="$ac_prog"
7279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280    break 2
7281  fi
7282done
7283  done
7284IFS=$as_save_IFS
7285
7286fi
7287fi
7288AWK=$ac_cv_prog_AWK
7289if test -n "$AWK"; then
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7291$as_echo "$AWK" >&6; }
7292else
7293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296
7297
7298  test -n "$AWK" && break
7299done
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319# If no C compiler was specified, use CC.
7320LTCC=${LTCC-"$CC"}
7321
7322# If no C compiler flags were specified, use CFLAGS.
7323LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7324
7325# Allow CC to be a program name with arguments.
7326compiler=$CC
7327
7328
7329# Check for command to grab the raw symbol name followed by C symbol from nm.
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7331$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7332if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7333  $as_echo_n "(cached) " >&6
7334else
7335
7336# These are sane defaults that work on at least a few old systems.
7337# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7338
7339# Character class describing NM global symbol codes.
7340symcode='[BCDEGRST]'
7341
7342# Regexp to match symbols that can be accessed directly from C.
7343sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7344
7345# Define system-specific variables.
7346case $host_os in
7347aix*)
7348  symcode='[BCDT]'
7349  ;;
7350cygwin* | mingw* | pw32* | cegcc*)
7351  symcode='[ABCDGISTW]'
7352  ;;
7353hpux*)
7354  if test "$host_cpu" = ia64; then
7355    symcode='[ABCDEGRST]'
7356  fi
7357  ;;
7358irix* | nonstopux*)
7359  symcode='[BCDEGRST]'
7360  ;;
7361osf*)
7362  symcode='[BCDEGQRST]'
7363  ;;
7364solaris*)
7365  symcode='[BCDRT]'
7366  ;;
7367sco3.2v5*)
7368  symcode='[DT]'
7369  ;;
7370sysv4.2uw2*)
7371  symcode='[DT]'
7372  ;;
7373sysv5* | sco5v6* | unixware* | OpenUNIX*)
7374  symcode='[ABDT]'
7375  ;;
7376sysv4)
7377  symcode='[DFNSTU]'
7378  ;;
7379esac
7380
7381# If we're using GNU nm, then use its standard symbol codes.
7382case `$NM -V 2>&1` in
7383*GNU* | *'with BFD'*)
7384  symcode='[ABCDGIRSTW]' ;;
7385esac
7386
7387# Transform an extracted symbol line into a proper C declaration.
7388# Some systems (esp. on ia64) link data and code symbols differently,
7389# so use this general approach.
7390lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7391
7392# Transform an extracted symbol line into symbol name and symbol address
7393lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7394lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7395
7396# Handle CRLF in mingw tool chain
7397opt_cr=
7398case $build_os in
7399mingw*)
7400  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7401  ;;
7402esac
7403
7404# Try without a prefix underscore, then with it.
7405for ac_symprfx in "" "_"; do
7406
7407  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7408  symxfrm="\\1 $ac_symprfx\\2 \\2"
7409
7410  # Write the raw and C identifiers.
7411  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7412    # Fake it for dumpbin and say T for any non-static function
7413    # and D for any global variable.
7414    # Also find C++ and __fastcall symbols from MSVC++,
7415    # which start with @ or ?.
7416    lt_cv_sys_global_symbol_pipe="$AWK '"\
7417"     {last_section=section; section=\$ 3};"\
7418"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7419"     \$ 0!~/External *\|/{next};"\
7420"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7421"     {if(hide[section]) next};"\
7422"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7423"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7424"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7425"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7426"     ' prfx=^$ac_symprfx"
7427  else
7428    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7429  fi
7430
7431  # Check to see that the pipe works correctly.
7432  pipe_works=no
7433
7434  rm -f conftest*
7435  cat > conftest.$ac_ext <<_LT_EOF
7436#ifdef __cplusplus
7437extern "C" {
7438#endif
7439char nm_test_var;
7440void nm_test_func(void);
7441void nm_test_func(void){}
7442#ifdef __cplusplus
7443}
7444#endif
7445int main(){nm_test_var='a';nm_test_func();return(0);}
7446_LT_EOF
7447
7448  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7449  (eval $ac_compile) 2>&5
7450  ac_status=$?
7451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7452  test $ac_status = 0; }; then
7453    # Now try to grab the symbols.
7454    nlist=conftest.nm
7455    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7456  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7457  ac_status=$?
7458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459  test $ac_status = 0; } && test -s "$nlist"; then
7460      # Try sorting and uniquifying the output.
7461      if sort "$nlist" | uniq > "$nlist"T; then
7462	mv -f "$nlist"T "$nlist"
7463      else
7464	rm -f "$nlist"T
7465      fi
7466
7467      # Make sure that we snagged all the symbols we need.
7468      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7469	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7470	  cat <<_LT_EOF > conftest.$ac_ext
7471#ifdef __cplusplus
7472extern "C" {
7473#endif
7474
7475_LT_EOF
7476	  # Now generate the symbol file.
7477	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7478
7479	  cat <<_LT_EOF >> conftest.$ac_ext
7480
7481/* The mapping between symbol names and symbols.  */
7482const struct {
7483  const char *name;
7484  void       *address;
7485}
7486lt__PROGRAM__LTX_preloaded_symbols[] =
7487{
7488  { "@PROGRAM@", (void *) 0 },
7489_LT_EOF
7490	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7491	  cat <<\_LT_EOF >> conftest.$ac_ext
7492  {0, (void *) 0}
7493};
7494
7495/* This works around a problem in FreeBSD linker */
7496#ifdef FREEBSD_WORKAROUND
7497static const void *lt_preloaded_setup() {
7498  return lt__PROGRAM__LTX_preloaded_symbols;
7499}
7500#endif
7501
7502#ifdef __cplusplus
7503}
7504#endif
7505_LT_EOF
7506	  # Now try linking the two files.
7507	  mv conftest.$ac_objext conftstm.$ac_objext
7508	  lt_save_LIBS="$LIBS"
7509	  lt_save_CFLAGS="$CFLAGS"
7510	  LIBS="conftstm.$ac_objext"
7511	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7512	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7513  (eval $ac_link) 2>&5
7514  ac_status=$?
7515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7517	    pipe_works=yes
7518	  fi
7519	  LIBS="$lt_save_LIBS"
7520	  CFLAGS="$lt_save_CFLAGS"
7521	else
7522	  echo "cannot find nm_test_func in $nlist" >&5
7523	fi
7524      else
7525	echo "cannot find nm_test_var in $nlist" >&5
7526      fi
7527    else
7528      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7529    fi
7530  else
7531    echo "$progname: failed program was:" >&5
7532    cat conftest.$ac_ext >&5
7533  fi
7534  rm -rf conftest* conftst*
7535
7536  # Do not use the global_symbol_pipe unless it works.
7537  if test "$pipe_works" = yes; then
7538    break
7539  else
7540    lt_cv_sys_global_symbol_pipe=
7541  fi
7542done
7543
7544fi
7545
7546if test -z "$lt_cv_sys_global_symbol_pipe"; then
7547  lt_cv_sys_global_symbol_to_cdecl=
7548fi
7549if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7551$as_echo "failed" >&6; }
7552else
7553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7554$as_echo "ok" >&6; }
7555fi
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578# Check whether --enable-libtool-lock was given.
7579if test "${enable_libtool_lock+set}" = set; then :
7580  enableval=$enable_libtool_lock;
7581fi
7582
7583test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7584
7585# Some flags need to be propagated to the compiler or linker for good
7586# libtool support.
7587case $host in
7588ia64-*-hpux*)
7589  # Find out which ABI we are using.
7590  echo 'int i;' > conftest.$ac_ext
7591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7592  (eval $ac_compile) 2>&5
7593  ac_status=$?
7594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595  test $ac_status = 0; }; then
7596    case `/usr/bin/file conftest.$ac_objext` in
7597      *ELF-32*)
7598	HPUX_IA64_MODE="32"
7599	;;
7600      *ELF-64*)
7601	HPUX_IA64_MODE="64"
7602	;;
7603    esac
7604  fi
7605  rm -rf conftest*
7606  ;;
7607*-*-irix6*)
7608  # Find out which ABI we are using.
7609  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7610  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7611  (eval $ac_compile) 2>&5
7612  ac_status=$?
7613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7614  test $ac_status = 0; }; then
7615    if test "$lt_cv_prog_gnu_ld" = yes; then
7616      case `/usr/bin/file conftest.$ac_objext` in
7617	*32-bit*)
7618	  LD="${LD-ld} -melf32bsmip"
7619	  ;;
7620	*N32*)
7621	  LD="${LD-ld} -melf32bmipn32"
7622	  ;;
7623	*64-bit*)
7624	  LD="${LD-ld} -melf64bmip"
7625	;;
7626      esac
7627    else
7628      case `/usr/bin/file conftest.$ac_objext` in
7629	*32-bit*)
7630	  LD="${LD-ld} -32"
7631	  ;;
7632	*N32*)
7633	  LD="${LD-ld} -n32"
7634	  ;;
7635	*64-bit*)
7636	  LD="${LD-ld} -64"
7637	  ;;
7638      esac
7639    fi
7640  fi
7641  rm -rf conftest*
7642  ;;
7643
7644x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7645s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7646  # Find out which ABI we are using.
7647  echo 'int i;' > conftest.$ac_ext
7648  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7649  (eval $ac_compile) 2>&5
7650  ac_status=$?
7651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7652  test $ac_status = 0; }; then
7653    case `/usr/bin/file conftest.o` in
7654      *32-bit*)
7655	case $host in
7656	  x86_64-*kfreebsd*-gnu)
7657	    LD="${LD-ld} -m elf_i386_fbsd"
7658	    ;;
7659	  x86_64-*linux*)
7660	    case `/usr/bin/file conftest.o` in
7661	      *x86-64*)
7662		LD="${LD-ld} -m elf32_x86_64"
7663		;;
7664	      *)
7665		LD="${LD-ld} -m elf_i386"
7666		;;
7667	    esac
7668	    ;;
7669	  powerpc64le-*linux*)
7670	    LD="${LD-ld} -m elf32lppclinux"
7671	    ;;
7672	  powerpc64-*linux*)
7673	    LD="${LD-ld} -m elf32ppclinux"
7674	    ;;
7675	  s390x-*linux*)
7676	    LD="${LD-ld} -m elf_s390"
7677	    ;;
7678	  sparc64-*linux*)
7679	    LD="${LD-ld} -m elf32_sparc"
7680	    ;;
7681	esac
7682	;;
7683      *64-bit*)
7684	case $host in
7685	  x86_64-*kfreebsd*-gnu)
7686	    LD="${LD-ld} -m elf_x86_64_fbsd"
7687	    ;;
7688	  x86_64-*linux*)
7689	    LD="${LD-ld} -m elf_x86_64"
7690	    ;;
7691	  powerpcle-*linux*)
7692	    LD="${LD-ld} -m elf64lppc"
7693	    ;;
7694	  powerpc-*linux*)
7695	    LD="${LD-ld} -m elf64ppc"
7696	    ;;
7697	  s390*-*linux*|s390*-*tpf*)
7698	    LD="${LD-ld} -m elf64_s390"
7699	    ;;
7700	  sparc*-*linux*)
7701	    LD="${LD-ld} -m elf64_sparc"
7702	    ;;
7703	esac
7704	;;
7705    esac
7706  fi
7707  rm -rf conftest*
7708  ;;
7709
7710*-*-sco3.2v5*)
7711  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7712  SAVE_CFLAGS="$CFLAGS"
7713  CFLAGS="$CFLAGS -belf"
7714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7715$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7716if ${lt_cv_cc_needs_belf+:} false; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  ac_ext=c
7720ac_cpp='$CPP $CPPFLAGS'
7721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7723ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724
7725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h.  */
7727
7728int
7729main ()
7730{
7731
7732  ;
7733  return 0;
7734}
7735_ACEOF
7736if ac_fn_c_try_link "$LINENO"; then :
7737  lt_cv_cc_needs_belf=yes
7738else
7739  lt_cv_cc_needs_belf=no
7740fi
7741rm -f core conftest.err conftest.$ac_objext \
7742    conftest$ac_exeext conftest.$ac_ext
7743     ac_ext=c
7744ac_cpp='$CPP $CPPFLAGS'
7745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747ac_compiler_gnu=$ac_cv_c_compiler_gnu
7748
7749fi
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7751$as_echo "$lt_cv_cc_needs_belf" >&6; }
7752  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7753    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7754    CFLAGS="$SAVE_CFLAGS"
7755  fi
7756  ;;
7757sparc*-*solaris*)
7758  # Find out which ABI we are using.
7759  echo 'int i;' > conftest.$ac_ext
7760  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7761  (eval $ac_compile) 2>&5
7762  ac_status=$?
7763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7764  test $ac_status = 0; }; then
7765    case `/usr/bin/file conftest.o` in
7766    *64-bit*)
7767      case $lt_cv_prog_gnu_ld in
7768      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7769      *)
7770	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7771	  LD="${LD-ld} -64"
7772	fi
7773	;;
7774      esac
7775      ;;
7776    esac
7777  fi
7778  rm -rf conftest*
7779  ;;
7780esac
7781
7782need_locks="$enable_libtool_lock"
7783
7784
7785  case $host_os in
7786    rhapsody* | darwin*)
7787    if test -n "$ac_tool_prefix"; then
7788  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7789set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791$as_echo_n "checking for $ac_word... " >&6; }
7792if ${ac_cv_prog_DSYMUTIL+:} false; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  if test -n "$DSYMUTIL"; then
7796  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7797else
7798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799for as_dir in $PATH
7800do
7801  IFS=$as_save_IFS
7802  test -z "$as_dir" && as_dir=.
7803    for ac_exec_ext in '' $ac_executable_extensions; do
7804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807    break 2
7808  fi
7809done
7810  done
7811IFS=$as_save_IFS
7812
7813fi
7814fi
7815DSYMUTIL=$ac_cv_prog_DSYMUTIL
7816if test -n "$DSYMUTIL"; then
7817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7818$as_echo "$DSYMUTIL" >&6; }
7819else
7820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821$as_echo "no" >&6; }
7822fi
7823
7824
7825fi
7826if test -z "$ac_cv_prog_DSYMUTIL"; then
7827  ac_ct_DSYMUTIL=$DSYMUTIL
7828  # Extract the first word of "dsymutil", so it can be a program name with args.
7829set dummy dsymutil; ac_word=$2
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831$as_echo_n "checking for $ac_word... " >&6; }
7832if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7833  $as_echo_n "(cached) " >&6
7834else
7835  if test -n "$ac_ct_DSYMUTIL"; then
7836  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7837else
7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841  IFS=$as_save_IFS
7842  test -z "$as_dir" && as_dir=.
7843    for ac_exec_ext in '' $ac_executable_extensions; do
7844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847    break 2
7848  fi
7849done
7850  done
7851IFS=$as_save_IFS
7852
7853fi
7854fi
7855ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7856if test -n "$ac_ct_DSYMUTIL"; then
7857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7858$as_echo "$ac_ct_DSYMUTIL" >&6; }
7859else
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861$as_echo "no" >&6; }
7862fi
7863
7864  if test "x$ac_ct_DSYMUTIL" = x; then
7865    DSYMUTIL=":"
7866  else
7867    case $cross_compiling:$ac_tool_warned in
7868yes:)
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7871ac_tool_warned=yes ;;
7872esac
7873    DSYMUTIL=$ac_ct_DSYMUTIL
7874  fi
7875else
7876  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7877fi
7878
7879    if test -n "$ac_tool_prefix"; then
7880  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7881set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883$as_echo_n "checking for $ac_word... " >&6; }
7884if ${ac_cv_prog_NMEDIT+:} false; then :
7885  $as_echo_n "(cached) " >&6
7886else
7887  if test -n "$NMEDIT"; then
7888  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7889else
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893  IFS=$as_save_IFS
7894  test -z "$as_dir" && as_dir=.
7895    for ac_exec_ext in '' $ac_executable_extensions; do
7896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899    break 2
7900  fi
7901done
7902  done
7903IFS=$as_save_IFS
7904
7905fi
7906fi
7907NMEDIT=$ac_cv_prog_NMEDIT
7908if test -n "$NMEDIT"; then
7909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7910$as_echo "$NMEDIT" >&6; }
7911else
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913$as_echo "no" >&6; }
7914fi
7915
7916
7917fi
7918if test -z "$ac_cv_prog_NMEDIT"; then
7919  ac_ct_NMEDIT=$NMEDIT
7920  # Extract the first word of "nmedit", so it can be a program name with args.
7921set dummy nmedit; ac_word=$2
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923$as_echo_n "checking for $ac_word... " >&6; }
7924if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  if test -n "$ac_ct_NMEDIT"; then
7928  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7929else
7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933  IFS=$as_save_IFS
7934  test -z "$as_dir" && as_dir=.
7935    for ac_exec_ext in '' $ac_executable_extensions; do
7936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939    break 2
7940  fi
7941done
7942  done
7943IFS=$as_save_IFS
7944
7945fi
7946fi
7947ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7948if test -n "$ac_ct_NMEDIT"; then
7949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7950$as_echo "$ac_ct_NMEDIT" >&6; }
7951else
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953$as_echo "no" >&6; }
7954fi
7955
7956  if test "x$ac_ct_NMEDIT" = x; then
7957    NMEDIT=":"
7958  else
7959    case $cross_compiling:$ac_tool_warned in
7960yes:)
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7963ac_tool_warned=yes ;;
7964esac
7965    NMEDIT=$ac_ct_NMEDIT
7966  fi
7967else
7968  NMEDIT="$ac_cv_prog_NMEDIT"
7969fi
7970
7971    if test -n "$ac_tool_prefix"; then
7972  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7973set dummy ${ac_tool_prefix}lipo; ac_word=$2
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if ${ac_cv_prog_LIPO+:} false; then :
7977  $as_echo_n "(cached) " >&6
7978else
7979  if test -n "$LIPO"; then
7980  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985  IFS=$as_save_IFS
7986  test -z "$as_dir" && as_dir=.
7987    for ac_exec_ext in '' $ac_executable_extensions; do
7988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991    break 2
7992  fi
7993done
7994  done
7995IFS=$as_save_IFS
7996
7997fi
7998fi
7999LIPO=$ac_cv_prog_LIPO
8000if test -n "$LIPO"; then
8001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8002$as_echo "$LIPO" >&6; }
8003else
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008
8009fi
8010if test -z "$ac_cv_prog_LIPO"; then
8011  ac_ct_LIPO=$LIPO
8012  # Extract the first word of "lipo", so it can be a program name with args.
8013set dummy lipo; ac_word=$2
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8017  $as_echo_n "(cached) " >&6
8018else
8019  if test -n "$ac_ct_LIPO"; then
8020  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025  IFS=$as_save_IFS
8026  test -z "$as_dir" && as_dir=.
8027    for ac_exec_ext in '' $ac_executable_extensions; do
8028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029    ac_cv_prog_ac_ct_LIPO="lipo"
8030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031    break 2
8032  fi
8033done
8034  done
8035IFS=$as_save_IFS
8036
8037fi
8038fi
8039ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8040if test -n "$ac_ct_LIPO"; then
8041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8042$as_echo "$ac_ct_LIPO" >&6; }
8043else
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
8046fi
8047
8048  if test "x$ac_ct_LIPO" = x; then
8049    LIPO=":"
8050  else
8051    case $cross_compiling:$ac_tool_warned in
8052yes:)
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055ac_tool_warned=yes ;;
8056esac
8057    LIPO=$ac_ct_LIPO
8058  fi
8059else
8060  LIPO="$ac_cv_prog_LIPO"
8061fi
8062
8063    if test -n "$ac_tool_prefix"; then
8064  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8065set dummy ${ac_tool_prefix}otool; ac_word=$2
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067$as_echo_n "checking for $ac_word... " >&6; }
8068if ${ac_cv_prog_OTOOL+:} false; then :
8069  $as_echo_n "(cached) " >&6
8070else
8071  if test -n "$OTOOL"; then
8072  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8073else
8074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075for as_dir in $PATH
8076do
8077  IFS=$as_save_IFS
8078  test -z "$as_dir" && as_dir=.
8079    for ac_exec_ext in '' $ac_executable_extensions; do
8080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8081    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083    break 2
8084  fi
8085done
8086  done
8087IFS=$as_save_IFS
8088
8089fi
8090fi
8091OTOOL=$ac_cv_prog_OTOOL
8092if test -n "$OTOOL"; then
8093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8094$as_echo "$OTOOL" >&6; }
8095else
8096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097$as_echo "no" >&6; }
8098fi
8099
8100
8101fi
8102if test -z "$ac_cv_prog_OTOOL"; then
8103  ac_ct_OTOOL=$OTOOL
8104  # Extract the first word of "otool", so it can be a program name with args.
8105set dummy otool; ac_word=$2
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107$as_echo_n "checking for $ac_word... " >&6; }
8108if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8109  $as_echo_n "(cached) " >&6
8110else
8111  if test -n "$ac_ct_OTOOL"; then
8112  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8113else
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117  IFS=$as_save_IFS
8118  test -z "$as_dir" && as_dir=.
8119    for ac_exec_ext in '' $ac_executable_extensions; do
8120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121    ac_cv_prog_ac_ct_OTOOL="otool"
8122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123    break 2
8124  fi
8125done
8126  done
8127IFS=$as_save_IFS
8128
8129fi
8130fi
8131ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8132if test -n "$ac_ct_OTOOL"; then
8133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8134$as_echo "$ac_ct_OTOOL" >&6; }
8135else
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137$as_echo "no" >&6; }
8138fi
8139
8140  if test "x$ac_ct_OTOOL" = x; then
8141    OTOOL=":"
8142  else
8143    case $cross_compiling:$ac_tool_warned in
8144yes:)
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8147ac_tool_warned=yes ;;
8148esac
8149    OTOOL=$ac_ct_OTOOL
8150  fi
8151else
8152  OTOOL="$ac_cv_prog_OTOOL"
8153fi
8154
8155    if test -n "$ac_tool_prefix"; then
8156  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8157set dummy ${ac_tool_prefix}otool64; ac_word=$2
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159$as_echo_n "checking for $ac_word... " >&6; }
8160if ${ac_cv_prog_OTOOL64+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  if test -n "$OTOOL64"; then
8164  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8165else
8166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167for as_dir in $PATH
8168do
8169  IFS=$as_save_IFS
8170  test -z "$as_dir" && as_dir=.
8171    for ac_exec_ext in '' $ac_executable_extensions; do
8172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8173    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8175    break 2
8176  fi
8177done
8178  done
8179IFS=$as_save_IFS
8180
8181fi
8182fi
8183OTOOL64=$ac_cv_prog_OTOOL64
8184if test -n "$OTOOL64"; then
8185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8186$as_echo "$OTOOL64" >&6; }
8187else
8188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189$as_echo "no" >&6; }
8190fi
8191
8192
8193fi
8194if test -z "$ac_cv_prog_OTOOL64"; then
8195  ac_ct_OTOOL64=$OTOOL64
8196  # Extract the first word of "otool64", so it can be a program name with args.
8197set dummy otool64; ac_word=$2
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199$as_echo_n "checking for $ac_word... " >&6; }
8200if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8201  $as_echo_n "(cached) " >&6
8202else
8203  if test -n "$ac_ct_OTOOL64"; then
8204  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8205else
8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209  IFS=$as_save_IFS
8210  test -z "$as_dir" && as_dir=.
8211    for ac_exec_ext in '' $ac_executable_extensions; do
8212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8213    ac_cv_prog_ac_ct_OTOOL64="otool64"
8214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215    break 2
8216  fi
8217done
8218  done
8219IFS=$as_save_IFS
8220
8221fi
8222fi
8223ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8224if test -n "$ac_ct_OTOOL64"; then
8225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8226$as_echo "$ac_ct_OTOOL64" >&6; }
8227else
8228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229$as_echo "no" >&6; }
8230fi
8231
8232  if test "x$ac_ct_OTOOL64" = x; then
8233    OTOOL64=":"
8234  else
8235    case $cross_compiling:$ac_tool_warned in
8236yes:)
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8239ac_tool_warned=yes ;;
8240esac
8241    OTOOL64=$ac_ct_OTOOL64
8242  fi
8243else
8244  OTOOL64="$ac_cv_prog_OTOOL64"
8245fi
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8274$as_echo_n "checking for -single_module linker flag... " >&6; }
8275if ${lt_cv_apple_cc_single_mod+:} false; then :
8276  $as_echo_n "(cached) " >&6
8277else
8278  lt_cv_apple_cc_single_mod=no
8279      if test -z "${LT_MULTI_MODULE}"; then
8280	# By default we will add the -single_module flag. You can override
8281	# by either setting the environment variable LT_MULTI_MODULE
8282	# non-empty at configure time, or by adding -multi_module to the
8283	# link flags.
8284	rm -rf libconftest.dylib*
8285	echo "int foo(void){return 1;}" > conftest.c
8286	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8287-dynamiclib -Wl,-single_module conftest.c" >&5
8288	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8289	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8290        _lt_result=$?
8291	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8292	  lt_cv_apple_cc_single_mod=yes
8293	else
8294	  cat conftest.err >&5
8295	fi
8296	rm -rf libconftest.dylib*
8297	rm -f conftest.*
8298      fi
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8301$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8303$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8304if ${lt_cv_ld_exported_symbols_list+:} false; then :
8305  $as_echo_n "(cached) " >&6
8306else
8307  lt_cv_ld_exported_symbols_list=no
8308      save_LDFLAGS=$LDFLAGS
8309      echo "_main" > conftest.sym
8310      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8311      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312/* end confdefs.h.  */
8313
8314int
8315main ()
8316{
8317
8318  ;
8319  return 0;
8320}
8321_ACEOF
8322if ac_fn_c_try_link "$LINENO"; then :
8323  lt_cv_ld_exported_symbols_list=yes
8324else
8325  lt_cv_ld_exported_symbols_list=no
8326fi
8327rm -f core conftest.err conftest.$ac_objext \
8328    conftest$ac_exeext conftest.$ac_ext
8329	LDFLAGS="$save_LDFLAGS"
8330
8331fi
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8333$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8335$as_echo_n "checking for -force_load linker flag... " >&6; }
8336if ${lt_cv_ld_force_load+:} false; then :
8337  $as_echo_n "(cached) " >&6
8338else
8339  lt_cv_ld_force_load=no
8340      cat > conftest.c << _LT_EOF
8341int forced_loaded() { return 2;}
8342_LT_EOF
8343      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8344      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8345      echo "$AR cru libconftest.a conftest.o" >&5
8346      $AR cru libconftest.a conftest.o 2>&5
8347      cat > conftest.c << _LT_EOF
8348int main() { return 0;}
8349_LT_EOF
8350      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8351      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8352      _lt_result=$?
8353      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8354	lt_cv_ld_force_load=yes
8355      else
8356	cat conftest.err >&5
8357      fi
8358        rm -f conftest.err libconftest.a conftest conftest.c
8359        rm -rf conftest.dSYM
8360
8361fi
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8363$as_echo "$lt_cv_ld_force_load" >&6; }
8364    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8365    # build without first building modern cctools / linker.
8366    case $host_cpu-$host_os in
8367    *-rhapsody* | *-darwin1.[012])
8368      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8369    *-darwin1.*)
8370      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8371    *-darwin*)
8372      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8373      # deployment target is forced to an earlier version.
8374      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8375	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8376	  ;;
8377	10.[012][,.]*)
8378	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8379	  ;;
8380	*)
8381	  ;;
8382     esac
8383    ;;
8384  esac
8385    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8386      _lt_dar_single_mod='$single_module'
8387    fi
8388    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8389      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8390    else
8391      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8392    fi
8393    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8394      _lt_dsymutil='~$DSYMUTIL $lib || :'
8395    else
8396      _lt_dsymutil=
8397    fi
8398    ;;
8399  esac
8400
8401for ac_header in dlfcn.h
8402do :
8403  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8404"
8405if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8406  cat >>confdefs.h <<_ACEOF
8407#define HAVE_DLFCN_H 1
8408_ACEOF
8409
8410fi
8411
8412done
8413
8414
8415ac_header_dirent=no
8416for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8417  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8419$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8420if eval \${$as_ac_Header+:} false; then :
8421  $as_echo_n "(cached) " >&6
8422else
8423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424/* end confdefs.h.  */
8425#include <sys/types.h>
8426#include <$ac_hdr>
8427
8428int
8429main ()
8430{
8431if ((DIR *) 0)
8432return 0;
8433  ;
8434  return 0;
8435}
8436_ACEOF
8437if ac_fn_c_try_compile "$LINENO"; then :
8438  eval "$as_ac_Header=yes"
8439else
8440  eval "$as_ac_Header=no"
8441fi
8442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443fi
8444eval ac_res=\$$as_ac_Header
8445	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8446$as_echo "$ac_res" >&6; }
8447if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8448  cat >>confdefs.h <<_ACEOF
8449#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8450_ACEOF
8451
8452ac_header_dirent=$ac_hdr; break
8453fi
8454
8455done
8456# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8457if test $ac_header_dirent = dirent.h; then
8458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8459$as_echo_n "checking for library containing opendir... " >&6; }
8460if ${ac_cv_search_opendir+:} false; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  ac_func_search_save_LIBS=$LIBS
8464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465/* end confdefs.h.  */
8466
8467/* Override any GCC internal prototype to avoid an error.
8468   Use char because int might match the return type of a GCC
8469   builtin and then its argument prototype would still apply.  */
8470#ifdef __cplusplus
8471extern "C"
8472#endif
8473char opendir ();
8474int
8475main ()
8476{
8477return opendir ();
8478  ;
8479  return 0;
8480}
8481_ACEOF
8482for ac_lib in '' dir; do
8483  if test -z "$ac_lib"; then
8484    ac_res="none required"
8485  else
8486    ac_res=-l$ac_lib
8487    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8488  fi
8489  if ac_fn_c_try_link "$LINENO"; then :
8490  ac_cv_search_opendir=$ac_res
8491fi
8492rm -f core conftest.err conftest.$ac_objext \
8493    conftest$ac_exeext
8494  if ${ac_cv_search_opendir+:} false; then :
8495  break
8496fi
8497done
8498if ${ac_cv_search_opendir+:} false; then :
8499
8500else
8501  ac_cv_search_opendir=no
8502fi
8503rm conftest.$ac_ext
8504LIBS=$ac_func_search_save_LIBS
8505fi
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8507$as_echo "$ac_cv_search_opendir" >&6; }
8508ac_res=$ac_cv_search_opendir
8509if test "$ac_res" != no; then :
8510  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8511
8512fi
8513
8514else
8515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8516$as_echo_n "checking for library containing opendir... " >&6; }
8517if ${ac_cv_search_opendir+:} false; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520  ac_func_search_save_LIBS=$LIBS
8521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h.  */
8523
8524/* Override any GCC internal prototype to avoid an error.
8525   Use char because int might match the return type of a GCC
8526   builtin and then its argument prototype would still apply.  */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530char opendir ();
8531int
8532main ()
8533{
8534return opendir ();
8535  ;
8536  return 0;
8537}
8538_ACEOF
8539for ac_lib in '' x; do
8540  if test -z "$ac_lib"; then
8541    ac_res="none required"
8542  else
8543    ac_res=-l$ac_lib
8544    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8545  fi
8546  if ac_fn_c_try_link "$LINENO"; then :
8547  ac_cv_search_opendir=$ac_res
8548fi
8549rm -f core conftest.err conftest.$ac_objext \
8550    conftest$ac_exeext
8551  if ${ac_cv_search_opendir+:} false; then :
8552  break
8553fi
8554done
8555if ${ac_cv_search_opendir+:} false; then :
8556
8557else
8558  ac_cv_search_opendir=no
8559fi
8560rm conftest.$ac_ext
8561LIBS=$ac_func_search_save_LIBS
8562fi
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8564$as_echo "$ac_cv_search_opendir" >&6; }
8565ac_res=$ac_cv_search_opendir
8566if test "$ac_res" != no; then :
8567  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8568
8569fi
8570
8571fi
8572
8573
8574
8575
8576ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8577if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8578
8579cat >>confdefs.h <<_ACEOF
8580#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8581_ACEOF
8582
8583
8584$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8585
8586fi
8587
8588
8589ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8590if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8591
8592cat >>confdefs.h <<_ACEOF
8593#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8594_ACEOF
8595
8596
8597$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8598
8599else
8600  case " $LIBOBJS " in
8601  *" fileblocks.$ac_objext "* ) ;;
8602  *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8603 ;;
8604esac
8605
8606fi
8607
8608
8609ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8610if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8611
8612cat >>confdefs.h <<_ACEOF
8613#define HAVE_STRUCT_STAT_ST_RDEV 1
8614_ACEOF
8615
8616
8617$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8618
8619fi
8620
8621
8622ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8623#include <$ac_cv_struct_tm>
8624
8625"
8626if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8627
8628cat >>confdefs.h <<_ACEOF
8629#define HAVE_STRUCT_TM_TM_ZONE 1
8630_ACEOF
8631
8632
8633fi
8634
8635if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8636
8637$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8638
8639else
8640  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8641"
8642if test "x$ac_cv_have_decl_tzname" = xyes; then :
8643  ac_have_decl=1
8644else
8645  ac_have_decl=0
8646fi
8647
8648cat >>confdefs.h <<_ACEOF
8649#define HAVE_DECL_TZNAME $ac_have_decl
8650_ACEOF
8651
8652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8653$as_echo_n "checking for tzname... " >&6; }
8654if ${ac_cv_var_tzname+:} false; then :
8655  $as_echo_n "(cached) " >&6
8656else
8657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h.  */
8659#include <time.h>
8660#if !HAVE_DECL_TZNAME
8661extern char *tzname[];
8662#endif
8663
8664int
8665main ()
8666{
8667return tzname[0][0];
8668  ;
8669  return 0;
8670}
8671_ACEOF
8672if ac_fn_c_try_link "$LINENO"; then :
8673  ac_cv_var_tzname=yes
8674else
8675  ac_cv_var_tzname=no
8676fi
8677rm -f core conftest.err conftest.$ac_objext \
8678    conftest$ac_exeext conftest.$ac_ext
8679fi
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8681$as_echo "$ac_cv_var_tzname" >&6; }
8682  if test $ac_cv_var_tzname = yes; then
8683
8684$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8685
8686  fi
8687fi
8688
8689
8690ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8691#include <sys/types.h>
8692#endif
8693#include <sys/stat.h>
8694"
8695if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8696
8697cat >>confdefs.h <<_ACEOF
8698#define HAVE_STRUCT_STAT_ST_DEV 1
8699_ACEOF
8700
8701
8702fi
8703ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8704#include <sys/types.h>
8705#endif
8706#include <sys/stat.h>
8707"
8708if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8709
8710cat >>confdefs.h <<_ACEOF
8711#define HAVE_STRUCT_STAT_ST_INO 1
8712_ACEOF
8713
8714
8715fi
8716ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8717#include <sys/types.h>
8718#endif
8719#include <sys/stat.h>
8720"
8721if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8722
8723cat >>confdefs.h <<_ACEOF
8724#define HAVE_STRUCT_STAT_ST_MODE 1
8725_ACEOF
8726
8727
8728fi
8729ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8730#include <sys/types.h>
8731#endif
8732#include <sys/stat.h>
8733"
8734if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8735
8736cat >>confdefs.h <<_ACEOF
8737#define HAVE_STRUCT_STAT_ST_NLINK 1
8738_ACEOF
8739
8740
8741fi
8742ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8743#include <sys/types.h>
8744#endif
8745#include <sys/stat.h>
8746"
8747if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8748
8749cat >>confdefs.h <<_ACEOF
8750#define HAVE_STRUCT_STAT_ST_UID 1
8751_ACEOF
8752
8753
8754fi
8755ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8756#include <sys/types.h>
8757#endif
8758#include <sys/stat.h>
8759"
8760if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8761
8762cat >>confdefs.h <<_ACEOF
8763#define HAVE_STRUCT_STAT_ST_GID 1
8764_ACEOF
8765
8766
8767fi
8768ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8769#include <sys/types.h>
8770#endif
8771#include <sys/stat.h>
8772"
8773if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8774
8775cat >>confdefs.h <<_ACEOF
8776#define HAVE_STRUCT_STAT_ST_RDEV 1
8777_ACEOF
8778
8779
8780fi
8781ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8782#include <sys/types.h>
8783#endif
8784#include <sys/stat.h>
8785"
8786if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8787
8788cat >>confdefs.h <<_ACEOF
8789#define HAVE_STRUCT_STAT_ST_SIZE 1
8790_ACEOF
8791
8792
8793fi
8794ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8795#include <sys/types.h>
8796#endif
8797#include <sys/stat.h>
8798"
8799if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8800
8801cat >>confdefs.h <<_ACEOF
8802#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8803_ACEOF
8804
8805
8806fi
8807ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8808#include <sys/types.h>
8809#endif
8810#include <sys/stat.h>
8811"
8812if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8813
8814cat >>confdefs.h <<_ACEOF
8815#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8816_ACEOF
8817
8818
8819fi
8820ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8821#include <sys/types.h>
8822#endif
8823#include <sys/stat.h>
8824"
8825if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8826
8827cat >>confdefs.h <<_ACEOF
8828#define HAVE_STRUCT_STAT_ST_ATIME 1
8829_ACEOF
8830
8831
8832fi
8833ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8834#include <sys/types.h>
8835#endif
8836#include <sys/stat.h>
8837"
8838if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8839
8840cat >>confdefs.h <<_ACEOF
8841#define HAVE_STRUCT_STAT_ST_MTIME 1
8842_ACEOF
8843
8844
8845fi
8846ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8847#include <sys/types.h>
8848#endif
8849#include <sys/stat.h>
8850"
8851if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8852
8853cat >>confdefs.h <<_ACEOF
8854#define HAVE_STRUCT_STAT_ST_CTIME 1
8855_ACEOF
8856
8857
8858fi
8859
8860
8861ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8862if test "x$ac_cv_type___int128" = xyes; then :
8863
8864cat >>confdefs.h <<_ACEOF
8865#define HAVE___INT128 1
8866_ACEOF
8867
8868
8869fi
8870
8871ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8872#include <sys/socket.h>
8873
8874"
8875if test "x$ac_cv_type_socklen_t" = xyes; then :
8876
8877cat >>confdefs.h <<_ACEOF
8878#define HAVE_SOCKLEN_T 1
8879_ACEOF
8880
8881
8882fi
8883
8884
8885# The cast to long int works around a bug in the HP C Compiler
8886# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8887# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8888# This bug is HP SR number 8606223364.
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8890$as_echo_n "checking size of void *... " >&6; }
8891if ${ac_cv_sizeof_void_p+:} false; then :
8892  $as_echo_n "(cached) " >&6
8893else
8894  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
8895
8896else
8897  if test "$ac_cv_type_void_p" = yes; then
8898     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8900as_fn_error 77 "cannot compute sizeof (void *)
8901See \`config.log' for more details" "$LINENO" 5; }
8902   else
8903     ac_cv_sizeof_void_p=0
8904   fi
8905fi
8906
8907fi
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8909$as_echo "$ac_cv_sizeof_void_p" >&6; }
8910
8911
8912
8913cat >>confdefs.h <<_ACEOF
8914#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8915_ACEOF
8916
8917
8918
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
8920$as_echo_n "checking for struct statfs... " >&6; }
8921if ${sim_cv_struct_statfs+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h.  */
8926
8927#include <sys/types.h>
8928#ifdef HAVE_SYS_PARAM_H
8929#include <sys/param.h>
8930#endif
8931#ifdef HAVE_SYS_MOUNT_H
8932#include <sys/mount.h>
8933#endif
8934#ifdef HAVE_SYS_VFS_H
8935#include <sys/vfs.h>
8936#endif
8937#ifdef HAVE_SYS_STATFS_H
8938#include <sys/statfs.h>
8939#endif
8940int
8941main ()
8942{
8943
8944  struct statfs s;
8945
8946  ;
8947  return 0;
8948}
8949_ACEOF
8950if ac_fn_c_try_compile "$LINENO"; then :
8951  sim_cv_struct_statfs="yes"
8952else
8953  sim_cv_struct_statfs="no"
8954fi
8955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956fi
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_struct_statfs" >&5
8958$as_echo "$sim_cv_struct_statfs" >&6; }
8959if test x"sim_cv_struct_statfs" = x"yes"; then :
8960
8961$as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
8962
8963
8964fi
8965
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
8967$as_echo_n "checking if union semun defined... " >&6; }
8968if ${sim_cv_has_union_semun+:} false; then :
8969  $as_echo_n "(cached) " >&6
8970else
8971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972/* end confdefs.h.  */
8973
8974#include <sys/types.h>
8975#include <sys/ipc.h>
8976#include <sys/sem.h>
8977int
8978main ()
8979{
8980
8981  union semun arg;
8982
8983  ;
8984  return 0;
8985}
8986_ACEOF
8987if ac_fn_c_try_compile "$LINENO"; then :
8988  sim_cv_has_union_semun="yes"
8989else
8990  sim_cv_has_union_semun="no"
8991fi
8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993fi
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_has_union_semun" >&5
8995$as_echo "$sim_cv_has_union_semun" >&6; }
8996if test x"$sim_cv_has_union_semun" = x"yes"; then :
8997
8998$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
8999
9000
9001fi
9002
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
9004$as_echo_n "checking whether System V semaphores are supported... " >&6; }
9005if ${sim_cv_sysv_sem+:} false; then :
9006  $as_echo_n "(cached) " >&6
9007else
9008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009/* end confdefs.h.  */
9010
9011  #include <sys/types.h>
9012  #include <sys/ipc.h>
9013  #include <sys/sem.h>
9014#ifndef HAVE_UNION_SEMUN
9015  union semun {
9016    int val;
9017    struct semid_ds *buf;
9018    ushort *array;
9019  };
9020#endif
9021int
9022main ()
9023{
9024
9025  union semun arg;
9026  int id = semget(IPC_PRIVATE, 1, IPC_CREAT|0400);
9027  if (id == -1)
9028    return 1;
9029  arg.val = 0; /* avoid implicit type cast to union */
9030  if (semctl(id, 0, IPC_RMID, arg) == -1)
9031    return 1;
9032
9033  ;
9034  return 0;
9035}
9036_ACEOF
9037if ac_fn_c_try_compile "$LINENO"; then :
9038  sim_cv_sysv_sem="yes"
9039else
9040  sim_cv_sysv_sem="no"
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043fi
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_sem" >&5
9045$as_echo "$sim_cv_sysv_sem" >&6; }
9046if test x"$sim_cv_sysv_sem" = x"yes"; then :
9047
9048$as_echo "#define HAVE_SYSV_SEM 1" >>confdefs.h
9049
9050
9051fi
9052
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
9054$as_echo_n "checking whether System V shared memory is supported... " >&6; }
9055if ${sim_cv_sysv_shm+:} false; then :
9056  $as_echo_n "(cached) " >&6
9057else
9058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060
9061#include <sys/types.h>
9062#include <sys/ipc.h>
9063#include <sys/shm.h>
9064int
9065main ()
9066{
9067
9068  int id = shmget(IPC_PRIVATE, 1, IPC_CREAT|0400);
9069  if (id == -1)
9070    return 1;
9071  if (shmctl(id, IPC_RMID, 0) == -1)
9072    return 1;
9073
9074  ;
9075  return 0;
9076}
9077_ACEOF
9078if ac_fn_c_try_compile "$LINENO"; then :
9079  sim_cv_sysv_shm="yes"
9080else
9081  sim_cv_sysv_shm="no"
9082fi
9083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084fi
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_shm" >&5
9086$as_echo "$sim_cv_sysv_shm" >&6; }
9087if test x"$sim_cv_sysv_shm" = x"yes"; then :
9088
9089$as_echo "#define HAVE_SYSV_SHM 1" >>confdefs.h
9090
9091
9092fi
9093
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
9095$as_echo_n "checking for struct termios... " >&6; }
9096if ${sim_cv_termios_struct+:} false; then :
9097  $as_echo_n "(cached) " >&6
9098else
9099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100/* end confdefs.h.  */
9101
9102#include <sys/types.h>
9103#include <sys/termios.h>
9104int
9105main ()
9106{
9107
9108  static struct termios x;
9109  x.c_iflag = 0;
9110  x.c_oflag = 0;
9111  x.c_cflag = 0;
9112  x.c_lflag = 0;
9113  x.c_cc[NCCS] = 0;
9114
9115  ;
9116  return 0;
9117}
9118_ACEOF
9119if ac_fn_c_try_compile "$LINENO"; then :
9120  sim_cv_termios_struct="yes"
9121else
9122  sim_cv_termios_struct="no"
9123fi
9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125fi
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5
9127$as_echo "$sim_cv_termios_struct" >&6; }
9128if test $sim_cv_termios_struct = yes; then
9129
9130$as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h
9131
9132fi
9133
9134if test "$sim_cv_termios_struct" = "yes"; then
9135  if ${sim_cv_termios_cline+:} false; then :
9136  $as_echo_n "(cached) " >&6
9137fi
9138
9139  ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
9140#include <sys/types.h>
9141#include <sys/termios.h>
9142
9143"
9144if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
9145  sim_cv_termios_cline="yes"
9146else
9147  sim_cv_termios_cline="no"
9148fi
9149
9150  if test $sim_cv_termios_cline = yes; then
9151
9152$as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h
9153
9154  fi
9155else
9156  sim_cv_termios_cline=no
9157fi
9158
9159if test "$sim_cv_termios_struct" != "yes"; then
9160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
9161$as_echo_n "checking for struct termio... " >&6; }
9162if ${sim_cv_termio_struct+:} false; then :
9163  $as_echo_n "(cached) " >&6
9164else
9165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166/* end confdefs.h.  */
9167
9168#include <sys/types.h>
9169#include <sys/termio.h>
9170int
9171main ()
9172{
9173
9174  static struct termio x;
9175  x.c_iflag = 0;
9176  x.c_oflag = 0;
9177  x.c_cflag = 0;
9178  x.c_lflag = 0;
9179  x.c_cc[NCC] = 0;
9180
9181  ;
9182  return 0;
9183}
9184_ACEOF
9185if ac_fn_c_try_compile "$LINENO"; then :
9186  sim_cv_termio_struct="yes"
9187else
9188  sim_cv_termio_struct="no"
9189fi
9190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191fi
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5
9193$as_echo "$sim_cv_termio_struct" >&6; }
9194  if test $sim_cv_termio_struct = yes; then
9195
9196$as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h
9197
9198  fi
9199else
9200  sim_cv_termio_struct=no
9201fi
9202
9203if test "$sim_cv_termio_struct" = "yes"; then
9204  if ${sim_cv_termio_cline+:} false; then :
9205  $as_echo_n "(cached) " >&6
9206fi
9207
9208  ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
9209#include <sys/types.h>
9210#include <sys/termio.h>
9211
9212"
9213if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
9214  sim_cv_termio_cline="yes"
9215else
9216  sim_cv_termio_cline="no"
9217fi
9218
9219  if test $sim_cv_termio_cline = yes; then
9220
9221$as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h
9222
9223  fi
9224else
9225  sim_cv_termio_cline=no
9226fi
9227
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
9229$as_echo_n "checking type of array argument to getgroups... " >&6; }
9230if ${ac_cv_type_getgroups+:} false; then :
9231  $as_echo_n "(cached) " >&6
9232else
9233  if test "$cross_compiling" = yes; then :
9234  ac_cv_type_getgroups=cross
9235else
9236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238/* Thanks to Mike Rendell for this test.  */
9239$ac_includes_default
9240#define NGID 256
9241#undef MAX
9242#define MAX(x, y) ((x) > (y) ? (x) : (y))
9243
9244int
9245main ()
9246{
9247  gid_t gidset[NGID];
9248  int i, n;
9249  union { gid_t gval; long int lval; }  val;
9250
9251  val.lval = -1;
9252  for (i = 0; i < NGID; i++)
9253    gidset[i] = val.gval;
9254  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9255		 gidset);
9256  /* Exit non-zero if getgroups seems to require an array of ints.  This
9257     happens when gid_t is short int but getgroups modifies an array
9258     of ints.  */
9259  return n > 0 && gidset[n] != val.gval;
9260}
9261_ACEOF
9262if ac_fn_c_try_run "$LINENO"; then :
9263  ac_cv_type_getgroups=gid_t
9264else
9265  ac_cv_type_getgroups=int
9266fi
9267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9268  conftest.$ac_objext conftest.beam conftest.$ac_ext
9269fi
9270
9271if test $ac_cv_type_getgroups = cross; then
9272        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h.  */
9274#include <unistd.h>
9275
9276_ACEOF
9277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9278  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
9279  ac_cv_type_getgroups=gid_t
9280else
9281  ac_cv_type_getgroups=int
9282fi
9283rm -f conftest*
9284
9285fi
9286fi
9287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
9288$as_echo "$ac_cv_type_getgroups" >&6; }
9289
9290cat >>confdefs.h <<_ACEOF
9291#define GETGROUPS_T $ac_cv_type_getgroups
9292_ACEOF
9293
9294
9295ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9296if test "x$ac_cv_type_mode_t" = xyes; then :
9297
9298else
9299
9300cat >>confdefs.h <<_ACEOF
9301#define mode_t int
9302_ACEOF
9303
9304fi
9305
9306ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9307if test "x$ac_cv_type_off_t" = xyes; then :
9308
9309else
9310
9311cat >>confdefs.h <<_ACEOF
9312#define off_t long int
9313_ACEOF
9314
9315fi
9316
9317ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9318if test "x$ac_cv_type_pid_t" = xyes; then :
9319
9320else
9321
9322cat >>confdefs.h <<_ACEOF
9323#define pid_t int
9324_ACEOF
9325
9326fi
9327
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9329$as_echo_n "checking return type of signal handlers... " >&6; }
9330if ${ac_cv_type_signal+:} false; then :
9331  $as_echo_n "(cached) " >&6
9332else
9333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334/* end confdefs.h.  */
9335#include <sys/types.h>
9336#include <signal.h>
9337
9338int
9339main ()
9340{
9341return *(signal (0, 0)) (0) == 1;
9342  ;
9343  return 0;
9344}
9345_ACEOF
9346if ac_fn_c_try_compile "$LINENO"; then :
9347  ac_cv_type_signal=int
9348else
9349  ac_cv_type_signal=void
9350fi
9351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352fi
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9354$as_echo "$ac_cv_type_signal" >&6; }
9355
9356cat >>confdefs.h <<_ACEOF
9357#define RETSIGTYPE $ac_cv_type_signal
9358_ACEOF
9359
9360
9361ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9362if test "x$ac_cv_type_size_t" = xyes; then :
9363
9364else
9365
9366cat >>confdefs.h <<_ACEOF
9367#define size_t unsigned int
9368_ACEOF
9369
9370fi
9371
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9373$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9374if ${ac_cv_type_uid_t+:} false; then :
9375  $as_echo_n "(cached) " >&6
9376else
9377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h.  */
9379#include <sys/types.h>
9380
9381_ACEOF
9382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9383  $EGREP "uid_t" >/dev/null 2>&1; then :
9384  ac_cv_type_uid_t=yes
9385else
9386  ac_cv_type_uid_t=no
9387fi
9388rm -f conftest*
9389
9390fi
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9392$as_echo "$ac_cv_type_uid_t" >&6; }
9393if test $ac_cv_type_uid_t = no; then
9394
9395$as_echo "#define uid_t int" >>confdefs.h
9396
9397
9398$as_echo "#define gid_t int" >>confdefs.h
9399
9400fi
9401
9402
9403
9404
9405
9406
9407# Set options
9408
9409
9410
9411        enable_dlopen=no
9412
9413
9414  enable_win32_dll=no
9415
9416
9417            # Check whether --enable-shared was given.
9418if test "${enable_shared+set}" = set; then :
9419  enableval=$enable_shared; p=${PACKAGE-default}
9420    case $enableval in
9421    yes) enable_shared=yes ;;
9422    no) enable_shared=no ;;
9423    *)
9424      enable_shared=no
9425      # Look at the argument we got.  We use all the common list separators.
9426      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9427      for pkg in $enableval; do
9428	IFS="$lt_save_ifs"
9429	if test "X$pkg" = "X$p"; then
9430	  enable_shared=yes
9431	fi
9432      done
9433      IFS="$lt_save_ifs"
9434      ;;
9435    esac
9436else
9437  enable_shared=yes
9438fi
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448  # Check whether --enable-static was given.
9449if test "${enable_static+set}" = set; then :
9450  enableval=$enable_static; p=${PACKAGE-default}
9451    case $enableval in
9452    yes) enable_static=yes ;;
9453    no) enable_static=no ;;
9454    *)
9455     enable_static=no
9456      # Look at the argument we got.  We use all the common list separators.
9457      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9458      for pkg in $enableval; do
9459	IFS="$lt_save_ifs"
9460	if test "X$pkg" = "X$p"; then
9461	  enable_static=yes
9462	fi
9463      done
9464      IFS="$lt_save_ifs"
9465      ;;
9466    esac
9467else
9468  enable_static=yes
9469fi
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480# Check whether --with-pic was given.
9481if test "${with_pic+set}" = set; then :
9482  withval=$with_pic; pic_mode="$withval"
9483else
9484  pic_mode=default
9485fi
9486
9487
9488test -z "$pic_mode" && pic_mode=default
9489
9490
9491
9492
9493
9494
9495
9496  # Check whether --enable-fast-install was given.
9497if test "${enable_fast_install+set}" = set; then :
9498  enableval=$enable_fast_install; p=${PACKAGE-default}
9499    case $enableval in
9500    yes) enable_fast_install=yes ;;
9501    no) enable_fast_install=no ;;
9502    *)
9503      enable_fast_install=no
9504      # Look at the argument we got.  We use all the common list separators.
9505      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9506      for pkg in $enableval; do
9507	IFS="$lt_save_ifs"
9508	if test "X$pkg" = "X$p"; then
9509	  enable_fast_install=yes
9510	fi
9511      done
9512      IFS="$lt_save_ifs"
9513      ;;
9514    esac
9515else
9516  enable_fast_install=yes
9517fi
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529# This can be used to rebuild libtool when needed
9530LIBTOOL_DEPS="$ltmain"
9531
9532# Always use our own libtool.
9533LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560test -z "$LN_S" && LN_S="ln -s"
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575if test -n "${ZSH_VERSION+set}" ; then
9576   setopt NO_GLOB_SUBST
9577fi
9578
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9580$as_echo_n "checking for objdir... " >&6; }
9581if ${lt_cv_objdir+:} false; then :
9582  $as_echo_n "(cached) " >&6
9583else
9584  rm -f .libs 2>/dev/null
9585mkdir .libs 2>/dev/null
9586if test -d .libs; then
9587  lt_cv_objdir=.libs
9588else
9589  # MS-DOS does not allow filenames that begin with a dot.
9590  lt_cv_objdir=_libs
9591fi
9592rmdir .libs 2>/dev/null
9593fi
9594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9595$as_echo "$lt_cv_objdir" >&6; }
9596objdir=$lt_cv_objdir
9597
9598
9599
9600
9601
9602cat >>confdefs.h <<_ACEOF
9603#define LT_OBJDIR "$lt_cv_objdir/"
9604_ACEOF
9605
9606
9607
9608
9609case $host_os in
9610aix3*)
9611  # AIX sometimes has problems with the GCC collect2 program.  For some
9612  # reason, if we set the COLLECT_NAMES environment variable, the problems
9613  # vanish in a puff of smoke.
9614  if test "X${COLLECT_NAMES+set}" != Xset; then
9615    COLLECT_NAMES=
9616    export COLLECT_NAMES
9617  fi
9618  ;;
9619esac
9620
9621# Global variables:
9622ofile=libtool
9623can_build_shared=yes
9624
9625# All known linkers require a `.a' archive for static linking (except MSVC,
9626# which needs '.lib').
9627libext=a
9628
9629with_gnu_ld="$lt_cv_prog_gnu_ld"
9630
9631old_CC="$CC"
9632old_CFLAGS="$CFLAGS"
9633
9634# Set sane defaults for various variables
9635test -z "$CC" && CC=cc
9636test -z "$LTCC" && LTCC=$CC
9637test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9638test -z "$LD" && LD=ld
9639test -z "$ac_objext" && ac_objext=o
9640
9641for cc_temp in $compiler""; do
9642  case $cc_temp in
9643    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9644    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9645    \-*) ;;
9646    *) break;;
9647  esac
9648done
9649cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9650
9651
9652# Only perform the check for file, if the check method requires it
9653test -z "$MAGIC_CMD" && MAGIC_CMD=file
9654case $deplibs_check_method in
9655file_magic*)
9656  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9657    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9658$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9659if ${lt_cv_path_MAGIC_CMD+:} false; then :
9660  $as_echo_n "(cached) " >&6
9661else
9662  case $MAGIC_CMD in
9663[\\/*] |  ?:[\\/]*)
9664  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9665  ;;
9666*)
9667  lt_save_MAGIC_CMD="$MAGIC_CMD"
9668  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9669  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9670  for ac_dir in $ac_dummy; do
9671    IFS="$lt_save_ifs"
9672    test -z "$ac_dir" && ac_dir=.
9673    if test -f $ac_dir/${ac_tool_prefix}file; then
9674      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9675      if test -n "$file_magic_test_file"; then
9676	case $deplibs_check_method in
9677	"file_magic "*)
9678	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9679	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9680	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9681	    $EGREP "$file_magic_regex" > /dev/null; then
9682	    :
9683	  else
9684	    cat <<_LT_EOF 1>&2
9685
9686*** Warning: the command libtool uses to detect shared libraries,
9687*** $file_magic_cmd, produces output that libtool cannot recognize.
9688*** The result is that libtool may fail to recognize shared libraries
9689*** as such.  This will affect the creation of libtool libraries that
9690*** depend on shared libraries, but programs linked with such libtool
9691*** libraries will work regardless of this problem.  Nevertheless, you
9692*** may want to report the problem to your system manager and/or to
9693*** bug-libtool@gnu.org
9694
9695_LT_EOF
9696	  fi ;;
9697	esac
9698      fi
9699      break
9700    fi
9701  done
9702  IFS="$lt_save_ifs"
9703  MAGIC_CMD="$lt_save_MAGIC_CMD"
9704  ;;
9705esac
9706fi
9707
9708MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9709if test -n "$MAGIC_CMD"; then
9710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9711$as_echo "$MAGIC_CMD" >&6; }
9712else
9713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714$as_echo "no" >&6; }
9715fi
9716
9717
9718
9719
9720
9721if test -z "$lt_cv_path_MAGIC_CMD"; then
9722  if test -n "$ac_tool_prefix"; then
9723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9724$as_echo_n "checking for file... " >&6; }
9725if ${lt_cv_path_MAGIC_CMD+:} false; then :
9726  $as_echo_n "(cached) " >&6
9727else
9728  case $MAGIC_CMD in
9729[\\/*] |  ?:[\\/]*)
9730  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9731  ;;
9732*)
9733  lt_save_MAGIC_CMD="$MAGIC_CMD"
9734  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9735  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9736  for ac_dir in $ac_dummy; do
9737    IFS="$lt_save_ifs"
9738    test -z "$ac_dir" && ac_dir=.
9739    if test -f $ac_dir/file; then
9740      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9741      if test -n "$file_magic_test_file"; then
9742	case $deplibs_check_method in
9743	"file_magic "*)
9744	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9745	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9746	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9747	    $EGREP "$file_magic_regex" > /dev/null; then
9748	    :
9749	  else
9750	    cat <<_LT_EOF 1>&2
9751
9752*** Warning: the command libtool uses to detect shared libraries,
9753*** $file_magic_cmd, produces output that libtool cannot recognize.
9754*** The result is that libtool may fail to recognize shared libraries
9755*** as such.  This will affect the creation of libtool libraries that
9756*** depend on shared libraries, but programs linked with such libtool
9757*** libraries will work regardless of this problem.  Nevertheless, you
9758*** may want to report the problem to your system manager and/or to
9759*** bug-libtool@gnu.org
9760
9761_LT_EOF
9762	  fi ;;
9763	esac
9764      fi
9765      break
9766    fi
9767  done
9768  IFS="$lt_save_ifs"
9769  MAGIC_CMD="$lt_save_MAGIC_CMD"
9770  ;;
9771esac
9772fi
9773
9774MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9775if test -n "$MAGIC_CMD"; then
9776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9777$as_echo "$MAGIC_CMD" >&6; }
9778else
9779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780$as_echo "no" >&6; }
9781fi
9782
9783
9784  else
9785    MAGIC_CMD=:
9786  fi
9787fi
9788
9789  fi
9790  ;;
9791esac
9792
9793# Use C for the default configuration in the libtool script
9794
9795lt_save_CC="$CC"
9796ac_ext=c
9797ac_cpp='$CPP $CPPFLAGS'
9798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9800ac_compiler_gnu=$ac_cv_c_compiler_gnu
9801
9802
9803# Source file extension for C test sources.
9804ac_ext=c
9805
9806# Object file extension for compiled C test sources.
9807objext=o
9808objext=$objext
9809
9810# Code to be used in simple compile tests
9811lt_simple_compile_test_code="int some_variable = 0;"
9812
9813# Code to be used in simple link tests
9814lt_simple_link_test_code='int main(){return(0);}'
9815
9816
9817
9818
9819
9820
9821
9822# If no C compiler was specified, use CC.
9823LTCC=${LTCC-"$CC"}
9824
9825# If no C compiler flags were specified, use CFLAGS.
9826LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9827
9828# Allow CC to be a program name with arguments.
9829compiler=$CC
9830
9831# Save the default compiler, since it gets overwritten when the other
9832# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9833compiler_DEFAULT=$CC
9834
9835# save warnings/boilerplate of simple test code
9836ac_outfile=conftest.$ac_objext
9837echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9838eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9839_lt_compiler_boilerplate=`cat conftest.err`
9840$RM conftest*
9841
9842ac_outfile=conftest.$ac_objext
9843echo "$lt_simple_link_test_code" >conftest.$ac_ext
9844eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9845_lt_linker_boilerplate=`cat conftest.err`
9846$RM -r conftest*
9847
9848
9849## CAVEAT EMPTOR:
9850## There is no encapsulation within the following macros, do not change
9851## the running order or otherwise move them around unless you know exactly
9852## what you are doing...
9853if test -n "$compiler"; then
9854
9855lt_prog_compiler_no_builtin_flag=
9856
9857if test "$GCC" = yes; then
9858  case $cc_basename in
9859  nvcc*)
9860    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9861  *)
9862    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9863  esac
9864
9865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9866$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9867if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9868  $as_echo_n "(cached) " >&6
9869else
9870  lt_cv_prog_compiler_rtti_exceptions=no
9871   ac_outfile=conftest.$ac_objext
9872   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9873   lt_compiler_flag="-fno-rtti -fno-exceptions"
9874   # Insert the option either (1) after the last *FLAGS variable, or
9875   # (2) before a word containing "conftest.", or (3) at the end.
9876   # Note that $ac_compile itself does not contain backslashes and begins
9877   # with a dollar sign (not a hyphen), so the echo should work correctly.
9878   # The option is referenced via a variable to avoid confusing sed.
9879   lt_compile=`echo "$ac_compile" | $SED \
9880   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9881   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9882   -e 's:$: $lt_compiler_flag:'`
9883   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9884   (eval "$lt_compile" 2>conftest.err)
9885   ac_status=$?
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   if (exit $ac_status) && test -s "$ac_outfile"; then
9889     # The compiler can only warn and ignore the option if not recognized
9890     # So say no if there are warnings other than the usual output.
9891     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9892     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9893     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9894       lt_cv_prog_compiler_rtti_exceptions=yes
9895     fi
9896   fi
9897   $RM conftest*
9898
9899fi
9900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9901$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9902
9903if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9904    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9905else
9906    :
9907fi
9908
9909fi
9910
9911
9912
9913
9914
9915
9916  lt_prog_compiler_wl=
9917lt_prog_compiler_pic=
9918lt_prog_compiler_static=
9919
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9921$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9922
9923  if test "$GCC" = yes; then
9924    lt_prog_compiler_wl='-Wl,'
9925    lt_prog_compiler_static='-static'
9926
9927    case $host_os in
9928      aix*)
9929      # All AIX code is PIC.
9930      if test "$host_cpu" = ia64; then
9931	# AIX 5 now supports IA64 processor
9932	lt_prog_compiler_static='-Bstatic'
9933      fi
9934      lt_prog_compiler_pic='-fPIC'
9935      ;;
9936
9937    amigaos*)
9938      case $host_cpu in
9939      powerpc)
9940            # see comment about AmigaOS4 .so support
9941            lt_prog_compiler_pic='-fPIC'
9942        ;;
9943      m68k)
9944            # FIXME: we need at least 68020 code to build shared libraries, but
9945            # adding the `-m68020' flag to GCC prevents building anything better,
9946            # like `-m68040'.
9947            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9948        ;;
9949      esac
9950      ;;
9951
9952    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9953      # PIC is the default for these OSes.
9954      ;;
9955
9956    mingw* | cygwin* | pw32* | os2* | cegcc*)
9957      # This hack is so that the source file can tell whether it is being
9958      # built for inclusion in a dll (and should export symbols for example).
9959      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9960      # (--disable-auto-import) libraries
9961      lt_prog_compiler_pic='-DDLL_EXPORT'
9962      ;;
9963
9964    darwin* | rhapsody*)
9965      # PIC is the default on this platform
9966      # Common symbols not allowed in MH_DYLIB files
9967      lt_prog_compiler_pic='-fno-common'
9968      ;;
9969
9970    haiku*)
9971      # PIC is the default for Haiku.
9972      # The "-static" flag exists, but is broken.
9973      lt_prog_compiler_static=
9974      ;;
9975
9976    hpux*)
9977      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9978      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9979      # sets the default TLS model and affects inlining.
9980      case $host_cpu in
9981      hppa*64*)
9982	# +Z the default
9983	;;
9984      *)
9985	lt_prog_compiler_pic='-fPIC'
9986	;;
9987      esac
9988      ;;
9989
9990    interix[3-9]*)
9991      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9992      # Instead, we relocate shared libraries at runtime.
9993      ;;
9994
9995    msdosdjgpp*)
9996      # Just because we use GCC doesn't mean we suddenly get shared libraries
9997      # on systems that don't support them.
9998      lt_prog_compiler_can_build_shared=no
9999      enable_shared=no
10000      ;;
10001
10002    *nto* | *qnx*)
10003      # QNX uses GNU C++, but need to define -shared option too, otherwise
10004      # it will coredump.
10005      lt_prog_compiler_pic='-fPIC -shared'
10006      ;;
10007
10008    sysv4*MP*)
10009      if test -d /usr/nec; then
10010	lt_prog_compiler_pic=-Kconform_pic
10011      fi
10012      ;;
10013
10014    *)
10015      lt_prog_compiler_pic='-fPIC'
10016      ;;
10017    esac
10018
10019    case $cc_basename in
10020    nvcc*) # Cuda Compiler Driver 2.2
10021      lt_prog_compiler_wl='-Xlinker '
10022      lt_prog_compiler_pic='-Xcompiler -fPIC'
10023      ;;
10024    esac
10025  else
10026    # PORTME Check for flag to pass linker flags through the system compiler.
10027    case $host_os in
10028    aix*)
10029      lt_prog_compiler_wl='-Wl,'
10030      if test "$host_cpu" = ia64; then
10031	# AIX 5 now supports IA64 processor
10032	lt_prog_compiler_static='-Bstatic'
10033      else
10034	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10035      fi
10036      ;;
10037
10038    mingw* | cygwin* | pw32* | os2* | cegcc*)
10039      # This hack is so that the source file can tell whether it is being
10040      # built for inclusion in a dll (and should export symbols for example).
10041      lt_prog_compiler_pic='-DDLL_EXPORT'
10042      ;;
10043
10044    hpux9* | hpux10* | hpux11*)
10045      lt_prog_compiler_wl='-Wl,'
10046      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10047      # not for PA HP-UX.
10048      case $host_cpu in
10049      hppa*64*|ia64*)
10050	# +Z the default
10051	;;
10052      *)
10053	lt_prog_compiler_pic='+Z'
10054	;;
10055      esac
10056      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10057      lt_prog_compiler_static='${wl}-a ${wl}archive'
10058      ;;
10059
10060    irix5* | irix6* | nonstopux*)
10061      lt_prog_compiler_wl='-Wl,'
10062      # PIC (with -KPIC) is the default.
10063      lt_prog_compiler_static='-non_shared'
10064      ;;
10065
10066    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10067      case $cc_basename in
10068      # old Intel for x86_64 which still supported -KPIC.
10069      ecc*)
10070	lt_prog_compiler_wl='-Wl,'
10071	lt_prog_compiler_pic='-KPIC'
10072	lt_prog_compiler_static='-static'
10073        ;;
10074      # icc used to be incompatible with GCC.
10075      # ICC 10 doesn't accept -KPIC any more.
10076      icc* | ifort*)
10077	lt_prog_compiler_wl='-Wl,'
10078	lt_prog_compiler_pic='-fPIC'
10079	lt_prog_compiler_static='-static'
10080        ;;
10081      # Lahey Fortran 8.1.
10082      lf95*)
10083	lt_prog_compiler_wl='-Wl,'
10084	lt_prog_compiler_pic='--shared'
10085	lt_prog_compiler_static='--static'
10086	;;
10087      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10088        # Portland Group compilers (*not* the Pentium gcc compiler,
10089	# which looks to be a dead project)
10090	lt_prog_compiler_wl='-Wl,'
10091	lt_prog_compiler_pic='-fpic'
10092	lt_prog_compiler_static='-Bstatic'
10093        ;;
10094      ccc*)
10095        lt_prog_compiler_wl='-Wl,'
10096        # All Alpha code is PIC.
10097        lt_prog_compiler_static='-non_shared'
10098        ;;
10099      xl* | bgxl* | bgf* | mpixl*)
10100	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10101	lt_prog_compiler_wl='-Wl,'
10102	lt_prog_compiler_pic='-qpic'
10103	lt_prog_compiler_static='-qstaticlink'
10104	;;
10105      *)
10106	case `$CC -V 2>&1 | sed 5q` in
10107	*Sun\ F* | *Sun*Fortran*)
10108	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10109	  lt_prog_compiler_pic='-KPIC'
10110	  lt_prog_compiler_static='-Bstatic'
10111	  lt_prog_compiler_wl=''
10112	  ;;
10113	*Sun\ C*)
10114	  # Sun C 5.9
10115	  lt_prog_compiler_pic='-KPIC'
10116	  lt_prog_compiler_static='-Bstatic'
10117	  lt_prog_compiler_wl='-Wl,'
10118	  ;;
10119	esac
10120	;;
10121      esac
10122      ;;
10123
10124    newsos6)
10125      lt_prog_compiler_pic='-KPIC'
10126      lt_prog_compiler_static='-Bstatic'
10127      ;;
10128
10129    *nto* | *qnx*)
10130      # QNX uses GNU C++, but need to define -shared option too, otherwise
10131      # it will coredump.
10132      lt_prog_compiler_pic='-fPIC -shared'
10133      ;;
10134
10135    osf3* | osf4* | osf5*)
10136      lt_prog_compiler_wl='-Wl,'
10137      # All OSF/1 code is PIC.
10138      lt_prog_compiler_static='-non_shared'
10139      ;;
10140
10141    rdos*)
10142      lt_prog_compiler_static='-non_shared'
10143      ;;
10144
10145    solaris*)
10146      lt_prog_compiler_pic='-KPIC'
10147      lt_prog_compiler_static='-Bstatic'
10148      case $cc_basename in
10149      f77* | f90* | f95*)
10150	lt_prog_compiler_wl='-Qoption ld ';;
10151      *)
10152	lt_prog_compiler_wl='-Wl,';;
10153      esac
10154      ;;
10155
10156    sunos4*)
10157      lt_prog_compiler_wl='-Qoption ld '
10158      lt_prog_compiler_pic='-PIC'
10159      lt_prog_compiler_static='-Bstatic'
10160      ;;
10161
10162    sysv4 | sysv4.2uw2* | sysv4.3*)
10163      lt_prog_compiler_wl='-Wl,'
10164      lt_prog_compiler_pic='-KPIC'
10165      lt_prog_compiler_static='-Bstatic'
10166      ;;
10167
10168    sysv4*MP*)
10169      if test -d /usr/nec ;then
10170	lt_prog_compiler_pic='-Kconform_pic'
10171	lt_prog_compiler_static='-Bstatic'
10172      fi
10173      ;;
10174
10175    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10176      lt_prog_compiler_wl='-Wl,'
10177      lt_prog_compiler_pic='-KPIC'
10178      lt_prog_compiler_static='-Bstatic'
10179      ;;
10180
10181    unicos*)
10182      lt_prog_compiler_wl='-Wl,'
10183      lt_prog_compiler_can_build_shared=no
10184      ;;
10185
10186    uts4*)
10187      lt_prog_compiler_pic='-pic'
10188      lt_prog_compiler_static='-Bstatic'
10189      ;;
10190
10191    *)
10192      lt_prog_compiler_can_build_shared=no
10193      ;;
10194    esac
10195  fi
10196
10197case $host_os in
10198  # For platforms which do not support PIC, -DPIC is meaningless:
10199  *djgpp*)
10200    lt_prog_compiler_pic=
10201    ;;
10202  *)
10203    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10204    ;;
10205esac
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10207$as_echo "$lt_prog_compiler_pic" >&6; }
10208
10209
10210
10211
10212
10213
10214#
10215# Check to make sure the PIC flag actually works.
10216#
10217if test -n "$lt_prog_compiler_pic"; then
10218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10219$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10220if ${lt_cv_prog_compiler_pic_works+:} false; then :
10221  $as_echo_n "(cached) " >&6
10222else
10223  lt_cv_prog_compiler_pic_works=no
10224   ac_outfile=conftest.$ac_objext
10225   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10226   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10227   # Insert the option either (1) after the last *FLAGS variable, or
10228   # (2) before a word containing "conftest.", or (3) at the end.
10229   # Note that $ac_compile itself does not contain backslashes and begins
10230   # with a dollar sign (not a hyphen), so the echo should work correctly.
10231   # The option is referenced via a variable to avoid confusing sed.
10232   lt_compile=`echo "$ac_compile" | $SED \
10233   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10234   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10235   -e 's:$: $lt_compiler_flag:'`
10236   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10237   (eval "$lt_compile" 2>conftest.err)
10238   ac_status=$?
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   if (exit $ac_status) && test -s "$ac_outfile"; then
10242     # The compiler can only warn and ignore the option if not recognized
10243     # So say no if there are warnings other than the usual output.
10244     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10245     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10246     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10247       lt_cv_prog_compiler_pic_works=yes
10248     fi
10249   fi
10250   $RM conftest*
10251
10252fi
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10254$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10255
10256if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10257    case $lt_prog_compiler_pic in
10258     "" | " "*) ;;
10259     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10260     esac
10261else
10262    lt_prog_compiler_pic=
10263     lt_prog_compiler_can_build_shared=no
10264fi
10265
10266fi
10267
10268
10269
10270
10271
10272
10273#
10274# Check to make sure the static flag actually works.
10275#
10276wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10278$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10279if ${lt_cv_prog_compiler_static_works+:} false; then :
10280  $as_echo_n "(cached) " >&6
10281else
10282  lt_cv_prog_compiler_static_works=no
10283   save_LDFLAGS="$LDFLAGS"
10284   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10285   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10286   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10287     # The linker can only warn and ignore the option if not recognized
10288     # So say no if there are warnings
10289     if test -s conftest.err; then
10290       # Append any errors to the config.log.
10291       cat conftest.err 1>&5
10292       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10293       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10294       if diff conftest.exp conftest.er2 >/dev/null; then
10295         lt_cv_prog_compiler_static_works=yes
10296       fi
10297     else
10298       lt_cv_prog_compiler_static_works=yes
10299     fi
10300   fi
10301   $RM -r conftest*
10302   LDFLAGS="$save_LDFLAGS"
10303
10304fi
10305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10306$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10307
10308if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10309    :
10310else
10311    lt_prog_compiler_static=
10312fi
10313
10314
10315
10316
10317
10318
10319
10320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10321$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10322if ${lt_cv_prog_compiler_c_o+:} false; then :
10323  $as_echo_n "(cached) " >&6
10324else
10325  lt_cv_prog_compiler_c_o=no
10326   $RM -r conftest 2>/dev/null
10327   mkdir conftest
10328   cd conftest
10329   mkdir out
10330   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10331
10332   lt_compiler_flag="-o out/conftest2.$ac_objext"
10333   # Insert the option either (1) after the last *FLAGS variable, or
10334   # (2) before a word containing "conftest.", or (3) at the end.
10335   # Note that $ac_compile itself does not contain backslashes and begins
10336   # with a dollar sign (not a hyphen), so the echo should work correctly.
10337   lt_compile=`echo "$ac_compile" | $SED \
10338   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10339   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10340   -e 's:$: $lt_compiler_flag:'`
10341   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10342   (eval "$lt_compile" 2>out/conftest.err)
10343   ac_status=$?
10344   cat out/conftest.err >&5
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10347   then
10348     # The compiler can only warn and ignore the option if not recognized
10349     # So say no if there are warnings
10350     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10351     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10352     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10353       lt_cv_prog_compiler_c_o=yes
10354     fi
10355   fi
10356   chmod u+w . 2>&5
10357   $RM conftest*
10358   # SGI C++ compiler will create directory out/ii_files/ for
10359   # template instantiation
10360   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10361   $RM out/* && rmdir out
10362   cd ..
10363   $RM -r conftest
10364   $RM conftest*
10365
10366fi
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10368$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10369
10370
10371
10372
10373
10374
10375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10376$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10377if ${lt_cv_prog_compiler_c_o+:} false; then :
10378  $as_echo_n "(cached) " >&6
10379else
10380  lt_cv_prog_compiler_c_o=no
10381   $RM -r conftest 2>/dev/null
10382   mkdir conftest
10383   cd conftest
10384   mkdir out
10385   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10386
10387   lt_compiler_flag="-o out/conftest2.$ac_objext"
10388   # Insert the option either (1) after the last *FLAGS variable, or
10389   # (2) before a word containing "conftest.", or (3) at the end.
10390   # Note that $ac_compile itself does not contain backslashes and begins
10391   # with a dollar sign (not a hyphen), so the echo should work correctly.
10392   lt_compile=`echo "$ac_compile" | $SED \
10393   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10394   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10395   -e 's:$: $lt_compiler_flag:'`
10396   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10397   (eval "$lt_compile" 2>out/conftest.err)
10398   ac_status=$?
10399   cat out/conftest.err >&5
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10402   then
10403     # The compiler can only warn and ignore the option if not recognized
10404     # So say no if there are warnings
10405     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10406     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10407     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10408       lt_cv_prog_compiler_c_o=yes
10409     fi
10410   fi
10411   chmod u+w . 2>&5
10412   $RM conftest*
10413   # SGI C++ compiler will create directory out/ii_files/ for
10414   # template instantiation
10415   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10416   $RM out/* && rmdir out
10417   cd ..
10418   $RM -r conftest
10419   $RM conftest*
10420
10421fi
10422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10423$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10424
10425
10426
10427
10428hard_links="nottested"
10429if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10430  # do not overwrite the value of need_locks provided by the user
10431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10432$as_echo_n "checking if we can lock with hard links... " >&6; }
10433  hard_links=yes
10434  $RM conftest*
10435  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10436  touch conftest.a
10437  ln conftest.a conftest.b 2>&5 || hard_links=no
10438  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10440$as_echo "$hard_links" >&6; }
10441  if test "$hard_links" = no; then
10442    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10443$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10444    need_locks=warn
10445  fi
10446else
10447  need_locks=no
10448fi
10449
10450
10451
10452
10453
10454
10455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10456$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10457
10458  runpath_var=
10459  allow_undefined_flag=
10460  always_export_symbols=no
10461  archive_cmds=
10462  archive_expsym_cmds=
10463  compiler_needs_object=no
10464  enable_shared_with_static_runtimes=no
10465  export_dynamic_flag_spec=
10466  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10467  hardcode_automatic=no
10468  hardcode_direct=no
10469  hardcode_direct_absolute=no
10470  hardcode_libdir_flag_spec=
10471  hardcode_libdir_flag_spec_ld=
10472  hardcode_libdir_separator=
10473  hardcode_minus_L=no
10474  hardcode_shlibpath_var=unsupported
10475  inherit_rpath=no
10476  link_all_deplibs=unknown
10477  module_cmds=
10478  module_expsym_cmds=
10479  old_archive_from_new_cmds=
10480  old_archive_from_expsyms_cmds=
10481  thread_safe_flag_spec=
10482  whole_archive_flag_spec=
10483  # include_expsyms should be a list of space-separated symbols to be *always*
10484  # included in the symbol list
10485  include_expsyms=
10486  # exclude_expsyms can be an extended regexp of symbols to exclude
10487  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10488  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10489  # as well as any symbol that contains `d'.
10490  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10491  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10492  # platforms (ab)use it in PIC code, but their linkers get confused if
10493  # the symbol is explicitly referenced.  Since portable code cannot
10494  # rely on this symbol name, it's probably fine to never include it in
10495  # preloaded symbol tables.
10496  # Exclude shared library initialization/finalization symbols.
10497  extract_expsyms_cmds=
10498
10499  case $host_os in
10500  cygwin* | mingw* | pw32* | cegcc*)
10501    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10502    # When not using gcc, we currently assume that we are using
10503    # Microsoft Visual C++.
10504    if test "$GCC" != yes; then
10505      with_gnu_ld=no
10506    fi
10507    ;;
10508  interix*)
10509    # we just hope/assume this is gcc and not c89 (= MSVC++)
10510    with_gnu_ld=yes
10511    ;;
10512  openbsd*)
10513    with_gnu_ld=no
10514    ;;
10515  esac
10516
10517  ld_shlibs=yes
10518
10519  # On some targets, GNU ld is compatible enough with the native linker
10520  # that we're better off using the native interface for both.
10521  lt_use_gnu_ld_interface=no
10522  if test "$with_gnu_ld" = yes; then
10523    case $host_os in
10524      aix*)
10525	# The AIX port of GNU ld has always aspired to compatibility
10526	# with the native linker.  However, as the warning in the GNU ld
10527	# block says, versions before 2.19.5* couldn't really create working
10528	# shared libraries, regardless of the interface used.
10529	case `$LD -v 2>&1` in
10530	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10531	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10532	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10533	  *)
10534	    lt_use_gnu_ld_interface=yes
10535	    ;;
10536	esac
10537	;;
10538      *)
10539	lt_use_gnu_ld_interface=yes
10540	;;
10541    esac
10542  fi
10543
10544  if test "$lt_use_gnu_ld_interface" = yes; then
10545    # If archive_cmds runs LD, not CC, wlarc should be empty
10546    wlarc='${wl}'
10547
10548    # Set some defaults for GNU ld with shared library support. These
10549    # are reset later if shared libraries are not supported. Putting them
10550    # here allows them to be overridden if necessary.
10551    runpath_var=LD_RUN_PATH
10552    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10553    export_dynamic_flag_spec='${wl}--export-dynamic'
10554    # ancient GNU ld didn't support --whole-archive et. al.
10555    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10556      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10557    else
10558      whole_archive_flag_spec=
10559    fi
10560    supports_anon_versioning=no
10561    case `$LD -v 2>&1` in
10562      *GNU\ gold*) supports_anon_versioning=yes ;;
10563      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10564      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10565      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10566      *\ 2.11.*) ;; # other 2.11 versions
10567      *) supports_anon_versioning=yes ;;
10568    esac
10569
10570    # See if GNU ld supports shared libraries.
10571    case $host_os in
10572    aix[3-9]*)
10573      # On AIX/PPC, the GNU linker is very broken
10574      if test "$host_cpu" != ia64; then
10575	ld_shlibs=no
10576	cat <<_LT_EOF 1>&2
10577
10578*** Warning: the GNU linker, at least up to release 2.19, is reported
10579*** to be unable to reliably create shared libraries on AIX.
10580*** Therefore, libtool is disabling shared libraries support.  If you
10581*** really care for shared libraries, you may want to install binutils
10582*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10583*** You will then need to restart the configuration process.
10584
10585_LT_EOF
10586      fi
10587      ;;
10588
10589    amigaos*)
10590      case $host_cpu in
10591      powerpc)
10592            # see comment about AmigaOS4 .so support
10593            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594            archive_expsym_cmds=''
10595        ;;
10596      m68k)
10597            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)'
10598            hardcode_libdir_flag_spec='-L$libdir'
10599            hardcode_minus_L=yes
10600        ;;
10601      esac
10602      ;;
10603
10604    beos*)
10605      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10606	allow_undefined_flag=unsupported
10607	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10608	# support --undefined.  This deserves some investigation.  FIXME
10609	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610      else
10611	ld_shlibs=no
10612      fi
10613      ;;
10614
10615    cygwin* | mingw* | pw32* | cegcc*)
10616      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10617      # as there is no search path for DLLs.
10618      hardcode_libdir_flag_spec='-L$libdir'
10619      export_dynamic_flag_spec='${wl}--export-all-symbols'
10620      allow_undefined_flag=unsupported
10621      always_export_symbols=no
10622      enable_shared_with_static_runtimes=yes
10623      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10624
10625      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10626        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10627	# If the export-symbols file already is a .def file (1st line
10628	# is EXPORTS), use it as is; otherwise, prepend...
10629	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10630	  cp $export_symbols $output_objdir/$soname.def;
10631	else
10632	  echo EXPORTS > $output_objdir/$soname.def;
10633	  cat $export_symbols >> $output_objdir/$soname.def;
10634	fi~
10635	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10636      else
10637	ld_shlibs=no
10638      fi
10639      ;;
10640
10641    haiku*)
10642      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10643      link_all_deplibs=yes
10644      ;;
10645
10646    interix[3-9]*)
10647      hardcode_direct=no
10648      hardcode_shlibpath_var=no
10649      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10650      export_dynamic_flag_spec='${wl}-E'
10651      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10652      # Instead, shared libraries are loaded at an image base (0x10000000 by
10653      # default) and relocated if they conflict, which is a slow very memory
10654      # consuming and fragmenting process.  To avoid this, we pick a random,
10655      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10656      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10657      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10658      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'
10659      ;;
10660
10661    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10662      tmp_diet=no
10663      if test "$host_os" = linux-dietlibc; then
10664	case $cc_basename in
10665	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10666	esac
10667      fi
10668      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10669	 && test "$tmp_diet" = no
10670      then
10671	tmp_addflag=' $pic_flag'
10672	tmp_sharedflag='-shared'
10673	case $cc_basename,$host_cpu in
10674        pgcc*)				# Portland Group C compiler
10675	  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'
10676	  tmp_addflag=' $pic_flag'
10677	  ;;
10678	pgf77* | pgf90* | pgf95* | pgfortran*)
10679					# Portland Group f77 and f90 compilers
10680	  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'
10681	  tmp_addflag=' $pic_flag -Mnomain' ;;
10682	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10683	  tmp_addflag=' -i_dynamic' ;;
10684	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10685	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10686	ifc* | ifort*)			# Intel Fortran compiler
10687	  tmp_addflag=' -nofor_main' ;;
10688	lf95*)				# Lahey Fortran 8.1
10689	  whole_archive_flag_spec=
10690	  tmp_sharedflag='--shared' ;;
10691	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10692	  tmp_sharedflag='-qmkshrobj'
10693	  tmp_addflag= ;;
10694	nvcc*)	# Cuda Compiler Driver 2.2
10695	  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'
10696	  compiler_needs_object=yes
10697	  ;;
10698	esac
10699	case `$CC -V 2>&1 | sed 5q` in
10700	*Sun\ C*)			# Sun C 5.9
10701	  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'
10702	  compiler_needs_object=yes
10703	  tmp_sharedflag='-G' ;;
10704	*Sun\ F*)			# Sun Fortran 8.3
10705	  tmp_sharedflag='-G' ;;
10706	esac
10707	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10708
10709        if test "x$supports_anon_versioning" = xyes; then
10710          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10711	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10712	    echo "local: *; };" >> $output_objdir/$libname.ver~
10713	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10714        fi
10715
10716	case $cc_basename in
10717	xlf* | bgf* | bgxlf* | mpixlf*)
10718	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10719	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10720	  hardcode_libdir_flag_spec=
10721	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10722	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10723	  if test "x$supports_anon_versioning" = xyes; then
10724	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10725	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10726	      echo "local: *; };" >> $output_objdir/$libname.ver~
10727	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10728	  fi
10729	  ;;
10730	esac
10731      else
10732        ld_shlibs=no
10733      fi
10734      ;;
10735
10736    netbsd*)
10737      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10738	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10739	wlarc=
10740      else
10741	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10742	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10743      fi
10744      ;;
10745
10746    solaris*)
10747      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10748	ld_shlibs=no
10749	cat <<_LT_EOF 1>&2
10750
10751*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10752*** create shared libraries on Solaris systems.  Therefore, libtool
10753*** is disabling shared libraries support.  We urge you to upgrade GNU
10754*** binutils to release 2.9.1 or newer.  Another option is to modify
10755*** your PATH or compiler configuration so that the native linker is
10756*** used, and then restart.
10757
10758_LT_EOF
10759      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10760	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10761	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10762      else
10763	ld_shlibs=no
10764      fi
10765      ;;
10766
10767    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10768      case `$LD -v 2>&1` in
10769        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10770	ld_shlibs=no
10771	cat <<_LT_EOF 1>&2
10772
10773*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10774*** reliably create shared libraries on SCO systems.  Therefore, libtool
10775*** is disabling shared libraries support.  We urge you to upgrade GNU
10776*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10777*** your PATH or compiler configuration so that the native linker is
10778*** used, and then restart.
10779
10780_LT_EOF
10781	;;
10782	*)
10783	  # For security reasons, it is highly recommended that you always
10784	  # use absolute paths for naming shared libraries, and exclude the
10785	  # DT_RUNPATH tag from executables and libraries.  But doing so
10786	  # requires that you compile everything twice, which is a pain.
10787	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10788	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10789	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10790	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10791	  else
10792	    ld_shlibs=no
10793	  fi
10794	;;
10795      esac
10796      ;;
10797
10798    sunos4*)
10799      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10800      wlarc=
10801      hardcode_direct=yes
10802      hardcode_shlibpath_var=no
10803      ;;
10804
10805    *)
10806      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10807	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10808	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10809      else
10810	ld_shlibs=no
10811      fi
10812      ;;
10813    esac
10814
10815    if test "$ld_shlibs" = no; then
10816      runpath_var=
10817      hardcode_libdir_flag_spec=
10818      export_dynamic_flag_spec=
10819      whole_archive_flag_spec=
10820    fi
10821  else
10822    # PORTME fill in a description of your system's linker (not GNU ld)
10823    case $host_os in
10824    aix3*)
10825      allow_undefined_flag=unsupported
10826      always_export_symbols=yes
10827      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'
10828      # Note: this linker hardcodes the directories in LIBPATH if there
10829      # are no directories specified by -L.
10830      hardcode_minus_L=yes
10831      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10832	# Neither direct hardcoding nor static linking is supported with a
10833	# broken collect2.
10834	hardcode_direct=unsupported
10835      fi
10836      ;;
10837
10838    aix[4-9]*)
10839      if test "$host_cpu" = ia64; then
10840	# On IA64, the linker does run time linking by default, so we don't
10841	# have to do anything special.
10842	aix_use_runtimelinking=no
10843	exp_sym_flag='-Bexport'
10844	no_entry_flag=""
10845      else
10846	# If we're using GNU nm, then we don't want the "-C" option.
10847	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10848	# Also, AIX nm treats weak defined symbols like other global
10849	# defined symbols, whereas GNU nm marks them as "W".
10850	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10851	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10852	else
10853	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10854	fi
10855	aix_use_runtimelinking=no
10856
10857	# Test if we are trying to use run time linking or normal
10858	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10859	# need to do runtime linking.
10860	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10861	  for ld_flag in $LDFLAGS; do
10862	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10863	    aix_use_runtimelinking=yes
10864	    break
10865	  fi
10866	  done
10867	  ;;
10868	esac
10869
10870	exp_sym_flag='-bexport'
10871	no_entry_flag='-bnoentry'
10872      fi
10873
10874      # When large executables or shared objects are built, AIX ld can
10875      # have problems creating the table of contents.  If linking a library
10876      # or program results in "error TOC overflow" add -mminimal-toc to
10877      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10878      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10879
10880      archive_cmds=''
10881      hardcode_direct=yes
10882      hardcode_direct_absolute=yes
10883      hardcode_libdir_separator=':'
10884      link_all_deplibs=yes
10885      file_list_spec='${wl}-f,'
10886
10887      if test "$GCC" = yes; then
10888	case $host_os in aix4.[012]|aix4.[012].*)
10889	# We only want to do this on AIX 4.2 and lower, the check
10890	# below for broken collect2 doesn't work under 4.3+
10891	  collect2name=`${CC} -print-prog-name=collect2`
10892	  if test -f "$collect2name" &&
10893	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10894	  then
10895	  # We have reworked collect2
10896	  :
10897	  else
10898	  # We have old collect2
10899	  hardcode_direct=unsupported
10900	  # It fails to find uninstalled libraries when the uninstalled
10901	  # path is not listed in the libpath.  Setting hardcode_minus_L
10902	  # to unsupported forces relinking
10903	  hardcode_minus_L=yes
10904	  hardcode_libdir_flag_spec='-L$libdir'
10905	  hardcode_libdir_separator=
10906	  fi
10907	  ;;
10908	esac
10909	shared_flag='-shared'
10910	if test "$aix_use_runtimelinking" = yes; then
10911	  shared_flag="$shared_flag "'${wl}-G'
10912	fi
10913      else
10914	# not using gcc
10915	if test "$host_cpu" = ia64; then
10916	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10917	# chokes on -Wl,-G. The following line is correct:
10918	  shared_flag='-G'
10919	else
10920	  if test "$aix_use_runtimelinking" = yes; then
10921	    shared_flag='${wl}-G'
10922	  else
10923	    shared_flag='${wl}-bM:SRE'
10924	  fi
10925	fi
10926      fi
10927
10928      export_dynamic_flag_spec='${wl}-bexpall'
10929      # It seems that -bexpall does not export symbols beginning with
10930      # underscore (_), so it is better to generate a list of symbols to export.
10931      always_export_symbols=yes
10932      if test "$aix_use_runtimelinking" = yes; then
10933	# Warning - without using the other runtime loading flags (-brtl),
10934	# -berok will link without error, but may produce a broken library.
10935	allow_undefined_flag='-berok'
10936        # Determine the default libpath from the value encoded in an
10937        # empty executable.
10938        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940
10941int
10942main ()
10943{
10944
10945  ;
10946  return 0;
10947}
10948_ACEOF
10949if ac_fn_c_try_link "$LINENO"; then :
10950
10951lt_aix_libpath_sed='
10952    /Import File Strings/,/^$/ {
10953	/^0/ {
10954	    s/^0  *\(.*\)$/\1/
10955	    p
10956	}
10957    }'
10958aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10959# Check for a 64-bit object if we didn't find anything.
10960if test -z "$aix_libpath"; then
10961  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10962fi
10963fi
10964rm -f core conftest.err conftest.$ac_objext \
10965    conftest$ac_exeext conftest.$ac_ext
10966if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10967
10968        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10969        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10970      else
10971	if test "$host_cpu" = ia64; then
10972	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10973	  allow_undefined_flag="-z nodefs"
10974	  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"
10975	else
10976	 # Determine the default libpath from the value encoded in an
10977	 # empty executable.
10978	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979/* end confdefs.h.  */
10980
10981int
10982main ()
10983{
10984
10985  ;
10986  return 0;
10987}
10988_ACEOF
10989if ac_fn_c_try_link "$LINENO"; then :
10990
10991lt_aix_libpath_sed='
10992    /Import File Strings/,/^$/ {
10993	/^0/ {
10994	    s/^0  *\(.*\)$/\1/
10995	    p
10996	}
10997    }'
10998aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10999# Check for a 64-bit object if we didn't find anything.
11000if test -z "$aix_libpath"; then
11001  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11002fi
11003fi
11004rm -f core conftest.err conftest.$ac_objext \
11005    conftest$ac_exeext conftest.$ac_ext
11006if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11007
11008	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11009	  # Warning - without using the other run time loading flags,
11010	  # -berok will link without error, but may produce a broken library.
11011	  no_undefined_flag=' ${wl}-bernotok'
11012	  allow_undefined_flag=' ${wl}-berok'
11013	  if test "$with_gnu_ld" = yes; then
11014	    # We only use this code for GNU lds that support --whole-archive.
11015	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11016	  else
11017	    # Exported symbols can be pulled into shared objects from archives
11018	    whole_archive_flag_spec='$convenience'
11019	  fi
11020	  archive_cmds_need_lc=yes
11021	  # This is similar to how AIX traditionally builds its shared libraries.
11022	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11023	fi
11024      fi
11025      ;;
11026
11027    amigaos*)
11028      case $host_cpu in
11029      powerpc)
11030            # see comment about AmigaOS4 .so support
11031            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11032            archive_expsym_cmds=''
11033        ;;
11034      m68k)
11035            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)'
11036            hardcode_libdir_flag_spec='-L$libdir'
11037            hardcode_minus_L=yes
11038        ;;
11039      esac
11040      ;;
11041
11042    bsdi[45]*)
11043      export_dynamic_flag_spec=-rdynamic
11044      ;;
11045
11046    cygwin* | mingw* | pw32* | cegcc*)
11047      # When not using gcc, we currently assume that we are using
11048      # Microsoft Visual C++.
11049      # hardcode_libdir_flag_spec is actually meaningless, as there is
11050      # no search path for DLLs.
11051      hardcode_libdir_flag_spec=' '
11052      allow_undefined_flag=unsupported
11053      # Tell ltmain to make .lib files, not .a files.
11054      libext=lib
11055      # Tell ltmain to make .dll files, not .so files.
11056      shrext_cmds=".dll"
11057      # FIXME: Setting linknames here is a bad hack.
11058      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11059      # The linker will automatically build a .lib file if we build a DLL.
11060      old_archive_from_new_cmds='true'
11061      # FIXME: Should let the user specify the lib program.
11062      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11063      fix_srcfile_path='`cygpath -w "$srcfile"`'
11064      enable_shared_with_static_runtimes=yes
11065      ;;
11066
11067    darwin* | rhapsody*)
11068
11069
11070  archive_cmds_need_lc=no
11071  hardcode_direct=no
11072  hardcode_automatic=yes
11073  hardcode_shlibpath_var=unsupported
11074  if test "$lt_cv_ld_force_load" = "yes"; then
11075    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\"`'
11076  else
11077    whole_archive_flag_spec=''
11078  fi
11079  link_all_deplibs=yes
11080  allow_undefined_flag="$_lt_dar_allow_undefined"
11081  case $cc_basename in
11082     ifort*) _lt_dar_can_shared=yes ;;
11083     *) _lt_dar_can_shared=$GCC ;;
11084  esac
11085  if test "$_lt_dar_can_shared" = "yes"; then
11086    output_verbose_link_cmd=func_echo_all
11087    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11088    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11089    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}"
11090    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}"
11091
11092  else
11093  ld_shlibs=no
11094  fi
11095
11096      ;;
11097
11098    dgux*)
11099      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11100      hardcode_libdir_flag_spec='-L$libdir'
11101      hardcode_shlibpath_var=no
11102      ;;
11103
11104    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11105    # support.  Future versions do this automatically, but an explicit c++rt0.o
11106    # does not break anything, and helps significantly (at the cost of a little
11107    # extra space).
11108    freebsd2.2*)
11109      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11110      hardcode_libdir_flag_spec='-R$libdir'
11111      hardcode_direct=yes
11112      hardcode_shlibpath_var=no
11113      ;;
11114
11115    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11116    freebsd2.*)
11117      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11118      hardcode_direct=yes
11119      hardcode_minus_L=yes
11120      hardcode_shlibpath_var=no
11121      ;;
11122
11123    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11124    freebsd* | dragonfly*)
11125      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11126      hardcode_libdir_flag_spec='-R$libdir'
11127      hardcode_direct=yes
11128      hardcode_shlibpath_var=no
11129      ;;
11130
11131    hpux9*)
11132      if test "$GCC" = yes; then
11133	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11134      else
11135	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11136      fi
11137      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11138      hardcode_libdir_separator=:
11139      hardcode_direct=yes
11140
11141      # hardcode_minus_L: Not really in the search PATH,
11142      # but as the default location of the library.
11143      hardcode_minus_L=yes
11144      export_dynamic_flag_spec='${wl}-E'
11145      ;;
11146
11147    hpux10*)
11148      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11149	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11150      else
11151	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11152      fi
11153      if test "$with_gnu_ld" = no; then
11154	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11155	hardcode_libdir_flag_spec_ld='+b $libdir'
11156	hardcode_libdir_separator=:
11157	hardcode_direct=yes
11158	hardcode_direct_absolute=yes
11159	export_dynamic_flag_spec='${wl}-E'
11160	# hardcode_minus_L: Not really in the search PATH,
11161	# but as the default location of the library.
11162	hardcode_minus_L=yes
11163      fi
11164      ;;
11165
11166    hpux11*)
11167      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11168	case $host_cpu in
11169	hppa*64*)
11170	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11171	  ;;
11172	ia64*)
11173	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11174	  ;;
11175	*)
11176	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11177	  ;;
11178	esac
11179      else
11180	case $host_cpu in
11181	hppa*64*)
11182	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11183	  ;;
11184	ia64*)
11185	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11186	  ;;
11187	*)
11188
11189	  # Older versions of the 11.00 compiler do not understand -b yet
11190	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11191	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11192$as_echo_n "checking if $CC understands -b... " >&6; }
11193if ${lt_cv_prog_compiler__b+:} false; then :
11194  $as_echo_n "(cached) " >&6
11195else
11196  lt_cv_prog_compiler__b=no
11197   save_LDFLAGS="$LDFLAGS"
11198   LDFLAGS="$LDFLAGS -b"
11199   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11200   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11201     # The linker can only warn and ignore the option if not recognized
11202     # So say no if there are warnings
11203     if test -s conftest.err; then
11204       # Append any errors to the config.log.
11205       cat conftest.err 1>&5
11206       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11207       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11208       if diff conftest.exp conftest.er2 >/dev/null; then
11209         lt_cv_prog_compiler__b=yes
11210       fi
11211     else
11212       lt_cv_prog_compiler__b=yes
11213     fi
11214   fi
11215   $RM -r conftest*
11216   LDFLAGS="$save_LDFLAGS"
11217
11218fi
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11220$as_echo "$lt_cv_prog_compiler__b" >&6; }
11221
11222if test x"$lt_cv_prog_compiler__b" = xyes; then
11223    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11224else
11225    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11226fi
11227
11228	  ;;
11229	esac
11230      fi
11231      if test "$with_gnu_ld" = no; then
11232	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11233	hardcode_libdir_separator=:
11234
11235	case $host_cpu in
11236	hppa*64*|ia64*)
11237	  hardcode_direct=no
11238	  hardcode_shlibpath_var=no
11239	  ;;
11240	*)
11241	  hardcode_direct=yes
11242	  hardcode_direct_absolute=yes
11243	  export_dynamic_flag_spec='${wl}-E'
11244
11245	  # hardcode_minus_L: Not really in the search PATH,
11246	  # but as the default location of the library.
11247	  hardcode_minus_L=yes
11248	  ;;
11249	esac
11250      fi
11251      ;;
11252
11253    irix5* | irix6* | nonstopux*)
11254      if test "$GCC" = yes; then
11255	archive_cmds='$CC -shared $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'
11256	# Try to use the -exported_symbol ld option, if it does not
11257	# work, assume that -exports_file does not work either and
11258	# implicitly export all symbols.
11259        save_LDFLAGS="$LDFLAGS"
11260        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11261        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262/* end confdefs.h.  */
11263int foo(void) {}
11264_ACEOF
11265if ac_fn_c_try_link "$LINENO"; then :
11266  archive_expsym_cmds='$CC -shared $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'
11267
11268fi
11269rm -f core conftest.err conftest.$ac_objext \
11270    conftest$ac_exeext conftest.$ac_ext
11271        LDFLAGS="$save_LDFLAGS"
11272      else
11273	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'
11274	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'
11275      fi
11276      archive_cmds_need_lc='no'
11277      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11278      hardcode_libdir_separator=:
11279      inherit_rpath=yes
11280      link_all_deplibs=yes
11281      ;;
11282
11283    netbsd*)
11284      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11285	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11286      else
11287	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11288      fi
11289      hardcode_libdir_flag_spec='-R$libdir'
11290      hardcode_direct=yes
11291      hardcode_shlibpath_var=no
11292      ;;
11293
11294    newsos6)
11295      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296      hardcode_direct=yes
11297      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11298      hardcode_libdir_separator=:
11299      hardcode_shlibpath_var=no
11300      ;;
11301
11302    *nto* | *qnx*)
11303      ;;
11304
11305    openbsd*)
11306      if test -f /usr/libexec/ld.so; then
11307	hardcode_direct=yes
11308	hardcode_shlibpath_var=no
11309	hardcode_direct_absolute=yes
11310	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11311	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11312	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11313	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11314	  export_dynamic_flag_spec='${wl}-E'
11315	else
11316	  case $host_os in
11317	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11318	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11319	     hardcode_libdir_flag_spec='-R$libdir'
11320	     ;;
11321	   *)
11322	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11323	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11324	     ;;
11325	  esac
11326	fi
11327      else
11328	ld_shlibs=no
11329      fi
11330      ;;
11331
11332    os2*)
11333      hardcode_libdir_flag_spec='-L$libdir'
11334      hardcode_minus_L=yes
11335      allow_undefined_flag=unsupported
11336      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11337      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11338      ;;
11339
11340    osf3*)
11341      if test "$GCC" = yes; then
11342	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11343	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'
11344      else
11345	allow_undefined_flag=' -expect_unresolved \*'
11346	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'
11347      fi
11348      archive_cmds_need_lc='no'
11349      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11350      hardcode_libdir_separator=:
11351      ;;
11352
11353    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11354      if test "$GCC" = yes; then
11355	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11356	archive_cmds='$CC -shared${allow_undefined_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'
11357	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11358      else
11359	allow_undefined_flag=' -expect_unresolved \*'
11360	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'
11361	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~
11362	$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'
11363
11364	# Both c and cxx compiler support -rpath directly
11365	hardcode_libdir_flag_spec='-rpath $libdir'
11366      fi
11367      archive_cmds_need_lc='no'
11368      hardcode_libdir_separator=:
11369      ;;
11370
11371    solaris*)
11372      no_undefined_flag=' -z defs'
11373      if test "$GCC" = yes; then
11374	wlarc='${wl}'
11375	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11376	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11377	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11378      else
11379	case `$CC -V 2>&1` in
11380	*"Compilers 5.0"*)
11381	  wlarc=''
11382	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11383	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11384	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11385	  ;;
11386	*)
11387	  wlarc='${wl}'
11388	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11389	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11390	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11391	  ;;
11392	esac
11393      fi
11394      hardcode_libdir_flag_spec='-R$libdir'
11395      hardcode_shlibpath_var=no
11396      case $host_os in
11397      solaris2.[0-5] | solaris2.[0-5].*) ;;
11398      *)
11399	# The compiler driver will combine and reorder linker options,
11400	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11401	# but is careful enough not to reorder.
11402	# Supported since Solaris 2.6 (maybe 2.5.1?)
11403	if test "$GCC" = yes; then
11404	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11405	else
11406	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11407	fi
11408	;;
11409      esac
11410      link_all_deplibs=yes
11411      ;;
11412
11413    sunos4*)
11414      if test "x$host_vendor" = xsequent; then
11415	# Use $CC to link under sequent, because it throws in some extra .o
11416	# files that make .init and .fini sections work.
11417	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11418      else
11419	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11420      fi
11421      hardcode_libdir_flag_spec='-L$libdir'
11422      hardcode_direct=yes
11423      hardcode_minus_L=yes
11424      hardcode_shlibpath_var=no
11425      ;;
11426
11427    sysv4)
11428      case $host_vendor in
11429	sni)
11430	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11431	  hardcode_direct=yes # is this really true???
11432	;;
11433	siemens)
11434	  ## LD is ld it makes a PLAMLIB
11435	  ## CC just makes a GrossModule.
11436	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11437	  reload_cmds='$CC -r -o $output$reload_objs'
11438	  hardcode_direct=no
11439        ;;
11440	motorola)
11441	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11442	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11443	;;
11444      esac
11445      runpath_var='LD_RUN_PATH'
11446      hardcode_shlibpath_var=no
11447      ;;
11448
11449    sysv4.3*)
11450      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11451      hardcode_shlibpath_var=no
11452      export_dynamic_flag_spec='-Bexport'
11453      ;;
11454
11455    sysv4*MP*)
11456      if test -d /usr/nec; then
11457	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11458	hardcode_shlibpath_var=no
11459	runpath_var=LD_RUN_PATH
11460	hardcode_runpath_var=yes
11461	ld_shlibs=yes
11462      fi
11463      ;;
11464
11465    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11466      no_undefined_flag='${wl}-z,text'
11467      archive_cmds_need_lc=no
11468      hardcode_shlibpath_var=no
11469      runpath_var='LD_RUN_PATH'
11470
11471      if test "$GCC" = yes; then
11472	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11473	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11474      else
11475	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11476	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11477      fi
11478      ;;
11479
11480    sysv5* | sco3.2v5* | sco5v6*)
11481      # Note: We can NOT use -z defs as we might desire, because we do not
11482      # link with -lc, and that would cause any symbols used from libc to
11483      # always be unresolved, which means just about no library would
11484      # ever link correctly.  If we're not using GNU ld we use -z text
11485      # though, which does catch some bad symbols but isn't as heavy-handed
11486      # as -z defs.
11487      no_undefined_flag='${wl}-z,text'
11488      allow_undefined_flag='${wl}-z,nodefs'
11489      archive_cmds_need_lc=no
11490      hardcode_shlibpath_var=no
11491      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11492      hardcode_libdir_separator=':'
11493      link_all_deplibs=yes
11494      export_dynamic_flag_spec='${wl}-Bexport'
11495      runpath_var='LD_RUN_PATH'
11496
11497      if test "$GCC" = yes; then
11498	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11499	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11500      else
11501	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11502	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11503      fi
11504      ;;
11505
11506    uts4*)
11507      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11508      hardcode_libdir_flag_spec='-L$libdir'
11509      hardcode_shlibpath_var=no
11510      ;;
11511
11512    *)
11513      ld_shlibs=no
11514      ;;
11515    esac
11516
11517    if test x$host_vendor = xsni; then
11518      case $host in
11519      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11520	export_dynamic_flag_spec='${wl}-Blargedynsym'
11521	;;
11522      esac
11523    fi
11524  fi
11525
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11527$as_echo "$ld_shlibs" >&6; }
11528test "$ld_shlibs" = no && can_build_shared=no
11529
11530with_gnu_ld=$with_gnu_ld
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546#
11547# Do we need to explicitly link libc?
11548#
11549case "x$archive_cmds_need_lc" in
11550x|xyes)
11551  # Assume -lc should be added
11552  archive_cmds_need_lc=yes
11553
11554  if test "$enable_shared" = yes && test "$GCC" = yes; then
11555    case $archive_cmds in
11556    *'~'*)
11557      # FIXME: we may have to deal with multi-command sequences.
11558      ;;
11559    '$CC '*)
11560      # Test whether the compiler implicitly links with -lc since on some
11561      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11562      # to ld, don't add -lc before -lgcc.
11563      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11564$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11565if ${lt_cv_archive_cmds_need_lc+:} false; then :
11566  $as_echo_n "(cached) " >&6
11567else
11568  $RM conftest*
11569	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11570
11571	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11572  (eval $ac_compile) 2>&5
11573  ac_status=$?
11574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575  test $ac_status = 0; } 2>conftest.err; then
11576	  soname=conftest
11577	  lib=conftest
11578	  libobjs=conftest.$ac_objext
11579	  deplibs=
11580	  wl=$lt_prog_compiler_wl
11581	  pic_flag=$lt_prog_compiler_pic
11582	  compiler_flags=-v
11583	  linker_flags=-v
11584	  verstring=
11585	  output_objdir=.
11586	  libname=conftest
11587	  lt_save_allow_undefined_flag=$allow_undefined_flag
11588	  allow_undefined_flag=
11589	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11590  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11591  ac_status=$?
11592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11593  test $ac_status = 0; }
11594	  then
11595	    lt_cv_archive_cmds_need_lc=no
11596	  else
11597	    lt_cv_archive_cmds_need_lc=yes
11598	  fi
11599	  allow_undefined_flag=$lt_save_allow_undefined_flag
11600	else
11601	  cat conftest.err 1>&5
11602	fi
11603	$RM conftest*
11604
11605fi
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11607$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11608      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11609      ;;
11610    esac
11611  fi
11612  ;;
11613esac
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11772$as_echo_n "checking dynamic linker characteristics... " >&6; }
11773
11774if test "$GCC" = yes; then
11775  case $host_os in
11776    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11777    *) lt_awk_arg="/^libraries:/" ;;
11778  esac
11779  case $host_os in
11780    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11781    *) lt_sed_strip_eq="s,=/,/,g" ;;
11782  esac
11783  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11784  case $lt_search_path_spec in
11785  *\;*)
11786    # if the path contains ";" then we assume it to be the separator
11787    # otherwise default to the standard path separator (i.e. ":") - it is
11788    # assumed that no part of a normal pathname contains ";" but that should
11789    # okay in the real world where ";" in dirpaths is itself problematic.
11790    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11791    ;;
11792  *)
11793    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11794    ;;
11795  esac
11796  # Ok, now we have the path, separated by spaces, we can step through it
11797  # and add multilib dir if necessary.
11798  lt_tmp_lt_search_path_spec=
11799  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11800  for lt_sys_path in $lt_search_path_spec; do
11801    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11802      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11803    else
11804      test -d "$lt_sys_path" && \
11805	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11806    fi
11807  done
11808  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11809BEGIN {RS=" "; FS="/|\n";} {
11810  lt_foo="";
11811  lt_count=0;
11812  for (lt_i = NF; lt_i > 0; lt_i--) {
11813    if ($lt_i != "" && $lt_i != ".") {
11814      if ($lt_i == "..") {
11815        lt_count++;
11816      } else {
11817        if (lt_count == 0) {
11818          lt_foo="/" $lt_i lt_foo;
11819        } else {
11820          lt_count--;
11821        }
11822      }
11823    }
11824  }
11825  if (lt_foo != "") { lt_freq[lt_foo]++; }
11826  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11827}'`
11828  # AWK program above erroneously prepends '/' to C:/dos/paths
11829  # for these hosts.
11830  case $host_os in
11831    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11832      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11833  esac
11834  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11835else
11836  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11837fi
11838library_names_spec=
11839libname_spec='lib$name'
11840soname_spec=
11841shrext_cmds=".so"
11842postinstall_cmds=
11843postuninstall_cmds=
11844finish_cmds=
11845finish_eval=
11846shlibpath_var=
11847shlibpath_overrides_runpath=unknown
11848version_type=none
11849dynamic_linker="$host_os ld.so"
11850sys_lib_dlsearch_path_spec="/lib /usr/lib"
11851need_lib_prefix=unknown
11852hardcode_into_libs=no
11853
11854# when you set need_version to no, make sure it does not cause -set_version
11855# flags to be left without arguments
11856need_version=unknown
11857
11858case $host_os in
11859aix3*)
11860  version_type=linux
11861  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11862  shlibpath_var=LIBPATH
11863
11864  # AIX 3 has no versioning support, so we append a major version to the name.
11865  soname_spec='${libname}${release}${shared_ext}$major'
11866  ;;
11867
11868aix[4-9]*)
11869  version_type=linux
11870  need_lib_prefix=no
11871  need_version=no
11872  hardcode_into_libs=yes
11873  if test "$host_cpu" = ia64; then
11874    # AIX 5 supports IA64
11875    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11876    shlibpath_var=LD_LIBRARY_PATH
11877  else
11878    # With GCC up to 2.95.x, collect2 would create an import file
11879    # for dependence libraries.  The import file would start with
11880    # the line `#! .'.  This would cause the generated library to
11881    # depend on `.', always an invalid library.  This was fixed in
11882    # development snapshots of GCC prior to 3.0.
11883    case $host_os in
11884      aix4 | aix4.[01] | aix4.[01].*)
11885      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11886	   echo ' yes '
11887	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11888	:
11889      else
11890	can_build_shared=no
11891      fi
11892      ;;
11893    esac
11894    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11895    # soname into executable. Probably we can add versioning support to
11896    # collect2, so additional links can be useful in future.
11897    if test "$aix_use_runtimelinking" = yes; then
11898      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11899      # instead of lib<name>.a to let people know that these are not
11900      # typical AIX shared libraries.
11901      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902    else
11903      # We preserve .a as extension for shared libraries through AIX4.2
11904      # and later when we are not doing run time linking.
11905      library_names_spec='${libname}${release}.a $libname.a'
11906      soname_spec='${libname}${release}${shared_ext}$major'
11907    fi
11908    shlibpath_var=LIBPATH
11909  fi
11910  ;;
11911
11912amigaos*)
11913  case $host_cpu in
11914  powerpc)
11915    # Since July 2007 AmigaOS4 officially supports .so libraries.
11916    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11917    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918    ;;
11919  m68k)
11920    library_names_spec='$libname.ixlibrary $libname.a'
11921    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11922    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11923    ;;
11924  esac
11925  ;;
11926
11927beos*)
11928  library_names_spec='${libname}${shared_ext}'
11929  dynamic_linker="$host_os ld.so"
11930  shlibpath_var=LIBRARY_PATH
11931  ;;
11932
11933bsdi[45]*)
11934  version_type=linux
11935  need_version=no
11936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11937  soname_spec='${libname}${release}${shared_ext}$major'
11938  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11939  shlibpath_var=LD_LIBRARY_PATH
11940  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11941  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11942  # the default ld.so.conf also contains /usr/contrib/lib and
11943  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11944  # libtool to hard-code these into programs
11945  ;;
11946
11947cygwin* | mingw* | pw32* | cegcc*)
11948  version_type=windows
11949  shrext_cmds=".dll"
11950  need_version=no
11951  need_lib_prefix=no
11952
11953  case $GCC,$host_os in
11954  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11955    library_names_spec='$libname.dll.a'
11956    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11957    postinstall_cmds='base_file=`basename \${file}`~
11958      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11959      dldir=$destdir/`dirname \$dlpath`~
11960      test -d \$dldir || mkdir -p \$dldir~
11961      $install_prog $dir/$dlname \$dldir/$dlname~
11962      chmod a+x \$dldir/$dlname~
11963      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11964        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11965      fi'
11966    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11967      dlpath=$dir/\$dldll~
11968       $RM \$dlpath'
11969    shlibpath_overrides_runpath=yes
11970
11971    case $host_os in
11972    cygwin*)
11973      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11974      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11975
11976      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11977      ;;
11978    mingw* | cegcc*)
11979      # MinGW DLLs use traditional 'lib' prefix
11980      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11981      ;;
11982    pw32*)
11983      # pw32 DLLs use 'pw' prefix rather than 'lib'
11984      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11985      ;;
11986    esac
11987    ;;
11988
11989  *)
11990    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11991    ;;
11992  esac
11993  dynamic_linker='Win32 ld.exe'
11994  # FIXME: first we should search . and the directory the executable is in
11995  shlibpath_var=PATH
11996  ;;
11997
11998darwin* | rhapsody*)
11999  dynamic_linker="$host_os dyld"
12000  version_type=darwin
12001  need_lib_prefix=no
12002  need_version=no
12003  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12004  soname_spec='${libname}${release}${major}$shared_ext'
12005  shlibpath_overrides_runpath=yes
12006  shlibpath_var=DYLD_LIBRARY_PATH
12007  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12008
12009  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12010  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12011  ;;
12012
12013dgux*)
12014  version_type=linux
12015  need_lib_prefix=no
12016  need_version=no
12017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12018  soname_spec='${libname}${release}${shared_ext}$major'
12019  shlibpath_var=LD_LIBRARY_PATH
12020  ;;
12021
12022freebsd* | dragonfly*)
12023  # DragonFly does not have aout.  When/if they implement a new
12024  # versioning mechanism, adjust this.
12025  if test -x /usr/bin/objformat; then
12026    objformat=`/usr/bin/objformat`
12027  else
12028    case $host_os in
12029    freebsd[23].*) objformat=aout ;;
12030    *) objformat=elf ;;
12031    esac
12032  fi
12033  version_type=freebsd-$objformat
12034  case $version_type in
12035    freebsd-elf*)
12036      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12037      need_version=no
12038      need_lib_prefix=no
12039      ;;
12040    freebsd-*)
12041      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12042      need_version=yes
12043      ;;
12044  esac
12045  shlibpath_var=LD_LIBRARY_PATH
12046  case $host_os in
12047  freebsd2.*)
12048    shlibpath_overrides_runpath=yes
12049    ;;
12050  freebsd3.[01]* | freebsdelf3.[01]*)
12051    shlibpath_overrides_runpath=yes
12052    hardcode_into_libs=yes
12053    ;;
12054  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12055  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12056    shlibpath_overrides_runpath=no
12057    hardcode_into_libs=yes
12058    ;;
12059  *) # from 4.6 on, and DragonFly
12060    shlibpath_overrides_runpath=yes
12061    hardcode_into_libs=yes
12062    ;;
12063  esac
12064  ;;
12065
12066haiku*)
12067  version_type=linux
12068  need_lib_prefix=no
12069  need_version=no
12070  dynamic_linker="$host_os runtime_loader"
12071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12072  soname_spec='${libname}${release}${shared_ext}$major'
12073  shlibpath_var=LIBRARY_PATH
12074  shlibpath_overrides_runpath=yes
12075  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12076  hardcode_into_libs=yes
12077  ;;
12078
12079hpux9* | hpux10* | hpux11*)
12080  # Give a soname corresponding to the major version so that dld.sl refuses to
12081  # link against other versions.
12082  version_type=sunos
12083  need_lib_prefix=no
12084  need_version=no
12085  case $host_cpu in
12086  ia64*)
12087    shrext_cmds='.so'
12088    hardcode_into_libs=yes
12089    dynamic_linker="$host_os dld.so"
12090    shlibpath_var=LD_LIBRARY_PATH
12091    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12092    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093    soname_spec='${libname}${release}${shared_ext}$major'
12094    if test "X$HPUX_IA64_MODE" = X32; then
12095      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12096    else
12097      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12098    fi
12099    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12100    ;;
12101  hppa*64*)
12102    shrext_cmds='.sl'
12103    hardcode_into_libs=yes
12104    dynamic_linker="$host_os dld.sl"
12105    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12106    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12107    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108    soname_spec='${libname}${release}${shared_ext}$major'
12109    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12110    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12111    ;;
12112  *)
12113    shrext_cmds='.sl'
12114    dynamic_linker="$host_os dld.sl"
12115    shlibpath_var=SHLIB_PATH
12116    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12117    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118    soname_spec='${libname}${release}${shared_ext}$major'
12119    ;;
12120  esac
12121  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12122  postinstall_cmds='chmod 555 $lib'
12123  # or fails outright, so override atomically:
12124  install_override_mode=555
12125  ;;
12126
12127interix[3-9]*)
12128  version_type=linux
12129  need_lib_prefix=no
12130  need_version=no
12131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12132  soname_spec='${libname}${release}${shared_ext}$major'
12133  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12134  shlibpath_var=LD_LIBRARY_PATH
12135  shlibpath_overrides_runpath=no
12136  hardcode_into_libs=yes
12137  ;;
12138
12139irix5* | irix6* | nonstopux*)
12140  case $host_os in
12141    nonstopux*) version_type=nonstopux ;;
12142    *)
12143	if test "$lt_cv_prog_gnu_ld" = yes; then
12144		version_type=linux
12145	else
12146		version_type=irix
12147	fi ;;
12148  esac
12149  need_lib_prefix=no
12150  need_version=no
12151  soname_spec='${libname}${release}${shared_ext}$major'
12152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12153  case $host_os in
12154  irix5* | nonstopux*)
12155    libsuff= shlibsuff=
12156    ;;
12157  *)
12158    case $LD in # libtool.m4 will add one of these switches to LD
12159    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12160      libsuff= shlibsuff= libmagic=32-bit;;
12161    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12162      libsuff=32 shlibsuff=N32 libmagic=N32;;
12163    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12164      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12165    *) libsuff= shlibsuff= libmagic=never-match;;
12166    esac
12167    ;;
12168  esac
12169  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12170  shlibpath_overrides_runpath=no
12171  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12172  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12173  hardcode_into_libs=yes
12174  ;;
12175
12176# No shared lib support for Linux oldld, aout, or coff.
12177linux*oldld* | linux*aout* | linux*coff*)
12178  dynamic_linker=no
12179  ;;
12180
12181# This must be Linux ELF.
12182
12183# uclinux* changes (here and below) have been submitted to the libtool
12184# project, but have not yet been accepted: they are GCC-local changes
12185# for the time being.  (See
12186# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12187linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
12188  version_type=linux
12189  need_lib_prefix=no
12190  need_version=no
12191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12192  soname_spec='${libname}${release}${shared_ext}$major'
12193  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12194  shlibpath_var=LD_LIBRARY_PATH
12195  shlibpath_overrides_runpath=no
12196
12197  # Some binutils ld are patched to set DT_RUNPATH
12198  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12199  $as_echo_n "(cached) " >&6
12200else
12201  lt_cv_shlibpath_overrides_runpath=no
12202    save_LDFLAGS=$LDFLAGS
12203    save_libdir=$libdir
12204    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12205	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12206    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207/* end confdefs.h.  */
12208
12209int
12210main ()
12211{
12212
12213  ;
12214  return 0;
12215}
12216_ACEOF
12217if ac_fn_c_try_link "$LINENO"; then :
12218  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12219  lt_cv_shlibpath_overrides_runpath=yes
12220fi
12221fi
12222rm -f core conftest.err conftest.$ac_objext \
12223    conftest$ac_exeext conftest.$ac_ext
12224    LDFLAGS=$save_LDFLAGS
12225    libdir=$save_libdir
12226
12227fi
12228
12229  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12230
12231  # This implies no fast_install, which is unacceptable.
12232  # Some rework will be needed to allow for fast_install
12233  # before this can be enabled.
12234  hardcode_into_libs=yes
12235
12236  # Append ld.so.conf contents to the search path
12237  if test -f /etc/ld.so.conf; then
12238    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' ' '`
12239    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12240  fi
12241
12242  # We used to test for /lib/ld.so.1 and disable shared libraries on
12243  # powerpc, because MkLinux only supported shared libraries with the
12244  # GNU dynamic linker.  Since this was broken with cross compilers,
12245  # most powerpc-linux boxes support dynamic linking these days and
12246  # people can always --disable-shared, the test was removed, and we
12247  # assume the GNU/Linux dynamic linker is in use.
12248  dynamic_linker='GNU/Linux ld.so'
12249  ;;
12250
12251netbsd*)
12252  version_type=sunos
12253  need_lib_prefix=no
12254  need_version=no
12255  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12256    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12257    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12258    dynamic_linker='NetBSD (a.out) ld.so'
12259  else
12260    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12261    soname_spec='${libname}${release}${shared_ext}$major'
12262    dynamic_linker='NetBSD ld.elf_so'
12263  fi
12264  shlibpath_var=LD_LIBRARY_PATH
12265  shlibpath_overrides_runpath=yes
12266  hardcode_into_libs=yes
12267  ;;
12268
12269newsos6)
12270  version_type=linux
12271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12272  shlibpath_var=LD_LIBRARY_PATH
12273  shlibpath_overrides_runpath=yes
12274  ;;
12275
12276*nto* | *qnx*)
12277  version_type=qnx
12278  need_lib_prefix=no
12279  need_version=no
12280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12281  soname_spec='${libname}${release}${shared_ext}$major'
12282  shlibpath_var=LD_LIBRARY_PATH
12283  shlibpath_overrides_runpath=no
12284  hardcode_into_libs=yes
12285  dynamic_linker='ldqnx.so'
12286  ;;
12287
12288openbsd*)
12289  version_type=sunos
12290  sys_lib_dlsearch_path_spec="/usr/lib"
12291  need_lib_prefix=no
12292  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12293  case $host_os in
12294    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12295    *)				need_version=no  ;;
12296  esac
12297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12298  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12299  shlibpath_var=LD_LIBRARY_PATH
12300  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12301    case $host_os in
12302      openbsd2.[89] | openbsd2.[89].*)
12303	shlibpath_overrides_runpath=no
12304	;;
12305      *)
12306	shlibpath_overrides_runpath=yes
12307	;;
12308      esac
12309  else
12310    shlibpath_overrides_runpath=yes
12311  fi
12312  ;;
12313
12314os2*)
12315  libname_spec='$name'
12316  shrext_cmds=".dll"
12317  need_lib_prefix=no
12318  library_names_spec='$libname${shared_ext} $libname.a'
12319  dynamic_linker='OS/2 ld.exe'
12320  shlibpath_var=LIBPATH
12321  ;;
12322
12323osf3* | osf4* | osf5*)
12324  version_type=osf
12325  need_lib_prefix=no
12326  need_version=no
12327  soname_spec='${libname}${release}${shared_ext}$major'
12328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329  shlibpath_var=LD_LIBRARY_PATH
12330  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12331  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12332  ;;
12333
12334rdos*)
12335  dynamic_linker=no
12336  ;;
12337
12338solaris*)
12339  version_type=linux
12340  need_lib_prefix=no
12341  need_version=no
12342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343  soname_spec='${libname}${release}${shared_ext}$major'
12344  shlibpath_var=LD_LIBRARY_PATH
12345  shlibpath_overrides_runpath=yes
12346  hardcode_into_libs=yes
12347  # ldd complains unless libraries are executable
12348  postinstall_cmds='chmod +x $lib'
12349  ;;
12350
12351sunos4*)
12352  version_type=sunos
12353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12354  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12355  shlibpath_var=LD_LIBRARY_PATH
12356  shlibpath_overrides_runpath=yes
12357  if test "$with_gnu_ld" = yes; then
12358    need_lib_prefix=no
12359  fi
12360  need_version=yes
12361  ;;
12362
12363sysv4 | sysv4.3*)
12364  version_type=linux
12365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366  soname_spec='${libname}${release}${shared_ext}$major'
12367  shlibpath_var=LD_LIBRARY_PATH
12368  case $host_vendor in
12369    sni)
12370      shlibpath_overrides_runpath=no
12371      need_lib_prefix=no
12372      runpath_var=LD_RUN_PATH
12373      ;;
12374    siemens)
12375      need_lib_prefix=no
12376      ;;
12377    motorola)
12378      need_lib_prefix=no
12379      need_version=no
12380      shlibpath_overrides_runpath=no
12381      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12382      ;;
12383  esac
12384  ;;
12385
12386sysv4*MP*)
12387  if test -d /usr/nec ;then
12388    version_type=linux
12389    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12390    soname_spec='$libname${shared_ext}.$major'
12391    shlibpath_var=LD_LIBRARY_PATH
12392  fi
12393  ;;
12394
12395sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12396  version_type=freebsd-elf
12397  need_lib_prefix=no
12398  need_version=no
12399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12400  soname_spec='${libname}${release}${shared_ext}$major'
12401  shlibpath_var=LD_LIBRARY_PATH
12402  shlibpath_overrides_runpath=yes
12403  hardcode_into_libs=yes
12404  if test "$with_gnu_ld" = yes; then
12405    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12406  else
12407    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12408    case $host_os in
12409      sco3.2v5*)
12410        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12411	;;
12412    esac
12413  fi
12414  sys_lib_dlsearch_path_spec='/usr/lib'
12415  ;;
12416
12417tpf*)
12418  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12419  version_type=linux
12420  need_lib_prefix=no
12421  need_version=no
12422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12423  shlibpath_var=LD_LIBRARY_PATH
12424  shlibpath_overrides_runpath=no
12425  hardcode_into_libs=yes
12426  ;;
12427
12428uts4*)
12429  version_type=linux
12430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12431  soname_spec='${libname}${release}${shared_ext}$major'
12432  shlibpath_var=LD_LIBRARY_PATH
12433  ;;
12434
12435# Shared libraries for VwWorks, >= 7 only at this stage
12436# and (fpic) still incompatible with "large" code models
12437# in a few configurations. Only for RTP mode in any case,
12438# and upon explicit request at configure time.
12439vxworks7*)
12440  dynamic_linker=no
12441  case ${with_multisubdir}-${enable_shared} in
12442    *large*)
12443      ;;
12444    *mrtp*-yes)
12445      version_type=linux
12446      need_lib_prefix=no
12447      need_version=no
12448      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12449      soname_spec='${libname}${release}${shared_ext}$major'
12450      dynamic_linker="$host_os module_loader"
12451      ;;
12452  esac
12453  ;;
12454*)
12455  dynamic_linker=no
12456  ;;
12457esac
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12459$as_echo "$dynamic_linker" >&6; }
12460test "$dynamic_linker" = no && can_build_shared=no
12461
12462variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12463if test "$GCC" = yes; then
12464  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12465fi
12466
12467if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12468  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12469fi
12470if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12471  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12472fi
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12566$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12567hardcode_action=
12568if test -n "$hardcode_libdir_flag_spec" ||
12569   test -n "$runpath_var" ||
12570   test "X$hardcode_automatic" = "Xyes" ; then
12571
12572  # We can hardcode non-existent directories.
12573  if test "$hardcode_direct" != no &&
12574     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12575     # have to relink, otherwise we might link with an installed library
12576     # when we should be linking with a yet-to-be-installed one
12577     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12578     test "$hardcode_minus_L" != no; then
12579    # Linking always hardcodes the temporary library directory.
12580    hardcode_action=relink
12581  else
12582    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12583    hardcode_action=immediate
12584  fi
12585else
12586  # We cannot hardcode anything, or else we can only hardcode existing
12587  # directories.
12588  hardcode_action=unsupported
12589fi
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12591$as_echo "$hardcode_action" >&6; }
12592
12593if test "$hardcode_action" = relink ||
12594   test "$inherit_rpath" = yes; then
12595  # Fast installation is not supported
12596  enable_fast_install=no
12597elif test "$shlibpath_overrides_runpath" = yes ||
12598     test "$enable_shared" = no; then
12599  # Fast installation is not necessary
12600  enable_fast_install=needless
12601fi
12602
12603
12604
12605
12606
12607
12608  if test "x$enable_dlopen" != xyes; then
12609  enable_dlopen=unknown
12610  enable_dlopen_self=unknown
12611  enable_dlopen_self_static=unknown
12612else
12613  lt_cv_dlopen=no
12614  lt_cv_dlopen_libs=
12615
12616  case $host_os in
12617  beos*)
12618    lt_cv_dlopen="load_add_on"
12619    lt_cv_dlopen_libs=
12620    lt_cv_dlopen_self=yes
12621    ;;
12622
12623  mingw* | pw32* | cegcc*)
12624    lt_cv_dlopen="LoadLibrary"
12625    lt_cv_dlopen_libs=
12626    ;;
12627
12628  cygwin*)
12629    lt_cv_dlopen="dlopen"
12630    lt_cv_dlopen_libs=
12631    ;;
12632
12633  darwin*)
12634  # if libdl is installed we need to link against it
12635    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12636$as_echo_n "checking for dlopen in -ldl... " >&6; }
12637if ${ac_cv_lib_dl_dlopen+:} false; then :
12638  $as_echo_n "(cached) " >&6
12639else
12640  ac_check_lib_save_LIBS=$LIBS
12641LIBS="-ldl  $LIBS"
12642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643/* end confdefs.h.  */
12644
12645/* Override any GCC internal prototype to avoid an error.
12646   Use char because int might match the return type of a GCC
12647   builtin and then its argument prototype would still apply.  */
12648#ifdef __cplusplus
12649extern "C"
12650#endif
12651char dlopen ();
12652int
12653main ()
12654{
12655return dlopen ();
12656  ;
12657  return 0;
12658}
12659_ACEOF
12660if ac_fn_c_try_link "$LINENO"; then :
12661  ac_cv_lib_dl_dlopen=yes
12662else
12663  ac_cv_lib_dl_dlopen=no
12664fi
12665rm -f core conftest.err conftest.$ac_objext \
12666    conftest$ac_exeext conftest.$ac_ext
12667LIBS=$ac_check_lib_save_LIBS
12668fi
12669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12670$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12671if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12672  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12673else
12674
12675    lt_cv_dlopen="dyld"
12676    lt_cv_dlopen_libs=
12677    lt_cv_dlopen_self=yes
12678
12679fi
12680
12681    ;;
12682
12683  *)
12684    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12685if test "x$ac_cv_func_shl_load" = xyes; then :
12686  lt_cv_dlopen="shl_load"
12687else
12688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12689$as_echo_n "checking for shl_load in -ldld... " >&6; }
12690if ${ac_cv_lib_dld_shl_load+:} false; then :
12691  $as_echo_n "(cached) " >&6
12692else
12693  ac_check_lib_save_LIBS=$LIBS
12694LIBS="-ldld  $LIBS"
12695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696/* end confdefs.h.  */
12697
12698/* Override any GCC internal prototype to avoid an error.
12699   Use char because int might match the return type of a GCC
12700   builtin and then its argument prototype would still apply.  */
12701#ifdef __cplusplus
12702extern "C"
12703#endif
12704char shl_load ();
12705int
12706main ()
12707{
12708return shl_load ();
12709  ;
12710  return 0;
12711}
12712_ACEOF
12713if ac_fn_c_try_link "$LINENO"; then :
12714  ac_cv_lib_dld_shl_load=yes
12715else
12716  ac_cv_lib_dld_shl_load=no
12717fi
12718rm -f core conftest.err conftest.$ac_objext \
12719    conftest$ac_exeext conftest.$ac_ext
12720LIBS=$ac_check_lib_save_LIBS
12721fi
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12723$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12724if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12725  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12726else
12727  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12728if test "x$ac_cv_func_dlopen" = xyes; then :
12729  lt_cv_dlopen="dlopen"
12730else
12731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12732$as_echo_n "checking for dlopen in -ldl... " >&6; }
12733if ${ac_cv_lib_dl_dlopen+:} false; then :
12734  $as_echo_n "(cached) " >&6
12735else
12736  ac_check_lib_save_LIBS=$LIBS
12737LIBS="-ldl  $LIBS"
12738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739/* end confdefs.h.  */
12740
12741/* Override any GCC internal prototype to avoid an error.
12742   Use char because int might match the return type of a GCC
12743   builtin and then its argument prototype would still apply.  */
12744#ifdef __cplusplus
12745extern "C"
12746#endif
12747char dlopen ();
12748int
12749main ()
12750{
12751return dlopen ();
12752  ;
12753  return 0;
12754}
12755_ACEOF
12756if ac_fn_c_try_link "$LINENO"; then :
12757  ac_cv_lib_dl_dlopen=yes
12758else
12759  ac_cv_lib_dl_dlopen=no
12760fi
12761rm -f core conftest.err conftest.$ac_objext \
12762    conftest$ac_exeext conftest.$ac_ext
12763LIBS=$ac_check_lib_save_LIBS
12764fi
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12766$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12767if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12768  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12769else
12770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12771$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12772if ${ac_cv_lib_svld_dlopen+:} false; then :
12773  $as_echo_n "(cached) " >&6
12774else
12775  ac_check_lib_save_LIBS=$LIBS
12776LIBS="-lsvld  $LIBS"
12777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778/* end confdefs.h.  */
12779
12780/* Override any GCC internal prototype to avoid an error.
12781   Use char because int might match the return type of a GCC
12782   builtin and then its argument prototype would still apply.  */
12783#ifdef __cplusplus
12784extern "C"
12785#endif
12786char dlopen ();
12787int
12788main ()
12789{
12790return dlopen ();
12791  ;
12792  return 0;
12793}
12794_ACEOF
12795if ac_fn_c_try_link "$LINENO"; then :
12796  ac_cv_lib_svld_dlopen=yes
12797else
12798  ac_cv_lib_svld_dlopen=no
12799fi
12800rm -f core conftest.err conftest.$ac_objext \
12801    conftest$ac_exeext conftest.$ac_ext
12802LIBS=$ac_check_lib_save_LIBS
12803fi
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12805$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12806if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12807  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12808else
12809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12810$as_echo_n "checking for dld_link in -ldld... " >&6; }
12811if ${ac_cv_lib_dld_dld_link+:} false; then :
12812  $as_echo_n "(cached) " >&6
12813else
12814  ac_check_lib_save_LIBS=$LIBS
12815LIBS="-ldld  $LIBS"
12816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817/* end confdefs.h.  */
12818
12819/* Override any GCC internal prototype to avoid an error.
12820   Use char because int might match the return type of a GCC
12821   builtin and then its argument prototype would still apply.  */
12822#ifdef __cplusplus
12823extern "C"
12824#endif
12825char dld_link ();
12826int
12827main ()
12828{
12829return dld_link ();
12830  ;
12831  return 0;
12832}
12833_ACEOF
12834if ac_fn_c_try_link "$LINENO"; then :
12835  ac_cv_lib_dld_dld_link=yes
12836else
12837  ac_cv_lib_dld_dld_link=no
12838fi
12839rm -f core conftest.err conftest.$ac_objext \
12840    conftest$ac_exeext conftest.$ac_ext
12841LIBS=$ac_check_lib_save_LIBS
12842fi
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12844$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12845if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12846  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12847fi
12848
12849
12850fi
12851
12852
12853fi
12854
12855
12856fi
12857
12858
12859fi
12860
12861
12862fi
12863
12864    ;;
12865  esac
12866
12867  if test "x$lt_cv_dlopen" != xno; then
12868    enable_dlopen=yes
12869  else
12870    enable_dlopen=no
12871  fi
12872
12873  case $lt_cv_dlopen in
12874  dlopen)
12875    save_CPPFLAGS="$CPPFLAGS"
12876    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12877
12878    save_LDFLAGS="$LDFLAGS"
12879    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12880
12881    save_LIBS="$LIBS"
12882    LIBS="$lt_cv_dlopen_libs $LIBS"
12883
12884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12885$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12886if ${lt_cv_dlopen_self+:} false; then :
12887  $as_echo_n "(cached) " >&6
12888else
12889  	  if test "$cross_compiling" = yes; then :
12890  lt_cv_dlopen_self=cross
12891else
12892  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12893  lt_status=$lt_dlunknown
12894  cat > conftest.$ac_ext <<_LT_EOF
12895#line 12895 "configure"
12896#include "confdefs.h"
12897
12898#if HAVE_DLFCN_H
12899#include <dlfcn.h>
12900#endif
12901
12902#include <stdio.h>
12903
12904#ifdef RTLD_GLOBAL
12905#  define LT_DLGLOBAL		RTLD_GLOBAL
12906#else
12907#  ifdef DL_GLOBAL
12908#    define LT_DLGLOBAL		DL_GLOBAL
12909#  else
12910#    define LT_DLGLOBAL		0
12911#  endif
12912#endif
12913
12914/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12915   find out it does not work in some platform. */
12916#ifndef LT_DLLAZY_OR_NOW
12917#  ifdef RTLD_LAZY
12918#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12919#  else
12920#    ifdef DL_LAZY
12921#      define LT_DLLAZY_OR_NOW		DL_LAZY
12922#    else
12923#      ifdef RTLD_NOW
12924#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12925#      else
12926#        ifdef DL_NOW
12927#          define LT_DLLAZY_OR_NOW	DL_NOW
12928#        else
12929#          define LT_DLLAZY_OR_NOW	0
12930#        endif
12931#      endif
12932#    endif
12933#  endif
12934#endif
12935
12936/* When -fvisbility=hidden is used, assume the code has been annotated
12937   correspondingly for the symbols needed.  */
12938#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12939void fnord () __attribute__((visibility("default")));
12940#endif
12941
12942void fnord () { int i=42; }
12943int main ()
12944{
12945  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12946  int status = $lt_dlunknown;
12947
12948  if (self)
12949    {
12950      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12951      else
12952        {
12953	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12954          else puts (dlerror ());
12955	}
12956      /* dlclose (self); */
12957    }
12958  else
12959    puts (dlerror ());
12960
12961  return status;
12962}
12963_LT_EOF
12964  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12965  (eval $ac_link) 2>&5
12966  ac_status=$?
12967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12968  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12969    (./conftest; exit; ) >&5 2>/dev/null
12970    lt_status=$?
12971    case x$lt_status in
12972      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12973      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12974      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12975    esac
12976  else :
12977    # compilation failed
12978    lt_cv_dlopen_self=no
12979  fi
12980fi
12981rm -fr conftest*
12982
12983
12984fi
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12986$as_echo "$lt_cv_dlopen_self" >&6; }
12987
12988    if test "x$lt_cv_dlopen_self" = xyes; then
12989      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12990      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12991$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12992if ${lt_cv_dlopen_self_static+:} false; then :
12993  $as_echo_n "(cached) " >&6
12994else
12995  	  if test "$cross_compiling" = yes; then :
12996  lt_cv_dlopen_self_static=cross
12997else
12998  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12999  lt_status=$lt_dlunknown
13000  cat > conftest.$ac_ext <<_LT_EOF
13001#line 13001 "configure"
13002#include "confdefs.h"
13003
13004#if HAVE_DLFCN_H
13005#include <dlfcn.h>
13006#endif
13007
13008#include <stdio.h>
13009
13010#ifdef RTLD_GLOBAL
13011#  define LT_DLGLOBAL		RTLD_GLOBAL
13012#else
13013#  ifdef DL_GLOBAL
13014#    define LT_DLGLOBAL		DL_GLOBAL
13015#  else
13016#    define LT_DLGLOBAL		0
13017#  endif
13018#endif
13019
13020/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13021   find out it does not work in some platform. */
13022#ifndef LT_DLLAZY_OR_NOW
13023#  ifdef RTLD_LAZY
13024#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13025#  else
13026#    ifdef DL_LAZY
13027#      define LT_DLLAZY_OR_NOW		DL_LAZY
13028#    else
13029#      ifdef RTLD_NOW
13030#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13031#      else
13032#        ifdef DL_NOW
13033#          define LT_DLLAZY_OR_NOW	DL_NOW
13034#        else
13035#          define LT_DLLAZY_OR_NOW	0
13036#        endif
13037#      endif
13038#    endif
13039#  endif
13040#endif
13041
13042/* When -fvisbility=hidden is used, assume the code has been annotated
13043   correspondingly for the symbols needed.  */
13044#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13045void fnord () __attribute__((visibility("default")));
13046#endif
13047
13048void fnord () { int i=42; }
13049int main ()
13050{
13051  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13052  int status = $lt_dlunknown;
13053
13054  if (self)
13055    {
13056      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13057      else
13058        {
13059	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13060          else puts (dlerror ());
13061	}
13062      /* dlclose (self); */
13063    }
13064  else
13065    puts (dlerror ());
13066
13067  return status;
13068}
13069_LT_EOF
13070  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13071  (eval $ac_link) 2>&5
13072  ac_status=$?
13073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13075    (./conftest; exit; ) >&5 2>/dev/null
13076    lt_status=$?
13077    case x$lt_status in
13078      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13079      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13080      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13081    esac
13082  else :
13083    # compilation failed
13084    lt_cv_dlopen_self_static=no
13085  fi
13086fi
13087rm -fr conftest*
13088
13089
13090fi
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13092$as_echo "$lt_cv_dlopen_self_static" >&6; }
13093    fi
13094
13095    CPPFLAGS="$save_CPPFLAGS"
13096    LDFLAGS="$save_LDFLAGS"
13097    LIBS="$save_LIBS"
13098    ;;
13099  esac
13100
13101  case $lt_cv_dlopen_self in
13102  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13103  *) enable_dlopen_self=unknown ;;
13104  esac
13105
13106  case $lt_cv_dlopen_self_static in
13107  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13108  *) enable_dlopen_self_static=unknown ;;
13109  esac
13110fi
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128striplib=
13129old_striplib=
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13131$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13132if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13133  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13134  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13136$as_echo "yes" >&6; }
13137else
13138# FIXME - insert some real tests, host_os isn't really good enough
13139  case $host_os in
13140  darwin*)
13141    if test -n "$STRIP" ; then
13142      striplib="$STRIP -x"
13143      old_striplib="$STRIP -S"
13144      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13145$as_echo "yes" >&6; }
13146    else
13147      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148$as_echo "no" >&6; }
13149    fi
13150    ;;
13151  *)
13152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153$as_echo "no" >&6; }
13154    ;;
13155  esac
13156fi
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169  # Report which library types will actually be built
13170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13171$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13173$as_echo "$can_build_shared" >&6; }
13174
13175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13176$as_echo_n "checking whether to build shared libraries... " >&6; }
13177  test "$can_build_shared" = "no" && enable_shared=no
13178
13179  # On AIX, shared libraries and static libraries use the same namespace, and
13180  # are all built from PIC.
13181  case $host_os in
13182  aix3*)
13183    test "$enable_shared" = yes && enable_static=no
13184    if test -n "$RANLIB"; then
13185      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13186      postinstall_cmds='$RANLIB $lib'
13187    fi
13188    ;;
13189
13190  aix[4-9]*)
13191    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13192      test "$enable_shared" = yes && enable_static=no
13193    fi
13194    ;;
13195  esac
13196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13197$as_echo "$enable_shared" >&6; }
13198
13199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13200$as_echo_n "checking whether to build static libraries... " >&6; }
13201  # Make sure either enable_shared or enable_static is yes.
13202  test "$enable_shared" = yes || enable_static=yes
13203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13204$as_echo "$enable_static" >&6; }
13205
13206
13207
13208
13209fi
13210ac_ext=c
13211ac_cpp='$CPP $CPPFLAGS'
13212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13214ac_compiler_gnu=$ac_cv_c_compiler_gnu
13215
13216CC="$lt_save_CC"
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230        ac_config_commands="$ac_config_commands libtool"
13231
13232
13233
13234
13235# Only expand once:
13236
13237
13238
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
13240$as_echo_n "checking for library containing bind... " >&6; }
13241if ${ac_cv_search_bind+:} false; then :
13242  $as_echo_n "(cached) " >&6
13243else
13244  ac_func_search_save_LIBS=$LIBS
13245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246/* end confdefs.h.  */
13247
13248/* Override any GCC internal prototype to avoid an error.
13249   Use char because int might match the return type of a GCC
13250   builtin and then its argument prototype would still apply.  */
13251#ifdef __cplusplus
13252extern "C"
13253#endif
13254char bind ();
13255int
13256main ()
13257{
13258return bind ();
13259  ;
13260  return 0;
13261}
13262_ACEOF
13263for ac_lib in '' socket; do
13264  if test -z "$ac_lib"; then
13265    ac_res="none required"
13266  else
13267    ac_res=-l$ac_lib
13268    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13269  fi
13270  if ac_fn_c_try_link "$LINENO"; then :
13271  ac_cv_search_bind=$ac_res
13272fi
13273rm -f core conftest.err conftest.$ac_objext \
13274    conftest$ac_exeext
13275  if ${ac_cv_search_bind+:} false; then :
13276  break
13277fi
13278done
13279if ${ac_cv_search_bind+:} false; then :
13280
13281else
13282  ac_cv_search_bind=no
13283fi
13284rm conftest.$ac_ext
13285LIBS=$ac_func_search_save_LIBS
13286fi
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
13288$as_echo "$ac_cv_search_bind" >&6; }
13289ac_res=$ac_cv_search_bind
13290if test "$ac_res" != no; then :
13291  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13292
13293fi
13294
13295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13296$as_echo_n "checking for library containing gethostbyname... " >&6; }
13297if ${ac_cv_search_gethostbyname+:} false; then :
13298  $as_echo_n "(cached) " >&6
13299else
13300  ac_func_search_save_LIBS=$LIBS
13301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302/* end confdefs.h.  */
13303
13304/* Override any GCC internal prototype to avoid an error.
13305   Use char because int might match the return type of a GCC
13306   builtin and then its argument prototype would still apply.  */
13307#ifdef __cplusplus
13308extern "C"
13309#endif
13310char gethostbyname ();
13311int
13312main ()
13313{
13314return gethostbyname ();
13315  ;
13316  return 0;
13317}
13318_ACEOF
13319for ac_lib in '' nsl; do
13320  if test -z "$ac_lib"; then
13321    ac_res="none required"
13322  else
13323    ac_res=-l$ac_lib
13324    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13325  fi
13326  if ac_fn_c_try_link "$LINENO"; then :
13327  ac_cv_search_gethostbyname=$ac_res
13328fi
13329rm -f core conftest.err conftest.$ac_objext \
13330    conftest$ac_exeext
13331  if ${ac_cv_search_gethostbyname+:} false; then :
13332  break
13333fi
13334done
13335if ${ac_cv_search_gethostbyname+:} false; then :
13336
13337else
13338  ac_cv_search_gethostbyname=no
13339fi
13340rm conftest.$ac_ext
13341LIBS=$ac_func_search_save_LIBS
13342fi
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13344$as_echo "$ac_cv_search_gethostbyname" >&6; }
13345ac_res=$ac_cv_search_gethostbyname
13346if test "$ac_res" != no; then :
13347  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13348
13349fi
13350
13351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
13352$as_echo_n "checking for library containing fabs... " >&6; }
13353if ${ac_cv_search_fabs+:} false; then :
13354  $as_echo_n "(cached) " >&6
13355else
13356  ac_func_search_save_LIBS=$LIBS
13357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358/* end confdefs.h.  */
13359
13360/* Override any GCC internal prototype to avoid an error.
13361   Use char because int might match the return type of a GCC
13362   builtin and then its argument prototype would still apply.  */
13363#ifdef __cplusplus
13364extern "C"
13365#endif
13366char fabs ();
13367int
13368main ()
13369{
13370return fabs ();
13371  ;
13372  return 0;
13373}
13374_ACEOF
13375for ac_lib in '' m; do
13376  if test -z "$ac_lib"; then
13377    ac_res="none required"
13378  else
13379    ac_res=-l$ac_lib
13380    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13381  fi
13382  if ac_fn_c_try_link "$LINENO"; then :
13383  ac_cv_search_fabs=$ac_res
13384fi
13385rm -f core conftest.err conftest.$ac_objext \
13386    conftest$ac_exeext
13387  if ${ac_cv_search_fabs+:} false; then :
13388  break
13389fi
13390done
13391if ${ac_cv_search_fabs+:} false; then :
13392
13393else
13394  ac_cv_search_fabs=no
13395fi
13396rm conftest.$ac_ext
13397LIBS=$ac_func_search_save_LIBS
13398fi
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
13400$as_echo "$ac_cv_search_fabs" >&6; }
13401ac_res=$ac_cv_search_fabs
13402if test "$ac_res" != no; then :
13403  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13404
13405fi
13406
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
13408$as_echo_n "checking for library containing log2... " >&6; }
13409if ${ac_cv_search_log2+:} false; then :
13410  $as_echo_n "(cached) " >&6
13411else
13412  ac_func_search_save_LIBS=$LIBS
13413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414/* end confdefs.h.  */
13415
13416/* Override any GCC internal prototype to avoid an error.
13417   Use char because int might match the return type of a GCC
13418   builtin and then its argument prototype would still apply.  */
13419#ifdef __cplusplus
13420extern "C"
13421#endif
13422char log2 ();
13423int
13424main ()
13425{
13426return log2 ();
13427  ;
13428  return 0;
13429}
13430_ACEOF
13431for ac_lib in '' m; do
13432  if test -z "$ac_lib"; then
13433    ac_res="none required"
13434  else
13435    ac_res=-l$ac_lib
13436    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13437  fi
13438  if ac_fn_c_try_link "$LINENO"; then :
13439  ac_cv_search_log2=$ac_res
13440fi
13441rm -f core conftest.err conftest.$ac_objext \
13442    conftest$ac_exeext
13443  if ${ac_cv_search_log2+:} false; then :
13444  break
13445fi
13446done
13447if ${ac_cv_search_log2+:} false; then :
13448
13449else
13450  ac_cv_search_log2=no
13451fi
13452rm conftest.$ac_ext
13453LIBS=$ac_func_search_save_LIBS
13454fi
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
13456$as_echo "$ac_cv_search_log2" >&6; }
13457ac_res=$ac_cv_search_log2
13458if test "$ac_res" != no; then :
13459  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13460
13461fi
13462
13463
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13465$as_echo_n "checking for library containing dlopen... " >&6; }
13466if ${ac_cv_search_dlopen+:} false; then :
13467  $as_echo_n "(cached) " >&6
13468else
13469  ac_func_search_save_LIBS=$LIBS
13470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471/* end confdefs.h.  */
13472
13473/* Override any GCC internal prototype to avoid an error.
13474   Use char because int might match the return type of a GCC
13475   builtin and then its argument prototype would still apply.  */
13476#ifdef __cplusplus
13477extern "C"
13478#endif
13479char dlopen ();
13480int
13481main ()
13482{
13483return dlopen ();
13484  ;
13485  return 0;
13486}
13487_ACEOF
13488for ac_lib in '' dl; do
13489  if test -z "$ac_lib"; then
13490    ac_res="none required"
13491  else
13492    ac_res=-l$ac_lib
13493    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13494  fi
13495  if ac_fn_c_try_link "$LINENO"; then :
13496  ac_cv_search_dlopen=$ac_res
13497fi
13498rm -f core conftest.err conftest.$ac_objext \
13499    conftest$ac_exeext
13500  if ${ac_cv_search_dlopen+:} false; then :
13501  break
13502fi
13503done
13504if ${ac_cv_search_dlopen+:} false; then :
13505
13506else
13507  ac_cv_search_dlopen=no
13508fi
13509rm conftest.$ac_ext
13510LIBS=$ac_func_search_save_LIBS
13511fi
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13513$as_echo "$ac_cv_search_dlopen" >&6; }
13514ac_res=$ac_cv_search_dlopen
13515if test "$ac_res" != no; then :
13516  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13517
13518fi
13519
13520if test "${ac_cv_search_dlopen}" = "none required" || test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13521
13522pkg_failed=no
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13524$as_echo_n "checking for sdl2... " >&6; }
13525
13526if test -n "$SDL_CFLAGS"; then
13527    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13528 elif test -n "$PKG_CONFIG"; then
13529    if test -n "$PKG_CONFIG" && \
13530    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13531  ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13532  ac_status=$?
13533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13534  test $ac_status = 0; }; then
13535  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13536		      test "x$?" != "x0" && pkg_failed=yes
13537else
13538  pkg_failed=yes
13539fi
13540 else
13541    pkg_failed=untried
13542fi
13543if test -n "$SDL_LIBS"; then
13544    pkg_cv_SDL_LIBS="$SDL_LIBS"
13545 elif test -n "$PKG_CONFIG"; then
13546    if test -n "$PKG_CONFIG" && \
13547    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13548  ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13549  ac_status=$?
13550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13551  test $ac_status = 0; }; then
13552  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13553		      test "x$?" != "x0" && pkg_failed=yes
13554else
13555  pkg_failed=yes
13556fi
13557 else
13558    pkg_failed=untried
13559fi
13560
13561if test $pkg_failed = no; then
13562  pkg_save_LDFLAGS="$LDFLAGS"
13563  LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565/* end confdefs.h.  */
13566
13567int
13568main ()
13569{
13570
13571  ;
13572  return 0;
13573}
13574_ACEOF
13575if ac_fn_c_try_link "$LINENO"; then :
13576
13577else
13578  pkg_failed=yes
13579fi
13580rm -f core conftest.err conftest.$ac_objext \
13581    conftest$ac_exeext conftest.$ac_ext
13582  LDFLAGS=$pkg_save_LDFLAGS
13583fi
13584
13585
13586
13587if test $pkg_failed = yes; then
13588        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589$as_echo "no" >&6; }
13590
13591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13592        _pkg_short_errors_supported=yes
13593else
13594        _pkg_short_errors_supported=no
13595fi
13596        if test $_pkg_short_errors_supported = yes; then
13597	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13598        else
13599	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13600        fi
13601	# Put the nasty error message in config.log where it belongs
13602	echo "$SDL_PKG_ERRORS" >&5
13603
13604
13605
13606pkg_failed=no
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13608$as_echo_n "checking for sdl... " >&6; }
13609
13610if test -n "$SDL_CFLAGS"; then
13611    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13612 elif test -n "$PKG_CONFIG"; then
13613    if test -n "$PKG_CONFIG" && \
13614    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13615  ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13616  ac_status=$?
13617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13618  test $ac_status = 0; }; then
13619  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13620		      test "x$?" != "x0" && pkg_failed=yes
13621else
13622  pkg_failed=yes
13623fi
13624 else
13625    pkg_failed=untried
13626fi
13627if test -n "$SDL_LIBS"; then
13628    pkg_cv_SDL_LIBS="$SDL_LIBS"
13629 elif test -n "$PKG_CONFIG"; then
13630    if test -n "$PKG_CONFIG" && \
13631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13632  ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13633  ac_status=$?
13634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13635  test $ac_status = 0; }; then
13636  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13637		      test "x$?" != "x0" && pkg_failed=yes
13638else
13639  pkg_failed=yes
13640fi
13641 else
13642    pkg_failed=untried
13643fi
13644
13645if test $pkg_failed = no; then
13646  pkg_save_LDFLAGS="$LDFLAGS"
13647  LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649/* end confdefs.h.  */
13650
13651int
13652main ()
13653{
13654
13655  ;
13656  return 0;
13657}
13658_ACEOF
13659if ac_fn_c_try_link "$LINENO"; then :
13660
13661else
13662  pkg_failed=yes
13663fi
13664rm -f core conftest.err conftest.$ac_objext \
13665    conftest$ac_exeext conftest.$ac_ext
13666  LDFLAGS=$pkg_save_LDFLAGS
13667fi
13668
13669
13670
13671if test $pkg_failed = yes; then
13672        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673$as_echo "no" >&6; }
13674
13675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13676        _pkg_short_errors_supported=yes
13677else
13678        _pkg_short_errors_supported=no
13679fi
13680        if test $_pkg_short_errors_supported = yes; then
13681	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13682        else
13683	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13684        fi
13685	# Put the nasty error message in config.log where it belongs
13686	echo "$SDL_PKG_ERRORS" >&5
13687
13688	:
13689elif test $pkg_failed = untried; then
13690        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691$as_echo "no" >&6; }
13692	:
13693else
13694	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13695	SDL_LIBS=$pkg_cv_SDL_LIBS
13696        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13697$as_echo "yes" >&6; }
13698	      SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13699
13700fi
13701
13702elif test $pkg_failed = untried; then
13703        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704$as_echo "no" >&6; }
13705
13706
13707pkg_failed=no
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13709$as_echo_n "checking for sdl... " >&6; }
13710
13711if test -n "$SDL_CFLAGS"; then
13712    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13713 elif test -n "$PKG_CONFIG"; then
13714    if test -n "$PKG_CONFIG" && \
13715    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13716  ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13717  ac_status=$?
13718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13719  test $ac_status = 0; }; then
13720  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13721		      test "x$?" != "x0" && pkg_failed=yes
13722else
13723  pkg_failed=yes
13724fi
13725 else
13726    pkg_failed=untried
13727fi
13728if test -n "$SDL_LIBS"; then
13729    pkg_cv_SDL_LIBS="$SDL_LIBS"
13730 elif test -n "$PKG_CONFIG"; then
13731    if test -n "$PKG_CONFIG" && \
13732    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13733  ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13734  ac_status=$?
13735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736  test $ac_status = 0; }; then
13737  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13738		      test "x$?" != "x0" && pkg_failed=yes
13739else
13740  pkg_failed=yes
13741fi
13742 else
13743    pkg_failed=untried
13744fi
13745
13746if test $pkg_failed = no; then
13747  pkg_save_LDFLAGS="$LDFLAGS"
13748  LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750/* end confdefs.h.  */
13751
13752int
13753main ()
13754{
13755
13756  ;
13757  return 0;
13758}
13759_ACEOF
13760if ac_fn_c_try_link "$LINENO"; then :
13761
13762else
13763  pkg_failed=yes
13764fi
13765rm -f core conftest.err conftest.$ac_objext \
13766    conftest$ac_exeext conftest.$ac_ext
13767  LDFLAGS=$pkg_save_LDFLAGS
13768fi
13769
13770
13771
13772if test $pkg_failed = yes; then
13773        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
13775
13776if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13777        _pkg_short_errors_supported=yes
13778else
13779        _pkg_short_errors_supported=no
13780fi
13781        if test $_pkg_short_errors_supported = yes; then
13782	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13783        else
13784	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13785        fi
13786	# Put the nasty error message in config.log where it belongs
13787	echo "$SDL_PKG_ERRORS" >&5
13788
13789	:
13790elif test $pkg_failed = untried; then
13791        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792$as_echo "no" >&6; }
13793	:
13794else
13795	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13796	SDL_LIBS=$pkg_cv_SDL_LIBS
13797        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13798$as_echo "yes" >&6; }
13799	      SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13800
13801fi
13802
13803else
13804	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13805	SDL_LIBS=$pkg_cv_SDL_LIBS
13806        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13807$as_echo "yes" >&6; }
13808	    SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13809
13810fi
13811    if test -n "$SDL_CFLAGS"; then :
13812      if test "$ac_cv_search_dlopen" = no; then :
13813        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13814$as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13815
13816fi
13817
13818fi
13819else
13820  SDL_CFLAGS=
13821fi
13822SDL_LIBS=
13823
13824
13825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13826$as_echo_n "checking for cygwin... " >&6; }
13827if ${sim_cv_os_cygwin+:} false; then :
13828  $as_echo_n "(cached) " >&6
13829else
13830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h.  */
13832
13833#ifdef __CYGWIN__
13834lose
13835#endif
13836_ACEOF
13837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13838  $EGREP "lose" >/dev/null 2>&1; then :
13839  sim_cv_os_cygwin=yes
13840else
13841  sim_cv_os_cygwin=no
13842fi
13843rm -f conftest*
13844
13845fi
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13847$as_echo "$sim_cv_os_cygwin" >&6; }
13848
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13850$as_echo_n "checking for library containing tgetent... " >&6; }
13851if ${ac_cv_search_tgetent+:} false; then :
13852  $as_echo_n "(cached) " >&6
13853else
13854  ac_func_search_save_LIBS=$LIBS
13855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856/* end confdefs.h.  */
13857
13858/* Override any GCC internal prototype to avoid an error.
13859   Use char because int might match the return type of a GCC
13860   builtin and then its argument prototype would still apply.  */
13861#ifdef __cplusplus
13862extern "C"
13863#endif
13864char tgetent ();
13865int
13866main ()
13867{
13868return tgetent ();
13869  ;
13870  return 0;
13871}
13872_ACEOF
13873for ac_lib in '' termcap tinfo curses ncurses; do
13874  if test -z "$ac_lib"; then
13875    ac_res="none required"
13876  else
13877    ac_res=-l$ac_lib
13878    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13879  fi
13880  if ac_fn_c_try_link "$LINENO"; then :
13881  ac_cv_search_tgetent=$ac_res
13882fi
13883rm -f core conftest.err conftest.$ac_objext \
13884    conftest$ac_exeext
13885  if ${ac_cv_search_tgetent+:} false; then :
13886  break
13887fi
13888done
13889if ${ac_cv_search_tgetent+:} false; then :
13890
13891else
13892  ac_cv_search_tgetent=no
13893fi
13894rm conftest.$ac_ext
13895LIBS=$ac_func_search_save_LIBS
13896fi
13897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13898$as_echo "$ac_cv_search_tgetent" >&6; }
13899ac_res=$ac_cv_search_tgetent
13900if test "$ac_res" != no; then :
13901  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13902  TERMCAP_LIB=$ac_cv_search_tgetent
13903else
13904  TERMCAP_LIB=""
13905fi
13906
13907if test x$sim_cv_os_cygwin = xyes; then
13908  TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13909fi
13910
13911
13912if test -r ../readline/Makefile; then
13913  READLINE_LIB=../readline/readline/libreadline.a
13914  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13915else
13916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13917$as_echo_n "checking for readline in -lreadline... " >&6; }
13918if ${ac_cv_lib_readline_readline+:} false; then :
13919  $as_echo_n "(cached) " >&6
13920else
13921  ac_check_lib_save_LIBS=$LIBS
13922LIBS="-lreadline $TERMCAP_LIB $LIBS"
13923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924/* end confdefs.h.  */
13925
13926/* Override any GCC internal prototype to avoid an error.
13927   Use char because int might match the return type of a GCC
13928   builtin and then its argument prototype would still apply.  */
13929#ifdef __cplusplus
13930extern "C"
13931#endif
13932char readline ();
13933int
13934main ()
13935{
13936return readline ();
13937  ;
13938  return 0;
13939}
13940_ACEOF
13941if ac_fn_c_try_link "$LINENO"; then :
13942  ac_cv_lib_readline_readline=yes
13943else
13944  ac_cv_lib_readline_readline=no
13945fi
13946rm -f core conftest.err conftest.$ac_objext \
13947    conftest$ac_exeext conftest.$ac_ext
13948LIBS=$ac_check_lib_save_LIBS
13949fi
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13951$as_echo "$ac_cv_lib_readline_readline" >&6; }
13952if test "x$ac_cv_lib_readline_readline" = xyes; then :
13953  READLINE_LIB=-lreadline
13954else
13955  as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13956fi
13957
13958  READLINE_CFLAGS=
13959fi
13960
13961
13962
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13964$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13965if ${sim_cv_decl_getopt_unistd_h+:} false; then :
13966  $as_echo_n "(cached) " >&6
13967else
13968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969/* end confdefs.h.  */
13970#include <unistd.h>
13971int
13972main ()
13973{
13974extern int getopt (int, char *const*, const char *);
13975  ;
13976  return 0;
13977}
13978_ACEOF
13979if ac_fn_c_try_compile "$LINENO"; then :
13980  sim_cv_decl_getopt_unistd_h=yes
13981else
13982  sim_cv_decl_getopt_unistd_h=no
13983fi
13984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985fi
13986
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13988$as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13989if test $sim_cv_decl_getopt_unistd_h = yes; then
13990
13991$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13992
13993fi
13994
13995
13996
13997
13998ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13999if test "x$ac_cv_have_decl_ffs" = xyes; then :
14000  ac_have_decl=1
14001else
14002  ac_have_decl=0
14003fi
14004
14005cat >>confdefs.h <<_ACEOF
14006#define HAVE_DECL_FFS $ac_have_decl
14007_ACEOF
14008
14009ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14010if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14011  ac_have_decl=1
14012else
14013  ac_have_decl=0
14014fi
14015
14016cat >>confdefs.h <<_ACEOF
14017#define HAVE_DECL_ASPRINTF $ac_have_decl
14018_ACEOF
14019
14020ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
14021if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
14022  ac_have_decl=1
14023else
14024  ac_have_decl=0
14025fi
14026
14027cat >>confdefs.h <<_ACEOF
14028#define HAVE_DECL_VASPRINTF $ac_have_decl
14029_ACEOF
14030
14031ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
14032if test "x$ac_cv_have_decl_snprintf" = xyes; then :
14033  ac_have_decl=1
14034else
14035  ac_have_decl=0
14036fi
14037
14038cat >>confdefs.h <<_ACEOF
14039#define HAVE_DECL_SNPRINTF $ac_have_decl
14040_ACEOF
14041
14042ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14043if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
14044  ac_have_decl=1
14045else
14046  ac_have_decl=0
14047fi
14048
14049cat >>confdefs.h <<_ACEOF
14050#define HAVE_DECL_VSNPRINTF $ac_have_decl
14051_ACEOF
14052
14053ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
14054if test "x$ac_cv_have_decl_strtol" = xyes; then :
14055  ac_have_decl=1
14056else
14057  ac_have_decl=0
14058fi
14059
14060cat >>confdefs.h <<_ACEOF
14061#define HAVE_DECL_STRTOL $ac_have_decl
14062_ACEOF
14063
14064ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
14065if test "x$ac_cv_have_decl_strtoul" = xyes; then :
14066  ac_have_decl=1
14067else
14068  ac_have_decl=0
14069fi
14070
14071cat >>confdefs.h <<_ACEOF
14072#define HAVE_DECL_STRTOUL $ac_have_decl
14073_ACEOF
14074
14075ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
14076if test "x$ac_cv_have_decl_strtoll" = xyes; then :
14077  ac_have_decl=1
14078else
14079  ac_have_decl=0
14080fi
14081
14082cat >>confdefs.h <<_ACEOF
14083#define HAVE_DECL_STRTOLL $ac_have_decl
14084_ACEOF
14085
14086ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
14087if test "x$ac_cv_have_decl_strtoull" = xyes; then :
14088  ac_have_decl=1
14089else
14090  ac_have_decl=0
14091fi
14092
14093cat >>confdefs.h <<_ACEOF
14094#define HAVE_DECL_STRTOULL $ac_have_decl
14095_ACEOF
14096
14097ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
14098if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
14099  ac_have_decl=1
14100else
14101  ac_have_decl=0
14102fi
14103
14104cat >>confdefs.h <<_ACEOF
14105#define HAVE_DECL_STRVERSCMP $ac_have_decl
14106_ACEOF
14107
14108    ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14109if test "x$ac_cv_type_long_long" = xyes; then :
14110
14111cat >>confdefs.h <<_ACEOF
14112#define HAVE_LONG_LONG 1
14113_ACEOF
14114
14115# The cast to long int works around a bug in the HP C Compiler
14116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14118# This bug is HP SR number 8606223364.
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14120$as_echo_n "checking size of long long... " >&6; }
14121if ${ac_cv_sizeof_long_long+:} false; then :
14122  $as_echo_n "(cached) " >&6
14123else
14124  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
14125
14126else
14127  if test "$ac_cv_type_long_long" = yes; then
14128     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14130as_fn_error 77 "cannot compute sizeof (long long)
14131See \`config.log' for more details" "$LINENO" 5; }
14132   else
14133     ac_cv_sizeof_long_long=0
14134   fi
14135fi
14136
14137fi
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14139$as_echo "$ac_cv_sizeof_long_long" >&6; }
14140
14141
14142
14143cat >>confdefs.h <<_ACEOF
14144#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14145_ACEOF
14146
14147
14148fi
14149
14150
14151  as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
14152ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
14153if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
14154  ac_have_decl=1
14155else
14156  ac_have_decl=0
14157fi
14158
14159cat >>confdefs.h <<_ACEOF
14160#define HAVE_DECL_BASENAME $ac_have_decl
14161_ACEOF
14162
14163
14164
14165
14166
14167
14168
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14170$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14171    # Check whether --enable-maintainer-mode was given.
14172if test "${enable_maintainer_mode+set}" = set; then :
14173  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14174else
14175  USE_MAINTAINER_MODE=no
14176fi
14177
14178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14179$as_echo "$USE_MAINTAINER_MODE" >&6; }
14180   if test $USE_MAINTAINER_MODE = yes; then
14181  MAINTAINER_MODE_TRUE=
14182  MAINTAINER_MODE_FALSE='#'
14183else
14184  MAINTAINER_MODE_TRUE='#'
14185  MAINTAINER_MODE_FALSE=
14186fi
14187
14188  MAINT=$MAINTAINER_MODE_TRUE
14189
14190
14191am__api_version='1.15'
14192
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14194$as_echo_n "checking whether build environment is sane... " >&6; }
14195# Reject unsafe characters in $srcdir or the absolute working directory
14196# name.  Accept space and tab only in the latter.
14197am_lf='
14198'
14199case `pwd` in
14200  *[\\\"\#\$\&\'\`$am_lf]*)
14201    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
14202esac
14203case $srcdir in
14204  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
14205    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
14206esac
14207
14208# Do 'set' in a subshell so we don't clobber the current shell's
14209# arguments.  Must try -L first in case configure is actually a
14210# symlink; some systems play weird games with the mod time of symlinks
14211# (eg FreeBSD returns the mod time of the symlink's containing
14212# directory).
14213if (
14214   am_has_slept=no
14215   for am_try in 1 2; do
14216     echo "timestamp, slept: $am_has_slept" > conftest.file
14217     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14218     if test "$*" = "X"; then
14219	# -L didn't work.
14220	set X `ls -t "$srcdir/configure" conftest.file`
14221     fi
14222     if test "$*" != "X $srcdir/configure conftest.file" \
14223	&& test "$*" != "X conftest.file $srcdir/configure"; then
14224
14225	# If neither matched, then we have a broken ls.  This can happen
14226	# if, for instance, CONFIG_SHELL is bash and it inherits a
14227	# broken ls alias from the environment.  This has actually
14228	# happened.  Such a system could not be considered "sane".
14229	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
14230  alias in your environment" "$LINENO" 5
14231     fi
14232     if test "$2" = conftest.file || test $am_try -eq 2; then
14233       break
14234     fi
14235     # Just in case.
14236     sleep 1
14237     am_has_slept=yes
14238   done
14239   test "$2" = conftest.file
14240   )
14241then
14242   # Ok.
14243   :
14244else
14245   as_fn_error $? "newly created file is older than distributed files!
14246Check your system clock" "$LINENO" 5
14247fi
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249$as_echo "yes" >&6; }
14250# If we didn't sleep, we still need to ensure time stamps of config.status and
14251# generated files are strictly newer.
14252am_sleep_pid=
14253if grep 'slept: no' conftest.file >/dev/null 2>&1; then
14254  ( sleep 1 ) &
14255  am_sleep_pid=$!
14256fi
14257
14258rm -f conftest.file
14259
14260if test x"${MISSING+set}" != xset; then
14261  case $am_aux_dir in
14262  *\ * | *\	*)
14263    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14264  *)
14265    MISSING="\${SHELL} $am_aux_dir/missing" ;;
14266  esac
14267fi
14268# Use eval to expand $SHELL
14269if eval "$MISSING --is-lightweight"; then
14270  am_missing_run="$MISSING "
14271else
14272  am_missing_run=
14273  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
14274$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
14275fi
14276
14277if test x"${install_sh+set}" != xset; then
14278  case $am_aux_dir in
14279  *\ * | *\	*)
14280    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14281  *)
14282    install_sh="\${SHELL} $am_aux_dir/install-sh"
14283  esac
14284fi
14285
14286# Installed binaries are usually stripped using 'strip' when the user
14287# run "make install-strip".  However 'strip' might not be the right
14288# tool to use in cross-compilation environments, therefore Automake
14289# will honor the 'STRIP' environment variable to overrule this program.
14290if test "$cross_compiling" != no; then
14291  if test -n "$ac_tool_prefix"; then
14292  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14293set dummy ${ac_tool_prefix}strip; ac_word=$2
14294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14295$as_echo_n "checking for $ac_word... " >&6; }
14296if ${ac_cv_prog_STRIP+:} false; then :
14297  $as_echo_n "(cached) " >&6
14298else
14299  if test -n "$STRIP"; then
14300  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14301else
14302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303for as_dir in $PATH
14304do
14305  IFS=$as_save_IFS
14306  test -z "$as_dir" && as_dir=.
14307    for ac_exec_ext in '' $ac_executable_extensions; do
14308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14309    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14311    break 2
14312  fi
14313done
14314  done
14315IFS=$as_save_IFS
14316
14317fi
14318fi
14319STRIP=$ac_cv_prog_STRIP
14320if test -n "$STRIP"; then
14321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14322$as_echo "$STRIP" >&6; }
14323else
14324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325$as_echo "no" >&6; }
14326fi
14327
14328
14329fi
14330if test -z "$ac_cv_prog_STRIP"; then
14331  ac_ct_STRIP=$STRIP
14332  # Extract the first word of "strip", so it can be a program name with args.
14333set dummy strip; ac_word=$2
14334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335$as_echo_n "checking for $ac_word... " >&6; }
14336if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14337  $as_echo_n "(cached) " >&6
14338else
14339  if test -n "$ac_ct_STRIP"; then
14340  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14341else
14342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343for as_dir in $PATH
14344do
14345  IFS=$as_save_IFS
14346  test -z "$as_dir" && as_dir=.
14347    for ac_exec_ext in '' $ac_executable_extensions; do
14348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14349    ac_cv_prog_ac_ct_STRIP="strip"
14350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351    break 2
14352  fi
14353done
14354  done
14355IFS=$as_save_IFS
14356
14357fi
14358fi
14359ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14360if test -n "$ac_ct_STRIP"; then
14361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14362$as_echo "$ac_ct_STRIP" >&6; }
14363else
14364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365$as_echo "no" >&6; }
14366fi
14367
14368  if test "x$ac_ct_STRIP" = x; then
14369    STRIP=":"
14370  else
14371    case $cross_compiling:$ac_tool_warned in
14372yes:)
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14375ac_tool_warned=yes ;;
14376esac
14377    STRIP=$ac_ct_STRIP
14378  fi
14379else
14380  STRIP="$ac_cv_prog_STRIP"
14381fi
14382
14383fi
14384INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
14385
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
14387$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14388if test -z "$MKDIR_P"; then
14389  if ${ac_cv_path_mkdir+:} false; then :
14390  $as_echo_n "(cached) " >&6
14391else
14392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14394do
14395  IFS=$as_save_IFS
14396  test -z "$as_dir" && as_dir=.
14397    for ac_prog in mkdir gmkdir; do
14398	 for ac_exec_ext in '' $ac_executable_extensions; do
14399	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
14400	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14401	     'mkdir (GNU coreutils) '* | \
14402	     'mkdir (coreutils) '* | \
14403	     'mkdir (fileutils) '4.1*)
14404	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14405	       break 3;;
14406	   esac
14407	 done
14408       done
14409  done
14410IFS=$as_save_IFS
14411
14412fi
14413
14414  test -d ./--version && rmdir ./--version
14415  if test "${ac_cv_path_mkdir+set}" = set; then
14416    MKDIR_P="$ac_cv_path_mkdir -p"
14417  else
14418    # As a last resort, use the slow shell script.  Don't cache a
14419    # value for MKDIR_P within a source directory, because that will
14420    # break other packages using the cache if that directory is
14421    # removed, or if the value is a relative name.
14422    MKDIR_P="$ac_install_sh -d"
14423  fi
14424fi
14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
14426$as_echo "$MKDIR_P" >&6; }
14427
14428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14429$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14430set x ${MAKE-make}
14431ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14432if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
14433  $as_echo_n "(cached) " >&6
14434else
14435  cat >conftest.make <<\_ACEOF
14436SHELL = /bin/sh
14437all:
14438	@echo '@@@%%%=$(MAKE)=@@@%%%'
14439_ACEOF
14440# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14441case `${MAKE-make} -f conftest.make 2>/dev/null` in
14442  *@@@%%%=?*=@@@%%%*)
14443    eval ac_cv_prog_make_${ac_make}_set=yes;;
14444  *)
14445    eval ac_cv_prog_make_${ac_make}_set=no;;
14446esac
14447rm -f conftest.make
14448fi
14449if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14451$as_echo "yes" >&6; }
14452  SET_MAKE=
14453else
14454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455$as_echo "no" >&6; }
14456  SET_MAKE="MAKE=${MAKE-make}"
14457fi
14458
14459rm -rf .tst 2>/dev/null
14460mkdir .tst 2>/dev/null
14461if test -d .tst; then
14462  am__leading_dot=.
14463else
14464  am__leading_dot=_
14465fi
14466rmdir .tst 2>/dev/null
14467
14468DEPDIR="${am__leading_dot}deps"
14469
14470ac_config_commands="$ac_config_commands depfiles"
14471
14472
14473am_make=${MAKE-make}
14474cat > confinc << 'END'
14475am__doit:
14476	@echo this is the am__doit target
14477.PHONY: am__doit
14478END
14479# If we don't find an include directive, just comment out the code.
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14481$as_echo_n "checking for style of include used by $am_make... " >&6; }
14482am__include="#"
14483am__quote=
14484_am_result=none
14485# First try GNU make style include.
14486echo "include confinc" > confmf
14487# Ignore all kinds of additional output from 'make'.
14488case `$am_make -s -f confmf 2> /dev/null` in #(
14489*the\ am__doit\ target*)
14490  am__include=include
14491  am__quote=
14492  _am_result=GNU
14493  ;;
14494esac
14495# Now try BSD make style include.
14496if test "$am__include" = "#"; then
14497   echo '.include "confinc"' > confmf
14498   case `$am_make -s -f confmf 2> /dev/null` in #(
14499   *the\ am__doit\ target*)
14500     am__include=.include
14501     am__quote="\""
14502     _am_result=BSD
14503     ;;
14504   esac
14505fi
14506
14507
14508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14509$as_echo "$_am_result" >&6; }
14510rm -f confinc confmf
14511
14512# Check whether --enable-dependency-tracking was given.
14513if test "${enable_dependency_tracking+set}" = set; then :
14514  enableval=$enable_dependency_tracking;
14515fi
14516
14517if test "x$enable_dependency_tracking" != xno; then
14518  am_depcomp="$ac_aux_dir/depcomp"
14519  AMDEPBACKSLASH='\'
14520  am__nodep='_no'
14521fi
14522 if test "x$enable_dependency_tracking" != xno; then
14523  AMDEP_TRUE=
14524  AMDEP_FALSE='#'
14525else
14526  AMDEP_TRUE='#'
14527  AMDEP_FALSE=
14528fi
14529
14530
14531# Check whether --enable-silent-rules was given.
14532if test "${enable_silent_rules+set}" = set; then :
14533  enableval=$enable_silent_rules;
14534fi
14535
14536case $enable_silent_rules in # (((
14537  yes) AM_DEFAULT_VERBOSITY=0;;
14538   no) AM_DEFAULT_VERBOSITY=1;;
14539    *) AM_DEFAULT_VERBOSITY=1;;
14540esac
14541am_make=${MAKE-make}
14542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14543$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14544if ${am_cv_make_support_nested_variables+:} false; then :
14545  $as_echo_n "(cached) " >&6
14546else
14547  if $as_echo 'TRUE=$(BAR$(V))
14548BAR0=false
14549BAR1=true
14550V=1
14551am__doit:
14552	@$(TRUE)
14553.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14554  am_cv_make_support_nested_variables=yes
14555else
14556  am_cv_make_support_nested_variables=no
14557fi
14558fi
14559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14560$as_echo "$am_cv_make_support_nested_variables" >&6; }
14561if test $am_cv_make_support_nested_variables = yes; then
14562    AM_V='$(V)'
14563  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14564else
14565  AM_V=$AM_DEFAULT_VERBOSITY
14566  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14567fi
14568AM_BACKSLASH='\'
14569
14570if test "`cd $srcdir && pwd`" != "`pwd`"; then
14571  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14572  # is not polluted with repeated "-I."
14573  am__isrc=' -I$(srcdir)'
14574  # test to see if srcdir already configured
14575  if test -f $srcdir/config.status; then
14576    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14577  fi
14578fi
14579
14580# test whether we have cygpath
14581if test -z "$CYGPATH_W"; then
14582  if (cygpath --version) >/dev/null 2>/dev/null; then
14583    CYGPATH_W='cygpath -w'
14584  else
14585    CYGPATH_W=echo
14586  fi
14587fi
14588
14589
14590# Define the identity of the package.
14591 PACKAGE='sim'
14592 VERSION='0'
14593
14594
14595cat >>confdefs.h <<_ACEOF
14596#define PACKAGE "$PACKAGE"
14597_ACEOF
14598
14599
14600cat >>confdefs.h <<_ACEOF
14601#define VERSION "$VERSION"
14602_ACEOF
14603
14604# Some tools Automake needs.
14605
14606ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14607
14608
14609AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14610
14611
14612AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14613
14614
14615AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14616
14617
14618MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14619
14620# For better backward compatibility.  To be removed once Automake 1.9.x
14621# dies out for good.  For more background, see:
14622# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
14623# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
14624mkdir_p='$(MKDIR_P)'
14625
14626# We need awk for the "check" target (and possibly the TAP driver).  The
14627# system "awk" is bad on some platforms.
14628# Always define AMTAR for backward compatibility.  Yes, it's still used
14629# in the wild :-(  We should find a proper way to deprecate it ...
14630AMTAR='$${TAR-tar}'
14631
14632
14633# We'll loop over all known methods to create a tar archive until one works.
14634_am_tools='gnutar  pax cpio none'
14635
14636am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
14637
14638
14639
14640
14641
14642depcc="$CC"   am_compiler_list=
14643
14644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14645$as_echo_n "checking dependency style of $depcc... " >&6; }
14646if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14647  $as_echo_n "(cached) " >&6
14648else
14649  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14650  # We make a subdir and do the tests there.  Otherwise we can end up
14651  # making bogus files that we don't know about and never remove.  For
14652  # instance it was reported that on HP-UX the gcc test will end up
14653  # making a dummy file named 'D' -- because '-MD' means "put the output
14654  # in D".
14655  rm -rf conftest.dir
14656  mkdir conftest.dir
14657  # Copy depcomp to subdir because otherwise we won't find it if we're
14658  # using a relative directory.
14659  cp "$am_depcomp" conftest.dir
14660  cd conftest.dir
14661  # We will build objects and dependencies in a subdirectory because
14662  # it helps to detect inapplicable dependency modes.  For instance
14663  # both Tru64's cc and ICC support -MD to output dependencies as a
14664  # side effect of compilation, but ICC will put the dependencies in
14665  # the current directory while Tru64 will put them in the object
14666  # directory.
14667  mkdir sub
14668
14669  am_cv_CC_dependencies_compiler_type=none
14670  if test "$am_compiler_list" = ""; then
14671     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14672  fi
14673  am__universal=false
14674  case " $depcc " in #(
14675     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14676     esac
14677
14678  for depmode in $am_compiler_list; do
14679    # Setup a source with many dependencies, because some compilers
14680    # like to wrap large dependency lists on column 80 (with \), and
14681    # we should not choose a depcomp mode which is confused by this.
14682    #
14683    # We need to recreate these files for each test, as the compiler may
14684    # overwrite some of them when testing with obscure command lines.
14685    # This happens at least with the AIX C compiler.
14686    : > sub/conftest.c
14687    for i in 1 2 3 4 5 6; do
14688      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14689      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14690      # Solaris 10 /bin/sh.
14691      echo '/* dummy */' > sub/conftst$i.h
14692    done
14693    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14694
14695    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14696    # mode.  It turns out that the SunPro C++ compiler does not properly
14697    # handle '-M -o', and we need to detect this.  Also, some Intel
14698    # versions had trouble with output in subdirs.
14699    am__obj=sub/conftest.${OBJEXT-o}
14700    am__minus_obj="-o $am__obj"
14701    case $depmode in
14702    gcc)
14703      # This depmode causes a compiler race in universal mode.
14704      test "$am__universal" = false || continue
14705      ;;
14706    nosideeffect)
14707      # After this tag, mechanisms are not by side-effect, so they'll
14708      # only be used when explicitly requested.
14709      if test "x$enable_dependency_tracking" = xyes; then
14710	continue
14711      else
14712	break
14713      fi
14714      ;;
14715    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14716      # This compiler won't grok '-c -o', but also, the minuso test has
14717      # not run yet.  These depmodes are late enough in the game, and
14718      # so weak that their functioning should not be impacted.
14719      am__obj=conftest.${OBJEXT-o}
14720      am__minus_obj=
14721      ;;
14722    none) break ;;
14723    esac
14724    if depmode=$depmode \
14725       source=sub/conftest.c object=$am__obj \
14726       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14727       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14728         >/dev/null 2>conftest.err &&
14729       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14730       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14731       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14732       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14733      # icc doesn't choke on unknown options, it will just issue warnings
14734      # or remarks (even with -Werror).  So we grep stderr for any message
14735      # that says an option was ignored or not supported.
14736      # When given -MP, icc 7.0 and 7.1 complain thusly:
14737      #   icc: Command line warning: ignoring option '-M'; no argument required
14738      # The diagnosis changed in icc 8.0:
14739      #   icc: Command line remark: option '-MP' not supported
14740      if (grep 'ignoring option' conftest.err ||
14741          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14742        am_cv_CC_dependencies_compiler_type=$depmode
14743        break
14744      fi
14745    fi
14746  done
14747
14748  cd ..
14749  rm -rf conftest.dir
14750else
14751  am_cv_CC_dependencies_compiler_type=none
14752fi
14753
14754fi
14755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14756$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14757CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14758
14759 if
14760  test "x$enable_dependency_tracking" != xno \
14761  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14762  am__fastdepCC_TRUE=
14763  am__fastdepCC_FALSE='#'
14764else
14765  am__fastdepCC_TRUE='#'
14766  am__fastdepCC_FALSE=
14767fi
14768
14769
14770
14771# POSIX will say in a future version that running "rm -f" with no argument
14772# is OK; and we want to be able to make that assumption in our Makefile
14773# recipes.  So use an aggressive probe to check that the usage we want is
14774# actually supported "in the wild" to an acceptable degree.
14775# See automake bug#10828.
14776# To make any issue more visible, cause the running configure to be aborted
14777# by default if the 'rm' program in use doesn't match our expectations; the
14778# user can still override this though.
14779if rm -f && rm -fr && rm -rf; then : OK; else
14780  cat >&2 <<'END'
14781Oops!
14782
14783Your 'rm' program seems unable to run without file operands specified
14784on the command line, even when the '-f' option is present.  This is contrary
14785to the behaviour of most rm programs out there, and not conforming with
14786the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14787
14788Please tell bug-automake@gnu.org about your system, including the value
14789of your $PATH and any error possibly output before this message.  This
14790can help us improve future automake versions.
14791
14792END
14793  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14794    echo 'Configuration will proceed anyway, since you have set the' >&2
14795    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14796    echo >&2
14797  else
14798    cat >&2 <<'END'
14799Aborting the configuration process, to ensure you take notice of the issue.
14800
14801You can download and install GNU coreutils to get an 'rm' implementation
14802that behaves properly: <http://www.gnu.org/software/coreutils/>.
14803
14804If you want to complete the configuration process using your problematic
14805'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14806to "yes", and re-run configure.
14807
14808END
14809    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14810  fi
14811fi
14812
14813# Check whether --enable-silent-rules was given.
14814if test "${enable_silent_rules+set}" = set; then :
14815  enableval=$enable_silent_rules;
14816fi
14817
14818case $enable_silent_rules in # (((
14819  yes) AM_DEFAULT_VERBOSITY=0;;
14820   no) AM_DEFAULT_VERBOSITY=1;;
14821    *) AM_DEFAULT_VERBOSITY=0;;
14822esac
14823am_make=${MAKE-make}
14824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14825$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14826if ${am_cv_make_support_nested_variables+:} false; then :
14827  $as_echo_n "(cached) " >&6
14828else
14829  if $as_echo 'TRUE=$(BAR$(V))
14830BAR0=false
14831BAR1=true
14832V=1
14833am__doit:
14834	@$(TRUE)
14835.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14836  am_cv_make_support_nested_variables=yes
14837else
14838  am_cv_make_support_nested_variables=no
14839fi
14840fi
14841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14842$as_echo "$am_cv_make_support_nested_variables" >&6; }
14843if test $am_cv_make_support_nested_variables = yes; then
14844    AM_V='$(V)'
14845  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14846else
14847  AM_V=$AM_DEFAULT_VERBOSITY
14848  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14849fi
14850AM_BACKSLASH='\'
14851
14852
14853# If a cpu ever has more than one simulator to choose from, use
14854# --enable-sim=... to choose.
14855# Check whether --enable-sim was given.
14856if test "${enable_sim+set}" = set; then :
14857  enableval=$enable_sim; case "${enableval}" in
14858yes | no) ;;
14859*)	as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14860esac
14861fi
14862
14863
14864# Check whether --enable-example-sims was given.
14865if test "${enable_example_sims+set}" = set; then :
14866  enableval=$enable_example_sims;
14867fi
14868
14869
14870# Check whether --enable-targets was given.
14871if test "${enable_targets+set}" = set; then :
14872  enableval=$enable_targets; case "${enableval}" in
14873  yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14874	    ;;
14875  no)       enable_targets= ;;
14876  *)        enable_targets=$enableval ;;
14877esac
14878fi
14879
14880
14881SIM_PRIMARY_TARGET=
14882
14883
14884SIM_ENABLED_ARCHES=
14885
14886
14887ENABLE_SIM=no
14888
14889
14890
14891if test "${enable_sim}" != no; then
14892  for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14893  do
14894      sim_enable_arch_aarch64=false
14895  case "${targ}" in
14896    all|aarch64*-*-*)
14897      if test "${targ}" = "${target}"; then
14898        SIM_PRIMARY_TARGET=aarch64
14899      fi
14900        ENABLE_SIM=yes
14901  as_fn_append SIM_ENABLED_ARCHES " aarch64"
14902  ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14903
14904
14905      sim_enable_arch_aarch64=true
14906      ;;
14907  esac
14908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14909$as_echo_n "checking where to find the target cc... " >&6; }
14910if test "x${build}" != "x${host}" ; then
14911  if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14912    # We already found the complete path
14913    ac_dir=`dirname $CC_FOR_TARGET`
14914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14915$as_echo "pre-installed in $ac_dir" >&6; }
14916  else
14917    # Canadian cross, just use what we found
14918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14919$as_echo "pre-installed" >&6; }
14920  fi
14921else
14922  ok=yes
14923  case " ${configdirs} " in
14924    *" ${target_alias}-gcc "*) ;;
14925    *) ok=no ;;
14926  esac
14927
14928  if test $ok = yes; then
14929    # An in-tree tool is available and we can use it
14930    CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14932$as_echo "just compiled" >&6; }
14933  elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14934    # We already found the complete path
14935    ac_dir=`dirname $CC_FOR_TARGET`
14936    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14937$as_echo "pre-installed in $ac_dir" >&6; }
14938  elif test "x$target" = "x$host"; then
14939    # We can use an host tool
14940    CC_FOR_TARGET='$(CC)'
14941    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14942$as_echo "host tool" >&6; }
14943  else
14944    # We need a cross tool
14945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14946$as_echo "pre-installed" >&6; }
14947  fi
14948fi
14949
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14951$as_echo_n "checking where to find the target as... " >&6; }
14952if test "x${build}" != "x${host}" ; then
14953  if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14954    # We already found the complete path
14955    ac_dir=`dirname $AS_FOR_TARGET`
14956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14957$as_echo "pre-installed in $ac_dir" >&6; }
14958  else
14959    # Canadian cross, just use what we found
14960    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14961$as_echo "pre-installed" >&6; }
14962  fi
14963else
14964  ok=yes
14965  case " ${configdirs} " in
14966    *" \$(abs_builddir) "*) ;;
14967    *) ok=no ;;
14968  esac
14969
14970  if test $ok = yes; then
14971    # An in-tree tool is available and we can use it
14972    AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14974$as_echo "just compiled" >&6; }
14975  elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14976    # We already found the complete path
14977    ac_dir=`dirname $AS_FOR_TARGET`
14978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14979$as_echo "pre-installed in $ac_dir" >&6; }
14980  elif test "x$target" = "x$host"; then
14981    # We can use an host tool
14982    AS_FOR_TARGET='$(AS)'
14983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14984$as_echo "host tool" >&6; }
14985  else
14986    # We need a cross tool
14987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14988$as_echo "pre-installed" >&6; }
14989  fi
14990fi
14991
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14993$as_echo_n "checking where to find the target ld... " >&6; }
14994if test "x${build}" != "x${host}" ; then
14995  if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14996    # We already found the complete path
14997    ac_dir=`dirname $LD_FOR_TARGET`
14998    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14999$as_echo "pre-installed in $ac_dir" >&6; }
15000  else
15001    # Canadian cross, just use what we found
15002    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15003$as_echo "pre-installed" >&6; }
15004  fi
15005else
15006  ok=yes
15007  case " ${configdirs} " in
15008    *" \$(abs_builddir) "*) ;;
15009    *) ok=no ;;
15010  esac
15011
15012  if test $ok = yes; then
15013    # An in-tree tool is available and we can use it
15014    LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
15015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15016$as_echo "just compiled" >&6; }
15017  elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
15018    # We already found the complete path
15019    ac_dir=`dirname $LD_FOR_TARGET`
15020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15021$as_echo "pre-installed in $ac_dir" >&6; }
15022  elif test "x$target" = "x$host"; then
15023    # We can use an host tool
15024    LD_FOR_TARGET='$(LD)'
15025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15026$as_echo "host tool" >&6; }
15027  else
15028    # We need a cross tool
15029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15030$as_echo "pre-installed" >&6; }
15031  fi
15032fi
15033
15034
15035
15036
15037
15038
15039  if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
15040      : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
15041    : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
15042    : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
15043
15044fi
15045
15046as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
15047
15048   if ${sim_enable_arch_aarch64}; then
15049  SIM_ENABLE_ARCH_aarch64_TRUE=
15050  SIM_ENABLE_ARCH_aarch64_FALSE='#'
15051else
15052  SIM_ENABLE_ARCH_aarch64_TRUE='#'
15053  SIM_ENABLE_ARCH_aarch64_FALSE=
15054fi
15055
15056  sim_enable_arch_arm=false
15057  case "${targ}" in
15058    all|arm*-*-*)
15059      if test "${targ}" = "${target}"; then
15060        SIM_PRIMARY_TARGET=arm
15061      fi
15062        ENABLE_SIM=yes
15063  as_fn_append SIM_ENABLED_ARCHES " arm"
15064  ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
15065
15066
15067      sim_enable_arch_arm=true
15068      ;;
15069  esac
15070
15071
15072
15073
15074  if test "$SIM_PRIMARY_TARGET" = "arm"; then :
15075      : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
15076    : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
15077    : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
15078
15079fi
15080
15081as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
15082
15083   if ${sim_enable_arch_arm}; then
15084  SIM_ENABLE_ARCH_arm_TRUE=
15085  SIM_ENABLE_ARCH_arm_FALSE='#'
15086else
15087  SIM_ENABLE_ARCH_arm_TRUE='#'
15088  SIM_ENABLE_ARCH_arm_FALSE=
15089fi
15090
15091  sim_enable_arch_avr=false
15092  case "${targ}" in
15093    all|avr*-*-*)
15094      if test "${targ}" = "${target}"; then
15095        SIM_PRIMARY_TARGET=avr
15096      fi
15097        ENABLE_SIM=yes
15098  as_fn_append SIM_ENABLED_ARCHES " avr"
15099  ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
15100
15101
15102      sim_enable_arch_avr=true
15103      ;;
15104  esac
15105
15106
15107
15108
15109  if test "$SIM_PRIMARY_TARGET" = "avr"; then :
15110      : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
15111    : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
15112    : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
15113
15114fi
15115
15116as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
15117
15118   if ${sim_enable_arch_avr}; then
15119  SIM_ENABLE_ARCH_avr_TRUE=
15120  SIM_ENABLE_ARCH_avr_FALSE='#'
15121else
15122  SIM_ENABLE_ARCH_avr_TRUE='#'
15123  SIM_ENABLE_ARCH_avr_FALSE=
15124fi
15125
15126  sim_enable_arch_bfin=false
15127  case "${targ}" in
15128    all|bfin-*-*)
15129      if test "${targ}" = "${target}"; then
15130        SIM_PRIMARY_TARGET=bfin
15131      fi
15132        ENABLE_SIM=yes
15133  as_fn_append SIM_ENABLED_ARCHES " bfin"
15134  ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
15135
15136
15137      sim_enable_arch_bfin=true
15138      ;;
15139  esac
15140
15141
15142
15143
15144  if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
15145      : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
15146    : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
15147    : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
15148
15149fi
15150
15151as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
15152
15153   if ${sim_enable_arch_bfin}; then
15154  SIM_ENABLE_ARCH_bfin_TRUE=
15155  SIM_ENABLE_ARCH_bfin_FALSE='#'
15156else
15157  SIM_ENABLE_ARCH_bfin_TRUE='#'
15158  SIM_ENABLE_ARCH_bfin_FALSE=
15159fi
15160
15161  sim_enable_arch_bpf=false
15162  case "${targ}" in
15163    all|bpf-*-*)
15164      if test "${targ}" = "${target}"; then
15165        SIM_PRIMARY_TARGET=bpf
15166      fi
15167        ENABLE_SIM=yes
15168  as_fn_append SIM_ENABLED_ARCHES " bpf"
15169  ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
15170
15171
15172      sim_enable_arch_bpf=true
15173      ;;
15174  esac
15175
15176
15177
15178
15179  if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
15180      : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
15181    : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
15182    : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
15183
15184fi
15185
15186as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
15187
15188   if ${sim_enable_arch_bpf}; then
15189  SIM_ENABLE_ARCH_bpf_TRUE=
15190  SIM_ENABLE_ARCH_bpf_FALSE='#'
15191else
15192  SIM_ENABLE_ARCH_bpf_TRUE='#'
15193  SIM_ENABLE_ARCH_bpf_FALSE=
15194fi
15195
15196  sim_enable_arch_cr16=false
15197  case "${targ}" in
15198    all|cr16*-*-*)
15199      if test "${targ}" = "${target}"; then
15200        SIM_PRIMARY_TARGET=cr16
15201      fi
15202        ENABLE_SIM=yes
15203  as_fn_append SIM_ENABLED_ARCHES " cr16"
15204  ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
15205
15206
15207      sim_enable_arch_cr16=true
15208      ;;
15209  esac
15210
15211
15212
15213
15214  if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
15215      : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
15216    : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
15217    : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
15218
15219fi
15220
15221as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
15222
15223   if ${sim_enable_arch_cr16}; then
15224  SIM_ENABLE_ARCH_cr16_TRUE=
15225  SIM_ENABLE_ARCH_cr16_FALSE='#'
15226else
15227  SIM_ENABLE_ARCH_cr16_TRUE='#'
15228  SIM_ENABLE_ARCH_cr16_FALSE=
15229fi
15230
15231  sim_enable_arch_cris=false
15232  case "${targ}" in
15233    all|cris-*-* | crisv32-*-*)
15234      if test "${targ}" = "${target}"; then
15235        SIM_PRIMARY_TARGET=cris
15236      fi
15237        ENABLE_SIM=yes
15238  as_fn_append SIM_ENABLED_ARCHES " cris"
15239  ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
15240
15241
15242      sim_enable_arch_cris=true
15243      ;;
15244  esac
15245
15246
15247
15248
15249  if test "$SIM_PRIMARY_TARGET" = "cris"; then :
15250      : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
15251    : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
15252    : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
15253
15254fi
15255
15256as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
15257
15258   if ${sim_enable_arch_cris}; then
15259  SIM_ENABLE_ARCH_cris_TRUE=
15260  SIM_ENABLE_ARCH_cris_FALSE='#'
15261else
15262  SIM_ENABLE_ARCH_cris_TRUE='#'
15263  SIM_ENABLE_ARCH_cris_FALSE=
15264fi
15265
15266  sim_enable_arch_d10v=false
15267  case "${targ}" in
15268    all|d10v-*-*)
15269      if test "${targ}" = "${target}"; then
15270        SIM_PRIMARY_TARGET=d10v
15271      fi
15272        ENABLE_SIM=yes
15273  as_fn_append SIM_ENABLED_ARCHES " d10v"
15274  ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
15275
15276
15277      sim_enable_arch_d10v=true
15278      ;;
15279  esac
15280
15281
15282
15283
15284  if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
15285      : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
15286    : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
15287    : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
15288
15289fi
15290
15291as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
15292
15293   if ${sim_enable_arch_d10v}; then
15294  SIM_ENABLE_ARCH_d10v_TRUE=
15295  SIM_ENABLE_ARCH_d10v_FALSE='#'
15296else
15297  SIM_ENABLE_ARCH_d10v_TRUE='#'
15298  SIM_ENABLE_ARCH_d10v_FALSE=
15299fi
15300
15301  sim_enable_arch_frv=false
15302  case "${targ}" in
15303    all|frv-*-*)
15304      if test "${targ}" = "${target}"; then
15305        SIM_PRIMARY_TARGET=frv
15306      fi
15307        ENABLE_SIM=yes
15308  as_fn_append SIM_ENABLED_ARCHES " frv"
15309  ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
15310
15311
15312      sim_enable_arch_frv=true
15313      ;;
15314  esac
15315
15316
15317
15318
15319  if test "$SIM_PRIMARY_TARGET" = "frv"; then :
15320      : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
15321    : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
15322    : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
15323
15324fi
15325
15326as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
15327
15328   if ${sim_enable_arch_frv}; then
15329  SIM_ENABLE_ARCH_frv_TRUE=
15330  SIM_ENABLE_ARCH_frv_FALSE='#'
15331else
15332  SIM_ENABLE_ARCH_frv_TRUE='#'
15333  SIM_ENABLE_ARCH_frv_FALSE=
15334fi
15335
15336  sim_enable_arch_ft32=false
15337  case "${targ}" in
15338    all|ft32-*-*)
15339      if test "${targ}" = "${target}"; then
15340        SIM_PRIMARY_TARGET=ft32
15341      fi
15342        ENABLE_SIM=yes
15343  as_fn_append SIM_ENABLED_ARCHES " ft32"
15344  ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
15345
15346
15347      sim_enable_arch_ft32=true
15348      ;;
15349  esac
15350
15351
15352
15353
15354  if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
15355      : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
15356    : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
15357    : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
15358
15359fi
15360
15361as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
15362
15363   if ${sim_enable_arch_ft32}; then
15364  SIM_ENABLE_ARCH_ft32_TRUE=
15365  SIM_ENABLE_ARCH_ft32_FALSE='#'
15366else
15367  SIM_ENABLE_ARCH_ft32_TRUE='#'
15368  SIM_ENABLE_ARCH_ft32_FALSE=
15369fi
15370
15371  sim_enable_arch_h8300=false
15372  case "${targ}" in
15373    all|h8300*-*-*)
15374      if test "${targ}" = "${target}"; then
15375        SIM_PRIMARY_TARGET=h8300
15376      fi
15377        ENABLE_SIM=yes
15378  as_fn_append SIM_ENABLED_ARCHES " h8300"
15379  ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
15380
15381
15382      sim_enable_arch_h8300=true
15383      ;;
15384  esac
15385
15386
15387
15388
15389  if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
15390      : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
15391    : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
15392    : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
15393
15394fi
15395
15396as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
15397
15398   if ${sim_enable_arch_h8300}; then
15399  SIM_ENABLE_ARCH_h8300_TRUE=
15400  SIM_ENABLE_ARCH_h8300_FALSE='#'
15401else
15402  SIM_ENABLE_ARCH_h8300_TRUE='#'
15403  SIM_ENABLE_ARCH_h8300_FALSE=
15404fi
15405
15406  sim_enable_arch_iq2000=false
15407  case "${targ}" in
15408    all|iq2000-*-*)
15409      if test "${targ}" = "${target}"; then
15410        SIM_PRIMARY_TARGET=iq2000
15411      fi
15412        ENABLE_SIM=yes
15413  as_fn_append SIM_ENABLED_ARCHES " iq2000"
15414  ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
15415
15416
15417      sim_enable_arch_iq2000=true
15418      ;;
15419  esac
15420
15421
15422
15423
15424  if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
15425      : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
15426    : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
15427    : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
15428
15429fi
15430
15431as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
15432
15433   if ${sim_enable_arch_iq2000}; then
15434  SIM_ENABLE_ARCH_iq2000_TRUE=
15435  SIM_ENABLE_ARCH_iq2000_FALSE='#'
15436else
15437  SIM_ENABLE_ARCH_iq2000_TRUE='#'
15438  SIM_ENABLE_ARCH_iq2000_FALSE=
15439fi
15440
15441  sim_enable_arch_lm32=false
15442  case "${targ}" in
15443    all|lm32-*-*)
15444      if test "${targ}" = "${target}"; then
15445        SIM_PRIMARY_TARGET=lm32
15446      fi
15447        ENABLE_SIM=yes
15448  as_fn_append SIM_ENABLED_ARCHES " lm32"
15449  ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
15450
15451
15452      sim_enable_arch_lm32=true
15453      ;;
15454  esac
15455
15456
15457
15458
15459  if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
15460      : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
15461    : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
15462    : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
15463
15464fi
15465
15466as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
15467
15468   if ${sim_enable_arch_lm32}; then
15469  SIM_ENABLE_ARCH_lm32_TRUE=
15470  SIM_ENABLE_ARCH_lm32_FALSE='#'
15471else
15472  SIM_ENABLE_ARCH_lm32_TRUE='#'
15473  SIM_ENABLE_ARCH_lm32_FALSE=
15474fi
15475
15476  sim_enable_arch_m32c=false
15477  case "${targ}" in
15478    all|m32c-*-*)
15479      if test "${targ}" = "${target}"; then
15480        SIM_PRIMARY_TARGET=m32c
15481      fi
15482        ENABLE_SIM=yes
15483  as_fn_append SIM_ENABLED_ARCHES " m32c"
15484  ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
15485
15486
15487      sim_enable_arch_m32c=true
15488      ;;
15489  esac
15490
15491
15492
15493
15494  if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
15495      : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
15496    : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
15497    : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
15498
15499fi
15500
15501as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
15502
15503   if ${sim_enable_arch_m32c}; then
15504  SIM_ENABLE_ARCH_m32c_TRUE=
15505  SIM_ENABLE_ARCH_m32c_FALSE='#'
15506else
15507  SIM_ENABLE_ARCH_m32c_TRUE='#'
15508  SIM_ENABLE_ARCH_m32c_FALSE=
15509fi
15510
15511  sim_enable_arch_m32r=false
15512  case "${targ}" in
15513    all|m32r-*-*)
15514      if test "${targ}" = "${target}"; then
15515        SIM_PRIMARY_TARGET=m32r
15516      fi
15517        ENABLE_SIM=yes
15518  as_fn_append SIM_ENABLED_ARCHES " m32r"
15519  ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
15520
15521
15522      sim_enable_arch_m32r=true
15523      ;;
15524  esac
15525
15526
15527
15528
15529  if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15530      : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15531    : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15532    : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15533
15534fi
15535
15536as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15537
15538   if ${sim_enable_arch_m32r}; then
15539  SIM_ENABLE_ARCH_m32r_TRUE=
15540  SIM_ENABLE_ARCH_m32r_FALSE='#'
15541else
15542  SIM_ENABLE_ARCH_m32r_TRUE='#'
15543  SIM_ENABLE_ARCH_m32r_FALSE=
15544fi
15545
15546  sim_enable_arch_m68hc11=false
15547  case "${targ}" in
15548    all|m68hc11-*-*|m6811-*-*)
15549      if test "${targ}" = "${target}"; then
15550        SIM_PRIMARY_TARGET=m68hc11
15551      fi
15552        ENABLE_SIM=yes
15553  as_fn_append SIM_ENABLED_ARCHES " m68hc11"
15554  ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15555
15556
15557      sim_enable_arch_m68hc11=true
15558      ;;
15559  esac
15560
15561
15562
15563
15564  if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15565      : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15566    : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15567    : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15568
15569fi
15570
15571as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15572
15573   if ${sim_enable_arch_m68hc11}; then
15574  SIM_ENABLE_ARCH_m68hc11_TRUE=
15575  SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15576else
15577  SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15578  SIM_ENABLE_ARCH_m68hc11_FALSE=
15579fi
15580
15581  sim_enable_arch_mcore=false
15582  case "${targ}" in
15583    all|mcore-*-*)
15584      if test "${targ}" = "${target}"; then
15585        SIM_PRIMARY_TARGET=mcore
15586      fi
15587        ENABLE_SIM=yes
15588  as_fn_append SIM_ENABLED_ARCHES " mcore"
15589  ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15590
15591
15592      sim_enable_arch_mcore=true
15593      ;;
15594  esac
15595
15596
15597
15598
15599  if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15600      : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15601    : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15602    : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15603
15604fi
15605
15606as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15607
15608   if ${sim_enable_arch_mcore}; then
15609  SIM_ENABLE_ARCH_mcore_TRUE=
15610  SIM_ENABLE_ARCH_mcore_FALSE='#'
15611else
15612  SIM_ENABLE_ARCH_mcore_TRUE='#'
15613  SIM_ENABLE_ARCH_mcore_FALSE=
15614fi
15615
15616  sim_enable_arch_microblaze=false
15617  case "${targ}" in
15618    all|microblaze*-*-*)
15619      if test "${targ}" = "${target}"; then
15620        SIM_PRIMARY_TARGET=microblaze
15621      fi
15622        ENABLE_SIM=yes
15623  as_fn_append SIM_ENABLED_ARCHES " microblaze"
15624  ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15625
15626
15627      sim_enable_arch_microblaze=true
15628      ;;
15629  esac
15630
15631
15632
15633
15634  if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15635      : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15636    : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15637    : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15638
15639fi
15640
15641as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15642
15643   if ${sim_enable_arch_microblaze}; then
15644  SIM_ENABLE_ARCH_microblaze_TRUE=
15645  SIM_ENABLE_ARCH_microblaze_FALSE='#'
15646else
15647  SIM_ENABLE_ARCH_microblaze_TRUE='#'
15648  SIM_ENABLE_ARCH_microblaze_FALSE=
15649fi
15650
15651  sim_enable_arch_mips=false
15652  case "${targ}" in
15653    all|mips*-*-*)
15654      if test "${targ}" = "${target}"; then
15655        SIM_PRIMARY_TARGET=mips
15656      fi
15657        ENABLE_SIM=yes
15658  as_fn_append SIM_ENABLED_ARCHES " mips"
15659  ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15660
15661
15662      sim_enable_arch_mips=true
15663      ;;
15664  esac
15665
15666
15667
15668
15669  if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15670      : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15671    : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15672    : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15673
15674fi
15675
15676as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15677
15678   if ${sim_enable_arch_mips}; then
15679  SIM_ENABLE_ARCH_mips_TRUE=
15680  SIM_ENABLE_ARCH_mips_FALSE='#'
15681else
15682  SIM_ENABLE_ARCH_mips_TRUE='#'
15683  SIM_ENABLE_ARCH_mips_FALSE=
15684fi
15685
15686  sim_enable_arch_mn10300=false
15687  case "${targ}" in
15688    all|mn10300*-*-*)
15689      if test "${targ}" = "${target}"; then
15690        SIM_PRIMARY_TARGET=mn10300
15691      fi
15692        ENABLE_SIM=yes
15693  as_fn_append SIM_ENABLED_ARCHES " mn10300"
15694  ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15695
15696
15697      sim_enable_arch_mn10300=true
15698      ;;
15699  esac
15700
15701
15702
15703
15704  if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15705      : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15706    : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15707    : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15708
15709fi
15710
15711as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15712
15713   if ${sim_enable_arch_mn10300}; then
15714  SIM_ENABLE_ARCH_mn10300_TRUE=
15715  SIM_ENABLE_ARCH_mn10300_FALSE='#'
15716else
15717  SIM_ENABLE_ARCH_mn10300_TRUE='#'
15718  SIM_ENABLE_ARCH_mn10300_FALSE=
15719fi
15720
15721  sim_enable_arch_moxie=false
15722  case "${targ}" in
15723    all|moxie-*-*)
15724      if test "${targ}" = "${target}"; then
15725        SIM_PRIMARY_TARGET=moxie
15726      fi
15727        ENABLE_SIM=yes
15728  as_fn_append SIM_ENABLED_ARCHES " moxie"
15729  ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15730
15731
15732      sim_enable_arch_moxie=true
15733      ;;
15734  esac
15735
15736
15737
15738
15739  if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15740      : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15741    : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15742    : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15743
15744fi
15745
15746as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15747
15748   if ${sim_enable_arch_moxie}; then
15749  SIM_ENABLE_ARCH_moxie_TRUE=
15750  SIM_ENABLE_ARCH_moxie_FALSE='#'
15751else
15752  SIM_ENABLE_ARCH_moxie_TRUE='#'
15753  SIM_ENABLE_ARCH_moxie_FALSE=
15754fi
15755
15756  sim_enable_arch_msp430=false
15757  case "${targ}" in
15758    all|msp430*-*-*)
15759      if test "${targ}" = "${target}"; then
15760        SIM_PRIMARY_TARGET=msp430
15761      fi
15762        ENABLE_SIM=yes
15763  as_fn_append SIM_ENABLED_ARCHES " msp430"
15764  ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15765
15766
15767      sim_enable_arch_msp430=true
15768      ;;
15769  esac
15770
15771
15772
15773
15774  if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15775      : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15776    : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15777    : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15778
15779fi
15780
15781as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15782
15783   if ${sim_enable_arch_msp430}; then
15784  SIM_ENABLE_ARCH_msp430_TRUE=
15785  SIM_ENABLE_ARCH_msp430_FALSE='#'
15786else
15787  SIM_ENABLE_ARCH_msp430_TRUE='#'
15788  SIM_ENABLE_ARCH_msp430_FALSE=
15789fi
15790
15791  sim_enable_arch_or1k=false
15792  case "${targ}" in
15793    all|or1k*-*-*)
15794      if test "${targ}" = "${target}"; then
15795        SIM_PRIMARY_TARGET=or1k
15796      fi
15797        ENABLE_SIM=yes
15798  as_fn_append SIM_ENABLED_ARCHES " or1k"
15799  ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15800
15801
15802      sim_enable_arch_or1k=true
15803      ;;
15804  esac
15805
15806
15807
15808
15809  if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15810      : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15811    : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15812    : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15813
15814fi
15815
15816as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15817
15818   if ${sim_enable_arch_or1k}; then
15819  SIM_ENABLE_ARCH_or1k_TRUE=
15820  SIM_ENABLE_ARCH_or1k_FALSE='#'
15821else
15822  SIM_ENABLE_ARCH_or1k_TRUE='#'
15823  SIM_ENABLE_ARCH_or1k_FALSE=
15824fi
15825
15826  sim_enable_arch_ppc=false
15827  case "${targ}" in
15828    all|powerpc*-*-*)
15829      if test "${targ}" = "${target}"; then
15830        SIM_PRIMARY_TARGET=ppc
15831      fi
15832        ENABLE_SIM=yes
15833  as_fn_append SIM_ENABLED_ARCHES " ppc"
15834  ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15835
15836
15837      sim_enable_arch_ppc=true
15838      ;;
15839  esac
15840
15841
15842
15843
15844  if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15845      : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15846    : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15847    : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15848
15849fi
15850
15851as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15852
15853   if ${sim_enable_arch_ppc}; then
15854  SIM_ENABLE_ARCH_ppc_TRUE=
15855  SIM_ENABLE_ARCH_ppc_FALSE='#'
15856else
15857  SIM_ENABLE_ARCH_ppc_TRUE='#'
15858  SIM_ENABLE_ARCH_ppc_FALSE=
15859fi
15860
15861  sim_enable_arch_pru=false
15862  case "${targ}" in
15863    all|pru*-*-*)
15864      if test "${targ}" = "${target}"; then
15865        SIM_PRIMARY_TARGET=pru
15866      fi
15867        ENABLE_SIM=yes
15868  as_fn_append SIM_ENABLED_ARCHES " pru"
15869  ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15870
15871
15872      sim_enable_arch_pru=true
15873      ;;
15874  esac
15875
15876
15877
15878
15879  if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15880      : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15881    : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15882    : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15883
15884fi
15885
15886as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15887
15888   if ${sim_enable_arch_pru}; then
15889  SIM_ENABLE_ARCH_pru_TRUE=
15890  SIM_ENABLE_ARCH_pru_FALSE='#'
15891else
15892  SIM_ENABLE_ARCH_pru_TRUE='#'
15893  SIM_ENABLE_ARCH_pru_FALSE=
15894fi
15895
15896  sim_enable_arch_riscv=false
15897  case "${targ}" in
15898    all|riscv*-*-*)
15899      if test "${targ}" = "${target}"; then
15900        SIM_PRIMARY_TARGET=riscv
15901      fi
15902        ENABLE_SIM=yes
15903  as_fn_append SIM_ENABLED_ARCHES " riscv"
15904  ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15905
15906
15907      sim_enable_arch_riscv=true
15908      ;;
15909  esac
15910
15911
15912
15913
15914  if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15915      : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15916    : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15917    : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15918
15919fi
15920
15921as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15922
15923   if ${sim_enable_arch_riscv}; then
15924  SIM_ENABLE_ARCH_riscv_TRUE=
15925  SIM_ENABLE_ARCH_riscv_FALSE='#'
15926else
15927  SIM_ENABLE_ARCH_riscv_TRUE='#'
15928  SIM_ENABLE_ARCH_riscv_FALSE=
15929fi
15930
15931  sim_enable_arch_rl78=false
15932  case "${targ}" in
15933    all|rl78-*-*)
15934      if test "${targ}" = "${target}"; then
15935        SIM_PRIMARY_TARGET=rl78
15936      fi
15937        ENABLE_SIM=yes
15938  as_fn_append SIM_ENABLED_ARCHES " rl78"
15939  ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15940
15941
15942      sim_enable_arch_rl78=true
15943      ;;
15944  esac
15945
15946
15947
15948
15949  if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15950      : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15951    : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15952    : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15953
15954fi
15955
15956as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15957
15958   if ${sim_enable_arch_rl78}; then
15959  SIM_ENABLE_ARCH_rl78_TRUE=
15960  SIM_ENABLE_ARCH_rl78_FALSE='#'
15961else
15962  SIM_ENABLE_ARCH_rl78_TRUE='#'
15963  SIM_ENABLE_ARCH_rl78_FALSE=
15964fi
15965
15966  sim_enable_arch_rx=false
15967  case "${targ}" in
15968    all|rx-*-*)
15969      if test "${targ}" = "${target}"; then
15970        SIM_PRIMARY_TARGET=rx
15971      fi
15972        ENABLE_SIM=yes
15973  as_fn_append SIM_ENABLED_ARCHES " rx"
15974  ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15975
15976
15977      sim_enable_arch_rx=true
15978      ;;
15979  esac
15980
15981
15982
15983
15984  if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15985      : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15986    : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15987    : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15988
15989fi
15990
15991as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15992
15993   if ${sim_enable_arch_rx}; then
15994  SIM_ENABLE_ARCH_rx_TRUE=
15995  SIM_ENABLE_ARCH_rx_FALSE='#'
15996else
15997  SIM_ENABLE_ARCH_rx_TRUE='#'
15998  SIM_ENABLE_ARCH_rx_FALSE=
15999fi
16000
16001  sim_enable_arch_sh=false
16002  case "${targ}" in
16003    all|sh*-*-*)
16004      if test "${targ}" = "${target}"; then
16005        SIM_PRIMARY_TARGET=sh
16006      fi
16007        ENABLE_SIM=yes
16008  as_fn_append SIM_ENABLED_ARCHES " sh"
16009  ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
16010
16011
16012      sim_enable_arch_sh=true
16013      ;;
16014  esac
16015
16016
16017
16018
16019  if test "$SIM_PRIMARY_TARGET" = "sh"; then :
16020      : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
16021    : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
16022    : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
16023
16024fi
16025
16026as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
16027
16028   if ${sim_enable_arch_sh}; then
16029  SIM_ENABLE_ARCH_sh_TRUE=
16030  SIM_ENABLE_ARCH_sh_FALSE='#'
16031else
16032  SIM_ENABLE_ARCH_sh_TRUE='#'
16033  SIM_ENABLE_ARCH_sh_FALSE=
16034fi
16035
16036  sim_enable_arch_erc32=false
16037  case "${targ}" in
16038    all|sparc-*-*)
16039      if test "${targ}" = "${target}"; then
16040        SIM_PRIMARY_TARGET=erc32
16041      fi
16042        ENABLE_SIM=yes
16043  as_fn_append SIM_ENABLED_ARCHES " erc32"
16044  ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
16045
16046
16047      sim_enable_arch_erc32=true
16048      ;;
16049  esac
16050
16051
16052
16053
16054  if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
16055      : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
16056    : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
16057    : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
16058
16059fi
16060
16061as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
16062
16063   if ${sim_enable_arch_erc32}; then
16064  SIM_ENABLE_ARCH_erc32_TRUE=
16065  SIM_ENABLE_ARCH_erc32_FALSE='#'
16066else
16067  SIM_ENABLE_ARCH_erc32_TRUE='#'
16068  SIM_ENABLE_ARCH_erc32_FALSE=
16069fi
16070
16071  sim_enable_arch_v850=false
16072  case "${targ}" in
16073    all|v850*-*-*)
16074      if test "${targ}" = "${target}"; then
16075        SIM_PRIMARY_TARGET=v850
16076      fi
16077        ENABLE_SIM=yes
16078  as_fn_append SIM_ENABLED_ARCHES " v850"
16079  ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
16080
16081
16082      sim_enable_arch_v850=true
16083      ;;
16084  esac
16085
16086
16087
16088
16089  if test "$SIM_PRIMARY_TARGET" = "v850"; then :
16090      : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
16091    : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
16092    : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
16093
16094fi
16095
16096as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
16097
16098   if ${sim_enable_arch_v850}; then
16099  SIM_ENABLE_ARCH_v850_TRUE=
16100  SIM_ENABLE_ARCH_v850_FALSE='#'
16101else
16102  SIM_ENABLE_ARCH_v850_TRUE='#'
16103  SIM_ENABLE_ARCH_v850_FALSE=
16104fi
16105
16106
16107  done
16108
16109  if test "x${enable_example_sims}" = xyes; then
16110
16111
16112
16113
16114  : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
16115  : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
16116  : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
16117
16118as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
16119
16120      ENABLE_SIM=yes
16121  as_fn_append SIM_ENABLED_ARCHES " example-synacor"
16122  ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
16123
16124
16125  fi
16126   if test "${enable_example_sims}" = "yes"; then
16127  SIM_ENABLE_ARCH_examples_TRUE=
16128  SIM_ENABLE_ARCH_examples_FALSE='#'
16129else
16130  SIM_ENABLE_ARCH_examples_TRUE='#'
16131  SIM_ENABLE_ARCH_examples_FALSE=
16132fi
16133
16134fi
16135 if test "$ENABLE_SIM" = "yes"; then
16136  ENABLE_SIM_TRUE=
16137  ENABLE_SIM_FALSE='#'
16138else
16139  ENABLE_SIM_TRUE='#'
16140  ENABLE_SIM_FALSE=
16141fi
16142
16143
16144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
16145$as_echo_n "checking whether to force sim alignment... " >&6; }
16146sim_alignment=
16147# Check whether --enable-sim-alignment was given.
16148if test "${enable_sim_alignment+set}" = set; then :
16149  enableval=$enable_sim_alignment; case "${enableval}" in
16150  yes | strict | STRICT)      sim_alignment="STRICT_ALIGNMENT";;
16151  no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
16152  forced | FORCED)            sim_alignment="FORCED_ALIGNMENT";;
16153  *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
16154esac
16155fi
16156
16157cat >>confdefs.h <<_ACEOF
16158#define WITH_ALIGNMENT ${sim_alignment:-0}
16159_ACEOF
16160
16161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
16162$as_echo "${sim_alignment:-no}" >&6; }
16163
16164
16165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
16166$as_echo_n "checking whether to enable sim asserts... " >&6; }
16167sim_assert="1"
16168# Check whether --enable-sim-assert was given.
16169if test "${enable_sim_assert+set}" = set; then :
16170  enableval=$enable_sim_assert; case "${enableval}" in
16171  yes)	sim_assert="1";;
16172  no)	sim_assert="0";;
16173  *)	as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
16174esac
16175fi
16176
16177cat >>confdefs.h <<_ACEOF
16178#define WITH_ASSERT $sim_assert
16179_ACEOF
16180
16181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
16182$as_echo "$sim_assert" >&6; }
16183
16184
16185cgen_maint=no
16186cgen=guile
16187cgendir='$(srcdir)/../../cgen'
16188if test -r ${srcdir}/../cgen/iformat.scm; then
16189    cgendir='$(srcdir)/../cgen'
16190fi
16191# Check whether --enable-cgen-maint was given.
16192if test "${enable_cgen_maint+set}" = set; then :
16193  enableval=$enable_cgen_maint; case "${enableval}" in
16194  yes)	cgen_maint=yes ;;
16195  no)	cgen_maint=no ;;
16196  *)
16197	# Argument is a directory where cgen can be found.  In some
16198	# future world cgen could be installable, but right now this
16199	# is not the case.  Instead we assume the directory is a path
16200	# to the cgen source tree.
16201	cgen_maint=yes
16202        if test -r ${enableval}/iformat.scm; then
16203          # This looks like a cgen source tree.
16204	  cgendir=${enableval}
16205        else
16206	  as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
16207        fi
16208	;;
16209esac
16210fi
16211if test x${cgen_maint} != xno ; then
16212  CGEN_MAINT=''
16213else
16214  CGEN_MAINT='#'
16215fi
16216
16217
16218
16219
16220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
16221$as_echo_n "checking for sim debug setting... " >&6; }
16222sim_debug="0"
16223# Check whether --enable-sim-debug was given.
16224if test "${enable_sim_debug+set}" = set; then :
16225  enableval=$enable_sim_debug; case "${enableval}" in
16226  yes) sim_debug="7";;
16227  no)  sim_debug="0";;
16228  *)   sim_debug="($enableval)";;
16229esac
16230fi
16231if test "$sim_debug" != "0"; then
16232
16233cat >>confdefs.h <<_ACEOF
16234#define DEBUG $sim_debug
16235_ACEOF
16236
16237fi
16238
16239cat >>confdefs.h <<_ACEOF
16240#define WITH_DEBUG $sim_debug
16241_ACEOF
16242
16243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
16244$as_echo "$sim_debug" >&6; }
16245
16246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
16247$as_echo_n "checking whether to force sim endianness... " >&6; }
16248sim_endian=
16249# Check whether --enable-sim-endian was given.
16250if test "${enable_sim_endian+set}" = set; then :
16251  enableval=$enable_sim_endian; case "${enableval}" in
16252  b*|B*) sim_endian="BFD_ENDIAN_BIG";;
16253  l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
16254  yes | no) ;;
16255  *)	 as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
16256esac
16257fi
16258
16259cat >>confdefs.h <<_ACEOF
16260#define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
16261_ACEOF
16262
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
16264$as_echo "${sim_alignment:-no}" >&6; }
16265
16266
16267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
16268$as_echo_n "checking default sim environment setting... " >&6; }
16269sim_environment="ALL_ENVIRONMENT"
16270# Check whether --enable-sim-environment was given.
16271if test "${enable_sim_environment+set}" = set; then :
16272  enableval=$enable_sim_environment; case "${enableval}" in
16273  all | ALL)             sim_environment="ALL_ENVIRONMENT";;
16274  user | USER)           sim_environment="USER_ENVIRONMENT";;
16275  virtual | VIRTUAL)     sim_environment="VIRTUAL_ENVIRONMENT";;
16276  operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
16277  *)   as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16278esac
16279fi
16280
16281cat >>confdefs.h <<_ACEOF
16282#define WITH_ENVIRONMENT $sim_environment
16283_ACEOF
16284
16285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
16286$as_echo "$sim_environment" >&6; }
16287
16288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
16289$as_echo_n "checking for sim hardware settings... " >&6; }
16290# Check whether --enable-sim-hardware was given.
16291if test "${enable_sim_hardware+set}" = set; then :
16292  enableval=$enable_sim_hardware;
16293else
16294  enable_sim_hardware="yes"
16295fi
16296
16297sim_hw_sockser=
16298if test "$enable_sim_hardware" = no; then
16299  sim_hw_cflags="-DWITH_HW=0"
16300elif test "$enable_sim_hardware" = yes; then
16301  sim_hw_cflags="-DWITH_HW=1"
16302        sim_hw_sockser="dv-sockser.o"
16303  sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
16304else
16305  as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
16306fi
16307 if test "$enable_sim_hardware" = "yes"; then
16308  SIM_ENABLE_HW_TRUE=
16309  SIM_ENABLE_HW_FALSE='#'
16310else
16311  SIM_ENABLE_HW_TRUE='#'
16312  SIM_ENABLE_HW_FALSE=
16313fi
16314
16315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
16316$as_echo "${enable_sim_hardware}" >&6; }
16317SIM_HW_CFLAGS=$sim_hw_cflags
16318
16319SIM_HW_SOCKSER=$sim_hw_sockser
16320
16321
16322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
16323$as_echo_n "checking sim inline settings... " >&6; }
16324sim_inline="-DDEFAULT_INLINE=0"
16325# Check whether --enable-sim-inline was given.
16326if test "${enable_sim_inline+set}" = set; then :
16327  enableval=$enable_sim_inline; sim_inline=""
16328case "$enableval" in
16329  no)		sim_inline="-DDEFAULT_INLINE=0";;
16330  0)		sim_inline="-DDEFAULT_INLINE=0";;
16331  yes | 2)	sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
16332  1)		sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
16333  *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16334       new_flag=""
16335       case "$x" in
16336	 *_INLINE=*)	new_flag="-D$x";;
16337	 *=*)		new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
16338	 *_INLINE)	new_flag="-D$x=ALL_C_INLINE";;
16339	 *)		new_flag="-D$x""_INLINE=ALL_C_INLINE";;
16340       esac
16341       if test x"$sim_inline" = x""; then
16342	 sim_inline="$new_flag"
16343       else
16344	 sim_inline="$sim_inline $new_flag"
16345       fi
16346     done;;
16347esac
16348
16349fi
16350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
16351$as_echo "$sim_inline" >&6; }
16352SIM_INLINE=$sim_inline
16353
16354
16355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
16356$as_echo_n "checking for sim profile settings... " >&6; }
16357profile="1"
16358sim_profile="-1"
16359# Check whether --enable-sim-profile was given.
16360if test "${enable_sim_profile+set}" = set; then :
16361  enableval=$enable_sim_profile; case "${enableval}" in
16362  yes)	profile="1" sim_profile="-1";;
16363  no)	profile="0" sim_profile="0";;
16364  [-0-9]*)
16365	profile="(${enableval})" sim_profile="(${enableval})";;
16366  [a-z]*)
16367    profile="1"
16368	sim_profile=""
16369	for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16370	  if test x"$sim_profile" = x; then
16371	    sim_profile="(PROFILE_$x"
16372	  else
16373	    sim_profile="${sim_profile}|PROFILE_$x"
16374	  fi
16375	done
16376	sim_profile="$sim_profile)" ;;
16377esac
16378fi
16379
16380cat >>confdefs.h <<_ACEOF
16381#define PROFILE $profile
16382_ACEOF
16383
16384
16385cat >>confdefs.h <<_ACEOF
16386#define WITH_PROFILE $sim_profile
16387_ACEOF
16388
16389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16390$as_echo "$sim_profile" >&6; }
16391
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16393$as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16394# Check whether --enable-sim-reserved-bits was given.
16395if test "${enable_sim_reserved_bits+set}" = set; then :
16396  enableval=$enable_sim_reserved_bits; case "${enableval}" in
16397yes|no) ;;
16398*) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16399esac
16400fi
16401
16402if test "x${enable_sim_reserved_bits}" != xno; then
16403  sim_reserved_bits=1
16404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16405$as_echo "yes" >&6; }
16406else
16407  sim_reserved_bits=0
16408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16409$as_echo "no" >&6; }
16410fi
16411
16412cat >>confdefs.h <<_ACEOF
16413#define WITH_RESERVED_BITS $sim_reserved_bits
16414_ACEOF
16415
16416
16417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16418$as_echo_n "checking for sim cache size... " >&6; }
16419sim_scache="16384"
16420# Check whether --enable-sim-scache was given.
16421if test "${enable_sim_scache+set}" = set; then :
16422  enableval=$enable_sim_scache; case "${enableval}" in
16423  yes)	;;
16424  no)	sim_scache="0";;
16425  [0-9]*) sim_scache="${enableval}";;
16426  *)	as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16427esac
16428fi
16429
16430
16431cat >>confdefs.h <<_ACEOF
16432#define WITH_SCACHE $sim_scache
16433_ACEOF
16434
16435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16436$as_echo "$sim_scache" >&6; }
16437
16438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
16439$as_echo_n "checking number of sim cpus to support... " >&6; }
16440default_sim_smp="0"
16441sim_smp="$default_sim_smp"
16442# Check whether --enable-sim-smp was given.
16443if test "${enable_sim_smp+set}" = set; then :
16444  enableval=$enable_sim_smp; case "${enableval}" in
16445  yes)	sim_smp="5";;
16446  no)	sim_smp="0";;
16447  *)	sim_smp="$enableval";;
16448esac
16449fi
16450IGEN_FLAGS_SMP="-N ${sim_smp}"
16451
16452if test "x$sim_smp" = x0; then :
16453
16454else
16455
16456cat >>confdefs.h <<_ACEOF
16457#define WITH_SMP $sim_smp
16458_ACEOF
16459
16460fi
16461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
16462$as_echo "$sim_smp" >&6; }
16463
16464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16465$as_echo_n "checking for sim stdio debug behavior... " >&6; }
16466sim_stdio="0"
16467# Check whether --enable-sim-stdio was given.
16468if test "${enable_sim_stdio+set}" = set; then :
16469  enableval=$enable_sim_stdio; case "${enableval}" in
16470  yes)	sim_stdio="DO_USE_STDIO";;
16471  no)	sim_stdio="DONT_USE_STDIO";;
16472  *)	as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16473esac
16474fi
16475
16476cat >>confdefs.h <<_ACEOF
16477#define WITH_STDIO $sim_stdio
16478_ACEOF
16479
16480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16481$as_echo "$sim_stdio" >&6; }
16482
16483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16484$as_echo_n "checking for sim trace settings... " >&6; }
16485sim_trace="~TRACE_debug"
16486# Check whether --enable-sim-trace was given.
16487if test "${enable_sim_trace+set}" = set; then :
16488  enableval=$enable_sim_trace; case "${enableval}" in
16489  yes)	sim_trace="-1";;
16490  no)	sim_trace="0";;
16491  [-0-9]*)
16492	sim_trace="'(${enableval})'";;
16493  [[:lower:]]*)
16494	sim_trace=""
16495	for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16496	  if test x"$sim_trace" = x; then
16497	    sim_trace="(TRACE_$x"
16498	  else
16499	    sim_trace="${sim_trace}|TRACE_$x"
16500	  fi
16501	done
16502	sim_trace="$sim_trace)" ;;
16503esac
16504fi
16505
16506cat >>confdefs.h <<_ACEOF
16507#define WITH_TRACE $sim_trace
16508_ACEOF
16509
16510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16511$as_echo "$sim_trace" >&6; }
16512
16513# Check whether --enable-werror was given.
16514if test "${enable_werror+set}" = set; then :
16515  enableval=$enable_werror; case "${enableval}" in
16516     yes | y) ERROR_ON_WARNING="yes" ;;
16517     no | n)  ERROR_ON_WARNING="no" ;;
16518     *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16519   esac
16520fi
16521
16522
16523if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16524  ERROR_ON_WARNING=yes
16525fi
16526
16527WERROR_CFLAGS=""
16528if test "${ERROR_ON_WARNING}" = yes ; then
16529  WERROR_CFLAGS="-Werror"
16530fi
16531
16532build_warnings="-Wall -Wpointer-arith
16533-Wno-unused -Wunused-value -Wunused-variable -Wunused-function
16534-Wno-switch -Wno-char-subscripts
16535-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
16536-Wno-sign-compare -Wno-error=maybe-uninitialized
16537-Wno-error=deprecated-register
16538-Wimplicit-fallthrough=5
16539-Wduplicated-cond
16540-Wshadow=local
16541-Wmissing-declarations
16542"
16543build_warnings="$build_warnings
16544-Wdeclaration-after-statement
16545-Wdeprecated-non-prototype
16546-Wimplicit-function-declaration
16547-Wimplicit-int
16548-Wincompatible-function-pointer-types
16549-Wincompatible-pointer-types
16550-Wint-conversion
16551-Wmisleading-indentation
16552-Wmissing-parameter-type
16553-Wmissing-prototypes
16554-Wold-style-declaration
16555-Wold-style-definition
16556-Wpointer-sign
16557-Wreturn-mismatch
16558-Wreturn-type
16559-Wshift-negative-value
16560-Wstrict-prototypes
16561-Wno-enum-conversion
16562"
16563build_build_warnings="
16564-Wno-stringop-truncation
16565-Wno-implicit-fallthrough
16566-Wno-shadow=local
16567"
16568
16569case "${host}" in
16570  *-*-mingw32*)
16571    # Enable -Wno-format by default when using gcc on mingw since many
16572    # GCC versions complain about %I64.
16573    build_warnings="$build_warnings -Wno-format" ;;
16574  *-*-solaris*)
16575    # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16576    # doesn't understand.
16577    build_warnings="$build_warnings -Wno-unknown-pragmas"
16578    # Solaris 11 <unistd.h> marks vfork deprecated.
16579    build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
16580  *)
16581    # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16582    # but there's a special case for this below.
16583    build_warnings="$build_warnings -Wformat-nonliteral" ;;
16584esac
16585
16586# Check whether --enable-build-warnings was given.
16587if test "${enable_build_warnings+set}" = set; then :
16588  enableval=$enable_build_warnings; case "${enableval}" in
16589  yes)	;;
16590  no)	build_warnings="-w";;
16591  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16592        build_warnings="${build_warnings} ${t}";;
16593  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16594        build_warnings="${t} ${build_warnings}";;
16595  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16596esac
16597if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16598  echo "Setting compiler warning flags = $build_warnings" 6>&1
16599fi
16600fi
16601# Check whether --enable-sim-build-warnings was given.
16602if test "${enable_sim_build_warnings+set}" = set; then :
16603  enableval=$enable_sim_build_warnings; case "${enableval}" in
16604  yes)	;;
16605  no)	build_warnings="-w";;
16606  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16607        build_warnings="${build_warnings} ${t}";;
16608  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16609        build_warnings="${t} ${build_warnings}";;
16610  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16611esac
16612if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16613  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16614fi
16615fi
16616WARN_CFLAGS=""
16617BUILD_WARN_CFLAGS=""
16618if test "x${build_warnings}" != x -a "x$GCC" = xyes
16619then
16620
16621
16622            { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16623$as_echo_n "checking compiler warning flags... " >&6; }
16624    # Separate out the -Werror flag as some files just cannot be
16625    # compiled with it enabled.
16626    for w in ${build_warnings}; do
16627	case $w in
16628	-Werr*) WERROR_CFLAGS=-Werror ;;
16629	*)       w="$w"
16630  case $w in
16631  -Wno-*)
16632    wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16633  -Wformat-nonliteral)
16634            w="-Wformat $w"
16635    wtest="$w"
16636    ;;
16637  *)
16638    wtest=$w ;;
16639  esac
16640
16641    saved_CFLAGS="$CFLAGS"
16642  CFLAGS="$CFLAGS -Werror $wtest"
16643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644/* end confdefs.h.  */
16645
16646int
16647main ()
16648{
16649
16650  ;
16651  return 0;
16652}
16653_ACEOF
16654if ac_fn_c_try_compile "$LINENO"; then :
16655  WARN_CFLAGS="${WARN_CFLAGS} $w"
16656fi
16657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658  CFLAGS="$saved_CFLAGS"
16659 ;;
16660	esac
16661    done
16662    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16663$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16664
16665
16666        if test "x$cross_compiling" = "xno"; then :
16667  	SAVE_WARN_CFLAGS=$WARN_CFLAGS
16668	build_warnings=$build_build_warnings
16669	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16670$as_echo_n "checking compiler warning flags... " >&6; }
16671    # Separate out the -Werror flag as some files just cannot be
16672    # compiled with it enabled.
16673    for w in ${build_warnings}; do
16674	case $w in
16675	-Werr*) WERROR_CFLAGS=-Werror ;;
16676	*)       w="$w"
16677  case $w in
16678  -Wno-*)
16679    wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16680  -Wformat-nonliteral)
16681            w="-Wformat $w"
16682    wtest="$w"
16683    ;;
16684  *)
16685    wtest=$w ;;
16686  esac
16687
16688    saved_CFLAGS="$CFLAGS"
16689  CFLAGS="$CFLAGS -Werror $wtest"
16690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691/* end confdefs.h.  */
16692
16693int
16694main ()
16695{
16696
16697  ;
16698  return 0;
16699}
16700_ACEOF
16701if ac_fn_c_try_compile "$LINENO"; then :
16702  WARN_CFLAGS="${WARN_CFLAGS} $w"
16703fi
16704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705  CFLAGS="$saved_CFLAGS"
16706 ;;
16707	esac
16708    done
16709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16710$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16711
16712	BUILD_WARN_CFLAGS=$WARN_CFLAGS
16713	WARN_CFLAGS=$SAVE_WARN_CFLAGS
16714	BUILD_WERROR_CFLAGS=$WERROR_CFLAGS
16715
16716fi
16717
16718          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-shadow=local is supported" >&5
16719$as_echo_n "checking whether -Wno-shadow=local is supported... " >&6; }
16720        w="-Wno-shadow=local"
16721  case $w in
16722  -Wno-*)
16723    wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16724  -Wformat-nonliteral)
16725            w="-Wformat $w"
16726    wtest="$w"
16727    ;;
16728  *)
16729    wtest=$w ;;
16730  esac
16731
16732    saved_CFLAGS="$CFLAGS"
16733  CFLAGS="$CFLAGS -Werror $wtest"
16734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735/* end confdefs.h.  */
16736
16737int
16738main ()
16739{
16740
16741  ;
16742  return 0;
16743}
16744_ACEOF
16745if ac_fn_c_try_compile "$LINENO"; then :
16746        SIM_CFLAG_WNO_SHADOW_LOCAL=-Wno-shadow=local
16747
16748
16749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16750$as_echo "yes" >&6; }
16751
16752else
16753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16754$as_echo "no" >&6; }
16755fi
16756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757  CFLAGS="$saved_CFLAGS"
16758
16759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-unused-but-set-variable is supported" >&5
16760$as_echo_n "checking whether -Wno-unused-but-set-variable is supported... " >&6; }
16761        w="-Wno-unused-but-set-variable"
16762  case $w in
16763  -Wno-*)
16764    wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16765  -Wformat-nonliteral)
16766            w="-Wformat $w"
16767    wtest="$w"
16768    ;;
16769  *)
16770    wtest=$w ;;
16771  esac
16772
16773    saved_CFLAGS="$CFLAGS"
16774  CFLAGS="$CFLAGS -Werror $wtest"
16775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776/* end confdefs.h.  */
16777
16778int
16779main ()
16780{
16781
16782  ;
16783  return 0;
16784}
16785_ACEOF
16786if ac_fn_c_try_compile "$LINENO"; then :
16787        SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
16788
16789
16790    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16791$as_echo "yes" >&6; }
16792
16793else
16794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16795$as_echo "no" >&6; }
16796fi
16797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798  CFLAGS="$saved_CFLAGS"
16799
16800fi
16801
16802
16803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16804$as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16805# Check whether --enable-sim-frv-trapdump was given.
16806if test "${enable_sim_frv_trapdump+set}" = set; then :
16807  enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16808yes|no) ;;
16809*) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16810esac
16811fi
16812
16813if test "x${enable_sim_frv_trapdump}" = xyes; then
16814  SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16816$as_echo "yes" >&6; }
16817else
16818  SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16820$as_echo "no" >&6; }
16821fi
16822
16823
16824
16825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
16826$as_echo_n "checking mips subtarget... " >&6; }
16827SIM_MIPS_SUBTARGET=
16828case ${target} in #(
16829  mips64vr*-*-*) :
16830    SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16831  mips*tx39*) :
16832    SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
16833  mips*-sde-elf*) :
16834    SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16835  mips*-mti-elf*) :
16836    SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16837  mipsisa32*-*-*) :
16838    SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16839  mipsisa64*-*-*) :
16840    SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16841  *) :
16842     ;;
16843esac
16844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
16845$as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
16846
16847
16848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
16849$as_echo_n "checking mips bitsize... " >&6; }
16850SIM_MIPS_BITSIZE=64
16851case ${target} in #(
16852  mips*-sde-elf*) :
16853    SIM_MIPS_BITSIZE=64 ;; #(
16854  mips*-mti-elf*) :
16855    SIM_MIPS_BITSIZE=64 ;; #(
16856  mips64*-*-*) :
16857    SIM_MIPS_BITSIZE=64 ;; #(
16858  mips16*-*-*) :
16859    SIM_MIPS_BITSIZE=64 ;; #(
16860  mipsisa32*-*-*) :
16861    SIM_MIPS_BITSIZE=32 ;; #(
16862  mipsisa64*-*-*) :
16863    SIM_MIPS_BITSIZE=64 ;; #(
16864  mips*-*-*) :
16865    SIM_MIPS_BITSIZE=32 ;; #(
16866  *) :
16867     ;;
16868esac
16869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
16870$as_echo "$SIM_MIPS_BITSIZE" >&6; }
16871
16872
16873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
16874$as_echo_n "checking mips fpu bitsize... " >&6; }
16875SIM_MIPS_FPU_BITSIZE=64
16876case ${target} in #(
16877  mips*tx39*) :
16878    SIM_MIPS_FPU_BITSIZE=32 ;; #(
16879  mips*-sde-elf*) :
16880    SIM_MIPS_FPU_BITSIZE=64 ;; #(
16881  mips*-mti-elf*) :
16882    SIM_MIPS_FPU_BITSIZE=64 ;; #(
16883  mipsisa32*-*-*) :
16884    SIM_MIPS_FPU_BITSIZE=64 ;; #(
16885  mipsisa64*-*-*) :
16886    SIM_MIPS_FPU_BITSIZE=64 ;; #(
16887  mips*-*-*) :
16888    SIM_MIPS_FPU_BITSIZE=32 ;; #(
16889  *) :
16890     ;;
16891esac
16892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
16893$as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
16894
16895
16896SIM_MIPS_GEN=SINGLE
16897sim_mips_single_machine="-M mipsIV"
16898sim_mips_m16_machine="-M mips16,mipsIII"
16899sim_mips_single_filter="32,64,f"
16900sim_mips_m16_filter="16"
16901case ${target} in #(
16902  mips*tx39*) :
16903        SIM_MIPS_GEN=SINGLE
16904    sim_mips_single_filter="32,f"
16905    sim_mips_single_machine="-M r3900" ;; #(
16906  mips64vr41*) :
16907        SIM_MIPS_GEN=M16
16908    sim_mips_single_machine="-M vr4100"
16909    sim_mips_m16_machine="-M vr4100" ;; #(
16910  mips64*) :
16911        SIM_MIPS_GEN=MULTI
16912    sim_mips_multi_configs="\
16913      vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
16914      vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
16915      vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
16916      vr5400:mipsIV,vr5400:32,64,f:mips5400\
16917      vr5500:mipsIV,vr5500:32,64,f:mips5500"
16918    sim_mips_multi_default=mips5000 ;; #(
16919  mips*-sde-elf* | mips*-mti-elf*) :
16920        SIM_MIPS_GEN=MULTI
16921    sim_mips_multi_configs="\
16922      micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
16923      mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
16924      mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
16925    sim_mips_multi_default=mipsisa64r2 ;; #(
16926  mips16*) :
16927        SIM_MIPS_GEN=M16 ;; #(
16928  mipsisa32r2*) :
16929        SIM_MIPS_GEN=MULTI
16930    sim_mips_multi_configs="\
16931      micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16932      mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16933    sim_mips_multi_default=mipsisa32r2 ;; #(
16934  mipsisa32r6*) :
16935        SIM_MIPS_GEN=SINGLE
16936    sim_mips_single_machine="-M mips32r6"
16937    sim_mips_single_filter="32,f" ;; #(
16938  mipsisa32*) :
16939        SIM_MIPS_GEN=M16
16940    sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips"
16941    sim_mips_m16_machine="-M mips16,mips16e,mips32"
16942    sim_mips_single_filter="32,f" ;; #(
16943  mipsisa64r2*) :
16944        SIM_MIPS_GEN=M16
16945    sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
16946    sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #(
16947  mipsisa64r6*) :
16948        SIM_MIPS_GEN=SINGLE
16949    sim_mips_single_machine="-M mips64r6" ;; #(
16950  mipsisa64sb1*) :
16951        SIM_MIPS_GEN=SINGLE
16952    sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #(
16953  mipsisa64*) :
16954        SIM_MIPS_GEN=M16
16955    sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
16956    sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #(
16957  mips*lsi*) :
16958        SIM_MIPS_GEN=M16
16959    sim_mips_single_machine="-M mipsIII,mips16"
16960    sim_mips_m16_machine="-M mips16,mipsIII"
16961    sim_mips_single_filter="32,f" ;; #(
16962  mips*) :
16963        SIM_MIPS_GEN=SINGLE
16964    sim_mips_single_filter="32,f" ;; #(
16965  *) :
16966     ;;
16967esac
16968
16969SIM_MIPS_IGEN_ITABLE_FLAGS=
16970SIM_MIPS_MULTI_SRC=
16971SIM_MIPS_MULTI_OBJ=
16972SIM_MIPS_MULTI_IGEN_CONFIGS=
16973if test "x$SIM_MIPS_GEN" = x"MULTI"; then :
16974      if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then :
16975      as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16976fi
16977
16978    as_dir=mips; as_fn_mkdir_p
16979  rm -f mips/multi-include.h mips/multi-run.c
16980  sim_mips_seen_default=no
16981
16982  cat << __EOF__ > mips/multi-run.c
16983/* Main entry point for MULTI simulators.
16984   Copyright (C) 2003-2023 Free Software Foundation, Inc.
16985
16986   This program is free software; you can redistribute it and/or modify
16987   it under the terms of the GNU General Public License as published by
16988   the Free Software Foundation; either version 3 of the License, or
16989   (at your option) any later version.
16990
16991   This program is distributed in the hope that it will be useful,
16992   but WITHOUT ANY WARRANTY; without even the implied warranty of
16993   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16994   GNU General Public License for more details.
16995
16996   You should have received a copy of the GNU General Public License
16997   along with this program.  If not, see <http://www.gnu.org/licenses/>.
16998
16999   --
17000
17001   This file was generated by sim/mips/configure.  */
17002
17003#include "sim-main.h"
17004#include "multi-include.h"
17005#include "bfd/elf-bfd.h"
17006#include "bfd/elfxx-mips.h"
17007#include "elf/mips.h"
17008
17009#define SD sd
17010#define CPU cpu
17011
17012void
17013sim_engine_run (SIM_DESC sd,
17014		int next_cpu_nr,
17015		int nr_cpus,
17016		int signal) /* ignore */
17017{
17018  int mach;
17019
17020  if (STATE_ARCHITECTURE (sd) == NULL)
17021    mach = bfd_mach_${sim_mips_multi_default};
17022  else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
17023	   & EF_MIPS_ARCH_ASE_MICROMIPS)
17024    mach = bfd_mach_mips_micromips;
17025  else
17026  {
17027     mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
17028     if (!mach)
17029       mach = STATE_ARCHITECTURE (SD)->mach;
17030  }
17031
17032  switch (mach)
17033    {
17034__EOF__
17035
17036  for fc in ${sim_mips_multi_configs}; do
17037
17038            c=`echo ${fc} | sed 's/:[^:]*$//'`
17039    bfdmachs=`echo ${fc} | sed 's/.*://'`
17040    name=`echo ${c} | sed 's/:.*//'`
17041    machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
17042    filter=`echo ${c} | sed 's/.*://'`
17043
17044                                            as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}"
17045
17046        case ${c} in #(
17047  *:*mips16*:*) :
17048    		ws="m32 m16"
17049
17050				as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c"
17051	as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o"
17052	as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16"
17053	 ;; #(
17054  *:*micromips32*:*) :
17055    			ws="micromips_m32 micromips16 micromips32"
17056
17057				as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
17058	as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
17059	as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32"
17060	 ;; #(
17061  *:*micromips64*:*) :
17062    			ws="micromips_m64 micromips16 micromips64"
17063
17064				as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
17065	as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
17066	as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64"
17067	 ;; #(
17068  *) :
17069    ws=m32 ;;
17070esac
17071
17072            for w in ${ws}; do
17073      for base in engine icache idecode model semantics support; do
17074	as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c"
17075	as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h"
17076	as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o"
17077      done
17078      as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}"
17079    done
17080
17081            echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h
17082
17083        for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
17084      echo "    case bfd_mach_${mach}:" >> mips/multi-run.c
17085      if test "x$mach" = x"${sim_mips_multi_default}"; then :
17086  	echo "    default:" >> mips/multi-run.c
17087	sim_mips_seen_default=yes
17088
17089fi
17090    done
17091    echo "      ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
17092      >> mips/multi-run.c
17093    echo "      break;" >> mips/multi-run.c
17094  done
17095
17096    if test "x$sim_mips_seen_default" = xno; then :
17097      as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
17098fi
17099
17100  cat << __EOF__ >> mips/multi-run.c
17101    }
17102}
17103__EOF__
17104
17105else
17106    SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)'
17107  if test "x$SIM_MIPS_GEN" = x"M16"; then :
17108  as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)'
17109fi
17110
17111fi
17112SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
17113SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
17114
17115
17116
17117
17118
17119
17120
17121 if test "$SIM_MIPS_GEN" = "SINGLE"; then
17122  SIM_MIPS_GEN_MODE_SINGLE_TRUE=
17123  SIM_MIPS_GEN_MODE_SINGLE_FALSE='#'
17124else
17125  SIM_MIPS_GEN_MODE_SINGLE_TRUE='#'
17126  SIM_MIPS_GEN_MODE_SINGLE_FALSE=
17127fi
17128
17129 if test "$SIM_MIPS_GEN" = "M16"; then
17130  SIM_MIPS_GEN_MODE_M16_TRUE=
17131  SIM_MIPS_GEN_MODE_M16_FALSE='#'
17132else
17133  SIM_MIPS_GEN_MODE_M16_TRUE='#'
17134  SIM_MIPS_GEN_MODE_M16_FALSE=
17135fi
17136
17137 if test "$SIM_MIPS_GEN" = "MULTI"; then
17138  SIM_MIPS_GEN_MODE_MULTI_TRUE=
17139  SIM_MIPS_GEN_MODE_MULTI_FALSE='#'
17140else
17141  SIM_MIPS_GEN_MODE_MULTI_TRUE='#'
17142  SIM_MIPS_GEN_MODE_MULTI_FALSE=
17143fi
17144
17145
17146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc bitsize settings" >&5
17147$as_echo_n "checking for sim ppc bitsize settings... " >&6; }
17148# Check whether --enable-sim-ppc-bitsize was given.
17149if test "${enable_sim_ppc_bitsize+set}" = set; then :
17150  enableval=$enable_sim_ppc_bitsize; case "${enableval}" in
17151  32|64) sim_ppc_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
17152  *)	 as_fn_error $? "\"--enable-sim-ppc-bitsize was given $enableval.  Expected 32 or 64\"" "$LINENO" 5;;
17153esac
17154else
17155  sim_ppc_bitsize=""
17156fi
17157
17158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_bitsize" >&5
17159$as_echo "$sim_ppc_bitsize" >&6; }
17160
17161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc decode mechanism" >&5
17162$as_echo_n "checking for sim ppc decode mechanism... " >&6; }
17163# Check whether --enable-sim-ppc-decode-mechanism was given.
17164if test "${enable_sim_ppc_decode_mechanism+set}" = set; then :
17165  enableval=$enable_sim_ppc_decode_mechanism; case "${enableval}" in
17166  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-ppc-decode-mechanism=file\"" "$LINENO" 5;;
17167  array|switch|padded-switch|goto-switch)	sim_ppc_decode_mechanism="-T ${enableval}";;
17168  *)		as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;;
17169esac
17170else
17171  sim_ppc_decode_mechanism=""
17172fi
17173
17174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_decode_mechanism" >&5
17175$as_echo "$sim_ppc_decode_mechanism" >&6; }
17176
17177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc default model" >&5
17178$as_echo_n "checking for sim ppc default model... " >&6; }
17179# Check whether --enable-sim-ppc-default-model was given.
17180if test "${enable_sim_ppc_default_model+set}" = set; then :
17181  enableval=$enable_sim_ppc_default_model; case "${enableval}" in
17182  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-ppc-default-model=model\"" "$LINENO" 5;;
17183  *)		sim_ppc_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
17184esac
17185else
17186  sim_ppc_default_model=""
17187fi
17188
17189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_default_model" >&5
17190$as_echo "$sim_ppc_default_model" >&6; }
17191
17192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc duplicate settings" >&5
17193$as_echo_n "checking for sim ppc duplicate settings... " >&6; }
17194# Check whether --enable-sim-ppc-duplicate was given.
17195if test "${enable_sim_ppc_duplicate+set}" = set; then :
17196  enableval=$enable_sim_ppc_duplicate; case "${enableval}" in
17197  yes)	sim_ppc_dup="-E";;
17198  no)	sim_ppc_dup="";;
17199  *)	as_fn_error $? "\"--enable-sim-ppc-duplicate does not take a value\"" "$LINENO" 5;;
17200esac
17201else
17202  sim_ppc_dup="-E"
17203fi
17204
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_dup" >&5
17206$as_echo "$sim_ppc_dup" >&6; }
17207
17208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc filter rules" >&5
17209$as_echo_n "checking for sim ppc filter rules... " >&6; }
17210# Check whether --enable-sim-ppc-filter was given.
17211if test "${enable_sim_ppc_filter+set}" = set; then :
17212  enableval=$enable_sim_ppc_filter; case "${enableval}" in
17213  yes)	as_fn_error $? "\"--enable-sim-ppc-filter must be specified with a rule to filter or no\"" "$LINENO" 5;;
17214  no)	sim_ppc_filter="";;
17215  *)	sim_ppc_filter="-F $enableval";;
17216esac
17217else
17218  sim_ppc_filter="-F 32,f,o"
17219fi
17220
17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_filter" >&5
17222$as_echo "$sim_ppc_filter" >&6; }
17223
17224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc float settings" >&5
17225$as_echo_n "checking for sim ppc float settings... " >&6; }
17226# Check whether --enable-sim-ppc-float was given.
17227if test "${enable_sim_ppc_float+set}" = set; then :
17228  enableval=$enable_sim_ppc_float; case "${enableval}" in
17229  yes | hard)	sim_ppc_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
17230  no | soft)	sim_ppc_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
17231  altivec)      sim_ppc_float="-DWITH_ALTIVEC" ; sim_ppc_filter="${sim_ppc_filter},av" ;;
17232  *spe*|*simd*) sim_ppc_float="-DWITH_E500" ; sim_ppc_filter="${sim_ppc_filter},e500" ;;
17233  *)		as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-ppc-float\"" "$LINENO" 5;;
17234esac
17235else
17236  case "${target}" in
17237  *altivec*) sim_ppc_float="-DWITH_ALTIVEC" ; sim_ppc_filter="${sim_ppc_filter},av" ;;
17238  *spe*|*simd*)	sim_ppc_float="-DWITH_E500" ; sim_ppc_filter="${sim_ppc_filter},e500" ;;
17239  *) sim_ppc_float=""
17240esac
17241fi
17242
17243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_float" >&5
17244$as_echo "$sim_ppc_float" >&6; }
17245
17246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc hardware settings" >&5
17247$as_echo_n "checking for sim ppc hardware settings... " >&6; }
17248hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide,sem,shm"
17249# Check whether --enable-sim-ppc-hardware was given.
17250if test "${enable_sim_ppc_hardware+set}" = set; then :
17251  enableval=$enable_sim_ppc_hardware; case "${enableval}" in
17252  yes)	;;
17253  no)	as_fn_error $? "\"List of hardware must be specified for --enable-sim-ppc-hardware\"" "$LINENO" 5;;
17254  ,*)   hardware="${hardware}${enableval}";;
17255  *,)   hardware="${enableval}${hardware}";;
17256  *)	hardware="${enableval}"'';;
17257esac
17258fi
17259
17260sim_ppc_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
17261sim_ppc_hw_obj=`echo $sim_ppc_hw_src | sed -e 's/\.c/.o/g'`
17262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardware" >&5
17263$as_echo "$hardware" >&6; }
17264
17265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc icache settings" >&5
17266$as_echo_n "checking for sim ppc icache settings... " >&6; }
17267# Check whether --enable-sim-ppc-icache was given.
17268if test "${enable_sim_ppc_icache+set}" = set; then :
17269  enableval=$enable_sim_ppc_icache; icache="-R"
17270 case "${enableval}" in
17271  yes)		icache="1024"; sim_ppc_icache="-I $icache";;
17272  no)		sim_ppc_icache="-R";;
17273  *) icache=1024
17274     sim_ppc_icache="-"
17275     for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
17276       case "$x" in
17277         define)	sim_ppc_icache="${sim_ppc_icache}R";;
17278         semantic)	sim_ppc_icache="${sim_ppc_icache}C";;
17279	 insn)		sim_ppc_icache="${sim_ppc_icache}S";;
17280	 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*)	icache=$x;;
17281         *)		as_fn_error $? "\"Unknown value $x for --enable-sim-ppc-icache\"" "$LINENO" 5;;
17282       esac
17283     done
17284     sim_ppc_icache="${sim_ppc_icache}I $icache";;
17285esac
17286else
17287  sim_ppc_icache="-CSRI 1024"
17288fi
17289
17290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_icache" >&5
17291$as_echo "$sim_ppc_icache" >&6; }
17292
17293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc jump settings" >&5
17294$as_echo_n "checking for sim ppc jump settings... " >&6; }
17295# Check whether --enable-sim-ppc-jump was given.
17296if test "${enable_sim_ppc_jump+set}" = set; then :
17297  enableval=$enable_sim_ppc_jump; case "${enableval}" in
17298  yes)	sim_ppc_jump="-J";;
17299  no)	sim_ppc_jump="";;
17300  *)	as_fn_error $? "\"--enable-sim-ppc-jump does not take a value\"" "$LINENO" 5;;
17301esac
17302else
17303  sim_ppc_jump=""
17304fi
17305
17306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_jump" >&5
17307$as_echo "$sim_ppc_jump" >&6; }
17308
17309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc source debug line numbers" >&5
17310$as_echo_n "checking for sim ppc source debug line numbers... " >&6; }
17311# Check whether --enable-sim-ppc-line-nr was given.
17312if test "${enable_sim_ppc_line_nr+set}" = set; then :
17313  enableval=$enable_sim_ppc_line_nr; case "${enableval}" in
17314  yes)	sim_ppc_line_nr="";;
17315  no)	sim_ppc_line_nr="-L";;
17316  *)	as_fn_error $? "\"--enable-sim-ppc-line-nr does not take a value\"" "$LINENO" 5;;
17317esac
17318else
17319  sim_ppc_line_nr=""
17320fi
17321
17322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_line_nr" >&5
17323$as_echo "$sim_ppc_line_nr" >&6; }
17324
17325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model" >&5
17326$as_echo_n "checking for sim ppc model... " >&6; }
17327# Check whether --enable-sim-ppc-model was given.
17328if test "${enable_sim_ppc_model+set}" = set; then :
17329  enableval=$enable_sim_ppc_model; case "${enableval}" in
17330  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-ppc-model=model\"" "$LINENO" 5;;
17331  *)		sim_ppc_model="-DWITH_MODEL=${enableval}";;
17332esac
17333else
17334  sim_ppc_model=""
17335fi
17336
17337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model" >&5
17338$as_echo "$sim_ppc_model" >&6; }
17339
17340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model issue" >&5
17341$as_echo_n "checking for sim ppc model issue... " >&6; }
17342# Check whether --enable-sim-ppc-model-issue was given.
17343if test "${enable_sim_ppc_model_issue+set}" = set; then :
17344  enableval=$enable_sim_ppc_model_issue; case "${enableval}" in
17345  yes)	sim_ppc_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
17346  no)	sim_ppc_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
17347  *)	as_fn_error $? "\"--enable-sim-ppc-model-issue does not take a value\"" "$LINENO" 5;;
17348esac
17349else
17350  sim_ppc_model_issue=""
17351fi
17352
17353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model_issue" >&5
17354$as_echo "$sim_ppc_model_issue" >&6; }
17355
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc event monitoring" >&5
17357$as_echo_n "checking for sim ppc event monitoring... " >&6; }
17358# Check whether --enable-sim-ppc-monitor was given.
17359if test "${enable_sim_ppc_monitor+set}" = set; then :
17360  enableval=$enable_sim_ppc_monitor; case "${enableval}" in
17361  yes)		sim_ppc_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
17362  no)		sim_ppc_monitor="-DWITH_MON=0";;
17363  instruction)	sim_ppc_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
17364  memory)	sim_ppc_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
17365  *)		as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-ppc-mon\"" "$LINENO" 5;;
17366esac
17367else
17368  sim_ppc_monitor=""
17369fi
17370
17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_monitor" >&5
17372$as_echo "$sim_ppc_monitor" >&6; }
17373
17374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc opcode lookup settings" >&5
17375$as_echo_n "checking for sim ppc opcode lookup settings... " >&6; }
17376# Check whether --enable-sim-ppc-opcode was given.
17377if test "${enable_sim_ppc_opcode+set}" = set; then :
17378  enableval=$enable_sim_ppc_opcode; case "${enableval}" in
17379  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-ppc-opcode=file\"" "$LINENO" 5;;
17380  *)		if test -f "${srcdir}/${enableval}"; then
17381		  sim_ppc_opcode="${enableval}"
17382		elif test -f "${srcdir}/dc-${enableval}"; then
17383		  sim_ppc_opcode="dc-${enableval}"
17384		else
17385		  as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5
17386		fi;;
17387esac
17388else
17389  sim_ppc_opcode="dc-complex"
17390fi
17391
17392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_opcode" >&5
17393$as_echo "$sim_ppc_opcode" >&6; }
17394
17395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc smp settings" >&5
17396$as_echo_n "checking for sim ppc smp settings... " >&6; }
17397# Check whether --enable-sim-ppc-smp was given.
17398if test "${enable_sim_ppc_smp+set}" = set; then :
17399  enableval=$enable_sim_ppc_smp; case "${enableval}" in
17400  yes)	sim_ppc_smp="-DWITH_SMP=5" ; sim_ppc_igen_smp="-N 5";;
17401  no)	sim_ppc_smp="-DWITH_SMP=0" ; sim_ppc_igen_smp="-N 0";;
17402  *)	sim_ppc_smp="-DWITH_SMP=$enableval" ; sim_ppc_igen_smp="-N $enableval";;
17403esac
17404else
17405  sim_ppc_smp="-DWITH_SMP=5" ; sim_ppc_igen_smp="-N 5"
17406fi
17407
17408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_smp" >&5
17409$as_echo "$sim_ppc_smp" >&6; }
17410
17411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc switch table settings" >&5
17412$as_echo_n "checking for sim ppc switch table settings... " >&6; }
17413# Check whether --enable-sim-ppc-switch was given.
17414if test "${enable_sim_ppc_switch+set}" = set; then :
17415  enableval=$enable_sim_ppc_switch; case "${enableval}" in
17416  yes)	sim_ppc_switch="-DWITH_SPREG_SWITCH_TABLE";;
17417  no)	sim_ppc_switch="";;
17418  *)	as_fn_error $? "\"--enable-sim-ppc-switch does not take a value\"" "$LINENO" 5;;
17419esac
17420else
17421  sim_ppc_switch=""
17422fi
17423
17424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_switch" >&5
17425$as_echo "$sim_ppc_switch" >&6; }
17426
17427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc timebase" >&5
17428$as_echo_n "checking for sim ppc timebase... " >&6; }
17429# Check whether --enable-sim-ppc-timebase was given.
17430if test "${enable_sim_ppc_timebase+set}" = set; then :
17431  enableval=$enable_sim_ppc_timebase; case "${enableval}" in
17432  yes)	sim_ppc_timebase="-DWITH_TIME_BASE=1";;
17433  no)	sim_ppc_timebase="-DWITH_TIME_BASE=0";;
17434  *)	as_fn_error $? "\"--enable-sim-ppc-timebase does not take a value\"" "$LINENO" 5;;
17435esac
17436else
17437  sim_ppc_timebase=""
17438fi
17439
17440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_timebase" >&5
17441$as_echo "$sim_ppc_timebase" >&6; }
17442
17443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc xor endian settings" >&5
17444$as_echo_n "checking for sim ppc xor endian settings... " >&6; }
17445# Check whether --enable-sim-ppc-xor-endian was given.
17446if test "${enable_sim_ppc_xor_endian+set}" = set; then :
17447  enableval=$enable_sim_ppc_xor_endian; case "${enableval}" in
17448  yes)	sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=8";;
17449  no)	sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=0";;
17450  *)	sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
17451esac
17452else
17453  sim_ppc_xor_endian=""
17454fi
17455
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_xor_endian" >&5
17457$as_echo "$sim_ppc_xor_endian" >&6; }
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
17481$as_echo_n "checking riscv bitsize... " >&6; }
17482SIM_RISCV_BITSIZE=64
17483case $target in #(
17484  riscv32*) :
17485    SIM_RISCV_BITSIZE=32 ;; #(
17486  *) :
17487     ;;
17488esac
17489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
17490$as_echo "$SIM_RISCV_BITSIZE" >&6; }
17491
17492
17493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
17494$as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
17495# Check whether --enable-sim-rx-cycle-accurate was given.
17496if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
17497  enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
17498yes | no) ;;
17499*)	as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
17500esac
17501fi
17502
17503if test "x${enable_sim_rx_cycle_accurate}" != xno; then
17504  SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
17505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17506$as_echo "yes" >&6; }
17507else
17508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509$as_echo "no" >&6; }
17510fi
17511
17512
17513
17514ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
17515
17516cat >confcache <<\_ACEOF
17517# This file is a shell script that caches the results of configure
17518# tests run on this system so they can be shared between configure
17519# scripts and configure runs, see configure's option --config-cache.
17520# It is not useful on other systems.  If it contains results you don't
17521# want to keep, you may remove or edit it.
17522#
17523# config.status only pays attention to the cache file if you give it
17524# the --recheck option to rerun configure.
17525#
17526# `ac_cv_env_foo' variables (set or unset) will be overridden when
17527# loading this file, other *unset* `ac_cv_foo' will be assigned the
17528# following values.
17529
17530_ACEOF
17531
17532# The following way of writing the cache mishandles newlines in values,
17533# but we know of no workaround that is simple, portable, and efficient.
17534# So, we kill variables containing newlines.
17535# Ultrix sh set writes to stderr and can't be redirected directly,
17536# and sets the high bit in the cache file unless we assign to the vars.
17537(
17538  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17539    eval ac_val=\$$ac_var
17540    case $ac_val in #(
17541    *${as_nl}*)
17542      case $ac_var in #(
17543      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17544$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17545      esac
17546      case $ac_var in #(
17547      _ | IFS | as_nl) ;; #(
17548      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17549      *) { eval $ac_var=; unset $ac_var;} ;;
17550      esac ;;
17551    esac
17552  done
17553
17554  (set) 2>&1 |
17555    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17556    *${as_nl}ac_space=\ *)
17557      # `set' does not quote correctly, so add quotes: double-quote
17558      # substitution turns \\\\ into \\, and sed turns \\ into \.
17559      sed -n \
17560	"s/'/'\\\\''/g;
17561	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17562      ;; #(
17563    *)
17564      # `set' quotes correctly as required by POSIX, so do not add quotes.
17565      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17566      ;;
17567    esac |
17568    sort
17569) |
17570  sed '
17571     /^ac_cv_env_/b end
17572     t clear
17573     :clear
17574     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17575     t end
17576     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17577     :end' >>confcache
17578if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17579  if test -w "$cache_file"; then
17580    if test "x$cache_file" != "x/dev/null"; then
17581      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17582$as_echo "$as_me: updating cache $cache_file" >&6;}
17583      if test ! -f "$cache_file" || test -h "$cache_file"; then
17584	cat confcache >"$cache_file"
17585      else
17586        case $cache_file in #(
17587        */* | ?:*)
17588	  mv -f confcache "$cache_file"$$ &&
17589	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17590        *)
17591	  mv -f confcache "$cache_file" ;;
17592	esac
17593      fi
17594    fi
17595  else
17596    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17597$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17598  fi
17599fi
17600rm -f confcache
17601
17602test "x$prefix" = xNONE && prefix=$ac_default_prefix
17603# Let make expand exec_prefix.
17604test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17605
17606DEFS=-DHAVE_CONFIG_H
17607
17608ac_libobjs=
17609ac_ltlibobjs=
17610U=
17611for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17612  # 1. Remove the extension, and $U if already installed.
17613  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17614  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17615  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17616  #    will be set to the directory where LIBOBJS objects are built.
17617  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17618  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17619done
17620LIBOBJS=$ac_libobjs
17621
17622LTLIBOBJS=$ac_ltlibobjs
17623
17624
17625
17626if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17627  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17628Usually this means the macro was only invoked conditionally." "$LINENO" 5
17629fi
17630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17631$as_echo_n "checking that generated files are newer than configure... " >&6; }
17632   if test -n "$am_sleep_pid"; then
17633     # Hide warnings about reused PIDs.
17634     wait $am_sleep_pid 2>/dev/null
17635   fi
17636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17637$as_echo "done" >&6; }
17638if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17639  as_fn_error $? "conditional \"AMDEP\" was never defined.
17640Usually this means the macro was only invoked conditionally." "$LINENO" 5
17641fi
17642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17643  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17644Usually this means the macro was only invoked conditionally." "$LINENO" 5
17645fi
17646 if test -n "$EXEEXT"; then
17647  am__EXEEXT_TRUE=
17648  am__EXEEXT_FALSE='#'
17649else
17650  am__EXEEXT_TRUE='#'
17651  am__EXEEXT_FALSE=
17652fi
17653
17654if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
17655  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
17656Usually this means the macro was only invoked conditionally." "$LINENO" 5
17657fi
17658if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
17659  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
17660Usually this means the macro was only invoked conditionally." "$LINENO" 5
17661fi
17662if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
17663  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
17664Usually this means the macro was only invoked conditionally." "$LINENO" 5
17665fi
17666if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
17667  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
17668Usually this means the macro was only invoked conditionally." "$LINENO" 5
17669fi
17670if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
17671  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
17672Usually this means the macro was only invoked conditionally." "$LINENO" 5
17673fi
17674if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
17675  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
17676Usually this means the macro was only invoked conditionally." "$LINENO" 5
17677fi
17678if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
17679  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
17680Usually this means the macro was only invoked conditionally." "$LINENO" 5
17681fi
17682if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
17683  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
17684Usually this means the macro was only invoked conditionally." "$LINENO" 5
17685fi
17686if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
17687  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
17688Usually this means the macro was only invoked conditionally." "$LINENO" 5
17689fi
17690if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
17691  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
17692Usually this means the macro was only invoked conditionally." "$LINENO" 5
17693fi
17694if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
17695  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
17696Usually this means the macro was only invoked conditionally." "$LINENO" 5
17697fi
17698if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
17699  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
17700Usually this means the macro was only invoked conditionally." "$LINENO" 5
17701fi
17702if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
17703  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
17704Usually this means the macro was only invoked conditionally." "$LINENO" 5
17705fi
17706if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
17707  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
17708Usually this means the macro was only invoked conditionally." "$LINENO" 5
17709fi
17710if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
17711  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
17712Usually this means the macro was only invoked conditionally." "$LINENO" 5
17713fi
17714if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
17715  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
17716Usually this means the macro was only invoked conditionally." "$LINENO" 5
17717fi
17718if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
17719  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
17720Usually this means the macro was only invoked conditionally." "$LINENO" 5
17721fi
17722if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
17723  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
17724Usually this means the macro was only invoked conditionally." "$LINENO" 5
17725fi
17726if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
17727  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
17728Usually this means the macro was only invoked conditionally." "$LINENO" 5
17729fi
17730if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
17731  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
17732Usually this means the macro was only invoked conditionally." "$LINENO" 5
17733fi
17734if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
17735  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
17736Usually this means the macro was only invoked conditionally." "$LINENO" 5
17737fi
17738if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
17739  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
17740Usually this means the macro was only invoked conditionally." "$LINENO" 5
17741fi
17742if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
17743  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
17744Usually this means the macro was only invoked conditionally." "$LINENO" 5
17745fi
17746if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
17747  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
17748Usually this means the macro was only invoked conditionally." "$LINENO" 5
17749fi
17750if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
17751  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
17752Usually this means the macro was only invoked conditionally." "$LINENO" 5
17753fi
17754if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
17755  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
17756Usually this means the macro was only invoked conditionally." "$LINENO" 5
17757fi
17758if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
17759  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
17760Usually this means the macro was only invoked conditionally." "$LINENO" 5
17761fi
17762if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
17763  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
17764Usually this means the macro was only invoked conditionally." "$LINENO" 5
17765fi
17766if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
17767  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
17768Usually this means the macro was only invoked conditionally." "$LINENO" 5
17769fi
17770if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
17771  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
17772Usually this means the macro was only invoked conditionally." "$LINENO" 5
17773fi
17774if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
17775  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
17776Usually this means the macro was only invoked conditionally." "$LINENO" 5
17777fi
17778if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
17779  as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
17780Usually this means the macro was only invoked conditionally." "$LINENO" 5
17781fi
17782if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
17783  as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
17784Usually this means the macro was only invoked conditionally." "$LINENO" 5
17785fi
17786if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
17787  as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
17788Usually this means the macro was only invoked conditionally." "$LINENO" 5
17789fi
17790if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
17791  as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
17792Usually this means the macro was only invoked conditionally." "$LINENO" 5
17793fi
17794if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
17795  as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
17796Usually this means the macro was only invoked conditionally." "$LINENO" 5
17797fi
17798if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
17799  as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
17800Usually this means the macro was only invoked conditionally." "$LINENO" 5
17801fi
17802
17803: "${CONFIG_STATUS=./config.status}"
17804ac_write_fail=0
17805ac_clean_files_save=$ac_clean_files
17806ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17807{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17808$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17809as_write_fail=0
17810cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17811#! $SHELL
17812# Generated by $as_me.
17813# Run this file to recreate the current configuration.
17814# Compiler output produced by configure, useful for debugging
17815# configure, is in config.log if it exists.
17816
17817debug=false
17818ac_cs_recheck=false
17819ac_cs_silent=false
17820
17821SHELL=\${CONFIG_SHELL-$SHELL}
17822export SHELL
17823_ASEOF
17824cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17825## -------------------- ##
17826## M4sh Initialization. ##
17827## -------------------- ##
17828
17829# Be more Bourne compatible
17830DUALCASE=1; export DUALCASE # for MKS sh
17831if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17832  emulate sh
17833  NULLCMD=:
17834  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17835  # is contrary to our usage.  Disable this feature.
17836  alias -g '${1+"$@"}'='"$@"'
17837  setopt NO_GLOB_SUBST
17838else
17839  case `(set -o) 2>/dev/null` in #(
17840  *posix*) :
17841    set -o posix ;; #(
17842  *) :
17843     ;;
17844esac
17845fi
17846
17847
17848as_nl='
17849'
17850export as_nl
17851# Printing a long string crashes Solaris 7 /usr/bin/printf.
17852as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17853as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17854as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17855# Prefer a ksh shell builtin over an external printf program on Solaris,
17856# but without wasting forks for bash or zsh.
17857if test -z "$BASH_VERSION$ZSH_VERSION" \
17858    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17859  as_echo='print -r --'
17860  as_echo_n='print -rn --'
17861elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17862  as_echo='printf %s\n'
17863  as_echo_n='printf %s'
17864else
17865  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17866    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17867    as_echo_n='/usr/ucb/echo -n'
17868  else
17869    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17870    as_echo_n_body='eval
17871      arg=$1;
17872      case $arg in #(
17873      *"$as_nl"*)
17874	expr "X$arg" : "X\\(.*\\)$as_nl";
17875	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17876      esac;
17877      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17878    '
17879    export as_echo_n_body
17880    as_echo_n='sh -c $as_echo_n_body as_echo'
17881  fi
17882  export as_echo_body
17883  as_echo='sh -c $as_echo_body as_echo'
17884fi
17885
17886# The user is always right.
17887if test "${PATH_SEPARATOR+set}" != set; then
17888  PATH_SEPARATOR=:
17889  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17890    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17891      PATH_SEPARATOR=';'
17892  }
17893fi
17894
17895
17896# IFS
17897# We need space, tab and new line, in precisely that order.  Quoting is
17898# there to prevent editors from complaining about space-tab.
17899# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17900# splitting by setting IFS to empty value.)
17901IFS=" ""	$as_nl"
17902
17903# Find who we are.  Look in the path if we contain no directory separator.
17904as_myself=
17905case $0 in #((
17906  *[\\/]* ) as_myself=$0 ;;
17907  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17908for as_dir in $PATH
17909do
17910  IFS=$as_save_IFS
17911  test -z "$as_dir" && as_dir=.
17912    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17913  done
17914IFS=$as_save_IFS
17915
17916     ;;
17917esac
17918# We did not find ourselves, most probably we were run as `sh COMMAND'
17919# in which case we are not to be found in the path.
17920if test "x$as_myself" = x; then
17921  as_myself=$0
17922fi
17923if test ! -f "$as_myself"; then
17924  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17925  exit 1
17926fi
17927
17928# Unset variables that we do not need and which cause bugs (e.g. in
17929# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17930# suppresses any "Segmentation fault" message there.  '((' could
17931# trigger a bug in pdksh 5.2.14.
17932for as_var in BASH_ENV ENV MAIL MAILPATH
17933do eval test x\${$as_var+set} = xset \
17934  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17935done
17936PS1='$ '
17937PS2='> '
17938PS4='+ '
17939
17940# NLS nuisances.
17941LC_ALL=C
17942export LC_ALL
17943LANGUAGE=C
17944export LANGUAGE
17945
17946# CDPATH.
17947(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17948
17949
17950# as_fn_error STATUS ERROR [LINENO LOG_FD]
17951# ----------------------------------------
17952# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17953# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17954# script with STATUS, using 1 if that was 0.
17955as_fn_error ()
17956{
17957  as_status=$1; test $as_status -eq 0 && as_status=1
17958  if test "$4"; then
17959    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17960    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17961  fi
17962  $as_echo "$as_me: error: $2" >&2
17963  as_fn_exit $as_status
17964} # as_fn_error
17965
17966
17967# as_fn_set_status STATUS
17968# -----------------------
17969# Set $? to STATUS, without forking.
17970as_fn_set_status ()
17971{
17972  return $1
17973} # as_fn_set_status
17974
17975# as_fn_exit STATUS
17976# -----------------
17977# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17978as_fn_exit ()
17979{
17980  set +e
17981  as_fn_set_status $1
17982  exit $1
17983} # as_fn_exit
17984
17985# as_fn_unset VAR
17986# ---------------
17987# Portably unset VAR.
17988as_fn_unset ()
17989{
17990  { eval $1=; unset $1;}
17991}
17992as_unset=as_fn_unset
17993# as_fn_append VAR VALUE
17994# ----------------------
17995# Append the text in VALUE to the end of the definition contained in VAR. Take
17996# advantage of any shell optimizations that allow amortized linear growth over
17997# repeated appends, instead of the typical quadratic growth present in naive
17998# implementations.
17999if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18000  eval 'as_fn_append ()
18001  {
18002    eval $1+=\$2
18003  }'
18004else
18005  as_fn_append ()
18006  {
18007    eval $1=\$$1\$2
18008  }
18009fi # as_fn_append
18010
18011# as_fn_arith ARG...
18012# ------------------
18013# Perform arithmetic evaluation on the ARGs, and store the result in the
18014# global $as_val. Take advantage of shells that can avoid forks. The arguments
18015# must be portable across $(()) and expr.
18016if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18017  eval 'as_fn_arith ()
18018  {
18019    as_val=$(( $* ))
18020  }'
18021else
18022  as_fn_arith ()
18023  {
18024    as_val=`expr "$@" || test $? -eq 1`
18025  }
18026fi # as_fn_arith
18027
18028
18029if expr a : '\(a\)' >/dev/null 2>&1 &&
18030   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18031  as_expr=expr
18032else
18033  as_expr=false
18034fi
18035
18036if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18037  as_basename=basename
18038else
18039  as_basename=false
18040fi
18041
18042if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18043  as_dirname=dirname
18044else
18045  as_dirname=false
18046fi
18047
18048as_me=`$as_basename -- "$0" ||
18049$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18050	 X"$0" : 'X\(//\)$' \| \
18051	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18052$as_echo X/"$0" |
18053    sed '/^.*\/\([^/][^/]*\)\/*$/{
18054	    s//\1/
18055	    q
18056	  }
18057	  /^X\/\(\/\/\)$/{
18058	    s//\1/
18059	    q
18060	  }
18061	  /^X\/\(\/\).*/{
18062	    s//\1/
18063	    q
18064	  }
18065	  s/.*/./; q'`
18066
18067# Avoid depending upon Character Ranges.
18068as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18069as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18070as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18071as_cr_digits='0123456789'
18072as_cr_alnum=$as_cr_Letters$as_cr_digits
18073
18074ECHO_C= ECHO_N= ECHO_T=
18075case `echo -n x` in #(((((
18076-n*)
18077  case `echo 'xy\c'` in
18078  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18079  xy)  ECHO_C='\c';;
18080  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18081       ECHO_T='	';;
18082  esac;;
18083*)
18084  ECHO_N='-n';;
18085esac
18086
18087rm -f conf$$ conf$$.exe conf$$.file
18088if test -d conf$$.dir; then
18089  rm -f conf$$.dir/conf$$.file
18090else
18091  rm -f conf$$.dir
18092  mkdir conf$$.dir 2>/dev/null
18093fi
18094if (echo >conf$$.file) 2>/dev/null; then
18095  if ln -s conf$$.file conf$$ 2>/dev/null; then
18096    as_ln_s='ln -s'
18097    # ... but there are two gotchas:
18098    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18099    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18100    # In both cases, we have to default to `cp -pR'.
18101    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18102      as_ln_s='cp -pR'
18103  elif ln conf$$.file conf$$ 2>/dev/null; then
18104    as_ln_s=ln
18105  else
18106    as_ln_s='cp -pR'
18107  fi
18108else
18109  as_ln_s='cp -pR'
18110fi
18111rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18112rmdir conf$$.dir 2>/dev/null
18113
18114
18115# as_fn_mkdir_p
18116# -------------
18117# Create "$as_dir" as a directory, including parents if necessary.
18118as_fn_mkdir_p ()
18119{
18120
18121  case $as_dir in #(
18122  -*) as_dir=./$as_dir;;
18123  esac
18124  test -d "$as_dir" || eval $as_mkdir_p || {
18125    as_dirs=
18126    while :; do
18127      case $as_dir in #(
18128      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18129      *) as_qdir=$as_dir;;
18130      esac
18131      as_dirs="'$as_qdir' $as_dirs"
18132      as_dir=`$as_dirname -- "$as_dir" ||
18133$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18134	 X"$as_dir" : 'X\(//\)[^/]' \| \
18135	 X"$as_dir" : 'X\(//\)$' \| \
18136	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18137$as_echo X"$as_dir" |
18138    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18139	    s//\1/
18140	    q
18141	  }
18142	  /^X\(\/\/\)[^/].*/{
18143	    s//\1/
18144	    q
18145	  }
18146	  /^X\(\/\/\)$/{
18147	    s//\1/
18148	    q
18149	  }
18150	  /^X\(\/\).*/{
18151	    s//\1/
18152	    q
18153	  }
18154	  s/.*/./; q'`
18155      test -d "$as_dir" && break
18156    done
18157    test -z "$as_dirs" || eval "mkdir $as_dirs"
18158  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18159
18160
18161} # as_fn_mkdir_p
18162if mkdir -p . 2>/dev/null; then
18163  as_mkdir_p='mkdir -p "$as_dir"'
18164else
18165  test -d ./-p && rmdir ./-p
18166  as_mkdir_p=false
18167fi
18168
18169
18170# as_fn_executable_p FILE
18171# -----------------------
18172# Test if FILE is an executable regular file.
18173as_fn_executable_p ()
18174{
18175  test -f "$1" && test -x "$1"
18176} # as_fn_executable_p
18177as_test_x='test -x'
18178as_executable_p=as_fn_executable_p
18179
18180# Sed expression to map a string onto a valid CPP name.
18181as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18182
18183# Sed expression to map a string onto a valid variable name.
18184as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18185
18186
18187exec 6>&1
18188## ----------------------------------- ##
18189## Main body of $CONFIG_STATUS script. ##
18190## ----------------------------------- ##
18191_ASEOF
18192test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18193
18194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18195# Save the log message, to keep $0 and so on meaningful, and to
18196# report actual input values of CONFIG_FILES etc. instead of their
18197# values after options handling.
18198ac_log="
18199This file was extended by sim $as_me 0, which was
18200generated by GNU Autoconf 2.69.  Invocation command line was
18201
18202  CONFIG_FILES    = $CONFIG_FILES
18203  CONFIG_HEADERS  = $CONFIG_HEADERS
18204  CONFIG_LINKS    = $CONFIG_LINKS
18205  CONFIG_COMMANDS = $CONFIG_COMMANDS
18206  $ $0 $@
18207
18208on `(hostname || uname -n) 2>/dev/null | sed 1q`
18209"
18210
18211_ACEOF
18212
18213case $ac_config_files in *"
18214"*) set x $ac_config_files; shift; ac_config_files=$*;;
18215esac
18216
18217case $ac_config_headers in *"
18218"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18219esac
18220
18221
18222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18223# Files that config.status was made for.
18224config_files="$ac_config_files"
18225config_headers="$ac_config_headers"
18226config_commands="$ac_config_commands"
18227
18228_ACEOF
18229
18230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18231ac_cs_usage="\
18232\`$as_me' instantiates files and other configuration actions
18233from templates according to the current configuration.  Unless the files
18234and actions are specified as TAGs, all are instantiated by default.
18235
18236Usage: $0 [OPTION]... [TAG]...
18237
18238  -h, --help       print this help, then exit
18239  -V, --version    print version number and configuration settings, then exit
18240      --config     print configuration, then exit
18241  -q, --quiet, --silent
18242                   do not print progress messages
18243  -d, --debug      don't remove temporary files
18244      --recheck    update $as_me by reconfiguring in the same conditions
18245      --file=FILE[:TEMPLATE]
18246                   instantiate the configuration file FILE
18247      --header=FILE[:TEMPLATE]
18248                   instantiate the configuration header FILE
18249
18250Configuration files:
18251$config_files
18252
18253Configuration headers:
18254$config_headers
18255
18256Configuration commands:
18257$config_commands
18258
18259Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
18260sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
18261
18262_ACEOF
18263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18264ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18265ac_cs_version="\\
18266sim config.status 0
18267configured by $0, generated by GNU Autoconf 2.69,
18268  with options \\"\$ac_cs_config\\"
18269
18270Copyright (C) 2012 Free Software Foundation, Inc.
18271This config.status script is free software; the Free Software Foundation
18272gives unlimited permission to copy, distribute and modify it."
18273
18274ac_pwd='$ac_pwd'
18275srcdir='$srcdir'
18276INSTALL='$INSTALL'
18277MKDIR_P='$MKDIR_P'
18278AWK='$AWK'
18279test -n "\$AWK" || AWK=awk
18280_ACEOF
18281
18282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18283# The default lists apply if the user does not specify any file.
18284ac_need_defaults=:
18285while test $# != 0
18286do
18287  case $1 in
18288  --*=?*)
18289    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18290    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18291    ac_shift=:
18292    ;;
18293  --*=)
18294    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18295    ac_optarg=
18296    ac_shift=:
18297    ;;
18298  *)
18299    ac_option=$1
18300    ac_optarg=$2
18301    ac_shift=shift
18302    ;;
18303  esac
18304
18305  case $ac_option in
18306  # Handling of the options.
18307  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18308    ac_cs_recheck=: ;;
18309  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18310    $as_echo "$ac_cs_version"; exit ;;
18311  --config | --confi | --conf | --con | --co | --c )
18312    $as_echo "$ac_cs_config"; exit ;;
18313  --debug | --debu | --deb | --de | --d | -d )
18314    debug=: ;;
18315  --file | --fil | --fi | --f )
18316    $ac_shift
18317    case $ac_optarg in
18318    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18319    '') as_fn_error $? "missing file argument" ;;
18320    esac
18321    as_fn_append CONFIG_FILES " '$ac_optarg'"
18322    ac_need_defaults=false;;
18323  --header | --heade | --head | --hea )
18324    $ac_shift
18325    case $ac_optarg in
18326    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18327    esac
18328    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18329    ac_need_defaults=false;;
18330  --he | --h)
18331    # Conflict between --help and --header
18332    as_fn_error $? "ambiguous option: \`$1'
18333Try \`$0 --help' for more information.";;
18334  --help | --hel | -h )
18335    $as_echo "$ac_cs_usage"; exit ;;
18336  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18337  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18338    ac_cs_silent=: ;;
18339
18340  # This is an error.
18341  -*) as_fn_error $? "unrecognized option: \`$1'
18342Try \`$0 --help' for more information." ;;
18343
18344  *) as_fn_append ac_config_targets " $1"
18345     ac_need_defaults=false ;;
18346
18347  esac
18348  shift
18349done
18350
18351ac_configure_extra_args=
18352
18353if $ac_cs_silent; then
18354  exec 6>/dev/null
18355  ac_configure_extra_args="$ac_configure_extra_args --silent"
18356fi
18357
18358_ACEOF
18359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18360if \$ac_cs_recheck; then
18361  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18362  shift
18363  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18364  CONFIG_SHELL='$SHELL'
18365  export CONFIG_SHELL
18366  exec "\$@"
18367fi
18368
18369_ACEOF
18370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18371exec 5>>config.log
18372{
18373  echo
18374  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18375## Running $as_me. ##
18376_ASBOX
18377  $as_echo "$ac_log"
18378} >&5
18379
18380_ACEOF
18381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18382#
18383# INIT-COMMANDS
18384#
18385
18386
18387# The HP-UX ksh and POSIX shell print the target directory to stdout
18388# if CDPATH is set.
18389(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18390
18391sed_quote_subst='$sed_quote_subst'
18392double_quote_subst='$double_quote_subst'
18393delay_variable_subst='$delay_variable_subst'
18394macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18395macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18396enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18397enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18398pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18399enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18400SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18401ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18402host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18403host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18404host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18405build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18406build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18407build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18408SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18409Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18410GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18411EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18412FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18413LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18414NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18415LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18416max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18417ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18418exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18419lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18420lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18421lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18422reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18423reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18424OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18425deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18426file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18427AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18428AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18429STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18430RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18431old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18432old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18433old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18434lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18435CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18436CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18437compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18438GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18439lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18440lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18441lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18442lt_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"`'
18443objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18444MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18445lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18446lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18447lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18448lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18449lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18450need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18451DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18452NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18453LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18454OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18455OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18456libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18457shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18458extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18459archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18460enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18461export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18462whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18463compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18464old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18465old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18466archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18467archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18468module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18469module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18470with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18471allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18472no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18473hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18474hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18475hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18476hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18477hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18478hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18479hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18480hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18481inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18482link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18483fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18484always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18485export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18486exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18487include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18488prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18489file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18490variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18491need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18492need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18493version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18494runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18495shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18496shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18497libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18498library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18499soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18500install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18501postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18502postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18503finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18504finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18505hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18506sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18507sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18508hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18509enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18510enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18511enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18512old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18513striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18514
18515LTCC='$LTCC'
18516LTCFLAGS='$LTCFLAGS'
18517compiler='$compiler_DEFAULT'
18518
18519# A function that is used when there is no print builtin or printf.
18520func_fallback_echo ()
18521{
18522  eval 'cat <<_LTECHO_EOF
18523\$1
18524_LTECHO_EOF'
18525}
18526
18527# Quote evaled strings.
18528for var in SHELL \
18529ECHO \
18530SED \
18531GREP \
18532EGREP \
18533FGREP \
18534LD \
18535NM \
18536LN_S \
18537lt_SP2NL \
18538lt_NL2SP \
18539reload_flag \
18540OBJDUMP \
18541deplibs_check_method \
18542file_magic_cmd \
18543AR \
18544AR_FLAGS \
18545STRIP \
18546RANLIB \
18547CC \
18548CFLAGS \
18549compiler \
18550lt_cv_sys_global_symbol_pipe \
18551lt_cv_sys_global_symbol_to_cdecl \
18552lt_cv_sys_global_symbol_to_c_name_address \
18553lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18554lt_prog_compiler_no_builtin_flag \
18555lt_prog_compiler_wl \
18556lt_prog_compiler_pic \
18557lt_prog_compiler_static \
18558lt_cv_prog_compiler_c_o \
18559need_locks \
18560DSYMUTIL \
18561NMEDIT \
18562LIPO \
18563OTOOL \
18564OTOOL64 \
18565shrext_cmds \
18566export_dynamic_flag_spec \
18567whole_archive_flag_spec \
18568compiler_needs_object \
18569with_gnu_ld \
18570allow_undefined_flag \
18571no_undefined_flag \
18572hardcode_libdir_flag_spec \
18573hardcode_libdir_flag_spec_ld \
18574hardcode_libdir_separator \
18575fix_srcfile_path \
18576exclude_expsyms \
18577include_expsyms \
18578file_list_spec \
18579variables_saved_for_relink \
18580libname_spec \
18581library_names_spec \
18582soname_spec \
18583install_override_mode \
18584finish_eval \
18585old_striplib \
18586striplib; do
18587    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18588    *[\\\\\\\`\\"\\\$]*)
18589      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18590      ;;
18591    *)
18592      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18593      ;;
18594    esac
18595done
18596
18597# Double-quote double-evaled strings.
18598for var in reload_cmds \
18599old_postinstall_cmds \
18600old_postuninstall_cmds \
18601old_archive_cmds \
18602extract_expsyms_cmds \
18603old_archive_from_new_cmds \
18604old_archive_from_expsyms_cmds \
18605archive_cmds \
18606archive_expsym_cmds \
18607module_cmds \
18608module_expsym_cmds \
18609export_symbols_cmds \
18610prelink_cmds \
18611postinstall_cmds \
18612postuninstall_cmds \
18613finish_cmds \
18614sys_lib_search_path_spec \
18615sys_lib_dlsearch_path_spec; do
18616    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18617    *[\\\\\\\`\\"\\\$]*)
18618      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18619      ;;
18620    *)
18621      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18622      ;;
18623    esac
18624done
18625
18626ac_aux_dir='$ac_aux_dir'
18627xsi_shell='$xsi_shell'
18628lt_shell_append='$lt_shell_append'
18629
18630# See if we are running on zsh, and set the options which allow our
18631# commands through without removal of \ escapes INIT.
18632if test -n "\${ZSH_VERSION+set}" ; then
18633   setopt NO_GLOB_SUBST
18634fi
18635
18636
18637    PACKAGE='$PACKAGE'
18638    VERSION='$VERSION'
18639    TIMESTAMP='$TIMESTAMP'
18640    RM='$RM'
18641    ofile='$ofile'
18642
18643
18644
18645AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18646
18647_ACEOF
18648
18649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18650
18651# Handling of arguments.
18652for ac_config_target in $ac_config_targets
18653do
18654  case $ac_config_target in
18655    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18656    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18657    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18658    "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
18659    "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
18660    "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
18661    "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
18662    "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
18663    "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
18664    "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
18665    "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
18666    "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
18667    "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
18668    "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
18669    "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
18670    "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
18671    "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
18672    "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
18673    "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
18674    "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
18675    "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
18676    "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
18677    "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
18678    "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
18679    "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
18680    "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
18681    "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
18682    "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
18683    "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
18684    "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
18685    "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
18686    "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
18687    "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
18688    "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
18689    "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
18690    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18691    ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
18692
18693  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18694  esac
18695done
18696
18697
18698# If the user did not use the arguments to specify the items to instantiate,
18699# then the envvar interface is used.  Set only those that are not.
18700# We use the long form for the default assignment because of an extremely
18701# bizarre bug on SunOS 4.1.3.
18702if $ac_need_defaults; then
18703  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18704  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18705  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18706fi
18707
18708# Have a temporary directory for convenience.  Make it in the build tree
18709# simply because there is no reason against having it here, and in addition,
18710# creating and moving files from /tmp can sometimes cause problems.
18711# Hook for its removal unless debugging.
18712# Note that there is a small window in which the directory will not be cleaned:
18713# after its creation but before its name has been assigned to `$tmp'.
18714$debug ||
18715{
18716  tmp= ac_tmp=
18717  trap 'exit_status=$?
18718  : "${ac_tmp:=$tmp}"
18719  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18720' 0
18721  trap 'as_fn_exit 1' 1 2 13 15
18722}
18723# Create a (secure) tmp directory for tmp files.
18724
18725{
18726  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18727  test -d "$tmp"
18728}  ||
18729{
18730  tmp=./conf$$-$RANDOM
18731  (umask 077 && mkdir "$tmp")
18732} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18733ac_tmp=$tmp
18734
18735# Set up the scripts for CONFIG_FILES section.
18736# No need to generate them if there are no CONFIG_FILES.
18737# This happens for instance with `./config.status config.h'.
18738if test -n "$CONFIG_FILES"; then
18739
18740
18741ac_cr=`echo X | tr X '\015'`
18742# On cygwin, bash can eat \r inside `` if the user requested igncr.
18743# But we know of no other shell where ac_cr would be empty at this
18744# point, so we can use a bashism as a fallback.
18745if test "x$ac_cr" = x; then
18746  eval ac_cr=\$\'\\r\'
18747fi
18748ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18749if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18750  ac_cs_awk_cr='\\r'
18751else
18752  ac_cs_awk_cr=$ac_cr
18753fi
18754
18755echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18756_ACEOF
18757
18758
18759{
18760  echo "cat >conf$$subs.awk <<_ACEOF" &&
18761  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18762  echo "_ACEOF"
18763} >conf$$subs.sh ||
18764  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18765ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18766ac_delim='%!_!# '
18767for ac_last_try in false false false false false :; do
18768  . ./conf$$subs.sh ||
18769    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18770
18771  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18772  if test $ac_delim_n = $ac_delim_num; then
18773    break
18774  elif $ac_last_try; then
18775    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18776  else
18777    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18778  fi
18779done
18780rm -f conf$$subs.sh
18781
18782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18783cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18784_ACEOF
18785sed -n '
18786h
18787s/^/S["/; s/!.*/"]=/
18788p
18789g
18790s/^[^!]*!//
18791:repl
18792t repl
18793s/'"$ac_delim"'$//
18794t delim
18795:nl
18796h
18797s/\(.\{148\}\)..*/\1/
18798t more1
18799s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18800p
18801n
18802b repl
18803:more1
18804s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18805p
18806g
18807s/.\{148\}//
18808t nl
18809:delim
18810h
18811s/\(.\{148\}\)..*/\1/
18812t more2
18813s/["\\]/\\&/g; s/^/"/; s/$/"/
18814p
18815b
18816:more2
18817s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18818p
18819g
18820s/.\{148\}//
18821t delim
18822' <conf$$subs.awk | sed '
18823/^[^""]/{
18824  N
18825  s/\n//
18826}
18827' >>$CONFIG_STATUS || ac_write_fail=1
18828rm -f conf$$subs.awk
18829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18830_ACAWK
18831cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18832  for (key in S) S_is_set[key] = 1
18833  FS = ""
18834
18835}
18836{
18837  line = $ 0
18838  nfields = split(line, field, "@")
18839  substed = 0
18840  len = length(field[1])
18841  for (i = 2; i < nfields; i++) {
18842    key = field[i]
18843    keylen = length(key)
18844    if (S_is_set[key]) {
18845      value = S[key]
18846      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18847      len += length(value) + length(field[++i])
18848      substed = 1
18849    } else
18850      len += 1 + keylen
18851  }
18852
18853  print line
18854}
18855
18856_ACAWK
18857_ACEOF
18858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18859if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18860  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18861else
18862  cat
18863fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18864  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18865_ACEOF
18866
18867# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18868# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18869# trailing colons and then remove the whole line if VPATH becomes empty
18870# (actually we leave an empty line to preserve line numbers).
18871if test "x$srcdir" = x.; then
18872  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18873h
18874s///
18875s/^/:/
18876s/[	 ]*$/:/
18877s/:\$(srcdir):/:/g
18878s/:\${srcdir}:/:/g
18879s/:@srcdir@:/:/g
18880s/^:*//
18881s/:*$//
18882x
18883s/\(=[	 ]*\).*/\1/
18884G
18885s/\n//
18886s/^[^=]*=[	 ]*$//
18887}'
18888fi
18889
18890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18891fi # test -n "$CONFIG_FILES"
18892
18893# Set up the scripts for CONFIG_HEADERS section.
18894# No need to generate them if there are no CONFIG_HEADERS.
18895# This happens for instance with `./config.status Makefile'.
18896if test -n "$CONFIG_HEADERS"; then
18897cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18898BEGIN {
18899_ACEOF
18900
18901# Transform confdefs.h into an awk script `defines.awk', embedded as
18902# here-document in config.status, that substitutes the proper values into
18903# config.h.in to produce config.h.
18904
18905# Create a delimiter string that does not exist in confdefs.h, to ease
18906# handling of long lines.
18907ac_delim='%!_!# '
18908for ac_last_try in false false :; do
18909  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18910  if test -z "$ac_tt"; then
18911    break
18912  elif $ac_last_try; then
18913    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18914  else
18915    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18916  fi
18917done
18918
18919# For the awk script, D is an array of macro values keyed by name,
18920# likewise P contains macro parameters if any.  Preserve backslash
18921# newline sequences.
18922
18923ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18924sed -n '
18925s/.\{148\}/&'"$ac_delim"'/g
18926t rset
18927:rset
18928s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18929t def
18930d
18931:def
18932s/\\$//
18933t bsnl
18934s/["\\]/\\&/g
18935s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18936D["\1"]=" \3"/p
18937s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18938d
18939:bsnl
18940s/["\\]/\\&/g
18941s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18942D["\1"]=" \3\\\\\\n"\\/p
18943t cont
18944s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18945t cont
18946d
18947:cont
18948n
18949s/.\{148\}/&'"$ac_delim"'/g
18950t clear
18951:clear
18952s/\\$//
18953t bsnlc
18954s/["\\]/\\&/g; s/^/"/; s/$/"/p
18955d
18956:bsnlc
18957s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18958b cont
18959' <confdefs.h | sed '
18960s/'"$ac_delim"'/"\\\
18961"/g' >>$CONFIG_STATUS || ac_write_fail=1
18962
18963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18964  for (key in D) D_is_set[key] = 1
18965  FS = ""
18966}
18967/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18968  line = \$ 0
18969  split(line, arg, " ")
18970  if (arg[1] == "#") {
18971    defundef = arg[2]
18972    mac1 = arg[3]
18973  } else {
18974    defundef = substr(arg[1], 2)
18975    mac1 = arg[2]
18976  }
18977  split(mac1, mac2, "(") #)
18978  macro = mac2[1]
18979  prefix = substr(line, 1, index(line, defundef) - 1)
18980  if (D_is_set[macro]) {
18981    # Preserve the white space surrounding the "#".
18982    print prefix "define", macro P[macro] D[macro]
18983    next
18984  } else {
18985    # Replace #undef with comments.  This is necessary, for example,
18986    # in the case of _POSIX_SOURCE, which is predefined and required
18987    # on some systems where configure will not decide to define it.
18988    if (defundef == "undef") {
18989      print "/*", prefix defundef, macro, "*/"
18990      next
18991    }
18992  }
18993}
18994{ print }
18995_ACAWK
18996_ACEOF
18997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18998  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18999fi # test -n "$CONFIG_HEADERS"
19000
19001
19002eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19003shift
19004for ac_tag
19005do
19006  case $ac_tag in
19007  :[FHLC]) ac_mode=$ac_tag; continue;;
19008  esac
19009  case $ac_mode$ac_tag in
19010  :[FHL]*:*);;
19011  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19012  :[FH]-) ac_tag=-:-;;
19013  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19014  esac
19015  ac_save_IFS=$IFS
19016  IFS=:
19017  set x $ac_tag
19018  IFS=$ac_save_IFS
19019  shift
19020  ac_file=$1
19021  shift
19022
19023  case $ac_mode in
19024  :L) ac_source=$1;;
19025  :[FH])
19026    ac_file_inputs=
19027    for ac_f
19028    do
19029      case $ac_f in
19030      -) ac_f="$ac_tmp/stdin";;
19031      *) # Look for the file first in the build tree, then in the source tree
19032	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19033	 # because $ac_f cannot contain `:'.
19034	 test -f "$ac_f" ||
19035	   case $ac_f in
19036	   [\\/$]*) false;;
19037	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19038	   esac ||
19039	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19040      esac
19041      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19042      as_fn_append ac_file_inputs " '$ac_f'"
19043    done
19044
19045    # Let's still pretend it is `configure' which instantiates (i.e., don't
19046    # use $as_me), people would be surprised to read:
19047    #    /* config.h.  Generated by config.status.  */
19048    configure_input='Generated from '`
19049	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19050	`' by configure.'
19051    if test x"$ac_file" != x-; then
19052      configure_input="$ac_file.  $configure_input"
19053      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19054$as_echo "$as_me: creating $ac_file" >&6;}
19055    fi
19056    # Neutralize special characters interpreted by sed in replacement strings.
19057    case $configure_input in #(
19058    *\&* | *\|* | *\\* )
19059       ac_sed_conf_input=`$as_echo "$configure_input" |
19060       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19061    *) ac_sed_conf_input=$configure_input;;
19062    esac
19063
19064    case $ac_tag in
19065    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19066      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19067    esac
19068    ;;
19069  esac
19070
19071  ac_dir=`$as_dirname -- "$ac_file" ||
19072$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19073	 X"$ac_file" : 'X\(//\)[^/]' \| \
19074	 X"$ac_file" : 'X\(//\)$' \| \
19075	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19076$as_echo X"$ac_file" |
19077    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19078	    s//\1/
19079	    q
19080	  }
19081	  /^X\(\/\/\)[^/].*/{
19082	    s//\1/
19083	    q
19084	  }
19085	  /^X\(\/\/\)$/{
19086	    s//\1/
19087	    q
19088	  }
19089	  /^X\(\/\).*/{
19090	    s//\1/
19091	    q
19092	  }
19093	  s/.*/./; q'`
19094  as_dir="$ac_dir"; as_fn_mkdir_p
19095  ac_builddir=.
19096
19097case "$ac_dir" in
19098.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19099*)
19100  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19101  # A ".." for each directory in $ac_dir_suffix.
19102  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19103  case $ac_top_builddir_sub in
19104  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19105  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19106  esac ;;
19107esac
19108ac_abs_top_builddir=$ac_pwd
19109ac_abs_builddir=$ac_pwd$ac_dir_suffix
19110# for backward compatibility:
19111ac_top_builddir=$ac_top_build_prefix
19112
19113case $srcdir in
19114  .)  # We are building in place.
19115    ac_srcdir=.
19116    ac_top_srcdir=$ac_top_builddir_sub
19117    ac_abs_top_srcdir=$ac_pwd ;;
19118  [\\/]* | ?:[\\/]* )  # Absolute name.
19119    ac_srcdir=$srcdir$ac_dir_suffix;
19120    ac_top_srcdir=$srcdir
19121    ac_abs_top_srcdir=$srcdir ;;
19122  *) # Relative name.
19123    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19124    ac_top_srcdir=$ac_top_build_prefix$srcdir
19125    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19126esac
19127ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19128
19129
19130  case $ac_mode in
19131  :F)
19132  #
19133  # CONFIG_FILE
19134  #
19135
19136  case $INSTALL in
19137  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19138  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19139  esac
19140  ac_MKDIR_P=$MKDIR_P
19141  case $MKDIR_P in
19142  [\\/$]* | ?:[\\/]* ) ;;
19143  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19144  esac
19145_ACEOF
19146
19147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19148# If the template does not know about datarootdir, expand it.
19149# FIXME: This hack should be removed a few years after 2.60.
19150ac_datarootdir_hack=; ac_datarootdir_seen=
19151ac_sed_dataroot='
19152/datarootdir/ {
19153  p
19154  q
19155}
19156/@datadir@/p
19157/@docdir@/p
19158/@infodir@/p
19159/@localedir@/p
19160/@mandir@/p'
19161case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19162*datarootdir*) ac_datarootdir_seen=yes;;
19163*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19164  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19165$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19166_ACEOF
19167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19168  ac_datarootdir_hack='
19169  s&@datadir@&$datadir&g
19170  s&@docdir@&$docdir&g
19171  s&@infodir@&$infodir&g
19172  s&@localedir@&$localedir&g
19173  s&@mandir@&$mandir&g
19174  s&\\\${datarootdir}&$datarootdir&g' ;;
19175esac
19176_ACEOF
19177
19178# Neutralize VPATH when `$srcdir' = `.'.
19179# Shell code in configure.ac might set extrasub.
19180# FIXME: do we really want to maintain this feature?
19181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19182ac_sed_extra="$ac_vpsub
19183$extrasub
19184_ACEOF
19185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19186:t
19187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19188s|@configure_input@|$ac_sed_conf_input|;t t
19189s&@top_builddir@&$ac_top_builddir_sub&;t t
19190s&@top_build_prefix@&$ac_top_build_prefix&;t t
19191s&@srcdir@&$ac_srcdir&;t t
19192s&@abs_srcdir@&$ac_abs_srcdir&;t t
19193s&@top_srcdir@&$ac_top_srcdir&;t t
19194s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19195s&@builddir@&$ac_builddir&;t t
19196s&@abs_builddir@&$ac_abs_builddir&;t t
19197s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19198s&@INSTALL@&$ac_INSTALL&;t t
19199s&@MKDIR_P@&$ac_MKDIR_P&;t t
19200$ac_datarootdir_hack
19201"
19202eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19203  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19204
19205test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19206  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19207  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19208      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19209  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19210which seems to be undefined.  Please make sure it is defined" >&5
19211$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19212which seems to be undefined.  Please make sure it is defined" >&2;}
19213
19214  rm -f "$ac_tmp/stdin"
19215  case $ac_file in
19216  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19217  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19218  esac \
19219  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19220 ;;
19221  :H)
19222  #
19223  # CONFIG_HEADER
19224  #
19225  if test x"$ac_file" != x-; then
19226    {
19227      $as_echo "/* $configure_input  */" \
19228      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19229    } >"$ac_tmp/config.h" \
19230      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19231    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19232      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19233$as_echo "$as_me: $ac_file is unchanged" >&6;}
19234    else
19235      rm -f "$ac_file"
19236      mv "$ac_tmp/config.h" "$ac_file" \
19237	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19238    fi
19239  else
19240    $as_echo "/* $configure_input  */" \
19241      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19242      || as_fn_error $? "could not create -" "$LINENO" 5
19243  fi
19244# Compute "$ac_file"'s index in $config_headers.
19245_am_arg="$ac_file"
19246_am_stamp_count=1
19247for _am_header in $config_headers :; do
19248  case $_am_header in
19249    $_am_arg | $_am_arg:* )
19250      break ;;
19251    * )
19252      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19253  esac
19254done
19255echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19256$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19257	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19258	 X"$_am_arg" : 'X\(//\)$' \| \
19259	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19260$as_echo X"$_am_arg" |
19261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19262	    s//\1/
19263	    q
19264	  }
19265	  /^X\(\/\/\)[^/].*/{
19266	    s//\1/
19267	    q
19268	  }
19269	  /^X\(\/\/\)$/{
19270	    s//\1/
19271	    q
19272	  }
19273	  /^X\(\/\).*/{
19274	    s//\1/
19275	    q
19276	  }
19277	  s/.*/./; q'`/stamp-h$_am_stamp_count
19278 ;;
19279
19280  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19281$as_echo "$as_me: executing $ac_file commands" >&6;}
19282 ;;
19283  esac
19284
19285
19286  case $ac_file$ac_mode in
19287    "libtool":C)
19288
19289    # See if we are running on zsh, and set the options which allow our
19290    # commands through without removal of \ escapes.
19291    if test -n "${ZSH_VERSION+set}" ; then
19292      setopt NO_GLOB_SUBST
19293    fi
19294
19295    cfgfile="${ofile}T"
19296    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19297    $RM "$cfgfile"
19298
19299    cat <<_LT_EOF >> "$cfgfile"
19300#! $SHELL
19301
19302# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19303# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19304# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19305# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19306#
19307#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19308#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19309#   Written by Gordon Matzigkeit, 1996
19310#
19311#   This file is part of GNU Libtool.
19312#
19313# GNU Libtool is free software; you can redistribute it and/or
19314# modify it under the terms of the GNU General Public License as
19315# published by the Free Software Foundation; either version 2 of
19316# the License, or (at your option) any later version.
19317#
19318# As a special exception to the GNU General Public License,
19319# if you distribute this file as part of a program or library that
19320# is built using GNU Libtool, you may include this file under the
19321# same distribution terms that you use for the rest of that program.
19322#
19323# GNU Libtool is distributed in the hope that it will be useful,
19324# but WITHOUT ANY WARRANTY; without even the implied warranty of
19325# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19326# GNU General Public License for more details.
19327#
19328# You should have received a copy of the GNU General Public License
19329# along with GNU Libtool; see the file COPYING.  If not, a copy
19330# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19331# obtained by writing to the Free Software Foundation, Inc.,
19332# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19333
19334
19335# The names of the tagged configurations supported by this script.
19336available_tags=""
19337
19338# ### BEGIN LIBTOOL CONFIG
19339
19340# Which release of libtool.m4 was used?
19341macro_version=$macro_version
19342macro_revision=$macro_revision
19343
19344# Whether or not to build shared libraries.
19345build_libtool_libs=$enable_shared
19346
19347# Whether or not to build static libraries.
19348build_old_libs=$enable_static
19349
19350# What type of objects to build.
19351pic_mode=$pic_mode
19352
19353# Whether or not to optimize for fast installation.
19354fast_install=$enable_fast_install
19355
19356# Shell to use when invoking shell scripts.
19357SHELL=$lt_SHELL
19358
19359# An echo program that protects backslashes.
19360ECHO=$lt_ECHO
19361
19362# The host system.
19363host_alias=$host_alias
19364host=$host
19365host_os=$host_os
19366
19367# The build system.
19368build_alias=$build_alias
19369build=$build
19370build_os=$build_os
19371
19372# A sed program that does not truncate output.
19373SED=$lt_SED
19374
19375# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19376Xsed="\$SED -e 1s/^X//"
19377
19378# A grep program that handles long lines.
19379GREP=$lt_GREP
19380
19381# An ERE matcher.
19382EGREP=$lt_EGREP
19383
19384# A literal string matcher.
19385FGREP=$lt_FGREP
19386
19387# A BSD- or MS-compatible name lister.
19388NM=$lt_NM
19389
19390# Whether we need soft or hard links.
19391LN_S=$lt_LN_S
19392
19393# What is the maximum length of a command?
19394max_cmd_len=$max_cmd_len
19395
19396# Object file suffix (normally "o").
19397objext=$ac_objext
19398
19399# Executable file suffix (normally "").
19400exeext=$exeext
19401
19402# whether the shell understands "unset".
19403lt_unset=$lt_unset
19404
19405# turn spaces into newlines.
19406SP2NL=$lt_lt_SP2NL
19407
19408# turn newlines into spaces.
19409NL2SP=$lt_lt_NL2SP
19410
19411# An object symbol dumper.
19412OBJDUMP=$lt_OBJDUMP
19413
19414# Method to check whether dependent libraries are shared objects.
19415deplibs_check_method=$lt_deplibs_check_method
19416
19417# Command to use when deplibs_check_method == "file_magic".
19418file_magic_cmd=$lt_file_magic_cmd
19419
19420# The archiver.
19421AR=$lt_AR
19422AR_FLAGS=$lt_AR_FLAGS
19423
19424# A symbol stripping program.
19425STRIP=$lt_STRIP
19426
19427# Commands used to install an old-style archive.
19428RANLIB=$lt_RANLIB
19429old_postinstall_cmds=$lt_old_postinstall_cmds
19430old_postuninstall_cmds=$lt_old_postuninstall_cmds
19431
19432# Whether to use a lock for old archive extraction.
19433lock_old_archive_extraction=$lock_old_archive_extraction
19434
19435# A C compiler.
19436LTCC=$lt_CC
19437
19438# LTCC compiler flags.
19439LTCFLAGS=$lt_CFLAGS
19440
19441# Take the output of nm and produce a listing of raw symbols and C names.
19442global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19443
19444# Transform the output of nm in a proper C declaration.
19445global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19446
19447# Transform the output of nm in a C name address pair.
19448global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19449
19450# Transform the output of nm in a C name address pair when lib prefix is needed.
19451global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19452
19453# The name of the directory that contains temporary libtool files.
19454objdir=$objdir
19455
19456# Used to examine libraries when file_magic_cmd begins with "file".
19457MAGIC_CMD=$MAGIC_CMD
19458
19459# Must we lock files when doing compilation?
19460need_locks=$lt_need_locks
19461
19462# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19463DSYMUTIL=$lt_DSYMUTIL
19464
19465# Tool to change global to local symbols on Mac OS X.
19466NMEDIT=$lt_NMEDIT
19467
19468# Tool to manipulate fat objects and archives on Mac OS X.
19469LIPO=$lt_LIPO
19470
19471# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19472OTOOL=$lt_OTOOL
19473
19474# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19475OTOOL64=$lt_OTOOL64
19476
19477# Old archive suffix (normally "a").
19478libext=$libext
19479
19480# Shared library suffix (normally ".so").
19481shrext_cmds=$lt_shrext_cmds
19482
19483# The commands to extract the exported symbol list from a shared archive.
19484extract_expsyms_cmds=$lt_extract_expsyms_cmds
19485
19486# Variables whose values should be saved in libtool wrapper scripts and
19487# restored at link time.
19488variables_saved_for_relink=$lt_variables_saved_for_relink
19489
19490# Do we need the "lib" prefix for modules?
19491need_lib_prefix=$need_lib_prefix
19492
19493# Do we need a version for libraries?
19494need_version=$need_version
19495
19496# Library versioning type.
19497version_type=$version_type
19498
19499# Shared library runtime path variable.
19500runpath_var=$runpath_var
19501
19502# Shared library path variable.
19503shlibpath_var=$shlibpath_var
19504
19505# Is shlibpath searched before the hard-coded library search path?
19506shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19507
19508# Format of library name prefix.
19509libname_spec=$lt_libname_spec
19510
19511# List of archive names.  First name is the real one, the rest are links.
19512# The last name is the one that the linker finds with -lNAME
19513library_names_spec=$lt_library_names_spec
19514
19515# The coded name of the library, if different from the real name.
19516soname_spec=$lt_soname_spec
19517
19518# Permission mode override for installation of shared libraries.
19519install_override_mode=$lt_install_override_mode
19520
19521# Command to use after installation of a shared archive.
19522postinstall_cmds=$lt_postinstall_cmds
19523
19524# Command to use after uninstallation of a shared archive.
19525postuninstall_cmds=$lt_postuninstall_cmds
19526
19527# Commands used to finish a libtool library installation in a directory.
19528finish_cmds=$lt_finish_cmds
19529
19530# As "finish_cmds", except a single script fragment to be evaled but
19531# not shown.
19532finish_eval=$lt_finish_eval
19533
19534# Whether we should hardcode library paths into libraries.
19535hardcode_into_libs=$hardcode_into_libs
19536
19537# Compile-time system search path for libraries.
19538sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19539
19540# Run-time system search path for libraries.
19541sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19542
19543# Whether dlopen is supported.
19544dlopen_support=$enable_dlopen
19545
19546# Whether dlopen of programs is supported.
19547dlopen_self=$enable_dlopen_self
19548
19549# Whether dlopen of statically linked programs is supported.
19550dlopen_self_static=$enable_dlopen_self_static
19551
19552# Commands to strip libraries.
19553old_striplib=$lt_old_striplib
19554striplib=$lt_striplib
19555
19556
19557# The linker used to build libraries.
19558LD=$lt_LD
19559
19560# How to create reloadable object files.
19561reload_flag=$lt_reload_flag
19562reload_cmds=$lt_reload_cmds
19563
19564# Commands used to build an old-style archive.
19565old_archive_cmds=$lt_old_archive_cmds
19566
19567# A language specific compiler.
19568CC=$lt_compiler
19569
19570# Is the compiler the GNU compiler?
19571with_gcc=$GCC
19572
19573# Compiler flag to turn off builtin functions.
19574no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19575
19576# How to pass a linker flag through the compiler.
19577wl=$lt_lt_prog_compiler_wl
19578
19579# Additional compiler flags for building library objects.
19580pic_flag=$lt_lt_prog_compiler_pic
19581
19582# Compiler flag to prevent dynamic linking.
19583link_static_flag=$lt_lt_prog_compiler_static
19584
19585# Does compiler simultaneously support -c and -o options?
19586compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19587
19588# Whether or not to add -lc for building shared libraries.
19589build_libtool_need_lc=$archive_cmds_need_lc
19590
19591# Whether or not to disallow shared libs when runtime libs are static.
19592allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19593
19594# Compiler flag to allow reflexive dlopens.
19595export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19596
19597# Compiler flag to generate shared objects directly from archives.
19598whole_archive_flag_spec=$lt_whole_archive_flag_spec
19599
19600# Whether the compiler copes with passing no objects directly.
19601compiler_needs_object=$lt_compiler_needs_object
19602
19603# Create an old-style archive from a shared archive.
19604old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19605
19606# Create a temporary old-style archive to link instead of a shared archive.
19607old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19608
19609# Commands used to build a shared archive.
19610archive_cmds=$lt_archive_cmds
19611archive_expsym_cmds=$lt_archive_expsym_cmds
19612
19613# Commands used to build a loadable module if different from building
19614# a shared archive.
19615module_cmds=$lt_module_cmds
19616module_expsym_cmds=$lt_module_expsym_cmds
19617
19618# Whether we are building with GNU ld or not.
19619with_gnu_ld=$lt_with_gnu_ld
19620
19621# Flag that allows shared libraries with undefined symbols to be built.
19622allow_undefined_flag=$lt_allow_undefined_flag
19623
19624# Flag that enforces no undefined symbols.
19625no_undefined_flag=$lt_no_undefined_flag
19626
19627# Flag to hardcode \$libdir into a binary during linking.
19628# This must work even if \$libdir does not exist
19629hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19630
19631# If ld is used when linking, flag to hardcode \$libdir into a binary
19632# during linking.  This must work even if \$libdir does not exist.
19633hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19634
19635# Whether we need a single "-rpath" flag with a separated argument.
19636hardcode_libdir_separator=$lt_hardcode_libdir_separator
19637
19638# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19639# DIR into the resulting binary.
19640hardcode_direct=$hardcode_direct
19641
19642# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19643# DIR into the resulting binary and the resulting library dependency is
19644# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19645# library is relocated.
19646hardcode_direct_absolute=$hardcode_direct_absolute
19647
19648# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19649# into the resulting binary.
19650hardcode_minus_L=$hardcode_minus_L
19651
19652# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19653# into the resulting binary.
19654hardcode_shlibpath_var=$hardcode_shlibpath_var
19655
19656# Set to "yes" if building a shared library automatically hardcodes DIR
19657# into the library and all subsequent libraries and executables linked
19658# against it.
19659hardcode_automatic=$hardcode_automatic
19660
19661# Set to yes if linker adds runtime paths of dependent libraries
19662# to runtime path list.
19663inherit_rpath=$inherit_rpath
19664
19665# Whether libtool must link a program against all its dependency libraries.
19666link_all_deplibs=$link_all_deplibs
19667
19668# Fix the shell variable \$srcfile for the compiler.
19669fix_srcfile_path=$lt_fix_srcfile_path
19670
19671# Set to "yes" if exported symbols are required.
19672always_export_symbols=$always_export_symbols
19673
19674# The commands to list exported symbols.
19675export_symbols_cmds=$lt_export_symbols_cmds
19676
19677# Symbols that should not be listed in the preloaded symbols.
19678exclude_expsyms=$lt_exclude_expsyms
19679
19680# Symbols that must always be exported.
19681include_expsyms=$lt_include_expsyms
19682
19683# Commands necessary for linking programs (against libraries) with templates.
19684prelink_cmds=$lt_prelink_cmds
19685
19686# Specify filename containing input files.
19687file_list_spec=$lt_file_list_spec
19688
19689# How to hardcode a shared library path into an executable.
19690hardcode_action=$hardcode_action
19691
19692# ### END LIBTOOL CONFIG
19693
19694_LT_EOF
19695
19696  case $host_os in
19697  aix3*)
19698    cat <<\_LT_EOF >> "$cfgfile"
19699# AIX sometimes has problems with the GCC collect2 program.  For some
19700# reason, if we set the COLLECT_NAMES environment variable, the problems
19701# vanish in a puff of smoke.
19702if test "X${COLLECT_NAMES+set}" != Xset; then
19703  COLLECT_NAMES=
19704  export COLLECT_NAMES
19705fi
19706_LT_EOF
19707    ;;
19708  esac
19709
19710
19711ltmain="$ac_aux_dir/ltmain.sh"
19712
19713
19714  # We use sed instead of cat because bash on DJGPP gets confused if
19715  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19716  # text mode, it properly converts lines to CR/LF.  This bash problem
19717  # is reportedly fixed, but why not run on old versions too?
19718  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19719    || (rm -f "$cfgfile"; exit 1)
19720
19721  case $xsi_shell in
19722  yes)
19723    cat << \_LT_EOF >> "$cfgfile"
19724
19725# func_dirname file append nondir_replacement
19726# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19727# otherwise set result to NONDIR_REPLACEMENT.
19728func_dirname ()
19729{
19730  case ${1} in
19731    */*) func_dirname_result="${1%/*}${2}" ;;
19732    *  ) func_dirname_result="${3}" ;;
19733  esac
19734}
19735
19736# func_basename file
19737func_basename ()
19738{
19739  func_basename_result="${1##*/}"
19740}
19741
19742# func_dirname_and_basename file append nondir_replacement
19743# perform func_basename and func_dirname in a single function
19744# call:
19745#   dirname:  Compute the dirname of FILE.  If nonempty,
19746#             add APPEND to the result, otherwise set result
19747#             to NONDIR_REPLACEMENT.
19748#             value returned in "$func_dirname_result"
19749#   basename: Compute filename of FILE.
19750#             value retuned in "$func_basename_result"
19751# Implementation must be kept synchronized with func_dirname
19752# and func_basename. For efficiency, we do not delegate to
19753# those functions but instead duplicate the functionality here.
19754func_dirname_and_basename ()
19755{
19756  case ${1} in
19757    */*) func_dirname_result="${1%/*}${2}" ;;
19758    *  ) func_dirname_result="${3}" ;;
19759  esac
19760  func_basename_result="${1##*/}"
19761}
19762
19763# func_stripname prefix suffix name
19764# strip PREFIX and SUFFIX off of NAME.
19765# PREFIX and SUFFIX must not contain globbing or regex special
19766# characters, hashes, percent signs, but SUFFIX may contain a leading
19767# dot (in which case that matches only a dot).
19768func_stripname ()
19769{
19770  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19771  # positional parameters, so assign one to ordinary parameter first.
19772  func_stripname_result=${3}
19773  func_stripname_result=${func_stripname_result#"${1}"}
19774  func_stripname_result=${func_stripname_result%"${2}"}
19775}
19776
19777# func_opt_split
19778func_opt_split ()
19779{
19780  func_opt_split_opt=${1%%=*}
19781  func_opt_split_arg=${1#*=}
19782}
19783
19784# func_lo2o object
19785func_lo2o ()
19786{
19787  case ${1} in
19788    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19789    *)    func_lo2o_result=${1} ;;
19790  esac
19791}
19792
19793# func_xform libobj-or-source
19794func_xform ()
19795{
19796  func_xform_result=${1%.*}.lo
19797}
19798
19799# func_arith arithmetic-term...
19800func_arith ()
19801{
19802  func_arith_result=$(( $* ))
19803}
19804
19805# func_len string
19806# STRING may not start with a hyphen.
19807func_len ()
19808{
19809  func_len_result=${#1}
19810}
19811
19812_LT_EOF
19813    ;;
19814  *) # Bourne compatible functions.
19815    cat << \_LT_EOF >> "$cfgfile"
19816
19817# func_dirname file append nondir_replacement
19818# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19819# otherwise set result to NONDIR_REPLACEMENT.
19820func_dirname ()
19821{
19822  # Extract subdirectory from the argument.
19823  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19824  if test "X$func_dirname_result" = "X${1}"; then
19825    func_dirname_result="${3}"
19826  else
19827    func_dirname_result="$func_dirname_result${2}"
19828  fi
19829}
19830
19831# func_basename file
19832func_basename ()
19833{
19834  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19835}
19836
19837
19838# func_stripname prefix suffix name
19839# strip PREFIX and SUFFIX off of NAME.
19840# PREFIX and SUFFIX must not contain globbing or regex special
19841# characters, hashes, percent signs, but SUFFIX may contain a leading
19842# dot (in which case that matches only a dot).
19843# func_strip_suffix prefix name
19844func_stripname ()
19845{
19846  case ${2} in
19847    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19848    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19849  esac
19850}
19851
19852# sed scripts:
19853my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19854my_sed_long_arg='1s/^-[^=]*=//'
19855
19856# func_opt_split
19857func_opt_split ()
19858{
19859  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19860  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19861}
19862
19863# func_lo2o object
19864func_lo2o ()
19865{
19866  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19867}
19868
19869# func_xform libobj-or-source
19870func_xform ()
19871{
19872  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19873}
19874
19875# func_arith arithmetic-term...
19876func_arith ()
19877{
19878  func_arith_result=`expr "$@"`
19879}
19880
19881# func_len string
19882# STRING may not start with a hyphen.
19883func_len ()
19884{
19885  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19886}
19887
19888_LT_EOF
19889esac
19890
19891case $lt_shell_append in
19892  yes)
19893    cat << \_LT_EOF >> "$cfgfile"
19894
19895# func_append var value
19896# Append VALUE to the end of shell variable VAR.
19897func_append ()
19898{
19899  eval "$1+=\$2"
19900}
19901_LT_EOF
19902    ;;
19903  *)
19904    cat << \_LT_EOF >> "$cfgfile"
19905
19906# func_append var value
19907# Append VALUE to the end of shell variable VAR.
19908func_append ()
19909{
19910  eval "$1=\$$1\$2"
19911}
19912
19913_LT_EOF
19914    ;;
19915  esac
19916
19917
19918  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19919    || (rm -f "$cfgfile"; exit 1)
19920
19921  mv -f "$cfgfile" "$ofile" ||
19922    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19923  chmod +x "$ofile"
19924
19925 ;;
19926    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19927  # Older Autoconf quotes --file arguments for eval, but not when files
19928  # are listed without --file.  Let's play safe and only enable the eval
19929  # if we detect the quoting.
19930  case $CONFIG_FILES in
19931  *\'*) eval set x "$CONFIG_FILES" ;;
19932  *)   set x $CONFIG_FILES ;;
19933  esac
19934  shift
19935  for mf
19936  do
19937    # Strip MF so we end up with the name of the file.
19938    mf=`echo "$mf" | sed -e 's/:.*$//'`
19939    # Check whether this is an Automake generated Makefile or not.
19940    # We used to match only the files named 'Makefile.in', but
19941    # some people rename them; so instead we look at the file content.
19942    # Grep'ing the first line is not enough: some people post-process
19943    # each Makefile.in and add a new line on top of each file to say so.
19944    # Grep'ing the whole file is not good either: AIX grep has a line
19945    # limit of 2048, but all sed's we know have understand at least 4000.
19946    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19947      dirpart=`$as_dirname -- "$mf" ||
19948$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19949	 X"$mf" : 'X\(//\)[^/]' \| \
19950	 X"$mf" : 'X\(//\)$' \| \
19951	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19952$as_echo X"$mf" |
19953    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19954	    s//\1/
19955	    q
19956	  }
19957	  /^X\(\/\/\)[^/].*/{
19958	    s//\1/
19959	    q
19960	  }
19961	  /^X\(\/\/\)$/{
19962	    s//\1/
19963	    q
19964	  }
19965	  /^X\(\/\).*/{
19966	    s//\1/
19967	    q
19968	  }
19969	  s/.*/./; q'`
19970    else
19971      continue
19972    fi
19973    # Extract the definition of DEPDIR, am__include, and am__quote
19974    # from the Makefile without running 'make'.
19975    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19976    test -z "$DEPDIR" && continue
19977    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19978    test -z "$am__include" && continue
19979    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19980    # Find all dependency output files, they are included files with
19981    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19982    # simplest approach to changing $(DEPDIR) to its actual value in the
19983    # expansion.
19984    for file in `sed -n "
19985      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19986	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19987      # Make sure the directory exists.
19988      test -f "$dirpart/$file" && continue
19989      fdir=`$as_dirname -- "$file" ||
19990$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19991	 X"$file" : 'X\(//\)[^/]' \| \
19992	 X"$file" : 'X\(//\)$' \| \
19993	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19994$as_echo X"$file" |
19995    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19996	    s//\1/
19997	    q
19998	  }
19999	  /^X\(\/\/\)[^/].*/{
20000	    s//\1/
20001	    q
20002	  }
20003	  /^X\(\/\/\)$/{
20004	    s//\1/
20005	    q
20006	  }
20007	  /^X\(\/\).*/{
20008	    s//\1/
20009	    q
20010	  }
20011	  s/.*/./; q'`
20012      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20013      # echo "creating $dirpart/$file"
20014      echo '# dummy' > "$dirpart/$file"
20015    done
20016  done
20017}
20018 ;;
20019
20020  esac
20021done # for ac_tag
20022
20023
20024as_fn_exit 0
20025_ACEOF
20026ac_clean_files=$ac_clean_files_save
20027
20028test $ac_write_fail = 0 ||
20029  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20030
20031
20032# configure is writing to config.log, and then calls config.status.
20033# config.status does its own redirection, appending to config.log.
20034# Unfortunately, on DOS this fails, as config.log is still kept open
20035# by configure, so config.status won't be able to write to it; its
20036# output is simply discarded.  So we exec the FD to /dev/null,
20037# effectively closing config.log, so it can be properly (re)opened and
20038# appended to by config.status.  When coming back to configure, we
20039# need to make the FD available again.
20040if test "$no_create" != yes; then
20041  ac_cs_success=:
20042  ac_config_status_args=
20043  test "$silent" = yes &&
20044    ac_config_status_args="$ac_config_status_args --quiet"
20045  exec 5>/dev/null
20046  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20047  exec 5>>config.log
20048  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20049  # would make configure fail if this is the last instruction.
20050  $ac_cs_success || as_fn_exit 1
20051fi
20052if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20053  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20054$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20055fi
20056
20057