1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for package-unused version-unused.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libphobos'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libdruntime/gcc/attribute.d"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636WARN_DFLAGS
637libtool_VERSION
638SPEC_PHOBOS_DEPS
639CHECKING_DFLAGS
640ENABLE_LIBDRUNTIME_ONLY_FALSE
641ENABLE_LIBDRUNTIME_ONLY_TRUE
642ENABLE_LIBPHOBOS_FALSE
643ENABLE_LIBPHOBOS_TRUE
644gdc_include_dir
645libphobos_toolexeclibdir
646libphobos_toolexecdir
647gcc_version
648LIBZ
649BACKTRACE_SUPPORTS_THREADS
650BACKTRACE_USES_MALLOC
651BACKTRACE_SUPPORTED
652LIBBACKTRACE
653LIBATOMIC
654DCFG_HAVE_LIBATOMIC
655DCFG_HAVE_64BIT_ATOMICS
656DCFG_HAVE_ATOMIC_BUILTINS
657DCFG_HAVE_QSORT_R
658OS_LINK_SPEC
659DCFG_DLPI_TLS_MODID
660DRUNTIME_OS_MINFO_BRACKETING_FALSE
661DRUNTIME_OS_MINFO_BRACKETING_TRUE
662DCFG_MINFO_BRACKETING
663DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665DCFG_ARM_EABI_UNWINDER
666DCFG_THREAD_MODEL
667DRUNTIME_OS_POSIX_FALSE
668DRUNTIME_OS_POSIX_TRUE
669DRUNTIME_OS_SOLARIS_FALSE
670DRUNTIME_OS_SOLARIS_TRUE
671DRUNTIME_OS_MINGW_FALSE
672DRUNTIME_OS_MINGW_TRUE
673DRUNTIME_OS_LINUX_FALSE
674DRUNTIME_OS_LINUX_TRUE
675DRUNTIME_OS_OPENBSD_FALSE
676DRUNTIME_OS_OPENBSD_TRUE
677DRUNTIME_OS_NETBSD_FALSE
678DRUNTIME_OS_NETBSD_TRUE
679DRUNTIME_OS_FREEBSD_FALSE
680DRUNTIME_OS_FREEBSD_TRUE
681DRUNTIME_OS_DRAGONFLYBSD_FALSE
682DRUNTIME_OS_DRAGONFLYBSD_TRUE
683DRUNTIME_OS_DARWIN_FALSE
684DRUNTIME_OS_DARWIN_TRUE
685DRUNTIME_OS_ANDROID_FALSE
686DRUNTIME_OS_ANDROID_TRUE
687DRUNTIME_OS_AIX_FALSE
688DRUNTIME_OS_AIX_TRUE
689DRUNTIME_CPU_S390_FALSE
690DRUNTIME_CPU_S390_TRUE
691DRUNTIME_CPU_SYSTEMZ_FALSE
692DRUNTIME_CPU_SYSTEMZ_TRUE
693DRUNTIME_CPU_X86_FALSE
694DRUNTIME_CPU_X86_TRUE
695DRUNTIME_CPU_POWERPC_FALSE
696DRUNTIME_CPU_POWERPC_TRUE
697DRUNTIME_CPU_MIPS_FALSE
698DRUNTIME_CPU_MIPS_TRUE
699DRUNTIME_CPU_ARM_FALSE
700DRUNTIME_CPU_ARM_TRUE
701DRUNTIME_CPU_AARCH64_FALSE
702DRUNTIME_CPU_AARCH64_TRUE
703libphobos_srcdir
704libphobos_builddir
705get_gcc_base_ver
706phobos_compiler_shared_flag
707phobos_compiler_pic_flag
708OTOOL64
709OTOOL
710LIPO
711NMEDIT
712DSYMUTIL
713OBJDUMP
714LN_S
715NM
716ac_ct_DUMPBIN
717DUMPBIN
718LD
719FGREP
720SED
721LIBTOOL
722CFLAGS_FOR_BUILD
723CC_FOR_BUILD
724AR
725RANLIB
726MAINT
727MAINTAINER_MODE_FALSE
728MAINTAINER_MODE_TRUE
729GDCFLAGS
730GDC
731CCASFLAGS
732CCAS
733AM_BACKSLASH
734AM_DEFAULT_VERBOSITY
735AM_DEFAULT_V
736AM_V
737am__untar
738am__tar
739AMTAR
740am__leading_dot
741SET_MAKE
742AWK
743mkdir_p
744MKDIR_P
745INSTALL_STRIP_PROGRAM
746STRIP
747install_sh
748MAKEINFO
749AUTOHEADER
750AUTOMAKE
751AUTOCONF
752ACLOCAL
753VERSION
754PACKAGE
755CYGPATH_W
756am__isrc
757INSTALL_DATA
758INSTALL_SCRIPT
759INSTALL_PROGRAM
760EGREP
761GREP
762CPP
763OBJEXT
764EXEEXT
765ac_ct_CC
766CPPFLAGS
767LDFLAGS
768CFLAGS
769CC
770target_os
771target_vendor
772target_cpu
773target
774host_os
775host_vendor
776host_cpu
777host
778build_os
779build_vendor
780build_cpu
781build
782multi_basedir
783target_alias
784host_alias
785build_alias
786LIBS
787ECHO_T
788ECHO_N
789ECHO_C
790DEFS
791mandir
792localedir
793libdir
794psdir
795pdfdir
796dvidir
797htmldir
798infodir
799docdir
800oldincludedir
801includedir
802localstatedir
803sharedstatedir
804sysconfdir
805datadir
806datarootdir
807libexecdir
808sbindir
809bindir
810program_transform_name
811prefix
812exec_prefix
813PACKAGE_URL
814PACKAGE_BUGREPORT
815PACKAGE_STRING
816PACKAGE_VERSION
817PACKAGE_TARNAME
818PACKAGE_NAME
819PATH_SEPARATOR
820SHELL'
821ac_subst_files='DRTSTUFF_SPEC'
822ac_user_opts='
823enable_option_checking
824enable_multilib
825enable_silent_rules
826enable_maintainer_mode
827enable_shared
828enable_static
829with_pic
830enable_fast_install
831with_gnu_ld
832enable_libtool_lock
833with_gcc_major_version_only
834enable_werror
835with_libatomic
836with_libbacktrace
837with_target_system_zlib
838with_cross_host
839enable_version_specific_runtime_libs
840with_toolexeclibdir
841enable_libphobos
842with_libphobos_druntime_only
843enable_libphobos_checking
844'
845      ac_precious_vars='build_alias
846host_alias
847target_alias
848CC
849CFLAGS
850LDFLAGS
851LIBS
852CPPFLAGS
853CPP'
854
855
856# Initialize some variables set by options.
857ac_init_help=
858ac_init_version=false
859ac_unrecognized_opts=
860ac_unrecognized_sep=
861# The variables have the same names as the options, with
862# dashes changed to underlines.
863cache_file=/dev/null
864exec_prefix=NONE
865no_create=
866no_recursion=
867prefix=NONE
868program_prefix=NONE
869program_suffix=NONE
870program_transform_name=s,x,x,
871silent=
872site=
873srcdir=
874verbose=
875x_includes=NONE
876x_libraries=NONE
877
878# Installation directory options.
879# These are left unexpanded so users can "make install exec_prefix=/foo"
880# and all the variables that are supposed to be based on exec_prefix
881# by default will actually change.
882# Use braces instead of parens because sh, perl, etc. also accept them.
883# (The list follows the same order as the GNU Coding Standards.)
884bindir='${exec_prefix}/bin'
885sbindir='${exec_prefix}/sbin'
886libexecdir='${exec_prefix}/libexec'
887datarootdir='${prefix}/share'
888datadir='${datarootdir}'
889sysconfdir='${prefix}/etc'
890sharedstatedir='${prefix}/com'
891localstatedir='${prefix}/var'
892includedir='${prefix}/include'
893oldincludedir='/usr/include'
894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895infodir='${datarootdir}/info'
896htmldir='${docdir}'
897dvidir='${docdir}'
898pdfdir='${docdir}'
899psdir='${docdir}'
900libdir='${exec_prefix}/lib'
901localedir='${datarootdir}/locale'
902mandir='${datarootdir}/man'
903
904ac_prev=
905ac_dashdash=
906for ac_option
907do
908  # If the previous option needs an argument, assign it.
909  if test -n "$ac_prev"; then
910    eval $ac_prev=\$ac_option
911    ac_prev=
912    continue
913  fi
914
915  case $ac_option in
916  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917  *=)   ac_optarg= ;;
918  *)    ac_optarg=yes ;;
919  esac
920
921  # Accept the important Cygnus configure options, so we can diagnose typos.
922
923  case $ac_dashdash$ac_option in
924  --)
925    ac_dashdash=yes ;;
926
927  -bindir | --bindir | --bindi | --bind | --bin | --bi)
928    ac_prev=bindir ;;
929  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930    bindir=$ac_optarg ;;
931
932  -build | --build | --buil | --bui | --bu)
933    ac_prev=build_alias ;;
934  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935    build_alias=$ac_optarg ;;
936
937  -cache-file | --cache-file | --cache-fil | --cache-fi \
938  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939    ac_prev=cache_file ;;
940  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942    cache_file=$ac_optarg ;;
943
944  --config-cache | -C)
945    cache_file=config.cache ;;
946
947  -datadir | --datadir | --datadi | --datad)
948    ac_prev=datadir ;;
949  -datadir=* | --datadir=* | --datadi=* | --datad=*)
950    datadir=$ac_optarg ;;
951
952  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953  | --dataroo | --dataro | --datar)
954    ac_prev=datarootdir ;;
955  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957    datarootdir=$ac_optarg ;;
958
959  -disable-* | --disable-*)
960    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961    # Reject names that are not valid shell variable names.
962    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963      as_fn_error $? "invalid feature name: $ac_useropt"
964    ac_useropt_orig=$ac_useropt
965    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966    case $ac_user_opts in
967      *"
968"enable_$ac_useropt"
969"*) ;;
970      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971	 ac_unrecognized_sep=', ';;
972    esac
973    eval enable_$ac_useropt=no ;;
974
975  -docdir | --docdir | --docdi | --doc | --do)
976    ac_prev=docdir ;;
977  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978    docdir=$ac_optarg ;;
979
980  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981    ac_prev=dvidir ;;
982  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983    dvidir=$ac_optarg ;;
984
985  -enable-* | --enable-*)
986    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987    # Reject names that are not valid shell variable names.
988    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989      as_fn_error $? "invalid feature name: $ac_useropt"
990    ac_useropt_orig=$ac_useropt
991    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992    case $ac_user_opts in
993      *"
994"enable_$ac_useropt"
995"*) ;;
996      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997	 ac_unrecognized_sep=', ';;
998    esac
999    eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003  | --exec | --exe | --ex)
1004    ac_prev=exec_prefix ;;
1005  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007  | --exec=* | --exe=* | --ex=*)
1008    exec_prefix=$ac_optarg ;;
1009
1010  -gas | --gas | --ga | --g)
1011    # Obsolete; use --with-gas.
1012    with_gas=yes ;;
1013
1014  -help | --help | --hel | --he | -h)
1015    ac_init_help=long ;;
1016  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017    ac_init_help=recursive ;;
1018  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019    ac_init_help=short ;;
1020
1021  -host | --host | --hos | --ho)
1022    ac_prev=host_alias ;;
1023  -host=* | --host=* | --hos=* | --ho=*)
1024    host_alias=$ac_optarg ;;
1025
1026  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027    ac_prev=htmldir ;;
1028  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029  | --ht=*)
1030    htmldir=$ac_optarg ;;
1031
1032  -includedir | --includedir | --includedi | --included | --include \
1033  | --includ | --inclu | --incl | --inc)
1034    ac_prev=includedir ;;
1035  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036  | --includ=* | --inclu=* | --incl=* | --inc=*)
1037    includedir=$ac_optarg ;;
1038
1039  -infodir | --infodir | --infodi | --infod | --info | --inf)
1040    ac_prev=infodir ;;
1041  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042    infodir=$ac_optarg ;;
1043
1044  -libdir | --libdir | --libdi | --libd)
1045    ac_prev=libdir ;;
1046  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047    libdir=$ac_optarg ;;
1048
1049  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050  | --libexe | --libex | --libe)
1051    ac_prev=libexecdir ;;
1052  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053  | --libexe=* | --libex=* | --libe=*)
1054    libexecdir=$ac_optarg ;;
1055
1056  -localedir | --localedir | --localedi | --localed | --locale)
1057    ac_prev=localedir ;;
1058  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059    localedir=$ac_optarg ;;
1060
1061  -localstatedir | --localstatedir | --localstatedi | --localstated \
1062  | --localstate | --localstat | --localsta | --localst | --locals)
1063    ac_prev=localstatedir ;;
1064  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066    localstatedir=$ac_optarg ;;
1067
1068  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069    ac_prev=mandir ;;
1070  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071    mandir=$ac_optarg ;;
1072
1073  -nfp | --nfp | --nf)
1074    # Obsolete; use --without-fp.
1075    with_fp=no ;;
1076
1077  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078  | --no-cr | --no-c | -n)
1079    no_create=yes ;;
1080
1081  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083    no_recursion=yes ;;
1084
1085  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087  | --oldin | --oldi | --old | --ol | --o)
1088    ac_prev=oldincludedir ;;
1089  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092    oldincludedir=$ac_optarg ;;
1093
1094  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095    ac_prev=prefix ;;
1096  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097    prefix=$ac_optarg ;;
1098
1099  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100  | --program-pre | --program-pr | --program-p)
1101    ac_prev=program_prefix ;;
1102  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104    program_prefix=$ac_optarg ;;
1105
1106  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107  | --program-suf | --program-su | --program-s)
1108    ac_prev=program_suffix ;;
1109  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111    program_suffix=$ac_optarg ;;
1112
1113  -program-transform-name | --program-transform-name \
1114  | --program-transform-nam | --program-transform-na \
1115  | --program-transform-n | --program-transform- \
1116  | --program-transform | --program-transfor \
1117  | --program-transfo | --program-transf \
1118  | --program-trans | --program-tran \
1119  | --progr-tra | --program-tr | --program-t)
1120    ac_prev=program_transform_name ;;
1121  -program-transform-name=* | --program-transform-name=* \
1122  | --program-transform-nam=* | --program-transform-na=* \
1123  | --program-transform-n=* | --program-transform-=* \
1124  | --program-transform=* | --program-transfor=* \
1125  | --program-transfo=* | --program-transf=* \
1126  | --program-trans=* | --program-tran=* \
1127  | --progr-tra=* | --program-tr=* | --program-t=*)
1128    program_transform_name=$ac_optarg ;;
1129
1130  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131    ac_prev=pdfdir ;;
1132  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133    pdfdir=$ac_optarg ;;
1134
1135  -psdir | --psdir | --psdi | --psd | --ps)
1136    ac_prev=psdir ;;
1137  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138    psdir=$ac_optarg ;;
1139
1140  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141  | -silent | --silent | --silen | --sile | --sil)
1142    silent=yes ;;
1143
1144  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145    ac_prev=sbindir ;;
1146  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147  | --sbi=* | --sb=*)
1148    sbindir=$ac_optarg ;;
1149
1150  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152  | --sharedst | --shareds | --shared | --share | --shar \
1153  | --sha | --sh)
1154    ac_prev=sharedstatedir ;;
1155  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158  | --sha=* | --sh=*)
1159    sharedstatedir=$ac_optarg ;;
1160
1161  -site | --site | --sit)
1162    ac_prev=site ;;
1163  -site=* | --site=* | --sit=*)
1164    site=$ac_optarg ;;
1165
1166  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167    ac_prev=srcdir ;;
1168  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169    srcdir=$ac_optarg ;;
1170
1171  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172  | --syscon | --sysco | --sysc | --sys | --sy)
1173    ac_prev=sysconfdir ;;
1174  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176    sysconfdir=$ac_optarg ;;
1177
1178  -target | --target | --targe | --targ | --tar | --ta | --t)
1179    ac_prev=target_alias ;;
1180  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181    target_alias=$ac_optarg ;;
1182
1183  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184    verbose=yes ;;
1185
1186  -version | --version | --versio | --versi | --vers | -V)
1187    ac_init_version=: ;;
1188
1189  -with-* | --with-*)
1190    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191    # Reject names that are not valid shell variable names.
1192    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193      as_fn_error $? "invalid package name: $ac_useropt"
1194    ac_useropt_orig=$ac_useropt
1195    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196    case $ac_user_opts in
1197      *"
1198"with_$ac_useropt"
1199"*) ;;
1200      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201	 ac_unrecognized_sep=', ';;
1202    esac
1203    eval with_$ac_useropt=\$ac_optarg ;;
1204
1205  -without-* | --without-*)
1206    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207    # Reject names that are not valid shell variable names.
1208    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209      as_fn_error $? "invalid package name: $ac_useropt"
1210    ac_useropt_orig=$ac_useropt
1211    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212    case $ac_user_opts in
1213      *"
1214"with_$ac_useropt"
1215"*) ;;
1216      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217	 ac_unrecognized_sep=', ';;
1218    esac
1219    eval with_$ac_useropt=no ;;
1220
1221  --x)
1222    # Obsolete; use --with-x.
1223    with_x=yes ;;
1224
1225  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226  | --x-incl | --x-inc | --x-in | --x-i)
1227    ac_prev=x_includes ;;
1228  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230    x_includes=$ac_optarg ;;
1231
1232  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234    ac_prev=x_libraries ;;
1235  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237    x_libraries=$ac_optarg ;;
1238
1239  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240Try \`$0 --help' for more information"
1241    ;;
1242
1243  *=*)
1244    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245    # Reject names that are not valid shell variable names.
1246    case $ac_envvar in #(
1247      '' | [0-9]* | *[!_$as_cr_alnum]* )
1248      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249    esac
1250    eval $ac_envvar=\$ac_optarg
1251    export $ac_envvar ;;
1252
1253  *)
1254    # FIXME: should be removed in autoconf 3.0.
1255    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259    ;;
1260
1261  esac
1262done
1263
1264if test -n "$ac_prev"; then
1265  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266  as_fn_error $? "missing argument to $ac_option"
1267fi
1268
1269if test -n "$ac_unrecognized_opts"; then
1270  case $enable_option_checking in
1271    no) ;;
1272    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274  esac
1275fi
1276
1277# Check all directory arguments for consistency.
1278for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279		datadir sysconfdir sharedstatedir localstatedir includedir \
1280		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281		libdir localedir mandir
1282do
1283  eval ac_val=\$$ac_var
1284  # Remove trailing slashes.
1285  case $ac_val in
1286    */ )
1287      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288      eval $ac_var=\$ac_val;;
1289  esac
1290  # Be sure to have absolute directory names.
1291  case $ac_val in
1292    [\\/$]* | ?:[\\/]* )  continue;;
1293    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294  esac
1295  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296done
1297
1298# There might be people who depend on the old broken behavior: `$host'
1299# used to hold the argument of --host etc.
1300# FIXME: To remove some day.
1301build=$build_alias
1302host=$host_alias
1303target=$target_alias
1304
1305# FIXME: To remove some day.
1306if test "x$host_alias" != x; then
1307  if test "x$build_alias" = x; then
1308    cross_compiling=maybe
1309  elif test "x$build_alias" != "x$host_alias"; then
1310    cross_compiling=yes
1311  fi
1312fi
1313
1314ac_tool_prefix=
1315test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317test "$silent" = yes && exec 6>/dev/null
1318
1319
1320ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321ac_ls_di=`ls -di .` &&
1322ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323  as_fn_error $? "working directory cannot be determined"
1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325  as_fn_error $? "pwd does not report name of working directory"
1326
1327
1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330  ac_srcdir_defaulted=yes
1331  # Try the directory containing this script, then the parent directory.
1332  ac_confdir=`$as_dirname -- "$as_myself" ||
1333$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334	 X"$as_myself" : 'X\(//\)[^/]' \| \
1335	 X"$as_myself" : 'X\(//\)$' \| \
1336	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337$as_echo X"$as_myself" |
1338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\/\)[^/].*/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)$/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\).*/{
1351	    s//\1/
1352	    q
1353	  }
1354	  s/.*/./; q'`
1355  srcdir=$ac_confdir
1356  if test ! -r "$srcdir/$ac_unique_file"; then
1357    srcdir=..
1358  fi
1359else
1360  ac_srcdir_defaulted=no
1361fi
1362if test ! -r "$srcdir/$ac_unique_file"; then
1363  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369	pwd)`
1370# When building in place, set srcdir=.
1371if test "$ac_abs_confdir" = "$ac_pwd"; then
1372  srcdir=.
1373fi
1374# Remove unnecessary trailing slashes from srcdir.
1375# Double slashes in file names in object file debugging info
1376# mess up M-x gdb in Emacs.
1377case $srcdir in
1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379esac
1380for ac_var in $ac_precious_vars; do
1381  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_env_${ac_var}_value=\$${ac_var}
1383  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391  # Omit some internal or obsolete options to make the list less imposing.
1392  # This message is too long to be a string in the A/UX 3.1 sh.
1393  cat <<_ACEOF
1394\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404  -h, --help              display this help and exit
1405      --help=short        display options specific to this package
1406      --help=recursive    display the short help of all the included packages
1407  -V, --version           display version information and exit
1408  -q, --quiet, --silent   do not print \`checking ...' messages
1409      --cache-file=FILE   cache test results in FILE [disabled]
1410  -C, --config-cache      alias for \`--cache-file=config.cache'
1411  -n, --no-create         do not create output files
1412      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414Installation directories:
1415  --prefix=PREFIX         install architecture-independent files in PREFIX
1416                          [$ac_default_prefix]
1417  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                          [PREFIX]
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
1428  --bindir=DIR            user executables [EPREFIX/bin]
1429  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1430  --libexecdir=DIR        program executables [EPREFIX/libexec]
1431  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1432  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1433  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1434  --libdir=DIR            object code libraries [EPREFIX/lib]
1435  --includedir=DIR        C header files [PREFIX/include]
1436  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439  --infodir=DIR           info documentation [DATAROOTDIR/info]
1440  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441  --mandir=DIR            man documentation [DATAROOTDIR/man]
1442  --docdir=DIR            documentation root [DATAROOTDIR/doc/libphobos]
1443  --htmldir=DIR           html documentation [DOCDIR]
1444  --dvidir=DIR            dvi documentation [DOCDIR]
1445  --pdfdir=DIR            pdf documentation [DOCDIR]
1446  --psdir=DIR             ps documentation [DOCDIR]
1447_ACEOF
1448
1449  cat <<\_ACEOF
1450
1451Program names:
1452  --program-prefix=PREFIX            prepend PREFIX to installed program names
1453  --program-suffix=SUFFIX            append SUFFIX to installed program names
1454  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456System types:
1457  --build=BUILD     configure for building on BUILD [guessed]
1458  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459  --target=TARGET   configure for building compilers for TARGET [HOST]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464  case $ac_init_help in
1465     short | recursive ) echo "Configuration of package-unused version-unused:";;
1466   esac
1467  cat <<\_ACEOF
1468
1469Optional Features:
1470  --disable-option-checking  ignore unrecognized --enable/--with options
1471  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1472  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1473  --enable-multilib       build many library versions (default)
1474  --enable-silent-rules   less verbose build output (undo: "make V=1")
1475  --disable-silent-rules  verbose build output (undo: "make V=0")
1476  --enable-maintainer-mode
1477                          enable make rules and dependencies not useful (and
1478                          sometimes confusing) to the casual installer
1479  --enable-shared[=PKGS]  build shared libraries [default=yes]
1480  --enable-static[=PKGS]  build static libraries [default=yes]
1481  --enable-fast-install[=PKGS]
1482                          optimize for fast installation [default=yes]
1483  --disable-libtool-lock  avoid locking (might break parallel builds)
1484  --enable-werror         turns on -Werror [default=no]
1485  --enable-version-specific-runtime-libs
1486                          Specify that runtime libraries should be installed
1487                          in a compiler-specific directory
1488  --enable-libphobos      Enable libphobos
1489  --enable-libphobos-checking[=LIST]
1490                          enable expensive run-time checks. With LIST, enable
1491                          only specific categories of checks. Categories are:
1492                          yes,no,all,none,release. Flags are: assert or other
1493                          strings
1494
1495Optional Packages:
1496  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1497  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1498  --with-pic              try to use only PIC/non-PIC objects [default=use
1499                          both]
1500  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1501  --with-gcc-major-version-only
1502                          use only GCC major number in filesystem paths
1503  --without-libatomic     Do not use libatomic in core.atomic (default: auto)
1504  --without-libbacktrace  Do not use libbacktrace in core.runtime (default:
1505                          auto)
1506  --with-target-system-zlib={yes,no,auto}
1507                          use installed libz (default: no)
1508  --with-cross-host=HOST  configuring with a cross compiler
1509  --with-toolexeclibdir=DIR
1510                          install libraries built with a cross compiler within
1511                          DIR
1512  --with-libphobos-druntime-only={yes,no,auto}
1513                          build only the druntime library (default: auto)
1514
1515Some influential environment variables:
1516  CC          C compiler command
1517  CFLAGS      C compiler flags
1518  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1519              nonstandard directory <lib dir>
1520  LIBS        libraries to pass to the linker, e.g. -l<library>
1521  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522              you have headers in a nonstandard directory <include dir>
1523  CPP         C preprocessor
1524  CCAS        assembler compiler command (defaults to CC)
1525  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1526  GDC         D compiler command
1527  GDCFLAGS    D compiler flags
1528
1529Use these variables to override the choices made by `configure' or to help
1530it to find libraries and programs with nonstandard names/locations.
1531
1532Report bugs to the package provider.
1533_ACEOF
1534ac_status=$?
1535fi
1536
1537if test "$ac_init_help" = "recursive"; then
1538  # If there are subdirs, report their specific --help.
1539  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540    test -d "$ac_dir" ||
1541      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542      continue
1543    ac_builddir=.
1544
1545case "$ac_dir" in
1546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547*)
1548  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549  # A ".." for each directory in $ac_dir_suffix.
1550  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551  case $ac_top_builddir_sub in
1552  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554  esac ;;
1555esac
1556ac_abs_top_builddir=$ac_pwd
1557ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558# for backward compatibility:
1559ac_top_builddir=$ac_top_build_prefix
1560
1561case $srcdir in
1562  .)  # We are building in place.
1563    ac_srcdir=.
1564    ac_top_srcdir=$ac_top_builddir_sub
1565    ac_abs_top_srcdir=$ac_pwd ;;
1566  [\\/]* | ?:[\\/]* )  # Absolute name.
1567    ac_srcdir=$srcdir$ac_dir_suffix;
1568    ac_top_srcdir=$srcdir
1569    ac_abs_top_srcdir=$srcdir ;;
1570  *) # Relative name.
1571    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572    ac_top_srcdir=$ac_top_build_prefix$srcdir
1573    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574esac
1575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577    cd "$ac_dir" || { ac_status=$?; continue; }
1578    # Check for guested configure.
1579    if test -f "$ac_srcdir/configure.gnu"; then
1580      echo &&
1581      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582    elif test -f "$ac_srcdir/configure"; then
1583      echo &&
1584      $SHELL "$ac_srcdir/configure" --help=recursive
1585    else
1586      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587    fi || ac_status=$?
1588    cd "$ac_pwd" || { ac_status=$?; break; }
1589  done
1590fi
1591
1592test -n "$ac_init_help" && exit $ac_status
1593if $ac_init_version; then
1594  cat <<\_ACEOF
1595package-unused configure version-unused
1596generated by GNU Autoconf 2.69
1597
1598Copyright (C) 2012 Free Software Foundation, Inc.
1599This configure script is free software; the Free Software Foundation
1600gives unlimited permission to copy, distribute and modify it.
1601_ACEOF
1602  exit
1603fi
1604
1605## ------------------------ ##
1606## Autoconf initialization. ##
1607## ------------------------ ##
1608
1609# ac_fn_c_try_compile LINENO
1610# --------------------------
1611# Try to compile conftest.$ac_ext, and return whether this succeeded.
1612ac_fn_c_try_compile ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  rm -f conftest.$ac_objext
1616  if { { ac_try="$ac_compile"
1617case "(($ac_try" in
1618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619  *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623  (eval "$ac_compile") 2>conftest.err
1624  ac_status=$?
1625  if test -s conftest.err; then
1626    grep -v '^ *+' conftest.err >conftest.er1
1627    cat conftest.er1 >&5
1628    mv -f conftest.er1 conftest.err
1629  fi
1630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631  test $ac_status = 0; } && {
1632	 test -z "$ac_c_werror_flag" ||
1633	 test ! -s conftest.err
1634       } && test -s conftest.$ac_objext; then :
1635  ac_retval=0
1636else
1637  $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640	ac_retval=1
1641fi
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_compile
1646
1647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } > conftest.i && {
1669	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       }; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677    ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_cpp
1683
1684# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1685# -------------------------------------------------------
1686# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1687# the include files in INCLUDES and setting the cache variable VAR
1688# accordingly.
1689ac_fn_c_check_header_mongrel ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if eval \${$3+:} false; then :
1693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694$as_echo_n "checking for $2... " >&6; }
1695if eval \${$3+:} false; then :
1696  $as_echo_n "(cached) " >&6
1697fi
1698eval ac_res=\$$3
1699	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700$as_echo "$ac_res" >&6; }
1701else
1702  # Is the header compilable?
1703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1704$as_echo_n "checking $2 usability... " >&6; }
1705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h.  */
1707$4
1708#include <$2>
1709_ACEOF
1710if ac_fn_c_try_compile "$LINENO"; then :
1711  ac_header_compiler=yes
1712else
1713  ac_header_compiler=no
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1717$as_echo "$ac_header_compiler" >&6; }
1718
1719# Is the header present?
1720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1721$as_echo_n "checking $2 presence... " >&6; }
1722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723/* end confdefs.h.  */
1724#include <$2>
1725_ACEOF
1726if ac_fn_c_try_cpp "$LINENO"; then :
1727  ac_header_preproc=yes
1728else
1729  ac_header_preproc=no
1730fi
1731rm -f conftest.err conftest.i conftest.$ac_ext
1732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1733$as_echo "$ac_header_preproc" >&6; }
1734
1735# So?  What about this header?
1736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1737  yes:no: )
1738    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1739$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1740    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1741$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742    ;;
1743  no:yes:* )
1744    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1745$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1746    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1747$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1748    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1749$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1750    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1751$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1752    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754    ;;
1755esac
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759  $as_echo_n "(cached) " >&6
1760else
1761  eval "$3=\$ac_header_compiler"
1762fi
1763eval ac_res=\$$3
1764	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
1766fi
1767  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769} # ac_fn_c_check_header_mongrel
1770
1771# ac_fn_c_try_run LINENO
1772# ----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774# that executables *can* be run.
1775ac_fn_c_try_run ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781  *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785  (eval "$ac_link") 2>&5
1786  ac_status=$?
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789  { { case "(($ac_try" in
1790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791  *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795  (eval "$ac_try") 2>&5
1796  ac_status=$?
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; }; }; then :
1799  ac_retval=0
1800else
1801  $as_echo "$as_me: program exited with status $ac_status" >&5
1802       $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805       ac_retval=$ac_status
1806fi
1807  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_run
1812
1813# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1814# -------------------------------------------------------
1815# Tests whether HEADER exists and can be compiled using the include files in
1816# INCLUDES, setting the cache variable VAR accordingly.
1817ac_fn_c_check_header_compile ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if eval \${$3+:} false; then :
1823  $as_echo_n "(cached) " >&6
1824else
1825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831  eval "$3=yes"
1832else
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836fi
1837eval ac_res=\$$3
1838	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842} # ac_fn_c_check_header_compile
1843
1844# ac_fn_d_try_compile LINENO
1845# --------------------------
1846# Try to compile conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_d_try_compile ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  rm -f conftest.$ac_objext
1851  if { { ac_try="$ac_compile"
1852case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_compile") 2>conftest.err
1859  ac_status=$?
1860  if test -s conftest.err; then
1861    grep -v '^ *+' conftest.err >conftest.er1
1862    cat conftest.er1 >&5
1863    mv -f conftest.er1 conftest.err
1864  fi
1865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; } && {
1867	 test -z "$ac_d_werror_flag" ||
1868	 test ! -s conftest.err
1869       } && test -s conftest.$ac_objext; then :
1870  ac_retval=0
1871else
1872  $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875	ac_retval=1
1876fi
1877  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878  as_fn_set_status $ac_retval
1879
1880} # ac_fn_d_try_compile
1881
1882# ac_fn_c_try_link LINENO
1883# -----------------------
1884# Try to link conftest.$ac_ext, and return whether this succeeded.
1885ac_fn_c_try_link ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  rm -f conftest.$ac_objext conftest$ac_exeext
1889  if { { ac_try="$ac_link"
1890case "(($ac_try" in
1891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892  *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895$as_echo "$ac_try_echo"; } >&5
1896  (eval "$ac_link") 2>conftest.err
1897  ac_status=$?
1898  if test -s conftest.err; then
1899    grep -v '^ *+' conftest.err >conftest.er1
1900    cat conftest.er1 >&5
1901    mv -f conftest.er1 conftest.err
1902  fi
1903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904  test $ac_status = 0; } && {
1905	 test -z "$ac_c_werror_flag" ||
1906	 test ! -s conftest.err
1907       } && test -s conftest$ac_exeext && {
1908	 test "$cross_compiling" = yes ||
1909	 test -x conftest$ac_exeext
1910       }; then :
1911  ac_retval=0
1912else
1913  $as_echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916	ac_retval=1
1917fi
1918  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920  # interfere with the next link command; also delete a directory that is
1921  # left behind by Apple's compiler.  We do this before executing the actions.
1922  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924  as_fn_set_status $ac_retval
1925
1926} # ac_fn_c_try_link
1927
1928# ac_fn_c_check_func LINENO FUNC VAR
1929# ----------------------------------
1930# Tests whether FUNC exists, setting the cache variable VAR accordingly
1931ac_fn_c_check_func ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
1936if eval \${$3+:} false; then :
1937  $as_echo_n "(cached) " >&6
1938else
1939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h.  */
1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1943#define $2 innocuous_$2
1944
1945/* System header to define __stub macros and hopefully few prototypes,
1946    which can conflict with char $2 (); below.
1947    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948    <limits.h> exists even on freestanding compilers.  */
1949
1950#ifdef __STDC__
1951# include <limits.h>
1952#else
1953# include <assert.h>
1954#endif
1955
1956#undef $2
1957
1958/* Override any GCC internal prototype to avoid an error.
1959   Use char because int might match the return type of a GCC
1960   builtin and then its argument prototype would still apply.  */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 ();
1965/* The GNU C library defines this for functions which it implements
1966    to always fail with ENOSYS.  Some functions are actually named
1967    something starting with __ and the normal name is an alias.  */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main ()
1974{
1975return $2 ();
1976  ;
1977  return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_link "$LINENO"; then :
1981  eval "$3=yes"
1982else
1983  eval "$3=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext \
1986    conftest$ac_exeext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993} # ac_fn_c_check_func
1994
1995# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996# ----------------------------------------------------
1997# Tries to find if the field MEMBER exists in type AGGR, after including
1998# INCLUDES, setting cache variable VAR accordingly.
1999ac_fn_c_check_member ()
2000{
2001  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003$as_echo_n "checking for $2.$3... " >&6; }
2004if eval \${$4+:} false; then :
2005  $as_echo_n "(cached) " >&6
2006else
2007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h.  */
2009$5
2010int
2011main ()
2012{
2013static $2 ac_aggr;
2014if (ac_aggr.$3)
2015return 0;
2016  ;
2017  return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021  eval "$4=yes"
2022else
2023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h.  */
2025$5
2026int
2027main ()
2028{
2029static $2 ac_aggr;
2030if (sizeof ac_aggr.$3)
2031return 0;
2032  ;
2033  return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037  eval "$4=yes"
2038else
2039  eval "$4=no"
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045eval ac_res=\$$4
2046	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050} # ac_fn_c_check_member
2051
2052# ac_fn_d_try_link LINENO
2053# -----------------------
2054# Try to link conftest.$ac_ext, and return whether this succeeded.
2055ac_fn_d_try_link ()
2056{
2057  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058  rm -f conftest.$ac_objext conftest$ac_exeext
2059  if { { ac_try="$ac_link"
2060case "(($ac_try" in
2061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062  *) ac_try_echo=$ac_try;;
2063esac
2064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065$as_echo "$ac_try_echo"; } >&5
2066  (eval "$ac_link") 2>conftest.err
2067  ac_status=$?
2068  if test -s conftest.err; then
2069    grep -v '^ *+' conftest.err >conftest.er1
2070    cat conftest.er1 >&5
2071    mv -f conftest.er1 conftest.err
2072  fi
2073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074  test $ac_status = 0; } && {
2075	 test -z "$ac_d_werror_flag" ||
2076	 test ! -s conftest.err
2077       } && test -s conftest$ac_exeext && {
2078	 test "$cross_compiling" = yes ||
2079	 test -x conftest$ac_exeext
2080       }; then :
2081  ac_retval=0
2082else
2083  $as_echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086	ac_retval=1
2087fi
2088  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2089  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2090  # interfere with the next link command; also delete a directory that is
2091  # left behind by Apple's compiler.  We do this before executing the actions.
2092  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2093  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094  as_fn_set_status $ac_retval
2095
2096} # ac_fn_d_try_link
2097cat >config.log <<_ACEOF
2098This file contains any messages produced by compilers while
2099running configure, to aid debugging if configure makes a mistake.
2100
2101It was created by package-unused $as_me version-unused, which was
2102generated by GNU Autoconf 2.69.  Invocation command line was
2103
2104  $ $0 $@
2105
2106_ACEOF
2107exec 5>>config.log
2108{
2109cat <<_ASUNAME
2110## --------- ##
2111## Platform. ##
2112## --------- ##
2113
2114hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119
2120/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2122
2123/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2124/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2125/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2127/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2128/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2129/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2130
2131_ASUNAME
2132
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136  IFS=$as_save_IFS
2137  test -z "$as_dir" && as_dir=.
2138    $as_echo "PATH: $as_dir"
2139  done
2140IFS=$as_save_IFS
2141
2142} >&5
2143
2144cat >&5 <<_ACEOF
2145
2146
2147## ----------- ##
2148## Core tests. ##
2149## ----------- ##
2150
2151_ACEOF
2152
2153
2154# Keep a trace of the command line.
2155# Strip out --no-create and --no-recursion so they do not pile up.
2156# Strip out --silent because we don't want to record it for future runs.
2157# Also quote any args containing shell meta-characters.
2158# Make two passes to allow for proper duplicate-argument suppression.
2159ac_configure_args=
2160ac_configure_args0=
2161ac_configure_args1=
2162ac_must_keep_next=false
2163for ac_pass in 1 2
2164do
2165  for ac_arg
2166  do
2167    case $ac_arg in
2168    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170    | -silent | --silent | --silen | --sile | --sil)
2171      continue ;;
2172    *\'*)
2173      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2174    esac
2175    case $ac_pass in
2176    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2177    2)
2178      as_fn_append ac_configure_args1 " '$ac_arg'"
2179      if test $ac_must_keep_next = true; then
2180	ac_must_keep_next=false # Got value, back to normal.
2181      else
2182	case $ac_arg in
2183	  *=* | --config-cache | -C | -disable-* | --disable-* \
2184	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186	  | -with-* | --with-* | -without-* | --without-* | --x)
2187	    case "$ac_configure_args0 " in
2188	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189	    esac
2190	    ;;
2191	  -* ) ac_must_keep_next=true ;;
2192	esac
2193      fi
2194      as_fn_append ac_configure_args " '$ac_arg'"
2195      ;;
2196    esac
2197  done
2198done
2199{ ac_configure_args0=; unset ac_configure_args0;}
2200{ ac_configure_args1=; unset ac_configure_args1;}
2201
2202# When interrupted or exit'd, cleanup temporary files, and complete
2203# config.log.  We remove comments because anyway the quotes in there
2204# would cause problems or look ugly.
2205# WARNING: Use '\'' to represent an apostrophe within the trap.
2206# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2207trap 'exit_status=$?
2208  # Save into config.log some information that might help in debugging.
2209  {
2210    echo
2211
2212    $as_echo "## ---------------- ##
2213## Cache variables. ##
2214## ---------------- ##"
2215    echo
2216    # The following way of writing the cache mishandles newlines in values,
2217(
2218  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2219    eval ac_val=\$$ac_var
2220    case $ac_val in #(
2221    *${as_nl}*)
2222      case $ac_var in #(
2223      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2224$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2225      esac
2226      case $ac_var in #(
2227      _ | IFS | as_nl) ;; #(
2228      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2229      *) { eval $ac_var=; unset $ac_var;} ;;
2230      esac ;;
2231    esac
2232  done
2233  (set) 2>&1 |
2234    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235    *${as_nl}ac_space=\ *)
2236      sed -n \
2237	"s/'\''/'\''\\\\'\'''\''/g;
2238	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239      ;; #(
2240    *)
2241      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2242      ;;
2243    esac |
2244    sort
2245)
2246    echo
2247
2248    $as_echo "## ----------------- ##
2249## Output variables. ##
2250## ----------------- ##"
2251    echo
2252    for ac_var in $ac_subst_vars
2253    do
2254      eval ac_val=\$$ac_var
2255      case $ac_val in
2256      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257      esac
2258      $as_echo "$ac_var='\''$ac_val'\''"
2259    done | sort
2260    echo
2261
2262    if test -n "$ac_subst_files"; then
2263      $as_echo "## ------------------- ##
2264## File substitutions. ##
2265## ------------------- ##"
2266      echo
2267      for ac_var in $ac_subst_files
2268      do
2269	eval ac_val=\$$ac_var
2270	case $ac_val in
2271	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272	esac
2273	$as_echo "$ac_var='\''$ac_val'\''"
2274      done | sort
2275      echo
2276    fi
2277
2278    if test -s confdefs.h; then
2279      $as_echo "## ----------- ##
2280## confdefs.h. ##
2281## ----------- ##"
2282      echo
2283      cat confdefs.h
2284      echo
2285    fi
2286    test "$ac_signal" != 0 &&
2287      $as_echo "$as_me: caught signal $ac_signal"
2288    $as_echo "$as_me: exit $exit_status"
2289  } >&5
2290  rm -f core *.core core.conftest.* &&
2291    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2292    exit $exit_status
2293' 0
2294for ac_signal in 1 2 13 15; do
2295  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2296done
2297ac_signal=0
2298
2299# confdefs.h avoids OS command line length limits that DEFS can exceed.
2300rm -f -r conftest* confdefs.h
2301
2302$as_echo "/* confdefs.h */" > confdefs.h
2303
2304# Predefined preprocessor variables.
2305
2306cat >>confdefs.h <<_ACEOF
2307#define PACKAGE_NAME "$PACKAGE_NAME"
2308_ACEOF
2309
2310cat >>confdefs.h <<_ACEOF
2311#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2312_ACEOF
2313
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_VERSION "$PACKAGE_VERSION"
2316_ACEOF
2317
2318cat >>confdefs.h <<_ACEOF
2319#define PACKAGE_STRING "$PACKAGE_STRING"
2320_ACEOF
2321
2322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2324_ACEOF
2325
2326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_URL "$PACKAGE_URL"
2328_ACEOF
2329
2330
2331# Let the site file select an alternate cache file if it wants to.
2332# Prefer an explicitly selected file to automatically selected ones.
2333ac_site_file1=NONE
2334ac_site_file2=NONE
2335if test -n "$CONFIG_SITE"; then
2336  # We do not want a PATH search for config.site.
2337  case $CONFIG_SITE in #((
2338    -*)  ac_site_file1=./$CONFIG_SITE;;
2339    */*) ac_site_file1=$CONFIG_SITE;;
2340    *)   ac_site_file1=./$CONFIG_SITE;;
2341  esac
2342elif test "x$prefix" != xNONE; then
2343  ac_site_file1=$prefix/share/config.site
2344  ac_site_file2=$prefix/etc/config.site
2345else
2346  ac_site_file1=$ac_default_prefix/share/config.site
2347  ac_site_file2=$ac_default_prefix/etc/config.site
2348fi
2349for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2350do
2351  test "x$ac_site_file" = xNONE && continue
2352  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2353    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2354$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2355    sed 's/^/| /' "$ac_site_file" >&5
2356    . "$ac_site_file" \
2357      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359as_fn_error $? "failed to load site script $ac_site_file
2360See \`config.log' for more details" "$LINENO" 5; }
2361  fi
2362done
2363
2364if test -r "$cache_file"; then
2365  # Some versions of bash will fail to source /dev/null (special files
2366  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2367  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2368    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2369$as_echo "$as_me: loading cache $cache_file" >&6;}
2370    case $cache_file in
2371      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372      *)                      . "./$cache_file";;
2373    esac
2374  fi
2375else
2376  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2377$as_echo "$as_me: creating cache $cache_file" >&6;}
2378  >$cache_file
2379fi
2380
2381# Check that the precious variables saved in the cache have kept the same
2382# value.
2383ac_cache_corrupted=false
2384for ac_var in $ac_precious_vars; do
2385  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2386  eval ac_new_set=\$ac_env_${ac_var}_set
2387  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2388  eval ac_new_val=\$ac_env_${ac_var}_value
2389  case $ac_old_set,$ac_new_set in
2390    set,)
2391      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2392$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2393      ac_cache_corrupted=: ;;
2394    ,set)
2395      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2396$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2397      ac_cache_corrupted=: ;;
2398    ,);;
2399    *)
2400      if test "x$ac_old_val" != "x$ac_new_val"; then
2401	# differences in whitespace do not lead to failure.
2402	ac_old_val_w=`echo x $ac_old_val`
2403	ac_new_val_w=`echo x $ac_new_val`
2404	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2405	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2406$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2407	  ac_cache_corrupted=:
2408	else
2409	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2410$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2411	  eval $ac_var=\$ac_old_val
2412	fi
2413	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2414$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2415	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2416$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2417      fi;;
2418  esac
2419  # Pass precious variables to config.status.
2420  if test "$ac_new_set" = set; then
2421    case $ac_new_val in
2422    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2423    *) ac_arg=$ac_var=$ac_new_val ;;
2424    esac
2425    case " $ac_configure_args " in
2426      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2427      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2428    esac
2429  fi
2430done
2431if $ac_cache_corrupted; then
2432  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2435$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2436  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2437fi
2438## -------------------- ##
2439## Main body of script. ##
2440## -------------------- ##
2441
2442ac_ext=c
2443ac_cpp='$CPP $CPPFLAGS'
2444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447
2448
2449
2450
2451
2452
2453ac_config_headers="$ac_config_headers config.h"
2454
2455
2456# Default to --enable-multilib
2457# Check whether --enable-multilib was given.
2458if test "${enable_multilib+set}" = set; then :
2459  enableval=$enable_multilib; case "$enableval" in
2460  yes) multilib=yes ;;
2461  no)  multilib=no ;;
2462  *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2463 esac
2464else
2465  multilib=yes
2466fi
2467
2468
2469# We may get other options which we leave undocumented:
2470# --with-target-subdir, --with-multisrctop, --with-multisubdir
2471# See config-ml.in if you want the gory details.
2472
2473if test "$srcdir" = "."; then
2474  if test "$with_target_subdir" != "."; then
2475    multi_basedir="$srcdir/$with_multisrctop../.."
2476  else
2477    multi_basedir="$srcdir/$with_multisrctop.."
2478  fi
2479else
2480  multi_basedir="$srcdir/.."
2481fi
2482
2483
2484# Even if the default multilib is not a cross compilation,
2485# it may be that some of the other multilibs are.
2486if test $cross_compiling = no && test $multilib = yes \
2487   && test "x${with_multisubdir}" != x ; then
2488   cross_compiling=maybe
2489fi
2490
2491ac_config_commands="$ac_config_commands default-1"
2492
2493ac_aux_dir=
2494for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2495  if test -f "$ac_dir/install-sh"; then
2496    ac_aux_dir=$ac_dir
2497    ac_install_sh="$ac_aux_dir/install-sh -c"
2498    break
2499  elif test -f "$ac_dir/install.sh"; then
2500    ac_aux_dir=$ac_dir
2501    ac_install_sh="$ac_aux_dir/install.sh -c"
2502    break
2503  elif test -f "$ac_dir/shtool"; then
2504    ac_aux_dir=$ac_dir
2505    ac_install_sh="$ac_aux_dir/shtool install -c"
2506    break
2507  fi
2508done
2509if test -z "$ac_aux_dir"; then
2510  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2511fi
2512
2513# These three variables are undocumented and unsupported,
2514# and are intended to be withdrawn in a future Autoconf release.
2515# They can cause serious problems if a builder's source tree is in a directory
2516# whose full name contains unusual characters.
2517ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2518ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2519ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2520
2521
2522# Make sure we can run config.sub.
2523$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2524  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2525
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2527$as_echo_n "checking build system type... " >&6; }
2528if ${ac_cv_build+:} false; then :
2529  $as_echo_n "(cached) " >&6
2530else
2531  ac_build_alias=$build_alias
2532test "x$ac_build_alias" = x &&
2533  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2534test "x$ac_build_alias" = x &&
2535  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2536ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2537  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2538
2539fi
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2541$as_echo "$ac_cv_build" >&6; }
2542case $ac_cv_build in
2543*-*-*) ;;
2544*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2545esac
2546build=$ac_cv_build
2547ac_save_IFS=$IFS; IFS='-'
2548set x $ac_cv_build
2549shift
2550build_cpu=$1
2551build_vendor=$2
2552shift; shift
2553# Remember, the first character of IFS is used to create $*,
2554# except with old shells:
2555build_os=$*
2556IFS=$ac_save_IFS
2557case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2558
2559
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2561$as_echo_n "checking host system type... " >&6; }
2562if ${ac_cv_host+:} false; then :
2563  $as_echo_n "(cached) " >&6
2564else
2565  if test "x$host_alias" = x; then
2566  ac_cv_host=$ac_cv_build
2567else
2568  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2569    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2570fi
2571
2572fi
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2574$as_echo "$ac_cv_host" >&6; }
2575case $ac_cv_host in
2576*-*-*) ;;
2577*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2578esac
2579host=$ac_cv_host
2580ac_save_IFS=$IFS; IFS='-'
2581set x $ac_cv_host
2582shift
2583host_cpu=$1
2584host_vendor=$2
2585shift; shift
2586# Remember, the first character of IFS is used to create $*,
2587# except with old shells:
2588host_os=$*
2589IFS=$ac_save_IFS
2590case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2591
2592
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2594$as_echo_n "checking target system type... " >&6; }
2595if ${ac_cv_target+:} false; then :
2596  $as_echo_n "(cached) " >&6
2597else
2598  if test "x$target_alias" = x; then
2599  ac_cv_target=$ac_cv_host
2600else
2601  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2602    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2603fi
2604
2605fi
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2607$as_echo "$ac_cv_target" >&6; }
2608case $ac_cv_target in
2609*-*-*) ;;
2610*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2611esac
2612target=$ac_cv_target
2613ac_save_IFS=$IFS; IFS='-'
2614set x $ac_cv_target
2615shift
2616target_cpu=$1
2617target_vendor=$2
2618shift; shift
2619# Remember, the first character of IFS is used to create $*,
2620# except with old shells:
2621target_os=$*
2622IFS=$ac_save_IFS
2623case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2624
2625
2626# The aliases save the names the user supplied, while $host etc.
2627# will get canonicalized.
2628test -n "$target_alias" &&
2629  test "$program_prefix$program_suffix$program_transform_name" = \
2630    NONENONEs,x,x, &&
2631  program_prefix=${target_alias}-
2632
2633# Expand $ac_aux_dir to an absolute path.
2634am_aux_dir=`cd "$ac_aux_dir" && pwd`
2635
2636ac_ext=c
2637ac_cpp='$CPP $CPPFLAGS'
2638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641if test -n "$ac_tool_prefix"; then
2642  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2643set dummy ${ac_tool_prefix}gcc; ac_word=$2
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645$as_echo_n "checking for $ac_word... " >&6; }
2646if ${ac_cv_prog_CC+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  if test -n "$CC"; then
2650  ac_cv_prog_CC="$CC" # Let the user override the test.
2651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655  IFS=$as_save_IFS
2656  test -z "$as_dir" && as_dir=.
2657    for ac_exec_ext in '' $ac_executable_extensions; do
2658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661    break 2
2662  fi
2663done
2664  done
2665IFS=$as_save_IFS
2666
2667fi
2668fi
2669CC=$ac_cv_prog_CC
2670if test -n "$CC"; then
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2672$as_echo "$CC" >&6; }
2673else
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
2676fi
2677
2678
2679fi
2680if test -z "$ac_cv_prog_CC"; then
2681  ac_ct_CC=$CC
2682  # Extract the first word of "gcc", so it can be a program name with args.
2683set dummy gcc; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
2686if ${ac_cv_prog_ac_ct_CC+:} false; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  if test -n "$ac_ct_CC"; then
2690  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697    for ac_exec_ext in '' $ac_executable_extensions; do
2698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699    ac_cv_prog_ac_ct_CC="gcc"
2700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701    break 2
2702  fi
2703done
2704  done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710if test -n "$ac_ct_CC"; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2712$as_echo "$ac_ct_CC" >&6; }
2713else
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718  if test "x$ac_ct_CC" = x; then
2719    CC=""
2720  else
2721    case $cross_compiling:$ac_tool_warned in
2722yes:)
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725ac_tool_warned=yes ;;
2726esac
2727    CC=$ac_ct_CC
2728  fi
2729else
2730  CC="$ac_cv_prog_CC"
2731fi
2732
2733if test -z "$CC"; then
2734          if test -n "$ac_tool_prefix"; then
2735    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736set dummy ${ac_tool_prefix}cc; ac_word=$2
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
2739if ${ac_cv_prog_CC+:} false; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  if test -n "$CC"; then
2743  ac_cv_prog_CC="$CC" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748  IFS=$as_save_IFS
2749  test -z "$as_dir" && as_dir=.
2750    for ac_exec_ext in '' $ac_executable_extensions; do
2751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752    ac_cv_prog_CC="${ac_tool_prefix}cc"
2753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754    break 2
2755  fi
2756done
2757  done
2758IFS=$as_save_IFS
2759
2760fi
2761fi
2762CC=$ac_cv_prog_CC
2763if test -n "$CC"; then
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2765$as_echo "$CC" >&6; }
2766else
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
2769fi
2770
2771
2772  fi
2773fi
2774if test -z "$CC"; then
2775  # Extract the first word of "cc", so it can be a program name with args.
2776set dummy cc; ac_word=$2
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778$as_echo_n "checking for $ac_word... " >&6; }
2779if ${ac_cv_prog_CC+:} false; then :
2780  $as_echo_n "(cached) " >&6
2781else
2782  if test -n "$CC"; then
2783  ac_cv_prog_CC="$CC" # Let the user override the test.
2784else
2785  ac_prog_rejected=no
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789  IFS=$as_save_IFS
2790  test -z "$as_dir" && as_dir=.
2791    for ac_exec_ext in '' $ac_executable_extensions; do
2792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2794       ac_prog_rejected=yes
2795       continue
2796     fi
2797    ac_cv_prog_CC="cc"
2798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799    break 2
2800  fi
2801done
2802  done
2803IFS=$as_save_IFS
2804
2805if test $ac_prog_rejected = yes; then
2806  # We found a bogon in the path, so make sure we never use it.
2807  set dummy $ac_cv_prog_CC
2808  shift
2809  if test $# != 0; then
2810    # We chose a different compiler from the bogus one.
2811    # However, it has the same basename, so the bogon will be chosen
2812    # first if we set CC to just the basename; use the full file name.
2813    shift
2814    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815  fi
2816fi
2817fi
2818fi
2819CC=$ac_cv_prog_CC
2820if test -n "$CC"; then
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822$as_echo "$CC" >&6; }
2823else
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826fi
2827
2828
2829fi
2830if test -z "$CC"; then
2831  if test -n "$ac_tool_prefix"; then
2832  for ac_prog in cl.exe
2833  do
2834    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837$as_echo_n "checking for $ac_word... " >&6; }
2838if ${ac_cv_prog_CC+:} false; then :
2839  $as_echo_n "(cached) " >&6
2840else
2841  if test -n "$CC"; then
2842  ac_cv_prog_CC="$CC" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847  IFS=$as_save_IFS
2848  test -z "$as_dir" && as_dir=.
2849    for ac_exec_ext in '' $ac_executable_extensions; do
2850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853    break 2
2854  fi
2855done
2856  done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861CC=$ac_cv_prog_CC
2862if test -n "$CC"; then
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864$as_echo "$CC" >&6; }
2865else
2866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867$as_echo "no" >&6; }
2868fi
2869
2870
2871    test -n "$CC" && break
2872  done
2873fi
2874if test -z "$CC"; then
2875  ac_ct_CC=$CC
2876  for ac_prog in cl.exe
2877do
2878  # Extract the first word of "$ac_prog", so it can be a program name with args.
2879set dummy $ac_prog; ac_word=$2
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881$as_echo_n "checking for $ac_word... " >&6; }
2882if ${ac_cv_prog_ac_ct_CC+:} false; then :
2883  $as_echo_n "(cached) " >&6
2884else
2885  if test -n "$ac_ct_CC"; then
2886  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891  IFS=$as_save_IFS
2892  test -z "$as_dir" && as_dir=.
2893    for ac_exec_ext in '' $ac_executable_extensions; do
2894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895    ac_cv_prog_ac_ct_CC="$ac_prog"
2896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897    break 2
2898  fi
2899done
2900  done
2901IFS=$as_save_IFS
2902
2903fi
2904fi
2905ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906if test -n "$ac_ct_CC"; then
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2908$as_echo "$ac_ct_CC" >&6; }
2909else
2910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911$as_echo "no" >&6; }
2912fi
2913
2914
2915  test -n "$ac_ct_CC" && break
2916done
2917
2918  if test "x$ac_ct_CC" = x; then
2919    CC=""
2920  else
2921    case $cross_compiling:$ac_tool_warned in
2922yes:)
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925ac_tool_warned=yes ;;
2926esac
2927    CC=$ac_ct_CC
2928  fi
2929fi
2930
2931fi
2932
2933
2934test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936as_fn_error $? "no acceptable C compiler found in \$PATH
2937See \`config.log' for more details" "$LINENO" 5; }
2938
2939# Provide some information about the compiler.
2940$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2941set X $ac_compile
2942ac_compiler=$2
2943for ac_option in --version -v -V -qversion; do
2944  { { ac_try="$ac_compiler $ac_option >&5"
2945case "(($ac_try" in
2946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947  *) ac_try_echo=$ac_try;;
2948esac
2949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2950$as_echo "$ac_try_echo"; } >&5
2951  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2952  ac_status=$?
2953  if test -s conftest.err; then
2954    sed '10a\
2955... rest of stderr output deleted ...
2956         10q' conftest.err >conftest.er1
2957    cat conftest.er1 >&5
2958  fi
2959  rm -f conftest.er1 conftest.err
2960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961  test $ac_status = 0; }
2962done
2963
2964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h.  */
2966
2967int
2968main ()
2969{
2970
2971  ;
2972  return 0;
2973}
2974_ACEOF
2975ac_clean_files_save=$ac_clean_files
2976ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2977# Try to create an executable without -o first, disregard a.out.
2978# It will help us diagnose broken compilers, and finding out an intuition
2979# of exeext.
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2981$as_echo_n "checking whether the C compiler works... " >&6; }
2982ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983
2984# The possible output files:
2985ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2986
2987ac_rmfiles=
2988for ac_file in $ac_files
2989do
2990  case $ac_file in
2991    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2992    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2993  esac
2994done
2995rm -f $ac_rmfiles
2996
2997if { { ac_try="$ac_link_default"
2998case "(($ac_try" in
2999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000  *) ac_try_echo=$ac_try;;
3001esac
3002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003$as_echo "$ac_try_echo"; } >&5
3004  (eval "$ac_link_default") 2>&5
3005  ac_status=$?
3006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007  test $ac_status = 0; }; then :
3008  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3009# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3010# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3011# so that the user can short-circuit this test for compilers unknown to
3012# Autoconf.
3013for ac_file in $ac_files ''
3014do
3015  test -f "$ac_file" || continue
3016  case $ac_file in
3017    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3018	;;
3019    [ab].out )
3020	# We found the default executable, but exeext='' is most
3021	# certainly right.
3022	break;;
3023    *.* )
3024	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3025	then :; else
3026	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027	fi
3028	# We set ac_cv_exeext here because the later test for it is not
3029	# safe: cross compilers may not add the suffix if given an `-o'
3030	# argument, so we may need to know it at that point already.
3031	# Even if this section looks crufty: it has the advantage of
3032	# actually working.
3033	break;;
3034    * )
3035	break;;
3036  esac
3037done
3038test "$ac_cv_exeext" = no && ac_cv_exeext=
3039
3040else
3041  ac_file=''
3042fi
3043if test -z "$ac_file"; then :
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046$as_echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051as_fn_error 77 "C compiler cannot create executables
3052See \`config.log' for more details" "$LINENO" 5; }
3053else
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3055$as_echo "yes" >&6; }
3056fi
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3058$as_echo_n "checking for C compiler default output file name... " >&6; }
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3060$as_echo "$ac_file" >&6; }
3061ac_exeext=$ac_cv_exeext
3062
3063rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3064ac_clean_files=$ac_clean_files_save
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3066$as_echo_n "checking for suffix of executables... " >&6; }
3067if { { ac_try="$ac_link"
3068case "(($ac_try" in
3069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070  *) ac_try_echo=$ac_try;;
3071esac
3072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073$as_echo "$ac_try_echo"; } >&5
3074  (eval "$ac_link") 2>&5
3075  ac_status=$?
3076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077  test $ac_status = 0; }; then :
3078  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3079# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3080# work properly (i.e., refer to `conftest.exe'), while it won't with
3081# `rm'.
3082for ac_file in conftest.exe conftest conftest.*; do
3083  test -f "$ac_file" || continue
3084  case $ac_file in
3085    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3086    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3087	  break;;
3088    * ) break;;
3089  esac
3090done
3091else
3092  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3095See \`config.log' for more details" "$LINENO" 5; }
3096fi
3097rm -f conftest conftest$ac_cv_exeext
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3099$as_echo "$ac_cv_exeext" >&6; }
3100
3101rm -f conftest.$ac_ext
3102EXEEXT=$ac_cv_exeext
3103ac_exeext=$EXEEXT
3104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105/* end confdefs.h.  */
3106#include <stdio.h>
3107int
3108main ()
3109{
3110FILE *f = fopen ("conftest.out", "w");
3111 return ferror (f) || fclose (f) != 0;
3112
3113  ;
3114  return 0;
3115}
3116_ACEOF
3117ac_clean_files="$ac_clean_files conftest.out"
3118# Check that the compiler produces executables we can run.  If not, either
3119# the compiler is broken, or we cross compile.
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3121$as_echo_n "checking whether we are cross compiling... " >&6; }
3122if test "$cross_compiling" != yes; then
3123  { { ac_try="$ac_link"
3124case "(($ac_try" in
3125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126  *) ac_try_echo=$ac_try;;
3127esac
3128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129$as_echo "$ac_try_echo"; } >&5
3130  (eval "$ac_link") 2>&5
3131  ac_status=$?
3132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133  test $ac_status = 0; }
3134  if { ac_try='./conftest$ac_cv_exeext'
3135  { { case "(($ac_try" in
3136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137  *) ac_try_echo=$ac_try;;
3138esac
3139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140$as_echo "$ac_try_echo"; } >&5
3141  (eval "$ac_try") 2>&5
3142  ac_status=$?
3143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144  test $ac_status = 0; }; }; then
3145    cross_compiling=no
3146  else
3147    if test "$cross_compiling" = maybe; then
3148	cross_compiling=yes
3149    else
3150	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152as_fn_error $? "cannot run C compiled programs.
3153If you meant to cross compile, use \`--host'.
3154See \`config.log' for more details" "$LINENO" 5; }
3155    fi
3156  fi
3157fi
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3159$as_echo "$cross_compiling" >&6; }
3160
3161rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3162ac_clean_files=$ac_clean_files_save
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3164$as_echo_n "checking for suffix of object files... " >&6; }
3165if ${ac_cv_objext+:} false; then :
3166  $as_echo_n "(cached) " >&6
3167else
3168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169/* end confdefs.h.  */
3170
3171int
3172main ()
3173{
3174
3175  ;
3176  return 0;
3177}
3178_ACEOF
3179rm -f conftest.o conftest.obj
3180if { { ac_try="$ac_compile"
3181case "(($ac_try" in
3182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183  *) ac_try_echo=$ac_try;;
3184esac
3185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186$as_echo "$ac_try_echo"; } >&5
3187  (eval "$ac_compile") 2>&5
3188  ac_status=$?
3189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190  test $ac_status = 0; }; then :
3191  for ac_file in conftest.o conftest.obj conftest.*; do
3192  test -f "$ac_file" || continue;
3193  case $ac_file in
3194    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3195    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3196       break;;
3197  esac
3198done
3199else
3200  $as_echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205as_fn_error $? "cannot compute suffix of object files: cannot compile
3206See \`config.log' for more details" "$LINENO" 5; }
3207fi
3208rm -f conftest.$ac_cv_objext conftest.$ac_ext
3209fi
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3211$as_echo "$ac_cv_objext" >&6; }
3212OBJEXT=$ac_cv_objext
3213ac_objext=$OBJEXT
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3215$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3216if ${ac_cv_c_compiler_gnu+:} false; then :
3217  $as_echo_n "(cached) " >&6
3218else
3219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220/* end confdefs.h.  */
3221
3222int
3223main ()
3224{
3225#ifndef __GNUC__
3226       choke me
3227#endif
3228
3229  ;
3230  return 0;
3231}
3232_ACEOF
3233if ac_fn_c_try_compile "$LINENO"; then :
3234  ac_compiler_gnu=yes
3235else
3236  ac_compiler_gnu=no
3237fi
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239ac_cv_c_compiler_gnu=$ac_compiler_gnu
3240
3241fi
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3243$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3244if test $ac_compiler_gnu = yes; then
3245  GCC=yes
3246else
3247  GCC=
3248fi
3249ac_test_CFLAGS=${CFLAGS+set}
3250ac_save_CFLAGS=$CFLAGS
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3252$as_echo_n "checking whether $CC accepts -g... " >&6; }
3253if ${ac_cv_prog_cc_g+:} false; then :
3254  $as_echo_n "(cached) " >&6
3255else
3256  ac_save_c_werror_flag=$ac_c_werror_flag
3257   ac_c_werror_flag=yes
3258   ac_cv_prog_cc_g=no
3259   CFLAGS="-g"
3260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h.  */
3262
3263int
3264main ()
3265{
3266
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271if ac_fn_c_try_compile "$LINENO"; then :
3272  ac_cv_prog_cc_g=yes
3273else
3274  CFLAGS=""
3275      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276/* end confdefs.h.  */
3277
3278int
3279main ()
3280{
3281
3282  ;
3283  return 0;
3284}
3285_ACEOF
3286if ac_fn_c_try_compile "$LINENO"; then :
3287
3288else
3289  ac_c_werror_flag=$ac_save_c_werror_flag
3290	 CFLAGS="-g"
3291	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292/* end confdefs.h.  */
3293
3294int
3295main ()
3296{
3297
3298  ;
3299  return 0;
3300}
3301_ACEOF
3302if ac_fn_c_try_compile "$LINENO"; then :
3303  ac_cv_prog_cc_g=yes
3304fi
3305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306fi
3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308fi
3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310   ac_c_werror_flag=$ac_save_c_werror_flag
3311fi
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3313$as_echo "$ac_cv_prog_cc_g" >&6; }
3314if test "$ac_test_CFLAGS" = set; then
3315  CFLAGS=$ac_save_CFLAGS
3316elif test $ac_cv_prog_cc_g = yes; then
3317  if test "$GCC" = yes; then
3318    CFLAGS="-g -O2"
3319  else
3320    CFLAGS="-g"
3321  fi
3322else
3323  if test "$GCC" = yes; then
3324    CFLAGS="-O2"
3325  else
3326    CFLAGS=
3327  fi
3328fi
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3330$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3331if ${ac_cv_prog_cc_c89+:} false; then :
3332  $as_echo_n "(cached) " >&6
3333else
3334  ac_cv_prog_cc_c89=no
3335ac_save_CC=$CC
3336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h.  */
3338#include <stdarg.h>
3339#include <stdio.h>
3340struct stat;
3341/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3342struct buf { int x; };
3343FILE * (*rcsopen) (struct buf *, struct stat *, int);
3344static char *e (p, i)
3345     char **p;
3346     int i;
3347{
3348  return p[i];
3349}
3350static char *f (char * (*g) (char **, int), char **p, ...)
3351{
3352  char *s;
3353  va_list v;
3354  va_start (v,p);
3355  s = g (p, va_arg (v,int));
3356  va_end (v);
3357  return s;
3358}
3359
3360/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3361   function prototypes and stuff, but not '\xHH' hex character constants.
3362   These don't provoke an error unfortunately, instead are silently treated
3363   as 'x'.  The following induces an error, until -std is added to get
3364   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3365   array size at least.  It's necessary to write '\x00'==0 to get something
3366   that's true only with -std.  */
3367int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3368
3369/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3370   inside strings and character constants.  */
3371#define FOO(x) 'x'
3372int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3373
3374int test (int i, double x);
3375struct s1 {int (*f) (int a);};
3376struct s2 {int (*f) (double a);};
3377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3378int argc;
3379char **argv;
3380int
3381main ()
3382{
3383return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3384  ;
3385  return 0;
3386}
3387_ACEOF
3388for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3389	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3390do
3391  CC="$ac_save_CC $ac_arg"
3392  if ac_fn_c_try_compile "$LINENO"; then :
3393  ac_cv_prog_cc_c89=$ac_arg
3394fi
3395rm -f core conftest.err conftest.$ac_objext
3396  test "x$ac_cv_prog_cc_c89" != "xno" && break
3397done
3398rm -f conftest.$ac_ext
3399CC=$ac_save_CC
3400
3401fi
3402# AC_CACHE_VAL
3403case "x$ac_cv_prog_cc_c89" in
3404  x)
3405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3406$as_echo "none needed" >&6; } ;;
3407  xno)
3408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3409$as_echo "unsupported" >&6; } ;;
3410  *)
3411    CC="$CC $ac_cv_prog_cc_c89"
3412    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3413$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3414esac
3415if test "x$ac_cv_prog_cc_c89" != xno; then :
3416
3417fi
3418
3419ac_ext=c
3420ac_cpp='$CPP $CPPFLAGS'
3421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424
3425ac_ext=c
3426ac_cpp='$CPP $CPPFLAGS'
3427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3431$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3432if ${am_cv_prog_cc_c_o+:} false; then :
3433  $as_echo_n "(cached) " >&6
3434else
3435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436/* end confdefs.h.  */
3437
3438int
3439main ()
3440{
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446  # Make sure it works both with $CC and with simple cc.
3447  # Following AC_PROG_CC_C_O, we do the test twice because some
3448  # compilers refuse to overwrite an existing .o file with -o,
3449  # though they will create one.
3450  am_cv_prog_cc_c_o=yes
3451  for am_i in 1 2; do
3452    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3453   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } \
3457         && test -f conftest2.$ac_objext; then
3458      : OK
3459    else
3460      am_cv_prog_cc_c_o=no
3461      break
3462    fi
3463  done
3464  rm -f core conftest*
3465  unset am_i
3466fi
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3468$as_echo "$am_cv_prog_cc_c_o" >&6; }
3469if test "$am_cv_prog_cc_c_o" != yes; then
3470   # Losing compiler, so override with the script.
3471   # FIXME: It is wrong to rewrite CC.
3472   # But if we don't then we get into trouble of one sort or another.
3473   # A longer-term fix would be to have automake use am__CC in this case,
3474   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3475   CC="$am_aux_dir/compile $CC"
3476fi
3477ac_ext=c
3478ac_cpp='$CPP $CPPFLAGS'
3479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
3483
3484
3485ac_ext=c
3486ac_cpp='$CPP $CPPFLAGS'
3487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3491$as_echo_n "checking how to run the C preprocessor... " >&6; }
3492# On Suns, sometimes $CPP names a directory.
3493if test -n "$CPP" && test -d "$CPP"; then
3494  CPP=
3495fi
3496if test -z "$CPP"; then
3497  if ${ac_cv_prog_CPP+:} false; then :
3498  $as_echo_n "(cached) " >&6
3499else
3500      # Double quotes because CPP needs to be expanded
3501    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3502    do
3503      ac_preproc_ok=false
3504for ac_c_preproc_warn_flag in '' yes
3505do
3506  # Use a header file that comes with gcc, so configuring glibc
3507  # with a fresh cross-compiler works.
3508  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3509  # <limits.h> exists even on freestanding compilers.
3510  # On the NeXT, cc -E runs the code through the compiler's parser,
3511  # not just through cpp. "Syntax error" is here to catch this case.
3512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514#ifdef __STDC__
3515# include <limits.h>
3516#else
3517# include <assert.h>
3518#endif
3519		     Syntax error
3520_ACEOF
3521if ac_fn_c_try_cpp "$LINENO"; then :
3522
3523else
3524  # Broken: fails on valid input.
3525continue
3526fi
3527rm -f conftest.err conftest.i conftest.$ac_ext
3528
3529  # OK, works on sane cases.  Now check whether nonexistent headers
3530  # can be detected and how.
3531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h.  */
3533#include <ac_nonexistent.h>
3534_ACEOF
3535if ac_fn_c_try_cpp "$LINENO"; then :
3536  # Broken: success on invalid input.
3537continue
3538else
3539  # Passes both tests.
3540ac_preproc_ok=:
3541break
3542fi
3543rm -f conftest.err conftest.i conftest.$ac_ext
3544
3545done
3546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547rm -f conftest.i conftest.err conftest.$ac_ext
3548if $ac_preproc_ok; then :
3549  break
3550fi
3551
3552    done
3553    ac_cv_prog_CPP=$CPP
3554
3555fi
3556  CPP=$ac_cv_prog_CPP
3557else
3558  ac_cv_prog_CPP=$CPP
3559fi
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3561$as_echo "$CPP" >&6; }
3562ac_preproc_ok=false
3563for ac_c_preproc_warn_flag in '' yes
3564do
3565  # Use a header file that comes with gcc, so configuring glibc
3566  # with a fresh cross-compiler works.
3567  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568  # <limits.h> exists even on freestanding compilers.
3569  # On the NeXT, cc -E runs the code through the compiler's parser,
3570  # not just through cpp. "Syntax error" is here to catch this case.
3571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h.  */
3573#ifdef __STDC__
3574# include <limits.h>
3575#else
3576# include <assert.h>
3577#endif
3578		     Syntax error
3579_ACEOF
3580if ac_fn_c_try_cpp "$LINENO"; then :
3581
3582else
3583  # Broken: fails on valid input.
3584continue
3585fi
3586rm -f conftest.err conftest.i conftest.$ac_ext
3587
3588  # OK, works on sane cases.  Now check whether nonexistent headers
3589  # can be detected and how.
3590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592#include <ac_nonexistent.h>
3593_ACEOF
3594if ac_fn_c_try_cpp "$LINENO"; then :
3595  # Broken: success on invalid input.
3596continue
3597else
3598  # Passes both tests.
3599ac_preproc_ok=:
3600break
3601fi
3602rm -f conftest.err conftest.i conftest.$ac_ext
3603
3604done
3605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3606rm -f conftest.i conftest.err conftest.$ac_ext
3607if $ac_preproc_ok; then :
3608
3609else
3610  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3613See \`config.log' for more details" "$LINENO" 5; }
3614fi
3615
3616ac_ext=c
3617ac_cpp='$CPP $CPPFLAGS'
3618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
3622
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3624$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3625if ${ac_cv_path_GREP+:} false; then :
3626  $as_echo_n "(cached) " >&6
3627else
3628  if test -z "$GREP"; then
3629  ac_path_GREP_found=false
3630  # Loop through the user's path and test for each of PROGNAME-LIST
3631  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633do
3634  IFS=$as_save_IFS
3635  test -z "$as_dir" && as_dir=.
3636    for ac_prog in grep ggrep; do
3637    for ac_exec_ext in '' $ac_executable_extensions; do
3638      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3639      as_fn_executable_p "$ac_path_GREP" || continue
3640# Check for GNU ac_path_GREP and select it if it is found.
3641  # Check for GNU $ac_path_GREP
3642case `"$ac_path_GREP" --version 2>&1` in
3643*GNU*)
3644  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3645*)
3646  ac_count=0
3647  $as_echo_n 0123456789 >"conftest.in"
3648  while :
3649  do
3650    cat "conftest.in" "conftest.in" >"conftest.tmp"
3651    mv "conftest.tmp" "conftest.in"
3652    cp "conftest.in" "conftest.nl"
3653    $as_echo 'GREP' >> "conftest.nl"
3654    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3655    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3656    as_fn_arith $ac_count + 1 && ac_count=$as_val
3657    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3658      # Best one so far, save it but keep looking for a better one
3659      ac_cv_path_GREP="$ac_path_GREP"
3660      ac_path_GREP_max=$ac_count
3661    fi
3662    # 10*(2^10) chars as input seems more than enough
3663    test $ac_count -gt 10 && break
3664  done
3665  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3666esac
3667
3668      $ac_path_GREP_found && break 3
3669    done
3670  done
3671  done
3672IFS=$as_save_IFS
3673  if test -z "$ac_cv_path_GREP"; then
3674    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3675  fi
3676else
3677  ac_cv_path_GREP=$GREP
3678fi
3679
3680fi
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3682$as_echo "$ac_cv_path_GREP" >&6; }
3683 GREP="$ac_cv_path_GREP"
3684
3685
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3687$as_echo_n "checking for egrep... " >&6; }
3688if ${ac_cv_path_EGREP+:} false; then :
3689  $as_echo_n "(cached) " >&6
3690else
3691  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3692   then ac_cv_path_EGREP="$GREP -E"
3693   else
3694     if test -z "$EGREP"; then
3695  ac_path_EGREP_found=false
3696  # Loop through the user's path and test for each of PROGNAME-LIST
3697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3699do
3700  IFS=$as_save_IFS
3701  test -z "$as_dir" && as_dir=.
3702    for ac_prog in egrep; do
3703    for ac_exec_ext in '' $ac_executable_extensions; do
3704      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3705      as_fn_executable_p "$ac_path_EGREP" || continue
3706# Check for GNU ac_path_EGREP and select it if it is found.
3707  # Check for GNU $ac_path_EGREP
3708case `"$ac_path_EGREP" --version 2>&1` in
3709*GNU*)
3710  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3711*)
3712  ac_count=0
3713  $as_echo_n 0123456789 >"conftest.in"
3714  while :
3715  do
3716    cat "conftest.in" "conftest.in" >"conftest.tmp"
3717    mv "conftest.tmp" "conftest.in"
3718    cp "conftest.in" "conftest.nl"
3719    $as_echo 'EGREP' >> "conftest.nl"
3720    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3721    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3722    as_fn_arith $ac_count + 1 && ac_count=$as_val
3723    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3724      # Best one so far, save it but keep looking for a better one
3725      ac_cv_path_EGREP="$ac_path_EGREP"
3726      ac_path_EGREP_max=$ac_count
3727    fi
3728    # 10*(2^10) chars as input seems more than enough
3729    test $ac_count -gt 10 && break
3730  done
3731  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3732esac
3733
3734      $ac_path_EGREP_found && break 3
3735    done
3736  done
3737  done
3738IFS=$as_save_IFS
3739  if test -z "$ac_cv_path_EGREP"; then
3740    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3741  fi
3742else
3743  ac_cv_path_EGREP=$EGREP
3744fi
3745
3746   fi
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3749$as_echo "$ac_cv_path_EGREP" >&6; }
3750 EGREP="$ac_cv_path_EGREP"
3751
3752
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3754$as_echo_n "checking for ANSI C header files... " >&6; }
3755if ${ac_cv_header_stdc+:} false; then :
3756  $as_echo_n "(cached) " >&6
3757else
3758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h.  */
3760#include <stdlib.h>
3761#include <stdarg.h>
3762#include <string.h>
3763#include <float.h>
3764
3765int
3766main ()
3767{
3768
3769  ;
3770  return 0;
3771}
3772_ACEOF
3773if ac_fn_c_try_compile "$LINENO"; then :
3774  ac_cv_header_stdc=yes
3775else
3776  ac_cv_header_stdc=no
3777fi
3778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779
3780if test $ac_cv_header_stdc = yes; then
3781  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783/* end confdefs.h.  */
3784#include <string.h>
3785
3786_ACEOF
3787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788  $EGREP "memchr" >/dev/null 2>&1; then :
3789
3790else
3791  ac_cv_header_stdc=no
3792fi
3793rm -f conftest*
3794
3795fi
3796
3797if test $ac_cv_header_stdc = yes; then
3798  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h.  */
3801#include <stdlib.h>
3802
3803_ACEOF
3804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805  $EGREP "free" >/dev/null 2>&1; then :
3806
3807else
3808  ac_cv_header_stdc=no
3809fi
3810rm -f conftest*
3811
3812fi
3813
3814if test $ac_cv_header_stdc = yes; then
3815  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816  if test "$cross_compiling" = yes; then :
3817  :
3818else
3819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h.  */
3821#include <ctype.h>
3822#include <stdlib.h>
3823#if ((' ' & 0x0FF) == 0x020)
3824# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3825# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3826#else
3827# define ISLOWER(c) \
3828		   (('a' <= (c) && (c) <= 'i') \
3829		     || ('j' <= (c) && (c) <= 'r') \
3830		     || ('s' <= (c) && (c) <= 'z'))
3831# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3832#endif
3833
3834#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3835int
3836main ()
3837{
3838  int i;
3839  for (i = 0; i < 256; i++)
3840    if (XOR (islower (i), ISLOWER (i))
3841	|| toupper (i) != TOUPPER (i))
3842      return 2;
3843  return 0;
3844}
3845_ACEOF
3846if ac_fn_c_try_run "$LINENO"; then :
3847
3848else
3849  ac_cv_header_stdc=no
3850fi
3851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3852  conftest.$ac_objext conftest.beam conftest.$ac_ext
3853fi
3854
3855fi
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3858$as_echo "$ac_cv_header_stdc" >&6; }
3859if test $ac_cv_header_stdc = yes; then
3860
3861$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3862
3863fi
3864
3865# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3866for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3867		  inttypes.h stdint.h unistd.h
3868do :
3869  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3871"
3872if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3873  cat >>confdefs.h <<_ACEOF
3874#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3875_ACEOF
3876
3877fi
3878
3879done
3880
3881
3882
3883  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3884if test "x$ac_cv_header_minix_config_h" = xyes; then :
3885  MINIX=yes
3886else
3887  MINIX=
3888fi
3889
3890
3891  if test "$MINIX" = yes; then
3892
3893$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3894
3895
3896$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3897
3898
3899$as_echo "#define _MINIX 1" >>confdefs.h
3900
3901  fi
3902
3903
3904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3905$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3906if ${ac_cv_safe_to_define___extensions__+:} false; then :
3907  $as_echo_n "(cached) " >&6
3908else
3909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910/* end confdefs.h.  */
3911
3912#         define __EXTENSIONS__ 1
3913          $ac_includes_default
3914int
3915main ()
3916{
3917
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923  ac_cv_safe_to_define___extensions__=yes
3924else
3925  ac_cv_safe_to_define___extensions__=no
3926fi
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928fi
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3930$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3931  test $ac_cv_safe_to_define___extensions__ = yes &&
3932    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3933
3934  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3935
3936  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3937
3938  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3939
3940  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3941
3942
3943
3944target_alias=${target_alias-$target}
3945
3946
3947# 1.11.1: Require that version of automake.
3948# foreign: Don't require README, INSTALL, NEWS, etc.
3949# no-define: Don't define PACKAGE and VERSION.
3950# no-dependencies: Don't generate automatic dependencies.
3951#    (because it breaks when using bootstrap-lean, since some of the
3952#    headers are gone at "make install" time).
3953# subdir-objects: Build objects in sub-directories.
3954# -Wall: Issue all automake warnings.
3955# -Wno-portability: Don't warn about constructs supported by GNU make.
3956#    (because GCC requires GNU make anyhow).
3957#  -Wno-override: Overrides used in testsuite.
3958am__api_version='1.15'
3959
3960# Find a good install program.  We prefer a C program (faster),
3961# so one script is as good as another.  But avoid the broken or
3962# incompatible versions:
3963# SysV /etc/install, /usr/sbin/install
3964# SunOS /usr/etc/install
3965# IRIX /sbin/install
3966# AIX /bin/install
3967# AmigaOS /C/install, which installs bootblocks on floppy discs
3968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3969# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3971# OS/2's system install, which has a completely different semantic
3972# ./install, which can be erroneously created by make from ./install.sh.
3973# Reject install programs that cannot install multiple files.
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3975$as_echo_n "checking for a BSD-compatible install... " >&6; }
3976if test -z "$INSTALL"; then
3977if ${ac_cv_path_install+:} false; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983  IFS=$as_save_IFS
3984  test -z "$as_dir" && as_dir=.
3985    # Account for people who put trailing slashes in PATH elements.
3986case $as_dir/ in #((
3987  ./ | .// | /[cC]/* | \
3988  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3989  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3990  /usr/ucb/* ) ;;
3991  *)
3992    # OSF1 and SCO ODT 3.0 have their own names for install.
3993    # Don't use installbsd from OSF since it installs stuff as root
3994    # by default.
3995    for ac_prog in ginstall scoinst install; do
3996      for ac_exec_ext in '' $ac_executable_extensions; do
3997	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3998	  if test $ac_prog = install &&
3999	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4000	    # AIX install.  It has an incompatible calling convention.
4001	    :
4002	  elif test $ac_prog = install &&
4003	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4004	    # program-specific install script used by HP pwplus--don't use.
4005	    :
4006	  else
4007	    rm -rf conftest.one conftest.two conftest.dir
4008	    echo one > conftest.one
4009	    echo two > conftest.two
4010	    mkdir conftest.dir
4011	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4012	      test -s conftest.one && test -s conftest.two &&
4013	      test -s conftest.dir/conftest.one &&
4014	      test -s conftest.dir/conftest.two
4015	    then
4016	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4017	      break 3
4018	    fi
4019	  fi
4020	fi
4021      done
4022    done
4023    ;;
4024esac
4025
4026  done
4027IFS=$as_save_IFS
4028
4029rm -rf conftest.one conftest.two conftest.dir
4030
4031fi
4032  if test "${ac_cv_path_install+set}" = set; then
4033    INSTALL=$ac_cv_path_install
4034  else
4035    # As a last resort, use the slow shell script.  Don't cache a
4036    # value for INSTALL within a source directory, because that will
4037    # break other packages using the cache if that directory is
4038    # removed, or if the value is a relative name.
4039    INSTALL=$ac_install_sh
4040  fi
4041fi
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4043$as_echo "$INSTALL" >&6; }
4044
4045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4046# It thinks the first close brace ends the variable substitution.
4047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4048
4049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4050
4051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4052
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4054$as_echo_n "checking whether build environment is sane... " >&6; }
4055# Reject unsafe characters in $srcdir or the absolute working directory
4056# name.  Accept space and tab only in the latter.
4057am_lf='
4058'
4059case `pwd` in
4060  *[\\\"\#\$\&\'\`$am_lf]*)
4061    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4062esac
4063case $srcdir in
4064  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4065    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4066esac
4067
4068# Do 'set' in a subshell so we don't clobber the current shell's
4069# arguments.  Must try -L first in case configure is actually a
4070# symlink; some systems play weird games with the mod time of symlinks
4071# (eg FreeBSD returns the mod time of the symlink's containing
4072# directory).
4073if (
4074   am_has_slept=no
4075   for am_try in 1 2; do
4076     echo "timestamp, slept: $am_has_slept" > conftest.file
4077     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4078     if test "$*" = "X"; then
4079	# -L didn't work.
4080	set X `ls -t "$srcdir/configure" conftest.file`
4081     fi
4082     if test "$*" != "X $srcdir/configure conftest.file" \
4083	&& test "$*" != "X conftest.file $srcdir/configure"; then
4084
4085	# If neither matched, then we have a broken ls.  This can happen
4086	# if, for instance, CONFIG_SHELL is bash and it inherits a
4087	# broken ls alias from the environment.  This has actually
4088	# happened.  Such a system could not be considered "sane".
4089	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4090  alias in your environment" "$LINENO" 5
4091     fi
4092     if test "$2" = conftest.file || test $am_try -eq 2; then
4093       break
4094     fi
4095     # Just in case.
4096     sleep 1
4097     am_has_slept=yes
4098   done
4099   test "$2" = conftest.file
4100   )
4101then
4102   # Ok.
4103   :
4104else
4105   as_fn_error $? "newly created file is older than distributed files!
4106Check your system clock" "$LINENO" 5
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4109$as_echo "yes" >&6; }
4110# If we didn't sleep, we still need to ensure time stamps of config.status and
4111# generated files are strictly newer.
4112am_sleep_pid=
4113if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4114  ( sleep 1 ) &
4115  am_sleep_pid=$!
4116fi
4117
4118rm -f conftest.file
4119
4120test "$program_prefix" != NONE &&
4121  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4122# Use a double $ so make ignores it.
4123test "$program_suffix" != NONE &&
4124  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4125# Double any \ or $.
4126# By default was `s,x,x', remove it if useless.
4127ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4128program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4129
4130if test x"${MISSING+set}" != xset; then
4131  case $am_aux_dir in
4132  *\ * | *\	*)
4133    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4134  *)
4135    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4136  esac
4137fi
4138# Use eval to expand $SHELL
4139if eval "$MISSING --is-lightweight"; then
4140  am_missing_run="$MISSING "
4141else
4142  am_missing_run=
4143  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4144$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4145fi
4146
4147if test x"${install_sh+set}" != xset; then
4148  case $am_aux_dir in
4149  *\ * | *\	*)
4150    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4151  *)
4152    install_sh="\${SHELL} $am_aux_dir/install-sh"
4153  esac
4154fi
4155
4156# Installed binaries are usually stripped using 'strip' when the user
4157# run "make install-strip".  However 'strip' might not be the right
4158# tool to use in cross-compilation environments, therefore Automake
4159# will honor the 'STRIP' environment variable to overrule this program.
4160if test "$cross_compiling" != no; then
4161  if test -n "$ac_tool_prefix"; then
4162  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4163set dummy ${ac_tool_prefix}strip; ac_word=$2
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165$as_echo_n "checking for $ac_word... " >&6; }
4166if ${ac_cv_prog_STRIP+:} false; then :
4167  $as_echo_n "(cached) " >&6
4168else
4169  if test -n "$STRIP"; then
4170  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4171else
4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH
4174do
4175  IFS=$as_save_IFS
4176  test -z "$as_dir" && as_dir=.
4177    for ac_exec_ext in '' $ac_executable_extensions; do
4178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181    break 2
4182  fi
4183done
4184  done
4185IFS=$as_save_IFS
4186
4187fi
4188fi
4189STRIP=$ac_cv_prog_STRIP
4190if test -n "$STRIP"; then
4191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4192$as_echo "$STRIP" >&6; }
4193else
4194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195$as_echo "no" >&6; }
4196fi
4197
4198
4199fi
4200if test -z "$ac_cv_prog_STRIP"; then
4201  ac_ct_STRIP=$STRIP
4202  # Extract the first word of "strip", so it can be a program name with args.
4203set dummy strip; ac_word=$2
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205$as_echo_n "checking for $ac_word... " >&6; }
4206if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209  if test -n "$ac_ct_STRIP"; then
4210  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215  IFS=$as_save_IFS
4216  test -z "$as_dir" && as_dir=.
4217    for ac_exec_ext in '' $ac_executable_extensions; do
4218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219    ac_cv_prog_ac_ct_STRIP="strip"
4220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221    break 2
4222  fi
4223done
4224  done
4225IFS=$as_save_IFS
4226
4227fi
4228fi
4229ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4230if test -n "$ac_ct_STRIP"; then
4231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4232$as_echo "$ac_ct_STRIP" >&6; }
4233else
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235$as_echo "no" >&6; }
4236fi
4237
4238  if test "x$ac_ct_STRIP" = x; then
4239    STRIP=":"
4240  else
4241    case $cross_compiling:$ac_tool_warned in
4242yes:)
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245ac_tool_warned=yes ;;
4246esac
4247    STRIP=$ac_ct_STRIP
4248  fi
4249else
4250  STRIP="$ac_cv_prog_STRIP"
4251fi
4252
4253fi
4254INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4255
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4257$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4258if test -z "$MKDIR_P"; then
4259  if ${ac_cv_path_mkdir+:} false; then :
4260  $as_echo_n "(cached) " >&6
4261else
4262  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4264do
4265  IFS=$as_save_IFS
4266  test -z "$as_dir" && as_dir=.
4267    for ac_prog in mkdir gmkdir; do
4268	 for ac_exec_ext in '' $ac_executable_extensions; do
4269	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4270	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4271	     'mkdir (GNU coreutils) '* | \
4272	     'mkdir (coreutils) '* | \
4273	     'mkdir (fileutils) '4.1*)
4274	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4275	       break 3;;
4276	   esac
4277	 done
4278       done
4279  done
4280IFS=$as_save_IFS
4281
4282fi
4283
4284  test -d ./--version && rmdir ./--version
4285  if test "${ac_cv_path_mkdir+set}" = set; then
4286    MKDIR_P="$ac_cv_path_mkdir -p"
4287  else
4288    # As a last resort, use the slow shell script.  Don't cache a
4289    # value for MKDIR_P within a source directory, because that will
4290    # break other packages using the cache if that directory is
4291    # removed, or if the value is a relative name.
4292    MKDIR_P="$ac_install_sh -d"
4293  fi
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4296$as_echo "$MKDIR_P" >&6; }
4297
4298for ac_prog in gawk mawk nawk awk
4299do
4300  # Extract the first word of "$ac_prog", so it can be a program name with args.
4301set dummy $ac_prog; ac_word=$2
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303$as_echo_n "checking for $ac_word... " >&6; }
4304if ${ac_cv_prog_AWK+:} false; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307  if test -n "$AWK"; then
4308  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313  IFS=$as_save_IFS
4314  test -z "$as_dir" && as_dir=.
4315    for ac_exec_ext in '' $ac_executable_extensions; do
4316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317    ac_cv_prog_AWK="$ac_prog"
4318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319    break 2
4320  fi
4321done
4322  done
4323IFS=$as_save_IFS
4324
4325fi
4326fi
4327AWK=$ac_cv_prog_AWK
4328if test -n "$AWK"; then
4329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4330$as_echo "$AWK" >&6; }
4331else
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333$as_echo "no" >&6; }
4334fi
4335
4336
4337  test -n "$AWK" && break
4338done
4339
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4341$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4342set x ${MAKE-make}
4343ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4344if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  cat >conftest.make <<\_ACEOF
4348SHELL = /bin/sh
4349all:
4350	@echo '@@@%%%=$(MAKE)=@@@%%%'
4351_ACEOF
4352# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4353case `${MAKE-make} -f conftest.make 2>/dev/null` in
4354  *@@@%%%=?*=@@@%%%*)
4355    eval ac_cv_prog_make_${ac_make}_set=yes;;
4356  *)
4357    eval ac_cv_prog_make_${ac_make}_set=no;;
4358esac
4359rm -f conftest.make
4360fi
4361if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363$as_echo "yes" >&6; }
4364  SET_MAKE=
4365else
4366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367$as_echo "no" >&6; }
4368  SET_MAKE="MAKE=${MAKE-make}"
4369fi
4370
4371rm -rf .tst 2>/dev/null
4372mkdir .tst 2>/dev/null
4373if test -d .tst; then
4374  am__leading_dot=.
4375else
4376  am__leading_dot=_
4377fi
4378rmdir .tst 2>/dev/null
4379
4380# Check whether --enable-silent-rules was given.
4381if test "${enable_silent_rules+set}" = set; then :
4382  enableval=$enable_silent_rules;
4383fi
4384
4385case $enable_silent_rules in # (((
4386  yes) AM_DEFAULT_VERBOSITY=0;;
4387   no) AM_DEFAULT_VERBOSITY=1;;
4388    *) AM_DEFAULT_VERBOSITY=1;;
4389esac
4390am_make=${MAKE-make}
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4392$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4393if ${am_cv_make_support_nested_variables+:} false; then :
4394  $as_echo_n "(cached) " >&6
4395else
4396  if $as_echo 'TRUE=$(BAR$(V))
4397BAR0=false
4398BAR1=true
4399V=1
4400am__doit:
4401	@$(TRUE)
4402.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4403  am_cv_make_support_nested_variables=yes
4404else
4405  am_cv_make_support_nested_variables=no
4406fi
4407fi
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4409$as_echo "$am_cv_make_support_nested_variables" >&6; }
4410if test $am_cv_make_support_nested_variables = yes; then
4411    AM_V='$(V)'
4412  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4413else
4414  AM_V=$AM_DEFAULT_VERBOSITY
4415  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4416fi
4417AM_BACKSLASH='\'
4418
4419if test "`cd $srcdir && pwd`" != "`pwd`"; then
4420  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4421  # is not polluted with repeated "-I."
4422  am__isrc=' -I$(srcdir)'
4423  # test to see if srcdir already configured
4424  if test -f $srcdir/config.status; then
4425    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4426  fi
4427fi
4428
4429# test whether we have cygpath
4430if test -z "$CYGPATH_W"; then
4431  if (cygpath --version) >/dev/null 2>/dev/null; then
4432    CYGPATH_W='cygpath -w'
4433  else
4434    CYGPATH_W=echo
4435  fi
4436fi
4437
4438
4439# Define the identity of the package.
4440 PACKAGE='libphobos'
4441 VERSION='version-unused'
4442
4443
4444# Some tools Automake needs.
4445
4446ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4447
4448
4449AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4450
4451
4452AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4453
4454
4455AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4456
4457
4458MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4459
4460# For better backward compatibility.  To be removed once Automake 1.9.x
4461# dies out for good.  For more background, see:
4462# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4463# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4464mkdir_p='$(MKDIR_P)'
4465
4466# We need awk for the "check" target (and possibly the TAP driver).  The
4467# system "awk" is bad on some platforms.
4468# Always define AMTAR for backward compatibility.  Yes, it's still used
4469# in the wild :-(  We should find a proper way to deprecate it ...
4470AMTAR='$${TAR-tar}'
4471
4472
4473# We'll loop over all known methods to create a tar archive until one works.
4474_am_tools='gnutar  pax cpio none'
4475
4476am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4477
4478
4479
4480
4481
4482
4483# POSIX will say in a future version that running "rm -f" with no argument
4484# is OK; and we want to be able to make that assumption in our Makefile
4485# recipes.  So use an aggressive probe to check that the usage we want is
4486# actually supported "in the wild" to an acceptable degree.
4487# See automake bug#10828.
4488# To make any issue more visible, cause the running configure to be aborted
4489# by default if the 'rm' program in use doesn't match our expectations; the
4490# user can still override this though.
4491if rm -f && rm -fr && rm -rf; then : OK; else
4492  cat >&2 <<'END'
4493Oops!
4494
4495Your 'rm' program seems unable to run without file operands specified
4496on the command line, even when the '-f' option is present.  This is contrary
4497to the behaviour of most rm programs out there, and not conforming with
4498the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4499
4500Please tell bug-automake@gnu.org about your system, including the value
4501of your $PATH and any error possibly output before this message.  This
4502can help us improve future automake versions.
4503
4504END
4505  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4506    echo 'Configuration will proceed anyway, since you have set the' >&2
4507    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4508    echo >&2
4509  else
4510    cat >&2 <<'END'
4511Aborting the configuration process, to ensure you take notice of the issue.
4512
4513You can download and install GNU coreutils to get an 'rm' implementation
4514that behaves properly: <http://www.gnu.org/software/coreutils/>.
4515
4516If you want to complete the configuration process using your problematic
4517'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4518to "yes", and re-run configure.
4519
4520END
4521    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4522  fi
4523fi
4524
4525
4526
4527
4528# By default we simply use the C compiler to build assembly code.
4529
4530test "${CCAS+set}" = set || CCAS=$CC
4531test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4532
4533
4534
4535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540if test -n "$ac_tool_prefix"; then
4541  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4542set dummy ${ac_tool_prefix}gcc; ac_word=$2
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544$as_echo_n "checking for $ac_word... " >&6; }
4545if ${ac_cv_prog_CC+:} false; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  if test -n "$CC"; then
4549  ac_cv_prog_CC="$CC" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554  IFS=$as_save_IFS
4555  test -z "$as_dir" && as_dir=.
4556    for ac_exec_ext in '' $ac_executable_extensions; do
4557  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560    break 2
4561  fi
4562done
4563  done
4564IFS=$as_save_IFS
4565
4566fi
4567fi
4568CC=$ac_cv_prog_CC
4569if test -n "$CC"; then
4570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4571$as_echo "$CC" >&6; }
4572else
4573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574$as_echo "no" >&6; }
4575fi
4576
4577
4578fi
4579if test -z "$ac_cv_prog_CC"; then
4580  ac_ct_CC=$CC
4581  # Extract the first word of "gcc", so it can be a program name with args.
4582set dummy gcc; ac_word=$2
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584$as_echo_n "checking for $ac_word... " >&6; }
4585if ${ac_cv_prog_ac_ct_CC+:} false; then :
4586  $as_echo_n "(cached) " >&6
4587else
4588  if test -n "$ac_ct_CC"; then
4589  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4590else
4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594  IFS=$as_save_IFS
4595  test -z "$as_dir" && as_dir=.
4596    for ac_exec_ext in '' $ac_executable_extensions; do
4597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598    ac_cv_prog_ac_ct_CC="gcc"
4599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600    break 2
4601  fi
4602done
4603  done
4604IFS=$as_save_IFS
4605
4606fi
4607fi
4608ac_ct_CC=$ac_cv_prog_ac_ct_CC
4609if test -n "$ac_ct_CC"; then
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4611$as_echo "$ac_ct_CC" >&6; }
4612else
4613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614$as_echo "no" >&6; }
4615fi
4616
4617  if test "x$ac_ct_CC" = x; then
4618    CC=""
4619  else
4620    case $cross_compiling:$ac_tool_warned in
4621yes:)
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624ac_tool_warned=yes ;;
4625esac
4626    CC=$ac_ct_CC
4627  fi
4628else
4629  CC="$ac_cv_prog_CC"
4630fi
4631
4632if test -z "$CC"; then
4633          if test -n "$ac_tool_prefix"; then
4634    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4635set dummy ${ac_tool_prefix}cc; ac_word=$2
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637$as_echo_n "checking for $ac_word... " >&6; }
4638if ${ac_cv_prog_CC+:} false; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641  if test -n "$CC"; then
4642  ac_cv_prog_CC="$CC" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647  IFS=$as_save_IFS
4648  test -z "$as_dir" && as_dir=.
4649    for ac_exec_ext in '' $ac_executable_extensions; do
4650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651    ac_cv_prog_CC="${ac_tool_prefix}cc"
4652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653    break 2
4654  fi
4655done
4656  done
4657IFS=$as_save_IFS
4658
4659fi
4660fi
4661CC=$ac_cv_prog_CC
4662if test -n "$CC"; then
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4664$as_echo "$CC" >&6; }
4665else
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667$as_echo "no" >&6; }
4668fi
4669
4670
4671  fi
4672fi
4673if test -z "$CC"; then
4674  # Extract the first word of "cc", so it can be a program name with args.
4675set dummy cc; ac_word=$2
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677$as_echo_n "checking for $ac_word... " >&6; }
4678if ${ac_cv_prog_CC+:} false; then :
4679  $as_echo_n "(cached) " >&6
4680else
4681  if test -n "$CC"; then
4682  ac_cv_prog_CC="$CC" # Let the user override the test.
4683else
4684  ac_prog_rejected=no
4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688  IFS=$as_save_IFS
4689  test -z "$as_dir" && as_dir=.
4690    for ac_exec_ext in '' $ac_executable_extensions; do
4691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4692    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4693       ac_prog_rejected=yes
4694       continue
4695     fi
4696    ac_cv_prog_CC="cc"
4697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698    break 2
4699  fi
4700done
4701  done
4702IFS=$as_save_IFS
4703
4704if test $ac_prog_rejected = yes; then
4705  # We found a bogon in the path, so make sure we never use it.
4706  set dummy $ac_cv_prog_CC
4707  shift
4708  if test $# != 0; then
4709    # We chose a different compiler from the bogus one.
4710    # However, it has the same basename, so the bogon will be chosen
4711    # first if we set CC to just the basename; use the full file name.
4712    shift
4713    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4714  fi
4715fi
4716fi
4717fi
4718CC=$ac_cv_prog_CC
4719if test -n "$CC"; then
4720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4721$as_echo "$CC" >&6; }
4722else
4723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726
4727
4728fi
4729if test -z "$CC"; then
4730  if test -n "$ac_tool_prefix"; then
4731  for ac_prog in cl.exe
4732  do
4733    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736$as_echo_n "checking for $ac_word... " >&6; }
4737if ${ac_cv_prog_CC+:} false; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740  if test -n "$CC"; then
4741  ac_cv_prog_CC="$CC" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746  IFS=$as_save_IFS
4747  test -z "$as_dir" && as_dir=.
4748    for ac_exec_ext in '' $ac_executable_extensions; do
4749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752    break 2
4753  fi
4754done
4755  done
4756IFS=$as_save_IFS
4757
4758fi
4759fi
4760CC=$ac_cv_prog_CC
4761if test -n "$CC"; then
4762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4763$as_echo "$CC" >&6; }
4764else
4765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766$as_echo "no" >&6; }
4767fi
4768
4769
4770    test -n "$CC" && break
4771  done
4772fi
4773if test -z "$CC"; then
4774  ac_ct_CC=$CC
4775  for ac_prog in cl.exe
4776do
4777  # Extract the first word of "$ac_prog", so it can be a program name with args.
4778set dummy $ac_prog; ac_word=$2
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780$as_echo_n "checking for $ac_word... " >&6; }
4781if ${ac_cv_prog_ac_ct_CC+:} false; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784  if test -n "$ac_ct_CC"; then
4785  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790  IFS=$as_save_IFS
4791  test -z "$as_dir" && as_dir=.
4792    for ac_exec_ext in '' $ac_executable_extensions; do
4793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794    ac_cv_prog_ac_ct_CC="$ac_prog"
4795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796    break 2
4797  fi
4798done
4799  done
4800IFS=$as_save_IFS
4801
4802fi
4803fi
4804ac_ct_CC=$ac_cv_prog_ac_ct_CC
4805if test -n "$ac_ct_CC"; then
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4807$as_echo "$ac_ct_CC" >&6; }
4808else
4809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810$as_echo "no" >&6; }
4811fi
4812
4813
4814  test -n "$ac_ct_CC" && break
4815done
4816
4817  if test "x$ac_ct_CC" = x; then
4818    CC=""
4819  else
4820    case $cross_compiling:$ac_tool_warned in
4821yes:)
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824ac_tool_warned=yes ;;
4825esac
4826    CC=$ac_ct_CC
4827  fi
4828fi
4829
4830fi
4831
4832
4833test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4835as_fn_error $? "no acceptable C compiler found in \$PATH
4836See \`config.log' for more details" "$LINENO" 5; }
4837
4838# Provide some information about the compiler.
4839$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4840set X $ac_compile
4841ac_compiler=$2
4842for ac_option in --version -v -V -qversion; do
4843  { { ac_try="$ac_compiler $ac_option >&5"
4844case "(($ac_try" in
4845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846  *) ac_try_echo=$ac_try;;
4847esac
4848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4849$as_echo "$ac_try_echo"; } >&5
4850  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4851  ac_status=$?
4852  if test -s conftest.err; then
4853    sed '10a\
4854... rest of stderr output deleted ...
4855         10q' conftest.err >conftest.er1
4856    cat conftest.er1 >&5
4857  fi
4858  rm -f conftest.er1 conftest.err
4859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4860  test $ac_status = 0; }
4861done
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4864$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4865if ${ac_cv_c_compiler_gnu+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h.  */
4870
4871int
4872main ()
4873{
4874#ifndef __GNUC__
4875       choke me
4876#endif
4877
4878  ;
4879  return 0;
4880}
4881_ACEOF
4882if ac_fn_c_try_compile "$LINENO"; then :
4883  ac_compiler_gnu=yes
4884else
4885  ac_compiler_gnu=no
4886fi
4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888ac_cv_c_compiler_gnu=$ac_compiler_gnu
4889
4890fi
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4892$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4893if test $ac_compiler_gnu = yes; then
4894  GCC=yes
4895else
4896  GCC=
4897fi
4898ac_test_CFLAGS=${CFLAGS+set}
4899ac_save_CFLAGS=$CFLAGS
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4901$as_echo_n "checking whether $CC accepts -g... " >&6; }
4902if ${ac_cv_prog_cc_g+:} false; then :
4903  $as_echo_n "(cached) " >&6
4904else
4905  ac_save_c_werror_flag=$ac_c_werror_flag
4906   ac_c_werror_flag=yes
4907   ac_cv_prog_cc_g=no
4908   CFLAGS="-g"
4909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h.  */
4911
4912int
4913main ()
4914{
4915
4916  ;
4917  return 0;
4918}
4919_ACEOF
4920if ac_fn_c_try_compile "$LINENO"; then :
4921  ac_cv_prog_cc_g=yes
4922else
4923  CFLAGS=""
4924      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925/* end confdefs.h.  */
4926
4927int
4928main ()
4929{
4930
4931  ;
4932  return 0;
4933}
4934_ACEOF
4935if ac_fn_c_try_compile "$LINENO"; then :
4936
4937else
4938  ac_c_werror_flag=$ac_save_c_werror_flag
4939	 CFLAGS="-g"
4940	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941/* end confdefs.h.  */
4942
4943int
4944main ()
4945{
4946
4947  ;
4948  return 0;
4949}
4950_ACEOF
4951if ac_fn_c_try_compile "$LINENO"; then :
4952  ac_cv_prog_cc_g=yes
4953fi
4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955fi
4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957fi
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959   ac_c_werror_flag=$ac_save_c_werror_flag
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4962$as_echo "$ac_cv_prog_cc_g" >&6; }
4963if test "$ac_test_CFLAGS" = set; then
4964  CFLAGS=$ac_save_CFLAGS
4965elif test $ac_cv_prog_cc_g = yes; then
4966  if test "$GCC" = yes; then
4967    CFLAGS="-g -O2"
4968  else
4969    CFLAGS="-g"
4970  fi
4971else
4972  if test "$GCC" = yes; then
4973    CFLAGS="-O2"
4974  else
4975    CFLAGS=
4976  fi
4977fi
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4979$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4980if ${ac_cv_prog_cc_c89+:} false; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983  ac_cv_prog_cc_c89=no
4984ac_save_CC=$CC
4985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986/* end confdefs.h.  */
4987#include <stdarg.h>
4988#include <stdio.h>
4989struct stat;
4990/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4991struct buf { int x; };
4992FILE * (*rcsopen) (struct buf *, struct stat *, int);
4993static char *e (p, i)
4994     char **p;
4995     int i;
4996{
4997  return p[i];
4998}
4999static char *f (char * (*g) (char **, int), char **p, ...)
5000{
5001  char *s;
5002  va_list v;
5003  va_start (v,p);
5004  s = g (p, va_arg (v,int));
5005  va_end (v);
5006  return s;
5007}
5008
5009/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5010   function prototypes and stuff, but not '\xHH' hex character constants.
5011   These don't provoke an error unfortunately, instead are silently treated
5012   as 'x'.  The following induces an error, until -std is added to get
5013   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5014   array size at least.  It's necessary to write '\x00'==0 to get something
5015   that's true only with -std.  */
5016int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5017
5018/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5019   inside strings and character constants.  */
5020#define FOO(x) 'x'
5021int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5022
5023int test (int i, double x);
5024struct s1 {int (*f) (int a);};
5025struct s2 {int (*f) (double a);};
5026int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5027int argc;
5028char **argv;
5029int
5030main ()
5031{
5032return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5033  ;
5034  return 0;
5035}
5036_ACEOF
5037for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5038	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5039do
5040  CC="$ac_save_CC $ac_arg"
5041  if ac_fn_c_try_compile "$LINENO"; then :
5042  ac_cv_prog_cc_c89=$ac_arg
5043fi
5044rm -f core conftest.err conftest.$ac_objext
5045  test "x$ac_cv_prog_cc_c89" != "xno" && break
5046done
5047rm -f conftest.$ac_ext
5048CC=$ac_save_CC
5049
5050fi
5051# AC_CACHE_VAL
5052case "x$ac_cv_prog_cc_c89" in
5053  x)
5054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5055$as_echo "none needed" >&6; } ;;
5056  xno)
5057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5058$as_echo "unsupported" >&6; } ;;
5059  *)
5060    CC="$CC $ac_cv_prog_cc_c89"
5061    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5062$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5063esac
5064if test "x$ac_cv_prog_cc_c89" != xno; then :
5065
5066fi
5067
5068ac_ext=c
5069ac_cpp='$CPP $CPPFLAGS'
5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073
5074ac_ext=c
5075ac_cpp='$CPP $CPPFLAGS'
5076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5080$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5081if ${am_cv_prog_cc_c_o+:} false; then :
5082  $as_echo_n "(cached) " >&6
5083else
5084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h.  */
5086
5087int
5088main ()
5089{
5090
5091  ;
5092  return 0;
5093}
5094_ACEOF
5095  # Make sure it works both with $CC and with simple cc.
5096  # Following AC_PROG_CC_C_O, we do the test twice because some
5097  # compilers refuse to overwrite an existing .o file with -o,
5098  # though they will create one.
5099  am_cv_prog_cc_c_o=yes
5100  for am_i in 1 2; do
5101    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5102   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5103   ac_status=$?
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); } \
5106         && test -f conftest2.$ac_objext; then
5107      : OK
5108    else
5109      am_cv_prog_cc_c_o=no
5110      break
5111    fi
5112  done
5113  rm -f core conftest*
5114  unset am_i
5115fi
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5117$as_echo "$am_cv_prog_cc_c_o" >&6; }
5118if test "$am_cv_prog_cc_c_o" != yes; then
5119   # Losing compiler, so override with the script.
5120   # FIXME: It is wrong to rewrite CC.
5121   # But if we don't then we get into trouble of one sort or another.
5122   # A longer-term fix would be to have automake use am__CC in this case,
5123   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5124   CC="$am_aux_dir/compile $CC"
5125fi
5126ac_ext=c
5127ac_cpp='$CPP $CPPFLAGS'
5128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131
5132
5133ac_ext=d
5134ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5135ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136ac_compiler_gnu=yes
5137if test -n "$ac_tool_prefix"; then
5138  # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5139set dummy ${ac_tool_prefix}gdc; ac_word=$2
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
5142if ${ac_cv_prog_GDC+:} false; then :
5143  $as_echo_n "(cached) " >&6
5144else
5145  if test -n "$GDC"; then
5146  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151  IFS=$as_save_IFS
5152  test -z "$as_dir" && as_dir=.
5153    for ac_exec_ext in '' $ac_executable_extensions; do
5154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155    ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157    break 2
5158  fi
5159done
5160  done
5161IFS=$as_save_IFS
5162
5163fi
5164fi
5165GDC=$ac_cv_prog_GDC
5166if test -n "$GDC"; then
5167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5168$as_echo "$GDC" >&6; }
5169else
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
5172fi
5173
5174
5175fi
5176if test -z "$ac_cv_prog_GDC"; then
5177  ac_ct_GDC=$GDC
5178  # Extract the first word of "gdc", so it can be a program name with args.
5179set dummy gdc; ac_word=$2
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
5182if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  if test -n "$ac_ct_GDC"; then
5186  ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193    for ac_exec_ext in '' $ac_executable_extensions; do
5194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_prog_ac_ct_GDC="gdc"
5196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200  done
5201IFS=$as_save_IFS
5202
5203fi
5204fi
5205ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5206if test -n "$ac_ct_GDC"; then
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5208$as_echo "$ac_ct_GDC" >&6; }
5209else
5210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213
5214  if test "x$ac_ct_GDC" = x; then
5215    GDC=""
5216  else
5217    case $cross_compiling:$ac_tool_warned in
5218yes:)
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221ac_tool_warned=yes ;;
5222esac
5223    GDC=$ac_ct_GDC
5224  fi
5225else
5226  GDC="$ac_cv_prog_GDC"
5227fi
5228
5229if test -z "$GDC"; then
5230  if test -n "$ac_tool_prefix"; then
5231    # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5232set dummy ${ac_tool_prefix}gdc; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; }
5235if ${ac_cv_prog_GDC+:} false; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  if test -n "$GDC"; then
5239  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246    for ac_exec_ext in '' $ac_executable_extensions; do
5247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248    ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253  done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258GDC=$ac_cv_prog_GDC
5259if test -n "$GDC"; then
5260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5261$as_echo "$GDC" >&6; }
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267
5268  fi
5269fi
5270if test -z "$GDC"; then
5271  # Extract the first word of "gdc", so it can be a program name with args.
5272set dummy gdc; ac_word=$2
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274$as_echo_n "checking for $ac_word... " >&6; }
5275if ${ac_cv_prog_GDC+:} false; then :
5276  $as_echo_n "(cached) " >&6
5277else
5278  if test -n "$GDC"; then
5279  ac_cv_prog_GDC="$GDC" # Let the user override the test.
5280else
5281  ac_prog_rejected=no
5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH
5284do
5285  IFS=$as_save_IFS
5286  test -z "$as_dir" && as_dir=.
5287    for ac_exec_ext in '' $ac_executable_extensions; do
5288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289    if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5290       ac_prog_rejected=yes
5291       continue
5292     fi
5293    ac_cv_prog_GDC="gdc"
5294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295    break 2
5296  fi
5297done
5298  done
5299IFS=$as_save_IFS
5300
5301if test $ac_prog_rejected = yes; then
5302  # We found a bogon in the path, so make sure we never use it.
5303  set dummy $ac_cv_prog_GDC
5304  shift
5305  if test $# != 0; then
5306    # We chose a different compiler from the bogus one.
5307    # However, it has the same basename, so the bogon will be chosen
5308    # first if we set GDC to just the basename; use the full file name.
5309    shift
5310    ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5311  fi
5312fi
5313fi
5314fi
5315GDC=$ac_cv_prog_GDC
5316if test -n "$GDC"; then
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5318$as_echo "$GDC" >&6; }
5319else
5320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
5322fi
5323
5324
5325fi
5326
5327
5328# Provide some information about the compiler.
5329$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5330set X $ac_compile
5331ac_compiler=$2
5332{ { ac_try="$ac_compiler --version >&5"
5333case "(($ac_try" in
5334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335  *) ac_try_echo=$ac_try;;
5336esac
5337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5338$as_echo "$ac_try_echo"; } >&5
5339  (eval "$ac_compiler --version >&5") 2>conftest.err
5340  ac_status=$?
5341  if test -s conftest.err; then
5342    sed '10a\
5343... rest of stderr output deleted ...
5344         10q' conftest.err >conftest.er1
5345    cat conftest.er1 >&5
5346  fi
5347  rm -f conftest.er1 conftest.err
5348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5349  test $ac_status = 0; }
5350ac_ext=c
5351ac_cpp='$CPP $CPPFLAGS'
5352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356
5357      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5358$as_echo_n "checking for absolute libphobos source path... " >&6; }
5359if ${phobos_cv_abs_srcdir+:} false; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5363fi
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5365$as_echo "$phobos_cv_abs_srcdir" >&6; }
5366    if test -d "$phobos_cv_abs_srcdir"; then :
5367
5368else
5369  as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5370fi
5371
5372
5373
5374
5375  gdc_save_DFLAGS=$GDCFLAGS
5376  GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
5377
5378  ac_ext=d
5379ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5380ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381ac_compiler_gnu=yes
5382
5383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5384$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5385    cat > conftest.$ac_ext <<_ACEOF
5386module mod;
5387
5388
5389extern(C) int main() {
5390  return 0;
5391}
5392_ACEOF
5393if ac_fn_d_try_compile "$LINENO"; then :
5394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5395$as_echo "yes" >&6; }
5396else
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
5399       as_fn_error $? "can't compile D sources!" "$LINENO" 5
5400fi
5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402  ac_ext=c
5403ac_cpp='$CPP $CPPFLAGS'
5404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407
5408
5409  GDCFLAGS=$gdc_save_DFLAGS
5410
5411
5412
5413
5414
5415
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5417$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5418    # Check whether --enable-maintainer-mode was given.
5419if test "${enable_maintainer_mode+set}" = set; then :
5420  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5421else
5422  USE_MAINTAINER_MODE=no
5423fi
5424
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5426$as_echo "$USE_MAINTAINER_MODE" >&6; }
5427   if test $USE_MAINTAINER_MODE = yes; then
5428  MAINTAINER_MODE_TRUE=
5429  MAINTAINER_MODE_FALSE='#'
5430else
5431  MAINTAINER_MODE_TRUE='#'
5432  MAINTAINER_MODE_FALSE=
5433fi
5434
5435  MAINT=$MAINTAINER_MODE_TRUE
5436
5437
5438if test -n "$ac_tool_prefix"; then
5439  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5440set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
5443if ${ac_cv_prog_RANLIB+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  if test -n "$RANLIB"; then
5447  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452  IFS=$as_save_IFS
5453  test -z "$as_dir" && as_dir=.
5454    for ac_exec_ext in '' $ac_executable_extensions; do
5455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458    break 2
5459  fi
5460done
5461  done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466RANLIB=$ac_cv_prog_RANLIB
5467if test -n "$RANLIB"; then
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5469$as_echo "$RANLIB" >&6; }
5470else
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
5473fi
5474
5475
5476fi
5477if test -z "$ac_cv_prog_RANLIB"; then
5478  ac_ct_RANLIB=$RANLIB
5479  # Extract the first word of "ranlib", so it can be a program name with args.
5480set dummy ranlib; ac_word=$2
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482$as_echo_n "checking for $ac_word... " >&6; }
5483if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486  if test -n "$ac_ct_RANLIB"; then
5487  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492  IFS=$as_save_IFS
5493  test -z "$as_dir" && as_dir=.
5494    for ac_exec_ext in '' $ac_executable_extensions; do
5495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496    ac_cv_prog_ac_ct_RANLIB="ranlib"
5497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498    break 2
5499  fi
5500done
5501  done
5502IFS=$as_save_IFS
5503
5504fi
5505fi
5506ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5507if test -n "$ac_ct_RANLIB"; then
5508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5509$as_echo "$ac_ct_RANLIB" >&6; }
5510else
5511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512$as_echo "no" >&6; }
5513fi
5514
5515  if test "x$ac_ct_RANLIB" = x; then
5516    RANLIB=":"
5517  else
5518    case $cross_compiling:$ac_tool_warned in
5519yes:)
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5522ac_tool_warned=yes ;;
5523esac
5524    RANLIB=$ac_ct_RANLIB
5525  fi
5526else
5527  RANLIB="$ac_cv_prog_RANLIB"
5528fi
5529
5530
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5532$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5533set x ${MAKE-make}
5534ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5535if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5536  $as_echo_n "(cached) " >&6
5537else
5538  cat >conftest.make <<\_ACEOF
5539SHELL = /bin/sh
5540all:
5541	@echo '@@@%%%=$(MAKE)=@@@%%%'
5542_ACEOF
5543# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5544case `${MAKE-make} -f conftest.make 2>/dev/null` in
5545  *@@@%%%=?*=@@@%%%*)
5546    eval ac_cv_prog_make_${ac_make}_set=yes;;
5547  *)
5548    eval ac_cv_prog_make_${ac_make}_set=no;;
5549esac
5550rm -f conftest.make
5551fi
5552if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554$as_echo "yes" >&6; }
5555  SET_MAKE=
5556else
5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558$as_echo "no" >&6; }
5559  SET_MAKE="MAKE=${MAKE-make}"
5560fi
5561
5562
5563# This should be inherited in the recursive make, but ensure it is defined.
5564test "$AR" || AR=ar
5565
5566
5567CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5568
5569
5570
5571# Enable libtool
5572case `pwd` in
5573  *\ * | *\	*)
5574    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5575$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5576esac
5577
5578
5579
5580macro_version='2.2.7a'
5581macro_revision='1.3134'
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595ltmain="$ac_aux_dir/ltmain.sh"
5596
5597# Backslashify metacharacters that are still active within
5598# double-quoted strings.
5599sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5600
5601# Same as above, but do not quote variable references.
5602double_quote_subst='s/\(["`\\]\)/\\\1/g'
5603
5604# Sed substitution to delay expansion of an escaped shell variable in a
5605# double_quote_subst'ed string.
5606delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5607
5608# Sed substitution to delay expansion of an escaped single quote.
5609delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5610
5611# Sed substitution to avoid accidental globbing in evaled expressions
5612no_glob_subst='s/\*/\\\*/g'
5613
5614ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5615ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5616ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5617
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5619$as_echo_n "checking how to print strings... " >&6; }
5620# Test print first, because it will be a builtin if present.
5621if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5622   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5623  ECHO='print -r --'
5624elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5625  ECHO='printf %s\n'
5626else
5627  # Use this function as a fallback that always works.
5628  func_fallback_echo ()
5629  {
5630    eval 'cat <<_LTECHO_EOF
5631$1
5632_LTECHO_EOF'
5633  }
5634  ECHO='func_fallback_echo'
5635fi
5636
5637# func_echo_all arg...
5638# Invoke $ECHO with all args, space-separated.
5639func_echo_all ()
5640{
5641    $ECHO ""
5642}
5643
5644case "$ECHO" in
5645  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5646$as_echo "printf" >&6; } ;;
5647  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5648$as_echo "print -r" >&6; } ;;
5649  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5650$as_echo "cat" >&6; } ;;
5651esac
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5667$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5668if ${ac_cv_path_SED+:} false; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5672     for ac_i in 1 2 3 4 5 6 7; do
5673       ac_script="$ac_script$as_nl$ac_script"
5674     done
5675     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5676     { ac_script=; unset ac_script;}
5677     if test -z "$SED"; then
5678  ac_path_SED_found=false
5679  # Loop through the user's path and test for each of PROGNAME-LIST
5680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681for as_dir in $PATH
5682do
5683  IFS=$as_save_IFS
5684  test -z "$as_dir" && as_dir=.
5685    for ac_prog in sed gsed; do
5686    for ac_exec_ext in '' $ac_executable_extensions; do
5687      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5688      as_fn_executable_p "$ac_path_SED" || continue
5689# Check for GNU ac_path_SED and select it if it is found.
5690  # Check for GNU $ac_path_SED
5691case `"$ac_path_SED" --version 2>&1` in
5692*GNU*)
5693  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5694*)
5695  ac_count=0
5696  $as_echo_n 0123456789 >"conftest.in"
5697  while :
5698  do
5699    cat "conftest.in" "conftest.in" >"conftest.tmp"
5700    mv "conftest.tmp" "conftest.in"
5701    cp "conftest.in" "conftest.nl"
5702    $as_echo '' >> "conftest.nl"
5703    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5704    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5705    as_fn_arith $ac_count + 1 && ac_count=$as_val
5706    if test $ac_count -gt ${ac_path_SED_max-0}; then
5707      # Best one so far, save it but keep looking for a better one
5708      ac_cv_path_SED="$ac_path_SED"
5709      ac_path_SED_max=$ac_count
5710    fi
5711    # 10*(2^10) chars as input seems more than enough
5712    test $ac_count -gt 10 && break
5713  done
5714  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5715esac
5716
5717      $ac_path_SED_found && break 3
5718    done
5719  done
5720  done
5721IFS=$as_save_IFS
5722  if test -z "$ac_cv_path_SED"; then
5723    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5724  fi
5725else
5726  ac_cv_path_SED=$SED
5727fi
5728
5729fi
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5731$as_echo "$ac_cv_path_SED" >&6; }
5732 SED="$ac_cv_path_SED"
5733  rm -f conftest.sed
5734
5735test -z "$SED" && SED=sed
5736Xsed="$SED -e 1s/^X//"
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5749$as_echo_n "checking for fgrep... " >&6; }
5750if ${ac_cv_path_FGREP+:} false; then :
5751  $as_echo_n "(cached) " >&6
5752else
5753  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5754   then ac_cv_path_FGREP="$GREP -F"
5755   else
5756     if test -z "$FGREP"; then
5757  ac_path_FGREP_found=false
5758  # Loop through the user's path and test for each of PROGNAME-LIST
5759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5761do
5762  IFS=$as_save_IFS
5763  test -z "$as_dir" && as_dir=.
5764    for ac_prog in fgrep; do
5765    for ac_exec_ext in '' $ac_executable_extensions; do
5766      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5767      as_fn_executable_p "$ac_path_FGREP" || continue
5768# Check for GNU ac_path_FGREP and select it if it is found.
5769  # Check for GNU $ac_path_FGREP
5770case `"$ac_path_FGREP" --version 2>&1` in
5771*GNU*)
5772  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5773*)
5774  ac_count=0
5775  $as_echo_n 0123456789 >"conftest.in"
5776  while :
5777  do
5778    cat "conftest.in" "conftest.in" >"conftest.tmp"
5779    mv "conftest.tmp" "conftest.in"
5780    cp "conftest.in" "conftest.nl"
5781    $as_echo 'FGREP' >> "conftest.nl"
5782    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5783    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5784    as_fn_arith $ac_count + 1 && ac_count=$as_val
5785    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5786      # Best one so far, save it but keep looking for a better one
5787      ac_cv_path_FGREP="$ac_path_FGREP"
5788      ac_path_FGREP_max=$ac_count
5789    fi
5790    # 10*(2^10) chars as input seems more than enough
5791    test $ac_count -gt 10 && break
5792  done
5793  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5794esac
5795
5796      $ac_path_FGREP_found && break 3
5797    done
5798  done
5799  done
5800IFS=$as_save_IFS
5801  if test -z "$ac_cv_path_FGREP"; then
5802    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5803  fi
5804else
5805  ac_cv_path_FGREP=$FGREP
5806fi
5807
5808   fi
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5811$as_echo "$ac_cv_path_FGREP" >&6; }
5812 FGREP="$ac_cv_path_FGREP"
5813
5814
5815test -z "$GREP" && GREP=grep
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835# Check whether --with-gnu-ld was given.
5836if test "${with_gnu_ld+set}" = set; then :
5837  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5838else
5839  with_gnu_ld=no
5840fi
5841
5842ac_prog=ld
5843if test "$GCC" = yes; then
5844  # Check if gcc -print-prog-name=ld gives a path.
5845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5846$as_echo_n "checking for ld used by $CC... " >&6; }
5847  case $host in
5848  *-*-mingw*)
5849    # gcc leaves a trailing carriage return which upsets mingw
5850    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5851  *)
5852    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5853  esac
5854  case $ac_prog in
5855    # Accept absolute paths.
5856    [\\/]* | ?:[\\/]*)
5857      re_direlt='/[^/][^/]*/\.\./'
5858      # Canonicalize the pathname of ld
5859      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5860      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5861	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5862      done
5863      test -z "$LD" && LD="$ac_prog"
5864      ;;
5865  "")
5866    # If it fails, then pretend we aren't using GCC.
5867    ac_prog=ld
5868    ;;
5869  *)
5870    # If it is relative, then search for the first ld in PATH.
5871    with_gnu_ld=unknown
5872    ;;
5873  esac
5874elif test "$with_gnu_ld" = yes; then
5875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5876$as_echo_n "checking for GNU ld... " >&6; }
5877else
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5879$as_echo_n "checking for non-GNU ld... " >&6; }
5880fi
5881if ${lt_cv_path_LD+:} false; then :
5882  $as_echo_n "(cached) " >&6
5883else
5884  if test -z "$LD"; then
5885  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5886  for ac_dir in $PATH; do
5887    IFS="$lt_save_ifs"
5888    test -z "$ac_dir" && ac_dir=.
5889    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5890      lt_cv_path_LD="$ac_dir/$ac_prog"
5891      # Check to see if the program is GNU ld.  I'd rather use --version,
5892      # but apparently some variants of GNU ld only accept -v.
5893      # Break only if it was the GNU/non-GNU ld that we prefer.
5894      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5895      *GNU* | *'with BFD'*)
5896	test "$with_gnu_ld" != no && break
5897	;;
5898      *)
5899	test "$with_gnu_ld" != yes && break
5900	;;
5901      esac
5902    fi
5903  done
5904  IFS="$lt_save_ifs"
5905else
5906  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5907fi
5908fi
5909
5910LD="$lt_cv_path_LD"
5911if test -n "$LD"; then
5912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5913$as_echo "$LD" >&6; }
5914else
5915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916$as_echo "no" >&6; }
5917fi
5918test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5920$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5921if ${lt_cv_prog_gnu_ld+:} false; then :
5922  $as_echo_n "(cached) " >&6
5923else
5924  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5925case `$LD -v 2>&1 </dev/null` in
5926*GNU* | *'with BFD'*)
5927  lt_cv_prog_gnu_ld=yes
5928  ;;
5929*)
5930  lt_cv_prog_gnu_ld=no
5931  ;;
5932esac
5933fi
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5935$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5936with_gnu_ld=$lt_cv_prog_gnu_ld
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5947$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5948if ${lt_cv_path_NM+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  if test -n "$NM"; then
5952  # Let the user override the test.
5953  lt_cv_path_NM="$NM"
5954else
5955  lt_nm_to_check="${ac_tool_prefix}nm"
5956  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5957    lt_nm_to_check="$lt_nm_to_check nm"
5958  fi
5959  for lt_tmp_nm in $lt_nm_to_check; do
5960    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5961    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5962      IFS="$lt_save_ifs"
5963      test -z "$ac_dir" && ac_dir=.
5964      tmp_nm="$ac_dir/$lt_tmp_nm"
5965      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5966	# Check to see if the nm accepts a BSD-compat flag.
5967	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5968	#   nm: unknown option "B" ignored
5969	# Tru64's nm complains that /dev/null is an invalid object file
5970	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5971	*/dev/null* | *'Invalid file or object type'*)
5972	  lt_cv_path_NM="$tmp_nm -B"
5973	  break
5974	  ;;
5975	*)
5976	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5977	  */dev/null*)
5978	    lt_cv_path_NM="$tmp_nm -p"
5979	    break
5980	    ;;
5981	  *)
5982	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5983	    continue # so that we can try to find one that supports BSD flags
5984	    ;;
5985	  esac
5986	  ;;
5987	esac
5988      fi
5989    done
5990    IFS="$lt_save_ifs"
5991  done
5992  : ${lt_cv_path_NM=no}
5993fi
5994fi
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5996$as_echo "$lt_cv_path_NM" >&6; }
5997if test "$lt_cv_path_NM" != "no"; then
5998  NM="$lt_cv_path_NM"
5999else
6000  # Didn't find any BSD compatible name lister, look for dumpbin.
6001  if test -n "$DUMPBIN"; then :
6002    # Let the user override the test.
6003  else
6004    if test -n "$ac_tool_prefix"; then
6005  for ac_prog in dumpbin "link -dump"
6006  do
6007    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6008set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
6011if ${ac_cv_prog_DUMPBIN+:} false; then :
6012  $as_echo_n "(cached) " >&6
6013else
6014  if test -n "$DUMPBIN"; then
6015  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020  IFS=$as_save_IFS
6021  test -z "$as_dir" && as_dir=.
6022    for ac_exec_ext in '' $ac_executable_extensions; do
6023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026    break 2
6027  fi
6028done
6029  done
6030IFS=$as_save_IFS
6031
6032fi
6033fi
6034DUMPBIN=$ac_cv_prog_DUMPBIN
6035if test -n "$DUMPBIN"; then
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6037$as_echo "$DUMPBIN" >&6; }
6038else
6039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043
6044    test -n "$DUMPBIN" && break
6045  done
6046fi
6047if test -z "$DUMPBIN"; then
6048  ac_ct_DUMPBIN=$DUMPBIN
6049  for ac_prog in dumpbin "link -dump"
6050do
6051  # Extract the first word of "$ac_prog", so it can be a program name with args.
6052set dummy $ac_prog; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
6055if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6056  $as_echo_n "(cached) " >&6
6057else
6058  if test -n "$ac_ct_DUMPBIN"; then
6059  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064  IFS=$as_save_IFS
6065  test -z "$as_dir" && as_dir=.
6066    for ac_exec_ext in '' $ac_executable_extensions; do
6067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070    break 2
6071  fi
6072done
6073  done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6079if test -n "$ac_ct_DUMPBIN"; then
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6081$as_echo "$ac_ct_DUMPBIN" >&6; }
6082else
6083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087
6088  test -n "$ac_ct_DUMPBIN" && break
6089done
6090
6091  if test "x$ac_ct_DUMPBIN" = x; then
6092    DUMPBIN=":"
6093  else
6094    case $cross_compiling:$ac_tool_warned in
6095yes:)
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098ac_tool_warned=yes ;;
6099esac
6100    DUMPBIN=$ac_ct_DUMPBIN
6101  fi
6102fi
6103
6104    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6105    *COFF*)
6106      DUMPBIN="$DUMPBIN -symbols"
6107      ;;
6108    *)
6109      DUMPBIN=:
6110      ;;
6111    esac
6112  fi
6113
6114  if test "$DUMPBIN" != ":"; then
6115    NM="$DUMPBIN"
6116  fi
6117fi
6118test -z "$NM" && NM=nm
6119
6120
6121
6122
6123
6124
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6126$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6127if ${lt_cv_nm_interface+:} false; then :
6128  $as_echo_n "(cached) " >&6
6129else
6130  lt_cv_nm_interface="BSD nm"
6131  echo "int some_variable = 0;" > conftest.$ac_ext
6132  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6133  (eval "$ac_compile" 2>conftest.err)
6134  cat conftest.err >&5
6135  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6136  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6137  cat conftest.err >&5
6138  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6139  cat conftest.out >&5
6140  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6141    lt_cv_nm_interface="MS dumpbin"
6142  fi
6143  rm -f conftest*
6144fi
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6146$as_echo "$lt_cv_nm_interface" >&6; }
6147
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6149$as_echo_n "checking whether ln -s works... " >&6; }
6150LN_S=$as_ln_s
6151if test "$LN_S" = "ln -s"; then
6152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6153$as_echo "yes" >&6; }
6154else
6155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6156$as_echo "no, using $LN_S" >&6; }
6157fi
6158
6159# find the maximum length of command line arguments
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6161$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6162if ${lt_cv_sys_max_cmd_len+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165    i=0
6166  teststring="ABCD"
6167
6168  case $build_os in
6169  msdosdjgpp*)
6170    # On DJGPP, this test can blow up pretty badly due to problems in libc
6171    # (any single argument exceeding 2000 bytes causes a buffer overrun
6172    # during glob expansion).  Even if it were fixed, the result of this
6173    # check would be larger than it should be.
6174    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6175    ;;
6176
6177  gnu*)
6178    # Under GNU Hurd, this test is not required because there is
6179    # no limit to the length of command line arguments.
6180    # Libtool will interpret -1 as no limit whatsoever
6181    lt_cv_sys_max_cmd_len=-1;
6182    ;;
6183
6184  cygwin* | mingw* | cegcc*)
6185    # On Win9x/ME, this test blows up -- it succeeds, but takes
6186    # about 5 minutes as the teststring grows exponentially.
6187    # Worse, since 9x/ME are not pre-emptively multitasking,
6188    # you end up with a "frozen" computer, even though with patience
6189    # the test eventually succeeds (with a max line length of 256k).
6190    # Instead, let's just punt: use the minimum linelength reported by
6191    # all of the supported platforms: 8192 (on NT/2K/XP).
6192    lt_cv_sys_max_cmd_len=8192;
6193    ;;
6194
6195  mint*)
6196    # On MiNT this can take a long time and run out of memory.
6197    lt_cv_sys_max_cmd_len=8192;
6198    ;;
6199
6200  amigaos*)
6201    # On AmigaOS with pdksh, this test takes hours, literally.
6202    # So we just punt and use a minimum line length of 8192.
6203    lt_cv_sys_max_cmd_len=8192;
6204    ;;
6205
6206  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6207    # This has been around since 386BSD, at least.  Likely further.
6208    if test -x /sbin/sysctl; then
6209      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6210    elif test -x /usr/sbin/sysctl; then
6211      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6212    else
6213      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6214    fi
6215    # And add a safety zone
6216    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6217    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6218    ;;
6219
6220  interix*)
6221    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6222    lt_cv_sys_max_cmd_len=196608
6223    ;;
6224
6225  osf*)
6226    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6227    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6228    # nice to cause kernel panics so lets avoid the loop below.
6229    # First set a reasonable default.
6230    lt_cv_sys_max_cmd_len=16384
6231    #
6232    if test -x /sbin/sysconfig; then
6233      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6234        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6235      esac
6236    fi
6237    ;;
6238  sco3.2v5*)
6239    lt_cv_sys_max_cmd_len=102400
6240    ;;
6241  sysv5* | sco5v6* | sysv4.2uw2*)
6242    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6243    if test -n "$kargmax"; then
6244      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6245    else
6246      lt_cv_sys_max_cmd_len=32768
6247    fi
6248    ;;
6249  *)
6250    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6251    if test -n "$lt_cv_sys_max_cmd_len"; then
6252      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6253      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6254    else
6255      # Make teststring a little bigger before we do anything with it.
6256      # a 1K string should be a reasonable start.
6257      for i in 1 2 3 4 5 6 7 8 ; do
6258        teststring=$teststring$teststring
6259      done
6260      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6261      # If test is not a shell built-in, we'll probably end up computing a
6262      # maximum length that is only half of the actual maximum length, but
6263      # we can't tell.
6264      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6265	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6266	      test $i != 17 # 1/2 MB should be enough
6267      do
6268        i=`expr $i + 1`
6269        teststring=$teststring$teststring
6270      done
6271      # Only check the string length outside the loop.
6272      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6273      teststring=
6274      # Add a significant safety factor because C++ compilers can tack on
6275      # massive amounts of additional arguments before passing them to the
6276      # linker.  It appears as though 1/2 is a usable value.
6277      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6278    fi
6279    ;;
6280  esac
6281
6282fi
6283
6284if test -n $lt_cv_sys_max_cmd_len ; then
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6286$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6287else
6288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6289$as_echo "none" >&6; }
6290fi
6291max_cmd_len=$lt_cv_sys_max_cmd_len
6292
6293
6294
6295
6296
6297
6298: ${CP="cp -f"}
6299: ${MV="mv -f"}
6300: ${RM="rm -f"}
6301
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6303$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6304# Try some XSI features
6305xsi_shell=no
6306( _lt_dummy="a/b/c"
6307  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6308      = c,a/b,, \
6309    && eval 'test $(( 1 + 1 )) -eq 2 \
6310    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6311  && xsi_shell=yes
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6313$as_echo "$xsi_shell" >&6; }
6314
6315
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6317$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6318lt_shell_append=no
6319( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6320    >/dev/null 2>&1 \
6321  && lt_shell_append=yes
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6323$as_echo "$lt_shell_append" >&6; }
6324
6325
6326if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6327  lt_unset=unset
6328else
6329  lt_unset=false
6330fi
6331
6332
6333
6334
6335
6336# test EBCDIC or ASCII
6337case `echo X|tr X '\101'` in
6338 A) # ASCII based system
6339    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6340  lt_SP2NL='tr \040 \012'
6341  lt_NL2SP='tr \015\012 \040\040'
6342  ;;
6343 *) # EBCDIC based system
6344  lt_SP2NL='tr \100 \n'
6345  lt_NL2SP='tr \r\n \100\100'
6346  ;;
6347esac
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6358$as_echo_n "checking for $LD option to reload object files... " >&6; }
6359if ${lt_cv_ld_reload_flag+:} false; then :
6360  $as_echo_n "(cached) " >&6
6361else
6362  lt_cv_ld_reload_flag='-r'
6363fi
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6365$as_echo "$lt_cv_ld_reload_flag" >&6; }
6366reload_flag=$lt_cv_ld_reload_flag
6367case $reload_flag in
6368"" | " "*) ;;
6369*) reload_flag=" $reload_flag" ;;
6370esac
6371reload_cmds='$LD$reload_flag -o $output$reload_objs'
6372case $host_os in
6373  darwin*)
6374    if test "$GCC" = yes; then
6375      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6376    else
6377      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6378    fi
6379    ;;
6380esac
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390if test -n "$ac_tool_prefix"; then
6391  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6392set dummy ${ac_tool_prefix}objdump; ac_word=$2
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394$as_echo_n "checking for $ac_word... " >&6; }
6395if ${ac_cv_prog_OBJDUMP+:} false; then :
6396  $as_echo_n "(cached) " >&6
6397else
6398  if test -n "$OBJDUMP"; then
6399  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404  IFS=$as_save_IFS
6405  test -z "$as_dir" && as_dir=.
6406    for ac_exec_ext in '' $ac_executable_extensions; do
6407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410    break 2
6411  fi
6412done
6413  done
6414IFS=$as_save_IFS
6415
6416fi
6417fi
6418OBJDUMP=$ac_cv_prog_OBJDUMP
6419if test -n "$OBJDUMP"; then
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6421$as_echo "$OBJDUMP" >&6; }
6422else
6423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }
6425fi
6426
6427
6428fi
6429if test -z "$ac_cv_prog_OBJDUMP"; then
6430  ac_ct_OBJDUMP=$OBJDUMP
6431  # Extract the first word of "objdump", so it can be a program name with args.
6432set dummy objdump; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
6435if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6436  $as_echo_n "(cached) " >&6
6437else
6438  if test -n "$ac_ct_OBJDUMP"; then
6439  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  test -z "$as_dir" && as_dir=.
6446    for ac_exec_ext in '' $ac_executable_extensions; do
6447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450    break 2
6451  fi
6452done
6453  done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6459if test -n "$ac_ct_OBJDUMP"; then
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6461$as_echo "$ac_ct_OBJDUMP" >&6; }
6462else
6463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467  if test "x$ac_ct_OBJDUMP" = x; then
6468    OBJDUMP="false"
6469  else
6470    case $cross_compiling:$ac_tool_warned in
6471yes:)
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474ac_tool_warned=yes ;;
6475esac
6476    OBJDUMP=$ac_ct_OBJDUMP
6477  fi
6478else
6479  OBJDUMP="$ac_cv_prog_OBJDUMP"
6480fi
6481
6482test -z "$OBJDUMP" && OBJDUMP=objdump
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6493$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6494if ${lt_cv_deplibs_check_method+:} false; then :
6495  $as_echo_n "(cached) " >&6
6496else
6497  lt_cv_file_magic_cmd='$MAGIC_CMD'
6498lt_cv_file_magic_test_file=
6499lt_cv_deplibs_check_method='unknown'
6500# Need to set the preceding variable on all platforms that support
6501# interlibrary dependencies.
6502# 'none' -- dependencies not supported.
6503# `unknown' -- same as none, but documents that we really don't know.
6504# 'pass_all' -- all dependencies passed with no checks.
6505# 'test_compile' -- check by making test program.
6506# 'file_magic [[regex]]' -- check by looking for files in library path
6507# which responds to the $file_magic_cmd with a given extended regex.
6508# If you have `file' or equivalent on your system and you're not sure
6509# whether `pass_all' will *always* work, you probably want this one.
6510
6511case $host_os in
6512aix[4-9]*)
6513  lt_cv_deplibs_check_method=pass_all
6514  ;;
6515
6516beos*)
6517  lt_cv_deplibs_check_method=pass_all
6518  ;;
6519
6520bsdi[45]*)
6521  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6522  lt_cv_file_magic_cmd='/usr/bin/file -L'
6523  lt_cv_file_magic_test_file=/shlib/libc.so
6524  ;;
6525
6526cygwin*)
6527  # func_win32_libid is a shell function defined in ltmain.sh
6528  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6529  lt_cv_file_magic_cmd='func_win32_libid'
6530  ;;
6531
6532mingw* | pw32*)
6533  # Base MSYS/MinGW do not provide the 'file' command needed by
6534  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6535  # unless we find 'file', for example because we are cross-compiling.
6536  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6537  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6538    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6539    lt_cv_file_magic_cmd='func_win32_libid'
6540  else
6541    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6542    lt_cv_file_magic_cmd='$OBJDUMP -f'
6543  fi
6544  ;;
6545
6546cegcc*)
6547  # use the weaker test based on 'objdump'. See mingw*.
6548  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6549  lt_cv_file_magic_cmd='$OBJDUMP -f'
6550  ;;
6551
6552darwin* | rhapsody*)
6553  lt_cv_deplibs_check_method=pass_all
6554  ;;
6555
6556freebsd* | dragonfly*)
6557  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6558    case $host_cpu in
6559    i*86 )
6560      # Not sure whether the presence of OpenBSD here was a mistake.
6561      # Let's accept both of them until this is cleared up.
6562      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6563      lt_cv_file_magic_cmd=/usr/bin/file
6564      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6565      ;;
6566    esac
6567  else
6568    lt_cv_deplibs_check_method=pass_all
6569  fi
6570  ;;
6571
6572gnu*)
6573  lt_cv_deplibs_check_method=pass_all
6574  ;;
6575
6576haiku*)
6577  lt_cv_deplibs_check_method=pass_all
6578  ;;
6579
6580hpux10.20* | hpux11*)
6581  lt_cv_file_magic_cmd=/usr/bin/file
6582  case $host_cpu in
6583  ia64*)
6584    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6585    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6586    ;;
6587  hppa*64*)
6588    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]'
6589    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6590    ;;
6591  *)
6592    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6593    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6594    ;;
6595  esac
6596  ;;
6597
6598interix[3-9]*)
6599  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6600  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6601  ;;
6602
6603irix5* | irix6* | nonstopux*)
6604  case $LD in
6605  *-32|*"-32 ") libmagic=32-bit;;
6606  *-n32|*"-n32 ") libmagic=N32;;
6607  *-64|*"-64 ") libmagic=64-bit;;
6608  *) libmagic=never-match;;
6609  esac
6610  lt_cv_deplibs_check_method=pass_all
6611  ;;
6612
6613# This must be Linux ELF.
6614linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6615  lt_cv_deplibs_check_method=pass_all
6616  ;;
6617
6618netbsd*)
6619  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6620    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6621  else
6622    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6623  fi
6624  ;;
6625
6626newos6*)
6627  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6628  lt_cv_file_magic_cmd=/usr/bin/file
6629  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6630  ;;
6631
6632*nto* | *qnx*)
6633  lt_cv_deplibs_check_method=pass_all
6634  ;;
6635
6636openbsd*)
6637  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6638    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6639  else
6640    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6641  fi
6642  ;;
6643
6644osf3* | osf4* | osf5*)
6645  lt_cv_deplibs_check_method=pass_all
6646  ;;
6647
6648rdos*)
6649  lt_cv_deplibs_check_method=pass_all
6650  ;;
6651
6652solaris*)
6653  lt_cv_deplibs_check_method=pass_all
6654  ;;
6655
6656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6657  lt_cv_deplibs_check_method=pass_all
6658  ;;
6659
6660sysv4 | sysv4.3*)
6661  case $host_vendor in
6662  motorola)
6663    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]'
6664    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6665    ;;
6666  ncr)
6667    lt_cv_deplibs_check_method=pass_all
6668    ;;
6669  sequent)
6670    lt_cv_file_magic_cmd='/bin/file'
6671    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6672    ;;
6673  sni)
6674    lt_cv_file_magic_cmd='/bin/file'
6675    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6676    lt_cv_file_magic_test_file=/lib/libc.so
6677    ;;
6678  siemens)
6679    lt_cv_deplibs_check_method=pass_all
6680    ;;
6681  pc)
6682    lt_cv_deplibs_check_method=pass_all
6683    ;;
6684  esac
6685  ;;
6686
6687tpf*)
6688  lt_cv_deplibs_check_method=pass_all
6689  ;;
6690esac
6691
6692fi
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6694$as_echo "$lt_cv_deplibs_check_method" >&6; }
6695file_magic_cmd=$lt_cv_file_magic_cmd
6696deplibs_check_method=$lt_cv_deplibs_check_method
6697test -z "$deplibs_check_method" && deplibs_check_method=unknown
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710if test -n "$ac_tool_prefix"; then
6711  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6712set dummy ${ac_tool_prefix}ar; ac_word=$2
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714$as_echo_n "checking for $ac_word... " >&6; }
6715if ${ac_cv_prog_AR+:} false; then :
6716  $as_echo_n "(cached) " >&6
6717else
6718  if test -n "$AR"; then
6719  ac_cv_prog_AR="$AR" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724  IFS=$as_save_IFS
6725  test -z "$as_dir" && as_dir=.
6726    for ac_exec_ext in '' $ac_executable_extensions; do
6727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728    ac_cv_prog_AR="${ac_tool_prefix}ar"
6729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730    break 2
6731  fi
6732done
6733  done
6734IFS=$as_save_IFS
6735
6736fi
6737fi
6738AR=$ac_cv_prog_AR
6739if test -n "$AR"; then
6740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6741$as_echo "$AR" >&6; }
6742else
6743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744$as_echo "no" >&6; }
6745fi
6746
6747
6748fi
6749if test -z "$ac_cv_prog_AR"; then
6750  ac_ct_AR=$AR
6751  # Extract the first word of "ar", so it can be a program name with args.
6752set dummy ar; ac_word=$2
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754$as_echo_n "checking for $ac_word... " >&6; }
6755if ${ac_cv_prog_ac_ct_AR+:} false; then :
6756  $as_echo_n "(cached) " >&6
6757else
6758  if test -n "$ac_ct_AR"; then
6759  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764  IFS=$as_save_IFS
6765  test -z "$as_dir" && as_dir=.
6766    for ac_exec_ext in '' $ac_executable_extensions; do
6767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768    ac_cv_prog_ac_ct_AR="ar"
6769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770    break 2
6771  fi
6772done
6773  done
6774IFS=$as_save_IFS
6775
6776fi
6777fi
6778ac_ct_AR=$ac_cv_prog_ac_ct_AR
6779if test -n "$ac_ct_AR"; then
6780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6781$as_echo "$ac_ct_AR" >&6; }
6782else
6783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784$as_echo "no" >&6; }
6785fi
6786
6787  if test "x$ac_ct_AR" = x; then
6788    AR="false"
6789  else
6790    case $cross_compiling:$ac_tool_warned in
6791yes:)
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794ac_tool_warned=yes ;;
6795esac
6796    AR=$ac_ct_AR
6797  fi
6798else
6799  AR="$ac_cv_prog_AR"
6800fi
6801
6802test -z "$AR" && AR=ar
6803test -z "$AR_FLAGS" && AR_FLAGS=cru
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815if test -n "$ac_tool_prefix"; then
6816  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6817set dummy ${ac_tool_prefix}strip; ac_word=$2
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819$as_echo_n "checking for $ac_word... " >&6; }
6820if ${ac_cv_prog_STRIP+:} false; then :
6821  $as_echo_n "(cached) " >&6
6822else
6823  if test -n "$STRIP"; then
6824  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829  IFS=$as_save_IFS
6830  test -z "$as_dir" && as_dir=.
6831    for ac_exec_ext in '' $ac_executable_extensions; do
6832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835    break 2
6836  fi
6837done
6838  done
6839IFS=$as_save_IFS
6840
6841fi
6842fi
6843STRIP=$ac_cv_prog_STRIP
6844if test -n "$STRIP"; then
6845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6846$as_echo "$STRIP" >&6; }
6847else
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849$as_echo "no" >&6; }
6850fi
6851
6852
6853fi
6854if test -z "$ac_cv_prog_STRIP"; then
6855  ac_ct_STRIP=$STRIP
6856  # Extract the first word of "strip", so it can be a program name with args.
6857set dummy strip; ac_word=$2
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859$as_echo_n "checking for $ac_word... " >&6; }
6860if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6861  $as_echo_n "(cached) " >&6
6862else
6863  if test -n "$ac_ct_STRIP"; then
6864  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6865else
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869  IFS=$as_save_IFS
6870  test -z "$as_dir" && as_dir=.
6871    for ac_exec_ext in '' $ac_executable_extensions; do
6872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873    ac_cv_prog_ac_ct_STRIP="strip"
6874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875    break 2
6876  fi
6877done
6878  done
6879IFS=$as_save_IFS
6880
6881fi
6882fi
6883ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6884if test -n "$ac_ct_STRIP"; then
6885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6886$as_echo "$ac_ct_STRIP" >&6; }
6887else
6888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889$as_echo "no" >&6; }
6890fi
6891
6892  if test "x$ac_ct_STRIP" = x; then
6893    STRIP=":"
6894  else
6895    case $cross_compiling:$ac_tool_warned in
6896yes:)
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899ac_tool_warned=yes ;;
6900esac
6901    STRIP=$ac_ct_STRIP
6902  fi
6903else
6904  STRIP="$ac_cv_prog_STRIP"
6905fi
6906
6907test -z "$STRIP" && STRIP=:
6908
6909
6910
6911
6912
6913
6914if test -n "$ac_tool_prefix"; then
6915  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6916set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918$as_echo_n "checking for $ac_word... " >&6; }
6919if ${ac_cv_prog_RANLIB+:} false; then :
6920  $as_echo_n "(cached) " >&6
6921else
6922  if test -n "$RANLIB"; then
6923  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6924else
6925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928  IFS=$as_save_IFS
6929  test -z "$as_dir" && as_dir=.
6930    for ac_exec_ext in '' $ac_executable_extensions; do
6931  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6932    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934    break 2
6935  fi
6936done
6937  done
6938IFS=$as_save_IFS
6939
6940fi
6941fi
6942RANLIB=$ac_cv_prog_RANLIB
6943if test -n "$RANLIB"; then
6944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6945$as_echo "$RANLIB" >&6; }
6946else
6947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948$as_echo "no" >&6; }
6949fi
6950
6951
6952fi
6953if test -z "$ac_cv_prog_RANLIB"; then
6954  ac_ct_RANLIB=$RANLIB
6955  # Extract the first word of "ranlib", so it can be a program name with args.
6956set dummy ranlib; ac_word=$2
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958$as_echo_n "checking for $ac_word... " >&6; }
6959if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6960  $as_echo_n "(cached) " >&6
6961else
6962  if test -n "$ac_ct_RANLIB"; then
6963  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6964else
6965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966for as_dir in $PATH
6967do
6968  IFS=$as_save_IFS
6969  test -z "$as_dir" && as_dir=.
6970    for ac_exec_ext in '' $ac_executable_extensions; do
6971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972    ac_cv_prog_ac_ct_RANLIB="ranlib"
6973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974    break 2
6975  fi
6976done
6977  done
6978IFS=$as_save_IFS
6979
6980fi
6981fi
6982ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6983if test -n "$ac_ct_RANLIB"; then
6984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6985$as_echo "$ac_ct_RANLIB" >&6; }
6986else
6987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988$as_echo "no" >&6; }
6989fi
6990
6991  if test "x$ac_ct_RANLIB" = x; then
6992    RANLIB=":"
6993  else
6994    case $cross_compiling:$ac_tool_warned in
6995yes:)
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998ac_tool_warned=yes ;;
6999esac
7000    RANLIB=$ac_ct_RANLIB
7001  fi
7002else
7003  RANLIB="$ac_cv_prog_RANLIB"
7004fi
7005
7006test -z "$RANLIB" && RANLIB=:
7007
7008
7009
7010
7011
7012
7013# Determine commands to create old-style static archives.
7014old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7015old_postinstall_cmds='chmod 644 $oldlib'
7016old_postuninstall_cmds=
7017
7018if test -n "$RANLIB"; then
7019  case $host_os in
7020  openbsd*)
7021    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7022    ;;
7023  *)
7024    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7025    ;;
7026  esac
7027  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7028fi
7029
7030case $host_os in
7031  darwin*)
7032    lock_old_archive_extraction=yes ;;
7033  *)
7034    lock_old_archive_extraction=no ;;
7035esac
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075# If no C compiler was specified, use CC.
7076LTCC=${LTCC-"$CC"}
7077
7078# If no C compiler flags were specified, use CFLAGS.
7079LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7080
7081# Allow CC to be a program name with arguments.
7082compiler=$CC
7083
7084
7085# Check for command to grab the raw symbol name followed by C symbol from nm.
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7087$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7088if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091
7092# These are sane defaults that work on at least a few old systems.
7093# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7094
7095# Character class describing NM global symbol codes.
7096symcode='[BCDEGRST]'
7097
7098# Regexp to match symbols that can be accessed directly from C.
7099sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7100
7101# Define system-specific variables.
7102case $host_os in
7103aix*)
7104  symcode='[BCDT]'
7105  ;;
7106cygwin* | mingw* | pw32* | cegcc*)
7107  symcode='[ABCDGISTW]'
7108  ;;
7109hpux*)
7110  if test "$host_cpu" = ia64; then
7111    symcode='[ABCDEGRST]'
7112  fi
7113  ;;
7114irix* | nonstopux*)
7115  symcode='[BCDEGRST]'
7116  ;;
7117osf*)
7118  symcode='[BCDEGQRST]'
7119  ;;
7120solaris*)
7121  symcode='[BDRT]'
7122  ;;
7123sco3.2v5*)
7124  symcode='[DT]'
7125  ;;
7126sysv4.2uw2*)
7127  symcode='[DT]'
7128  ;;
7129sysv5* | sco5v6* | unixware* | OpenUNIX*)
7130  symcode='[ABDT]'
7131  ;;
7132sysv4)
7133  symcode='[DFNSTU]'
7134  ;;
7135esac
7136
7137# If we're using GNU nm, then use its standard symbol codes.
7138case `$NM -V 2>&1` in
7139*GNU* | *'with BFD'*)
7140  symcode='[ABCDGIRSTW]' ;;
7141esac
7142
7143# Transform an extracted symbol line into a proper C declaration.
7144# Some systems (esp. on ia64) link data and code symbols differently,
7145# so use this general approach.
7146lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7147
7148# Transform an extracted symbol line into symbol name and symbol address
7149lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7150lt_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'"
7151
7152# Handle CRLF in mingw tool chain
7153opt_cr=
7154case $build_os in
7155mingw*)
7156  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7157  ;;
7158esac
7159
7160# Try without a prefix underscore, then with it.
7161for ac_symprfx in "" "_"; do
7162
7163  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7164  symxfrm="\\1 $ac_symprfx\\2 \\2"
7165
7166  # Write the raw and C identifiers.
7167  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7168    # Fake it for dumpbin and say T for any non-static function
7169    # and D for any global variable.
7170    # Also find C++ and __fastcall symbols from MSVC++,
7171    # which start with @ or ?.
7172    lt_cv_sys_global_symbol_pipe="$AWK '"\
7173"     {last_section=section; section=\$ 3};"\
7174"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7175"     \$ 0!~/External *\|/{next};"\
7176"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7177"     {if(hide[section]) next};"\
7178"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7179"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7180"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7181"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7182"     ' prfx=^$ac_symprfx"
7183  else
7184    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7185  fi
7186
7187  # Check to see that the pipe works correctly.
7188  pipe_works=no
7189
7190  rm -f conftest*
7191  cat > conftest.$ac_ext <<_LT_EOF
7192#ifdef __cplusplus
7193extern "C" {
7194#endif
7195char nm_test_var;
7196void nm_test_func(void);
7197void nm_test_func(void){}
7198#ifdef __cplusplus
7199}
7200#endif
7201int main(){nm_test_var='a';nm_test_func();return(0);}
7202_LT_EOF
7203
7204  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7205  (eval $ac_compile) 2>&5
7206  ac_status=$?
7207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208  test $ac_status = 0; }; then
7209    # Now try to grab the symbols.
7210    nlist=conftest.nm
7211    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7212  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7213  ac_status=$?
7214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215  test $ac_status = 0; } && test -s "$nlist"; then
7216      # Try sorting and uniquifying the output.
7217      if sort "$nlist" | uniq > "$nlist"T; then
7218	mv -f "$nlist"T "$nlist"
7219      else
7220	rm -f "$nlist"T
7221      fi
7222
7223      # Make sure that we snagged all the symbols we need.
7224      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7225	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7226	  cat <<_LT_EOF > conftest.$ac_ext
7227#ifdef __cplusplus
7228extern "C" {
7229#endif
7230
7231_LT_EOF
7232	  # Now generate the symbol file.
7233	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7234
7235	  cat <<_LT_EOF >> conftest.$ac_ext
7236
7237/* The mapping between symbol names and symbols.  */
7238const struct {
7239  const char *name;
7240  void       *address;
7241}
7242lt__PROGRAM__LTX_preloaded_symbols[] =
7243{
7244  { "@PROGRAM@", (void *) 0 },
7245_LT_EOF
7246	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7247	  cat <<\_LT_EOF >> conftest.$ac_ext
7248  {0, (void *) 0}
7249};
7250
7251/* This works around a problem in FreeBSD linker */
7252#ifdef FREEBSD_WORKAROUND
7253static const void *lt_preloaded_setup() {
7254  return lt__PROGRAM__LTX_preloaded_symbols;
7255}
7256#endif
7257
7258#ifdef __cplusplus
7259}
7260#endif
7261_LT_EOF
7262	  # Now try linking the two files.
7263	  mv conftest.$ac_objext conftstm.$ac_objext
7264	  lt_save_LIBS="$LIBS"
7265	  lt_save_CFLAGS="$CFLAGS"
7266	  LIBS="conftstm.$ac_objext"
7267	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7268	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7269  (eval $ac_link) 2>&5
7270  ac_status=$?
7271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7273	    pipe_works=yes
7274	  fi
7275	  LIBS="$lt_save_LIBS"
7276	  CFLAGS="$lt_save_CFLAGS"
7277	else
7278	  echo "cannot find nm_test_func in $nlist" >&5
7279	fi
7280      else
7281	echo "cannot find nm_test_var in $nlist" >&5
7282      fi
7283    else
7284      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7285    fi
7286  else
7287    echo "$progname: failed program was:" >&5
7288    cat conftest.$ac_ext >&5
7289  fi
7290  rm -rf conftest* conftst*
7291
7292  # Do not use the global_symbol_pipe unless it works.
7293  if test "$pipe_works" = yes; then
7294    break
7295  else
7296    lt_cv_sys_global_symbol_pipe=
7297  fi
7298done
7299
7300fi
7301
7302if test -z "$lt_cv_sys_global_symbol_pipe"; then
7303  lt_cv_sys_global_symbol_to_cdecl=
7304fi
7305if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7307$as_echo "failed" >&6; }
7308else
7309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7310$as_echo "ok" >&6; }
7311fi
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334# Check whether --enable-libtool-lock was given.
7335if test "${enable_libtool_lock+set}" = set; then :
7336  enableval=$enable_libtool_lock;
7337fi
7338
7339test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7340
7341# Some flags need to be propagated to the compiler or linker for good
7342# libtool support.
7343case $host in
7344ia64-*-hpux*)
7345  # Find out which ABI we are using.
7346  echo 'int i;' > conftest.$ac_ext
7347  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7348  (eval $ac_compile) 2>&5
7349  ac_status=$?
7350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351  test $ac_status = 0; }; then
7352    case `/usr/bin/file conftest.$ac_objext` in
7353      *ELF-32*)
7354	HPUX_IA64_MODE="32"
7355	;;
7356      *ELF-64*)
7357	HPUX_IA64_MODE="64"
7358	;;
7359    esac
7360  fi
7361  rm -rf conftest*
7362  ;;
7363*-*-irix6*)
7364  # Find out which ABI we are using.
7365  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7366  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7367  (eval $ac_compile) 2>&5
7368  ac_status=$?
7369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7370  test $ac_status = 0; }; then
7371    if test "$lt_cv_prog_gnu_ld" = yes; then
7372      case `/usr/bin/file conftest.$ac_objext` in
7373	*32-bit*)
7374	  LD="${LD-ld} -melf32bsmip"
7375	  ;;
7376	*N32*)
7377	  LD="${LD-ld} -melf32bmipn32"
7378	  ;;
7379	*64-bit*)
7380	  LD="${LD-ld} -melf64bmip"
7381	;;
7382      esac
7383    else
7384      case `/usr/bin/file conftest.$ac_objext` in
7385	*32-bit*)
7386	  LD="${LD-ld} -32"
7387	  ;;
7388	*N32*)
7389	  LD="${LD-ld} -n32"
7390	  ;;
7391	*64-bit*)
7392	  LD="${LD-ld} -64"
7393	  ;;
7394      esac
7395    fi
7396  fi
7397  rm -rf conftest*
7398  ;;
7399
7400x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7401s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7402  # Find out which ABI we are using.
7403  echo 'int i;' > conftest.$ac_ext
7404  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7405  (eval $ac_compile) 2>&5
7406  ac_status=$?
7407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408  test $ac_status = 0; }; then
7409    case `/usr/bin/file conftest.o` in
7410      *32-bit*)
7411	case $host in
7412	  x86_64-*kfreebsd*-gnu)
7413	    LD="${LD-ld} -m elf_i386_fbsd"
7414	    ;;
7415	  x86_64-*linux*)
7416	    case `/usr/bin/file conftest.o` in
7417	      *x86-64*)
7418		LD="${LD-ld} -m elf32_x86_64"
7419		;;
7420	      *)
7421		LD="${LD-ld} -m elf_i386"
7422		;;
7423	    esac
7424	    ;;
7425	  powerpc64le-*linux*)
7426	    LD="${LD-ld} -m elf32lppclinux"
7427	    ;;
7428	  powerpc64-*linux*)
7429	    LD="${LD-ld} -m elf32ppclinux"
7430	    ;;
7431	  s390x-*linux*)
7432	    LD="${LD-ld} -m elf_s390"
7433	    ;;
7434	  sparc64-*linux*)
7435	    LD="${LD-ld} -m elf32_sparc"
7436	    ;;
7437	esac
7438	;;
7439      *64-bit*)
7440	case $host in
7441	  x86_64-*kfreebsd*-gnu)
7442	    LD="${LD-ld} -m elf_x86_64_fbsd"
7443	    ;;
7444	  x86_64-*linux*)
7445	    LD="${LD-ld} -m elf_x86_64"
7446	    ;;
7447	  powerpcle-*linux*)
7448	    LD="${LD-ld} -m elf64lppc"
7449	    ;;
7450	  powerpc-*linux*)
7451	    LD="${LD-ld} -m elf64ppc"
7452	    ;;
7453	  s390*-*linux*|s390*-*tpf*)
7454	    LD="${LD-ld} -m elf64_s390"
7455	    ;;
7456	  sparc*-*linux*)
7457	    LD="${LD-ld} -m elf64_sparc"
7458	    ;;
7459	esac
7460	;;
7461    esac
7462  fi
7463  rm -rf conftest*
7464  ;;
7465
7466*-*-sco3.2v5*)
7467  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7468  SAVE_CFLAGS="$CFLAGS"
7469  CFLAGS="$CFLAGS -belf"
7470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7471$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7472if ${lt_cv_cc_needs_belf+:} false; then :
7473  $as_echo_n "(cached) " >&6
7474else
7475  ac_ext=c
7476ac_cpp='$CPP $CPPFLAGS'
7477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7479ac_compiler_gnu=$ac_cv_c_compiler_gnu
7480
7481     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482/* end confdefs.h.  */
7483
7484int
7485main ()
7486{
7487
7488  ;
7489  return 0;
7490}
7491_ACEOF
7492if ac_fn_c_try_link "$LINENO"; then :
7493  lt_cv_cc_needs_belf=yes
7494else
7495  lt_cv_cc_needs_belf=no
7496fi
7497rm -f core conftest.err conftest.$ac_objext \
7498    conftest$ac_exeext conftest.$ac_ext
7499     ac_ext=c
7500ac_cpp='$CPP $CPPFLAGS'
7501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504
7505fi
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7507$as_echo "$lt_cv_cc_needs_belf" >&6; }
7508  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7509    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7510    CFLAGS="$SAVE_CFLAGS"
7511  fi
7512  ;;
7513sparc*-*solaris*)
7514  # Find out which ABI we are using.
7515  echo 'int i;' > conftest.$ac_ext
7516  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7517  (eval $ac_compile) 2>&5
7518  ac_status=$?
7519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7520  test $ac_status = 0; }; then
7521    case `/usr/bin/file conftest.o` in
7522    *64-bit*)
7523      case $lt_cv_prog_gnu_ld in
7524      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7525      *)
7526	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7527	  LD="${LD-ld} -64"
7528	fi
7529	;;
7530      esac
7531      ;;
7532    esac
7533  fi
7534  rm -rf conftest*
7535  ;;
7536esac
7537
7538need_locks="$enable_libtool_lock"
7539
7540
7541  case $host_os in
7542    rhapsody* | darwin*)
7543    if test -n "$ac_tool_prefix"; then
7544  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7545set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547$as_echo_n "checking for $ac_word... " >&6; }
7548if ${ac_cv_prog_DSYMUTIL+:} false; then :
7549  $as_echo_n "(cached) " >&6
7550else
7551  if test -n "$DSYMUTIL"; then
7552  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7553else
7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555for as_dir in $PATH
7556do
7557  IFS=$as_save_IFS
7558  test -z "$as_dir" && as_dir=.
7559    for ac_exec_ext in '' $ac_executable_extensions; do
7560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563    break 2
7564  fi
7565done
7566  done
7567IFS=$as_save_IFS
7568
7569fi
7570fi
7571DSYMUTIL=$ac_cv_prog_DSYMUTIL
7572if test -n "$DSYMUTIL"; then
7573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7574$as_echo "$DSYMUTIL" >&6; }
7575else
7576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577$as_echo "no" >&6; }
7578fi
7579
7580
7581fi
7582if test -z "$ac_cv_prog_DSYMUTIL"; then
7583  ac_ct_DSYMUTIL=$DSYMUTIL
7584  # Extract the first word of "dsymutil", so it can be a program name with args.
7585set dummy dsymutil; ac_word=$2
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587$as_echo_n "checking for $ac_word... " >&6; }
7588if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7589  $as_echo_n "(cached) " >&6
7590else
7591  if test -n "$ac_ct_DSYMUTIL"; then
7592  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7593else
7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597  IFS=$as_save_IFS
7598  test -z "$as_dir" && as_dir=.
7599    for ac_exec_ext in '' $ac_executable_extensions; do
7600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603    break 2
7604  fi
7605done
7606  done
7607IFS=$as_save_IFS
7608
7609fi
7610fi
7611ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7612if test -n "$ac_ct_DSYMUTIL"; then
7613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7614$as_echo "$ac_ct_DSYMUTIL" >&6; }
7615else
7616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617$as_echo "no" >&6; }
7618fi
7619
7620  if test "x$ac_ct_DSYMUTIL" = x; then
7621    DSYMUTIL=":"
7622  else
7623    case $cross_compiling:$ac_tool_warned in
7624yes:)
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627ac_tool_warned=yes ;;
7628esac
7629    DSYMUTIL=$ac_ct_DSYMUTIL
7630  fi
7631else
7632  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7633fi
7634
7635    if test -n "$ac_tool_prefix"; then
7636  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7637set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639$as_echo_n "checking for $ac_word... " >&6; }
7640if ${ac_cv_prog_NMEDIT+:} false; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  if test -n "$NMEDIT"; then
7644  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7645else
7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649  IFS=$as_save_IFS
7650  test -z "$as_dir" && as_dir=.
7651    for ac_exec_ext in '' $ac_executable_extensions; do
7652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655    break 2
7656  fi
7657done
7658  done
7659IFS=$as_save_IFS
7660
7661fi
7662fi
7663NMEDIT=$ac_cv_prog_NMEDIT
7664if test -n "$NMEDIT"; then
7665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7666$as_echo "$NMEDIT" >&6; }
7667else
7668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669$as_echo "no" >&6; }
7670fi
7671
7672
7673fi
7674if test -z "$ac_cv_prog_NMEDIT"; then
7675  ac_ct_NMEDIT=$NMEDIT
7676  # Extract the first word of "nmedit", so it can be a program name with args.
7677set dummy nmedit; ac_word=$2
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679$as_echo_n "checking for $ac_word... " >&6; }
7680if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7681  $as_echo_n "(cached) " >&6
7682else
7683  if test -n "$ac_ct_NMEDIT"; then
7684  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7685else
7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689  IFS=$as_save_IFS
7690  test -z "$as_dir" && as_dir=.
7691    for ac_exec_ext in '' $ac_executable_extensions; do
7692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695    break 2
7696  fi
7697done
7698  done
7699IFS=$as_save_IFS
7700
7701fi
7702fi
7703ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7704if test -n "$ac_ct_NMEDIT"; then
7705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7706$as_echo "$ac_ct_NMEDIT" >&6; }
7707else
7708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709$as_echo "no" >&6; }
7710fi
7711
7712  if test "x$ac_ct_NMEDIT" = x; then
7713    NMEDIT=":"
7714  else
7715    case $cross_compiling:$ac_tool_warned in
7716yes:)
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719ac_tool_warned=yes ;;
7720esac
7721    NMEDIT=$ac_ct_NMEDIT
7722  fi
7723else
7724  NMEDIT="$ac_cv_prog_NMEDIT"
7725fi
7726
7727    if test -n "$ac_tool_prefix"; then
7728  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7729set dummy ${ac_tool_prefix}lipo; ac_word=$2
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731$as_echo_n "checking for $ac_word... " >&6; }
7732if ${ac_cv_prog_LIPO+:} false; then :
7733  $as_echo_n "(cached) " >&6
7734else
7735  if test -n "$LIPO"; then
7736  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741  IFS=$as_save_IFS
7742  test -z "$as_dir" && as_dir=.
7743    for ac_exec_ext in '' $ac_executable_extensions; do
7744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747    break 2
7748  fi
7749done
7750  done
7751IFS=$as_save_IFS
7752
7753fi
7754fi
7755LIPO=$ac_cv_prog_LIPO
7756if test -n "$LIPO"; then
7757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7758$as_echo "$LIPO" >&6; }
7759else
7760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
7762fi
7763
7764
7765fi
7766if test -z "$ac_cv_prog_LIPO"; then
7767  ac_ct_LIPO=$LIPO
7768  # Extract the first word of "lipo", so it can be a program name with args.
7769set dummy lipo; ac_word=$2
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
7772if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7773  $as_echo_n "(cached) " >&6
7774else
7775  if test -n "$ac_ct_LIPO"; then
7776  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781  IFS=$as_save_IFS
7782  test -z "$as_dir" && as_dir=.
7783    for ac_exec_ext in '' $ac_executable_extensions; do
7784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785    ac_cv_prog_ac_ct_LIPO="lipo"
7786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787    break 2
7788  fi
7789done
7790  done
7791IFS=$as_save_IFS
7792
7793fi
7794fi
7795ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7796if test -n "$ac_ct_LIPO"; then
7797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7798$as_echo "$ac_ct_LIPO" >&6; }
7799else
7800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802fi
7803
7804  if test "x$ac_ct_LIPO" = x; then
7805    LIPO=":"
7806  else
7807    case $cross_compiling:$ac_tool_warned in
7808yes:)
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811ac_tool_warned=yes ;;
7812esac
7813    LIPO=$ac_ct_LIPO
7814  fi
7815else
7816  LIPO="$ac_cv_prog_LIPO"
7817fi
7818
7819    if test -n "$ac_tool_prefix"; then
7820  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7821set dummy ${ac_tool_prefix}otool; ac_word=$2
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
7824if ${ac_cv_prog_OTOOL+:} false; then :
7825  $as_echo_n "(cached) " >&6
7826else
7827  if test -n "$OTOOL"; then
7828  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7829else
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833  IFS=$as_save_IFS
7834  test -z "$as_dir" && as_dir=.
7835    for ac_exec_ext in '' $ac_executable_extensions; do
7836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839    break 2
7840  fi
7841done
7842  done
7843IFS=$as_save_IFS
7844
7845fi
7846fi
7847OTOOL=$ac_cv_prog_OTOOL
7848if test -n "$OTOOL"; then
7849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7850$as_echo "$OTOOL" >&6; }
7851else
7852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
7854fi
7855
7856
7857fi
7858if test -z "$ac_cv_prog_OTOOL"; then
7859  ac_ct_OTOOL=$OTOOL
7860  # Extract the first word of "otool", so it can be a program name with args.
7861set dummy otool; ac_word=$2
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863$as_echo_n "checking for $ac_word... " >&6; }
7864if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7865  $as_echo_n "(cached) " >&6
7866else
7867  if test -n "$ac_ct_OTOOL"; then
7868  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7869else
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873  IFS=$as_save_IFS
7874  test -z "$as_dir" && as_dir=.
7875    for ac_exec_ext in '' $ac_executable_extensions; do
7876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877    ac_cv_prog_ac_ct_OTOOL="otool"
7878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879    break 2
7880  fi
7881done
7882  done
7883IFS=$as_save_IFS
7884
7885fi
7886fi
7887ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7888if test -n "$ac_ct_OTOOL"; then
7889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7890$as_echo "$ac_ct_OTOOL" >&6; }
7891else
7892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893$as_echo "no" >&6; }
7894fi
7895
7896  if test "x$ac_ct_OTOOL" = x; then
7897    OTOOL=":"
7898  else
7899    case $cross_compiling:$ac_tool_warned in
7900yes:)
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903ac_tool_warned=yes ;;
7904esac
7905    OTOOL=$ac_ct_OTOOL
7906  fi
7907else
7908  OTOOL="$ac_cv_prog_OTOOL"
7909fi
7910
7911    if test -n "$ac_tool_prefix"; then
7912  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7913set dummy ${ac_tool_prefix}otool64; ac_word=$2
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
7916if ${ac_cv_prog_OTOOL64+:} false; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  if test -n "$OTOOL64"; then
7920  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925  IFS=$as_save_IFS
7926  test -z "$as_dir" && as_dir=.
7927    for ac_exec_ext in '' $ac_executable_extensions; do
7928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931    break 2
7932  fi
7933done
7934  done
7935IFS=$as_save_IFS
7936
7937fi
7938fi
7939OTOOL64=$ac_cv_prog_OTOOL64
7940if test -n "$OTOOL64"; then
7941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7942$as_echo "$OTOOL64" >&6; }
7943else
7944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
7946fi
7947
7948
7949fi
7950if test -z "$ac_cv_prog_OTOOL64"; then
7951  ac_ct_OTOOL64=$OTOOL64
7952  # Extract the first word of "otool64", so it can be a program name with args.
7953set dummy otool64; ac_word=$2
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
7956if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  if test -n "$ac_ct_OTOOL64"; then
7960  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7961else
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965  IFS=$as_save_IFS
7966  test -z "$as_dir" && as_dir=.
7967    for ac_exec_ext in '' $ac_executable_extensions; do
7968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969    ac_cv_prog_ac_ct_OTOOL64="otool64"
7970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971    break 2
7972  fi
7973done
7974  done
7975IFS=$as_save_IFS
7976
7977fi
7978fi
7979ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7980if test -n "$ac_ct_OTOOL64"; then
7981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7982$as_echo "$ac_ct_OTOOL64" >&6; }
7983else
7984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
7986fi
7987
7988  if test "x$ac_ct_OTOOL64" = x; then
7989    OTOOL64=":"
7990  else
7991    case $cross_compiling:$ac_tool_warned in
7992yes:)
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995ac_tool_warned=yes ;;
7996esac
7997    OTOOL64=$ac_ct_OTOOL64
7998  fi
7999else
8000  OTOOL64="$ac_cv_prog_OTOOL64"
8001fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8030$as_echo_n "checking for -single_module linker flag... " >&6; }
8031if ${lt_cv_apple_cc_single_mod+:} false; then :
8032  $as_echo_n "(cached) " >&6
8033else
8034  lt_cv_apple_cc_single_mod=no
8035      if test -z "${LT_MULTI_MODULE}"; then
8036	# By default we will add the -single_module flag. You can override
8037	# by either setting the environment variable LT_MULTI_MODULE
8038	# non-empty at configure time, or by adding -multi_module to the
8039	# link flags.
8040	rm -rf libconftest.dylib*
8041	echo "int foo(void){return 1;}" > conftest.c
8042	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8043-dynamiclib -Wl,-single_module conftest.c" >&5
8044	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8045	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8046        _lt_result=$?
8047	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8048	  lt_cv_apple_cc_single_mod=yes
8049	else
8050	  cat conftest.err >&5
8051	fi
8052	rm -rf libconftest.dylib*
8053	rm -f conftest.*
8054      fi
8055fi
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8057$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8059$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8060if ${lt_cv_ld_exported_symbols_list+:} false; then :
8061  $as_echo_n "(cached) " >&6
8062else
8063  lt_cv_ld_exported_symbols_list=no
8064      save_LDFLAGS=$LDFLAGS
8065      echo "_main" > conftest.sym
8066      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8067      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068/* end confdefs.h.  */
8069
8070int
8071main ()
8072{
8073
8074  ;
8075  return 0;
8076}
8077_ACEOF
8078if ac_fn_c_try_link "$LINENO"; then :
8079  lt_cv_ld_exported_symbols_list=yes
8080else
8081  lt_cv_ld_exported_symbols_list=no
8082fi
8083rm -f core conftest.err conftest.$ac_objext \
8084    conftest$ac_exeext conftest.$ac_ext
8085	LDFLAGS="$save_LDFLAGS"
8086
8087fi
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8089$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8090    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8091$as_echo_n "checking for -force_load linker flag... " >&6; }
8092if ${lt_cv_ld_force_load+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  lt_cv_ld_force_load=no
8096      cat > conftest.c << _LT_EOF
8097int forced_loaded() { return 2;}
8098_LT_EOF
8099      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8100      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8101      echo "$AR cru libconftest.a conftest.o" >&5
8102      $AR cru libconftest.a conftest.o 2>&5
8103      cat > conftest.c << _LT_EOF
8104int main() { return 0;}
8105_LT_EOF
8106      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8107      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8108      _lt_result=$?
8109      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8110	lt_cv_ld_force_load=yes
8111      else
8112	cat conftest.err >&5
8113      fi
8114        rm -f conftest.err libconftest.a conftest conftest.c
8115        rm -rf conftest.dSYM
8116
8117fi
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8119$as_echo "$lt_cv_ld_force_load" >&6; }
8120    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8121    # build without first building modern cctools / linker.
8122    case $host_cpu-$host_os in
8123    *-rhapsody* | *-darwin1.[012])
8124      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8125    *-darwin1.*)
8126      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8127    *-darwin*)
8128      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8129      # deployment target is forced to an earlier version.
8130      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8131	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8132	  ;;
8133	10.[012][,.]*)
8134	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8135	  ;;
8136	*)
8137	  ;;
8138     esac
8139    ;;
8140  esac
8141    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8142      _lt_dar_single_mod='$single_module'
8143    fi
8144    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8145      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8146    else
8147      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8148    fi
8149    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8150      _lt_dsymutil='~$DSYMUTIL $lib || :'
8151    else
8152      _lt_dsymutil=
8153    fi
8154    ;;
8155  esac
8156
8157for ac_header in dlfcn.h
8158do :
8159  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8160"
8161if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8162  cat >>confdefs.h <<_ACEOF
8163#define HAVE_DLFCN_H 1
8164_ACEOF
8165
8166fi
8167
8168done
8169
8170
8171
8172
8173
8174# Set options
8175enable_dlopen=yes
8176
8177
8178
8179
8180  enable_win32_dll=no
8181
8182
8183            # Check whether --enable-shared was given.
8184if test "${enable_shared+set}" = set; then :
8185  enableval=$enable_shared; p=${PACKAGE-default}
8186    case $enableval in
8187    yes) enable_shared=yes ;;
8188    no) enable_shared=no ;;
8189    *)
8190      enable_shared=no
8191      # Look at the argument we got.  We use all the common list separators.
8192      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8193      for pkg in $enableval; do
8194	IFS="$lt_save_ifs"
8195	if test "X$pkg" = "X$p"; then
8196	  enable_shared=yes
8197	fi
8198      done
8199      IFS="$lt_save_ifs"
8200      ;;
8201    esac
8202else
8203  enable_shared=yes
8204fi
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214  # Check whether --enable-static was given.
8215if test "${enable_static+set}" = set; then :
8216  enableval=$enable_static; p=${PACKAGE-default}
8217    case $enableval in
8218    yes) enable_static=yes ;;
8219    no) enable_static=no ;;
8220    *)
8221     enable_static=no
8222      # Look at the argument we got.  We use all the common list separators.
8223      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8224      for pkg in $enableval; do
8225	IFS="$lt_save_ifs"
8226	if test "X$pkg" = "X$p"; then
8227	  enable_static=yes
8228	fi
8229      done
8230      IFS="$lt_save_ifs"
8231      ;;
8232    esac
8233else
8234  enable_static=yes
8235fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246# Check whether --with-pic was given.
8247if test "${with_pic+set}" = set; then :
8248  withval=$with_pic; pic_mode="$withval"
8249else
8250  pic_mode=default
8251fi
8252
8253
8254test -z "$pic_mode" && pic_mode=default
8255
8256
8257
8258
8259
8260
8261
8262  # Check whether --enable-fast-install was given.
8263if test "${enable_fast_install+set}" = set; then :
8264  enableval=$enable_fast_install; p=${PACKAGE-default}
8265    case $enableval in
8266    yes) enable_fast_install=yes ;;
8267    no) enable_fast_install=no ;;
8268    *)
8269      enable_fast_install=no
8270      # Look at the argument we got.  We use all the common list separators.
8271      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8272      for pkg in $enableval; do
8273	IFS="$lt_save_ifs"
8274	if test "X$pkg" = "X$p"; then
8275	  enable_fast_install=yes
8276	fi
8277      done
8278      IFS="$lt_save_ifs"
8279      ;;
8280    esac
8281else
8282  enable_fast_install=yes
8283fi
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295# This can be used to rebuild libtool when needed
8296LIBTOOL_DEPS="$ltmain"
8297
8298# Always use our own libtool.
8299LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326test -z "$LN_S" && LN_S="ln -s"
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341if test -n "${ZSH_VERSION+set}" ; then
8342   setopt NO_GLOB_SUBST
8343fi
8344
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8346$as_echo_n "checking for objdir... " >&6; }
8347if ${lt_cv_objdir+:} false; then :
8348  $as_echo_n "(cached) " >&6
8349else
8350  rm -f .libs 2>/dev/null
8351mkdir .libs 2>/dev/null
8352if test -d .libs; then
8353  lt_cv_objdir=.libs
8354else
8355  # MS-DOS does not allow filenames that begin with a dot.
8356  lt_cv_objdir=_libs
8357fi
8358rmdir .libs 2>/dev/null
8359fi
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8361$as_echo "$lt_cv_objdir" >&6; }
8362objdir=$lt_cv_objdir
8363
8364
8365
8366
8367
8368cat >>confdefs.h <<_ACEOF
8369#define LT_OBJDIR "$lt_cv_objdir/"
8370_ACEOF
8371
8372
8373
8374
8375case $host_os in
8376aix3*)
8377  # AIX sometimes has problems with the GCC collect2 program.  For some
8378  # reason, if we set the COLLECT_NAMES environment variable, the problems
8379  # vanish in a puff of smoke.
8380  if test "X${COLLECT_NAMES+set}" != Xset; then
8381    COLLECT_NAMES=
8382    export COLLECT_NAMES
8383  fi
8384  ;;
8385esac
8386
8387# Global variables:
8388ofile=libtool
8389can_build_shared=yes
8390
8391# All known linkers require a `.a' archive for static linking (except MSVC,
8392# which needs '.lib').
8393libext=a
8394
8395with_gnu_ld="$lt_cv_prog_gnu_ld"
8396
8397old_CC="$CC"
8398old_CFLAGS="$CFLAGS"
8399
8400# Set sane defaults for various variables
8401test -z "$CC" && CC=cc
8402test -z "$LTCC" && LTCC=$CC
8403test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8404test -z "$LD" && LD=ld
8405test -z "$ac_objext" && ac_objext=o
8406
8407for cc_temp in $compiler""; do
8408  case $cc_temp in
8409    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8410    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8411    \-*) ;;
8412    *) break;;
8413  esac
8414done
8415cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8416
8417
8418# Only perform the check for file, if the check method requires it
8419test -z "$MAGIC_CMD" && MAGIC_CMD=file
8420case $deplibs_check_method in
8421file_magic*)
8422  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8424$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8425if ${lt_cv_path_MAGIC_CMD+:} false; then :
8426  $as_echo_n "(cached) " >&6
8427else
8428  case $MAGIC_CMD in
8429[\\/*] |  ?:[\\/]*)
8430  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8431  ;;
8432*)
8433  lt_save_MAGIC_CMD="$MAGIC_CMD"
8434  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8435  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8436  for ac_dir in $ac_dummy; do
8437    IFS="$lt_save_ifs"
8438    test -z "$ac_dir" && ac_dir=.
8439    if test -f $ac_dir/${ac_tool_prefix}file; then
8440      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8441      if test -n "$file_magic_test_file"; then
8442	case $deplibs_check_method in
8443	"file_magic "*)
8444	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8445	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8446	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8447	    $EGREP "$file_magic_regex" > /dev/null; then
8448	    :
8449	  else
8450	    cat <<_LT_EOF 1>&2
8451
8452*** Warning: the command libtool uses to detect shared libraries,
8453*** $file_magic_cmd, produces output that libtool cannot recognize.
8454*** The result is that libtool may fail to recognize shared libraries
8455*** as such.  This will affect the creation of libtool libraries that
8456*** depend on shared libraries, but programs linked with such libtool
8457*** libraries will work regardless of this problem.  Nevertheless, you
8458*** may want to report the problem to your system manager and/or to
8459*** bug-libtool@gnu.org
8460
8461_LT_EOF
8462	  fi ;;
8463	esac
8464      fi
8465      break
8466    fi
8467  done
8468  IFS="$lt_save_ifs"
8469  MAGIC_CMD="$lt_save_MAGIC_CMD"
8470  ;;
8471esac
8472fi
8473
8474MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8475if test -n "$MAGIC_CMD"; then
8476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8477$as_echo "$MAGIC_CMD" >&6; }
8478else
8479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480$as_echo "no" >&6; }
8481fi
8482
8483
8484
8485
8486
8487if test -z "$lt_cv_path_MAGIC_CMD"; then
8488  if test -n "$ac_tool_prefix"; then
8489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8490$as_echo_n "checking for file... " >&6; }
8491if ${lt_cv_path_MAGIC_CMD+:} false; then :
8492  $as_echo_n "(cached) " >&6
8493else
8494  case $MAGIC_CMD in
8495[\\/*] |  ?:[\\/]*)
8496  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8497  ;;
8498*)
8499  lt_save_MAGIC_CMD="$MAGIC_CMD"
8500  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8501  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8502  for ac_dir in $ac_dummy; do
8503    IFS="$lt_save_ifs"
8504    test -z "$ac_dir" && ac_dir=.
8505    if test -f $ac_dir/file; then
8506      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8507      if test -n "$file_magic_test_file"; then
8508	case $deplibs_check_method in
8509	"file_magic "*)
8510	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8511	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8512	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8513	    $EGREP "$file_magic_regex" > /dev/null; then
8514	    :
8515	  else
8516	    cat <<_LT_EOF 1>&2
8517
8518*** Warning: the command libtool uses to detect shared libraries,
8519*** $file_magic_cmd, produces output that libtool cannot recognize.
8520*** The result is that libtool may fail to recognize shared libraries
8521*** as such.  This will affect the creation of libtool libraries that
8522*** depend on shared libraries, but programs linked with such libtool
8523*** libraries will work regardless of this problem.  Nevertheless, you
8524*** may want to report the problem to your system manager and/or to
8525*** bug-libtool@gnu.org
8526
8527_LT_EOF
8528	  fi ;;
8529	esac
8530      fi
8531      break
8532    fi
8533  done
8534  IFS="$lt_save_ifs"
8535  MAGIC_CMD="$lt_save_MAGIC_CMD"
8536  ;;
8537esac
8538fi
8539
8540MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8541if test -n "$MAGIC_CMD"; then
8542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8543$as_echo "$MAGIC_CMD" >&6; }
8544else
8545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546$as_echo "no" >&6; }
8547fi
8548
8549
8550  else
8551    MAGIC_CMD=:
8552  fi
8553fi
8554
8555  fi
8556  ;;
8557esac
8558
8559# Use C for the default configuration in the libtool script
8560
8561lt_save_CC="$CC"
8562ac_ext=c
8563ac_cpp='$CPP $CPPFLAGS'
8564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8566ac_compiler_gnu=$ac_cv_c_compiler_gnu
8567
8568
8569# Source file extension for C test sources.
8570ac_ext=c
8571
8572# Object file extension for compiled C test sources.
8573objext=o
8574objext=$objext
8575
8576# Code to be used in simple compile tests
8577lt_simple_compile_test_code="int some_variable = 0;"
8578
8579# Code to be used in simple link tests
8580lt_simple_link_test_code='int main(){return(0);}'
8581
8582
8583
8584
8585
8586
8587
8588# If no C compiler was specified, use CC.
8589LTCC=${LTCC-"$CC"}
8590
8591# If no C compiler flags were specified, use CFLAGS.
8592LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8593
8594# Allow CC to be a program name with arguments.
8595compiler=$CC
8596
8597# Save the default compiler, since it gets overwritten when the other
8598# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8599compiler_DEFAULT=$CC
8600
8601# save warnings/boilerplate of simple test code
8602ac_outfile=conftest.$ac_objext
8603echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8604eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8605_lt_compiler_boilerplate=`cat conftest.err`
8606$RM conftest*
8607
8608ac_outfile=conftest.$ac_objext
8609echo "$lt_simple_link_test_code" >conftest.$ac_ext
8610eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8611_lt_linker_boilerplate=`cat conftest.err`
8612$RM -r conftest*
8613
8614
8615## CAVEAT EMPTOR:
8616## There is no encapsulation within the following macros, do not change
8617## the running order or otherwise move them around unless you know exactly
8618## what you are doing...
8619if test -n "$compiler"; then
8620
8621lt_prog_compiler_no_builtin_flag=
8622
8623if test "$GCC" = yes; then
8624  case $cc_basename in
8625  nvcc*)
8626    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8627  *)
8628    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8629  esac
8630
8631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8632$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8633if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8634  $as_echo_n "(cached) " >&6
8635else
8636  lt_cv_prog_compiler_rtti_exceptions=no
8637   ac_outfile=conftest.$ac_objext
8638   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8639   lt_compiler_flag="-fno-rtti -fno-exceptions"
8640   # Insert the option either (1) after the last *FLAGS variable, or
8641   # (2) before a word containing "conftest.", or (3) at the end.
8642   # Note that $ac_compile itself does not contain backslashes and begins
8643   # with a dollar sign (not a hyphen), so the echo should work correctly.
8644   # The option is referenced via a variable to avoid confusing sed.
8645   lt_compile=`echo "$ac_compile" | $SED \
8646   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8647   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8648   -e 's:$: $lt_compiler_flag:'`
8649   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8650   (eval "$lt_compile" 2>conftest.err)
8651   ac_status=$?
8652   cat conftest.err >&5
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   if (exit $ac_status) && test -s "$ac_outfile"; then
8655     # The compiler can only warn and ignore the option if not recognized
8656     # So say no if there are warnings other than the usual output.
8657     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8658     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8659     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8660       lt_cv_prog_compiler_rtti_exceptions=yes
8661     fi
8662   fi
8663   $RM conftest*
8664
8665fi
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8667$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8668
8669if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8670    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8671else
8672    :
8673fi
8674
8675fi
8676
8677
8678
8679
8680
8681
8682  lt_prog_compiler_wl=
8683lt_prog_compiler_pic=
8684lt_prog_compiler_static=
8685
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8687$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8688
8689  if test "$GCC" = yes; then
8690    lt_prog_compiler_wl='-Wl,'
8691    lt_prog_compiler_static='-static'
8692
8693    case $host_os in
8694      aix*)
8695      # All AIX code is PIC.
8696      if test "$host_cpu" = ia64; then
8697	# AIX 5 now supports IA64 processor
8698	lt_prog_compiler_static='-Bstatic'
8699      fi
8700      lt_prog_compiler_pic='-fPIC'
8701      ;;
8702
8703    amigaos*)
8704      case $host_cpu in
8705      powerpc)
8706            # see comment about AmigaOS4 .so support
8707            lt_prog_compiler_pic='-fPIC'
8708        ;;
8709      m68k)
8710            # FIXME: we need at least 68020 code to build shared libraries, but
8711            # adding the `-m68020' flag to GCC prevents building anything better,
8712            # like `-m68040'.
8713            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8714        ;;
8715      esac
8716      ;;
8717
8718    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8719      # PIC is the default for these OSes.
8720      ;;
8721
8722    mingw* | cygwin* | pw32* | os2* | cegcc*)
8723      # This hack is so that the source file can tell whether it is being
8724      # built for inclusion in a dll (and should export symbols for example).
8725      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8726      # (--disable-auto-import) libraries
8727      lt_prog_compiler_pic='-DDLL_EXPORT'
8728      ;;
8729
8730    darwin* | rhapsody*)
8731      # PIC is the default on this platform
8732      # Common symbols not allowed in MH_DYLIB files
8733      lt_prog_compiler_pic='-fno-common'
8734      ;;
8735
8736    haiku*)
8737      # PIC is the default for Haiku.
8738      # The "-static" flag exists, but is broken.
8739      lt_prog_compiler_static=
8740      ;;
8741
8742    hpux*)
8743      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8744      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8745      # sets the default TLS model and affects inlining.
8746      case $host_cpu in
8747      hppa*64*)
8748	# +Z the default
8749	;;
8750      *)
8751	lt_prog_compiler_pic='-fPIC'
8752	;;
8753      esac
8754      ;;
8755
8756    interix[3-9]*)
8757      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8758      # Instead, we relocate shared libraries at runtime.
8759      ;;
8760
8761    msdosdjgpp*)
8762      # Just because we use GCC doesn't mean we suddenly get shared libraries
8763      # on systems that don't support them.
8764      lt_prog_compiler_can_build_shared=no
8765      enable_shared=no
8766      ;;
8767
8768    *nto* | *qnx*)
8769      # QNX uses GNU C++, but need to define -shared option too, otherwise
8770      # it will coredump.
8771      lt_prog_compiler_pic='-fPIC -shared'
8772      ;;
8773
8774    sysv4*MP*)
8775      if test -d /usr/nec; then
8776	lt_prog_compiler_pic=-Kconform_pic
8777      fi
8778      ;;
8779
8780    *)
8781      lt_prog_compiler_pic='-fPIC'
8782      ;;
8783    esac
8784
8785    case $cc_basename in
8786    nvcc*) # Cuda Compiler Driver 2.2
8787      lt_prog_compiler_wl='-Xlinker '
8788      lt_prog_compiler_pic='-Xcompiler -fPIC'
8789      ;;
8790    esac
8791  else
8792    # PORTME Check for flag to pass linker flags through the system compiler.
8793    case $host_os in
8794    aix*)
8795      lt_prog_compiler_wl='-Wl,'
8796      if test "$host_cpu" = ia64; then
8797	# AIX 5 now supports IA64 processor
8798	lt_prog_compiler_static='-Bstatic'
8799      else
8800	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8801      fi
8802      ;;
8803
8804    mingw* | cygwin* | pw32* | os2* | cegcc*)
8805      # This hack is so that the source file can tell whether it is being
8806      # built for inclusion in a dll (and should export symbols for example).
8807      lt_prog_compiler_pic='-DDLL_EXPORT'
8808      ;;
8809
8810    hpux9* | hpux10* | hpux11*)
8811      lt_prog_compiler_wl='-Wl,'
8812      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8813      # not for PA HP-UX.
8814      case $host_cpu in
8815      hppa*64*|ia64*)
8816	# +Z the default
8817	;;
8818      *)
8819	lt_prog_compiler_pic='+Z'
8820	;;
8821      esac
8822      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8823      lt_prog_compiler_static='${wl}-a ${wl}archive'
8824      ;;
8825
8826    irix5* | irix6* | nonstopux*)
8827      lt_prog_compiler_wl='-Wl,'
8828      # PIC (with -KPIC) is the default.
8829      lt_prog_compiler_static='-non_shared'
8830      ;;
8831
8832    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8833      case $cc_basename in
8834      # old Intel for x86_64 which still supported -KPIC.
8835      ecc*)
8836	lt_prog_compiler_wl='-Wl,'
8837	lt_prog_compiler_pic='-KPIC'
8838	lt_prog_compiler_static='-static'
8839        ;;
8840      # icc used to be incompatible with GCC.
8841      # ICC 10 doesn't accept -KPIC any more.
8842      icc* | ifort*)
8843	lt_prog_compiler_wl='-Wl,'
8844	lt_prog_compiler_pic='-fPIC'
8845	lt_prog_compiler_static='-static'
8846        ;;
8847      # Lahey Fortran 8.1.
8848      lf95*)
8849	lt_prog_compiler_wl='-Wl,'
8850	lt_prog_compiler_pic='--shared'
8851	lt_prog_compiler_static='--static'
8852	;;
8853      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8854        # Portland Group compilers (*not* the Pentium gcc compiler,
8855	# which looks to be a dead project)
8856	lt_prog_compiler_wl='-Wl,'
8857	lt_prog_compiler_pic='-fpic'
8858	lt_prog_compiler_static='-Bstatic'
8859        ;;
8860      ccc*)
8861        lt_prog_compiler_wl='-Wl,'
8862        # All Alpha code is PIC.
8863        lt_prog_compiler_static='-non_shared'
8864        ;;
8865      xl* | bgxl* | bgf* | mpixl*)
8866	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8867	lt_prog_compiler_wl='-Wl,'
8868	lt_prog_compiler_pic='-qpic'
8869	lt_prog_compiler_static='-qstaticlink'
8870	;;
8871      *)
8872	case `$CC -V 2>&1 | sed 5q` in
8873	*Sun\ F* | *Sun*Fortran*)
8874	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8875	  lt_prog_compiler_pic='-KPIC'
8876	  lt_prog_compiler_static='-Bstatic'
8877	  lt_prog_compiler_wl=''
8878	  ;;
8879	*Sun\ C*)
8880	  # Sun C 5.9
8881	  lt_prog_compiler_pic='-KPIC'
8882	  lt_prog_compiler_static='-Bstatic'
8883	  lt_prog_compiler_wl='-Wl,'
8884	  ;;
8885	esac
8886	;;
8887      esac
8888      ;;
8889
8890    newsos6)
8891      lt_prog_compiler_pic='-KPIC'
8892      lt_prog_compiler_static='-Bstatic'
8893      ;;
8894
8895    *nto* | *qnx*)
8896      # QNX uses GNU C++, but need to define -shared option too, otherwise
8897      # it will coredump.
8898      lt_prog_compiler_pic='-fPIC -shared'
8899      ;;
8900
8901    osf3* | osf4* | osf5*)
8902      lt_prog_compiler_wl='-Wl,'
8903      # All OSF/1 code is PIC.
8904      lt_prog_compiler_static='-non_shared'
8905      ;;
8906
8907    rdos*)
8908      lt_prog_compiler_static='-non_shared'
8909      ;;
8910
8911    solaris*)
8912      lt_prog_compiler_pic='-KPIC'
8913      lt_prog_compiler_static='-Bstatic'
8914      case $cc_basename in
8915      f77* | f90* | f95*)
8916	lt_prog_compiler_wl='-Qoption ld ';;
8917      *)
8918	lt_prog_compiler_wl='-Wl,';;
8919      esac
8920      ;;
8921
8922    sunos4*)
8923      lt_prog_compiler_wl='-Qoption ld '
8924      lt_prog_compiler_pic='-PIC'
8925      lt_prog_compiler_static='-Bstatic'
8926      ;;
8927
8928    sysv4 | sysv4.2uw2* | sysv4.3*)
8929      lt_prog_compiler_wl='-Wl,'
8930      lt_prog_compiler_pic='-KPIC'
8931      lt_prog_compiler_static='-Bstatic'
8932      ;;
8933
8934    sysv4*MP*)
8935      if test -d /usr/nec ;then
8936	lt_prog_compiler_pic='-Kconform_pic'
8937	lt_prog_compiler_static='-Bstatic'
8938      fi
8939      ;;
8940
8941    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8942      lt_prog_compiler_wl='-Wl,'
8943      lt_prog_compiler_pic='-KPIC'
8944      lt_prog_compiler_static='-Bstatic'
8945      ;;
8946
8947    unicos*)
8948      lt_prog_compiler_wl='-Wl,'
8949      lt_prog_compiler_can_build_shared=no
8950      ;;
8951
8952    uts4*)
8953      lt_prog_compiler_pic='-pic'
8954      lt_prog_compiler_static='-Bstatic'
8955      ;;
8956
8957    *)
8958      lt_prog_compiler_can_build_shared=no
8959      ;;
8960    esac
8961  fi
8962
8963case $host_os in
8964  # For platforms which do not support PIC, -DPIC is meaningless:
8965  *djgpp*)
8966    lt_prog_compiler_pic=
8967    ;;
8968  *)
8969    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8970    ;;
8971esac
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8973$as_echo "$lt_prog_compiler_pic" >&6; }
8974
8975
8976
8977
8978
8979
8980#
8981# Check to make sure the PIC flag actually works.
8982#
8983if test -n "$lt_prog_compiler_pic"; then
8984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8985$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8986if ${lt_cv_prog_compiler_pic_works+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  lt_cv_prog_compiler_pic_works=no
8990   ac_outfile=conftest.$ac_objext
8991   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8992   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8993   # Insert the option either (1) after the last *FLAGS variable, or
8994   # (2) before a word containing "conftest.", or (3) at the end.
8995   # Note that $ac_compile itself does not contain backslashes and begins
8996   # with a dollar sign (not a hyphen), so the echo should work correctly.
8997   # The option is referenced via a variable to avoid confusing sed.
8998   lt_compile=`echo "$ac_compile" | $SED \
8999   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9000   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9001   -e 's:$: $lt_compiler_flag:'`
9002   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9003   (eval "$lt_compile" 2>conftest.err)
9004   ac_status=$?
9005   cat conftest.err >&5
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   if (exit $ac_status) && test -s "$ac_outfile"; then
9008     # The compiler can only warn and ignore the option if not recognized
9009     # So say no if there are warnings other than the usual output.
9010     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9011     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9013       lt_cv_prog_compiler_pic_works=yes
9014     fi
9015   fi
9016   $RM conftest*
9017
9018fi
9019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9020$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9021
9022if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9023    case $lt_prog_compiler_pic in
9024     "" | " "*) ;;
9025     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9026     esac
9027else
9028    lt_prog_compiler_pic=
9029     lt_prog_compiler_can_build_shared=no
9030fi
9031
9032fi
9033
9034
9035
9036
9037
9038
9039#
9040# Check to make sure the static flag actually works.
9041#
9042wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9044$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9045if ${lt_cv_prog_compiler_static_works+:} false; then :
9046  $as_echo_n "(cached) " >&6
9047else
9048  lt_cv_prog_compiler_static_works=no
9049   save_LDFLAGS="$LDFLAGS"
9050   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9051   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9052   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9053     # The linker can only warn and ignore the option if not recognized
9054     # So say no if there are warnings
9055     if test -s conftest.err; then
9056       # Append any errors to the config.log.
9057       cat conftest.err 1>&5
9058       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9059       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9060       if diff conftest.exp conftest.er2 >/dev/null; then
9061         lt_cv_prog_compiler_static_works=yes
9062       fi
9063     else
9064       lt_cv_prog_compiler_static_works=yes
9065     fi
9066   fi
9067   $RM -r conftest*
9068   LDFLAGS="$save_LDFLAGS"
9069
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9072$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9073
9074if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9075    :
9076else
9077    lt_prog_compiler_static=
9078fi
9079
9080
9081
9082
9083
9084
9085
9086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9087$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9088if ${lt_cv_prog_compiler_c_o+:} false; then :
9089  $as_echo_n "(cached) " >&6
9090else
9091  lt_cv_prog_compiler_c_o=no
9092   $RM -r conftest 2>/dev/null
9093   mkdir conftest
9094   cd conftest
9095   mkdir out
9096   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097
9098   lt_compiler_flag="-o out/conftest2.$ac_objext"
9099   # Insert the option either (1) after the last *FLAGS variable, or
9100   # (2) before a word containing "conftest.", or (3) at the end.
9101   # Note that $ac_compile itself does not contain backslashes and begins
9102   # with a dollar sign (not a hyphen), so the echo should work correctly.
9103   lt_compile=`echo "$ac_compile" | $SED \
9104   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9105   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9106   -e 's:$: $lt_compiler_flag:'`
9107   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9108   (eval "$lt_compile" 2>out/conftest.err)
9109   ac_status=$?
9110   cat out/conftest.err >&5
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9113   then
9114     # The compiler can only warn and ignore the option if not recognized
9115     # So say no if there are warnings
9116     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9117     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9118     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9119       lt_cv_prog_compiler_c_o=yes
9120     fi
9121   fi
9122   chmod u+w . 2>&5
9123   $RM conftest*
9124   # SGI C++ compiler will create directory out/ii_files/ for
9125   # template instantiation
9126   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9127   $RM out/* && rmdir out
9128   cd ..
9129   $RM -r conftest
9130   $RM conftest*
9131
9132fi
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9134$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9135
9136
9137
9138
9139
9140
9141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9142$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9143if ${lt_cv_prog_compiler_c_o+:} false; then :
9144  $as_echo_n "(cached) " >&6
9145else
9146  lt_cv_prog_compiler_c_o=no
9147   $RM -r conftest 2>/dev/null
9148   mkdir conftest
9149   cd conftest
9150   mkdir out
9151   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152
9153   lt_compiler_flag="-o out/conftest2.$ac_objext"
9154   # Insert the option either (1) after the last *FLAGS variable, or
9155   # (2) before a word containing "conftest.", or (3) at the end.
9156   # Note that $ac_compile itself does not contain backslashes and begins
9157   # with a dollar sign (not a hyphen), so the echo should work correctly.
9158   lt_compile=`echo "$ac_compile" | $SED \
9159   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161   -e 's:$: $lt_compiler_flag:'`
9162   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9163   (eval "$lt_compile" 2>out/conftest.err)
9164   ac_status=$?
9165   cat out/conftest.err >&5
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9168   then
9169     # The compiler can only warn and ignore the option if not recognized
9170     # So say no if there are warnings
9171     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9172     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9173     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9174       lt_cv_prog_compiler_c_o=yes
9175     fi
9176   fi
9177   chmod u+w . 2>&5
9178   $RM conftest*
9179   # SGI C++ compiler will create directory out/ii_files/ for
9180   # template instantiation
9181   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9182   $RM out/* && rmdir out
9183   cd ..
9184   $RM -r conftest
9185   $RM conftest*
9186
9187fi
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9189$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9190
9191
9192
9193
9194hard_links="nottested"
9195if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9196  # do not overwrite the value of need_locks provided by the user
9197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9198$as_echo_n "checking if we can lock with hard links... " >&6; }
9199  hard_links=yes
9200  $RM conftest*
9201  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9202  touch conftest.a
9203  ln conftest.a conftest.b 2>&5 || hard_links=no
9204  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9206$as_echo "$hard_links" >&6; }
9207  if test "$hard_links" = no; then
9208    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9209$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9210    need_locks=warn
9211  fi
9212else
9213  need_locks=no
9214fi
9215
9216
9217
9218
9219
9220
9221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9222$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9223
9224  runpath_var=
9225  allow_undefined_flag=
9226  always_export_symbols=no
9227  archive_cmds=
9228  archive_expsym_cmds=
9229  compiler_needs_object=no
9230  enable_shared_with_static_runtimes=no
9231  export_dynamic_flag_spec=
9232  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9233  hardcode_automatic=no
9234  hardcode_direct=no
9235  hardcode_direct_absolute=no
9236  hardcode_libdir_flag_spec=
9237  hardcode_libdir_flag_spec_ld=
9238  hardcode_libdir_separator=
9239  hardcode_minus_L=no
9240  hardcode_shlibpath_var=unsupported
9241  inherit_rpath=no
9242  link_all_deplibs=unknown
9243  module_cmds=
9244  module_expsym_cmds=
9245  old_archive_from_new_cmds=
9246  old_archive_from_expsyms_cmds=
9247  thread_safe_flag_spec=
9248  whole_archive_flag_spec=
9249  # include_expsyms should be a list of space-separated symbols to be *always*
9250  # included in the symbol list
9251  include_expsyms=
9252  # exclude_expsyms can be an extended regexp of symbols to exclude
9253  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9254  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9255  # as well as any symbol that contains `d'.
9256  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9257  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9258  # platforms (ab)use it in PIC code, but their linkers get confused if
9259  # the symbol is explicitly referenced.  Since portable code cannot
9260  # rely on this symbol name, it's probably fine to never include it in
9261  # preloaded symbol tables.
9262  # Exclude shared library initialization/finalization symbols.
9263  extract_expsyms_cmds=
9264
9265  case $host_os in
9266  cygwin* | mingw* | pw32* | cegcc*)
9267    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9268    # When not using gcc, we currently assume that we are using
9269    # Microsoft Visual C++.
9270    if test "$GCC" != yes; then
9271      with_gnu_ld=no
9272    fi
9273    ;;
9274  interix*)
9275    # we just hope/assume this is gcc and not c89 (= MSVC++)
9276    with_gnu_ld=yes
9277    ;;
9278  openbsd*)
9279    with_gnu_ld=no
9280    ;;
9281  esac
9282
9283  ld_shlibs=yes
9284
9285  # On some targets, GNU ld is compatible enough with the native linker
9286  # that we're better off using the native interface for both.
9287  lt_use_gnu_ld_interface=no
9288  if test "$with_gnu_ld" = yes; then
9289    case $host_os in
9290      aix*)
9291	# The AIX port of GNU ld has always aspired to compatibility
9292	# with the native linker.  However, as the warning in the GNU ld
9293	# block says, versions before 2.19.5* couldn't really create working
9294	# shared libraries, regardless of the interface used.
9295	case `$LD -v 2>&1` in
9296	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9297	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9298	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9299	  *)
9300	    lt_use_gnu_ld_interface=yes
9301	    ;;
9302	esac
9303	;;
9304      *)
9305	lt_use_gnu_ld_interface=yes
9306	;;
9307    esac
9308  fi
9309
9310  if test "$lt_use_gnu_ld_interface" = yes; then
9311    # If archive_cmds runs LD, not CC, wlarc should be empty
9312    wlarc='${wl}'
9313
9314    # Set some defaults for GNU ld with shared library support. These
9315    # are reset later if shared libraries are not supported. Putting them
9316    # here allows them to be overridden if necessary.
9317    runpath_var=LD_RUN_PATH
9318    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319    export_dynamic_flag_spec='${wl}--export-dynamic'
9320    # ancient GNU ld didn't support --whole-archive et. al.
9321    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9322      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9323    else
9324      whole_archive_flag_spec=
9325    fi
9326    supports_anon_versioning=no
9327    case `$LD -v 2>&1` in
9328      *GNU\ gold*) supports_anon_versioning=yes ;;
9329      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9330      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9331      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9332      *\ 2.11.*) ;; # other 2.11 versions
9333      *) supports_anon_versioning=yes ;;
9334    esac
9335
9336    # See if GNU ld supports shared libraries.
9337    case $host_os in
9338    aix[3-9]*)
9339      # On AIX/PPC, the GNU linker is very broken
9340      if test "$host_cpu" != ia64; then
9341	ld_shlibs=no
9342	cat <<_LT_EOF 1>&2
9343
9344*** Warning: the GNU linker, at least up to release 2.19, is reported
9345*** to be unable to reliably create shared libraries on AIX.
9346*** Therefore, libtool is disabling shared libraries support.  If you
9347*** really care for shared libraries, you may want to install binutils
9348*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9349*** You will then need to restart the configuration process.
9350
9351_LT_EOF
9352      fi
9353      ;;
9354
9355    amigaos*)
9356      case $host_cpu in
9357      powerpc)
9358            # see comment about AmigaOS4 .so support
9359            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360            archive_expsym_cmds=''
9361        ;;
9362      m68k)
9363            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)'
9364            hardcode_libdir_flag_spec='-L$libdir'
9365            hardcode_minus_L=yes
9366        ;;
9367      esac
9368      ;;
9369
9370    beos*)
9371      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9372	allow_undefined_flag=unsupported
9373	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9374	# support --undefined.  This deserves some investigation.  FIXME
9375	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376      else
9377	ld_shlibs=no
9378      fi
9379      ;;
9380
9381    cygwin* | mingw* | pw32* | cegcc*)
9382      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9383      # as there is no search path for DLLs.
9384      hardcode_libdir_flag_spec='-L$libdir'
9385      export_dynamic_flag_spec='${wl}--export-all-symbols'
9386      allow_undefined_flag=unsupported
9387      always_export_symbols=no
9388      enable_shared_with_static_runtimes=yes
9389      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9390
9391      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9392        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393	# If the export-symbols file already is a .def file (1st line
9394	# is EXPORTS), use it as is; otherwise, prepend...
9395	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9396	  cp $export_symbols $output_objdir/$soname.def;
9397	else
9398	  echo EXPORTS > $output_objdir/$soname.def;
9399	  cat $export_symbols >> $output_objdir/$soname.def;
9400	fi~
9401	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9402      else
9403	ld_shlibs=no
9404      fi
9405      ;;
9406
9407    haiku*)
9408      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409      link_all_deplibs=yes
9410      ;;
9411
9412    interix[3-9]*)
9413      hardcode_direct=no
9414      hardcode_shlibpath_var=no
9415      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9416      export_dynamic_flag_spec='${wl}-E'
9417      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9418      # Instead, shared libraries are loaded at an image base (0x10000000 by
9419      # default) and relocated if they conflict, which is a slow very memory
9420      # consuming and fragmenting process.  To avoid this, we pick a random,
9421      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9422      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9423      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9424      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'
9425      ;;
9426
9427    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9428      tmp_diet=no
9429      if test "$host_os" = linux-dietlibc; then
9430	case $cc_basename in
9431	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9432	esac
9433      fi
9434      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9435	 && test "$tmp_diet" = no
9436      then
9437	tmp_addflag=' $pic_flag'
9438	tmp_sharedflag='-shared'
9439	case $cc_basename,$host_cpu in
9440        pgcc*)				# Portland Group C compiler
9441	  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'
9442	  tmp_addflag=' $pic_flag'
9443	  ;;
9444	pgf77* | pgf90* | pgf95* | pgfortran*)
9445					# Portland Group f77 and f90 compilers
9446	  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'
9447	  tmp_addflag=' $pic_flag -Mnomain' ;;
9448	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9449	  tmp_addflag=' -i_dynamic' ;;
9450	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9451	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9452	ifc* | ifort*)			# Intel Fortran compiler
9453	  tmp_addflag=' -nofor_main' ;;
9454	lf95*)				# Lahey Fortran 8.1
9455	  whole_archive_flag_spec=
9456	  tmp_sharedflag='--shared' ;;
9457	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9458	  tmp_sharedflag='-qmkshrobj'
9459	  tmp_addflag= ;;
9460	nvcc*)	# Cuda Compiler Driver 2.2
9461	  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'
9462	  compiler_needs_object=yes
9463	  ;;
9464	esac
9465	case `$CC -V 2>&1 | sed 5q` in
9466	*Sun\ C*)			# Sun C 5.9
9467	  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'
9468	  compiler_needs_object=yes
9469	  tmp_sharedflag='-G' ;;
9470	*Sun\ F*)			# Sun Fortran 8.3
9471	  tmp_sharedflag='-G' ;;
9472	esac
9473	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474
9475        if test "x$supports_anon_versioning" = xyes; then
9476          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9477	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9478	    echo "local: *; };" >> $output_objdir/$libname.ver~
9479	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9480        fi
9481
9482	case $cc_basename in
9483	xlf* | bgf* | bgxlf* | mpixlf*)
9484	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9485	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9486	  hardcode_libdir_flag_spec=
9487	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9488	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9489	  if test "x$supports_anon_versioning" = xyes; then
9490	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9491	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9492	      echo "local: *; };" >> $output_objdir/$libname.ver~
9493	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9494	  fi
9495	  ;;
9496	esac
9497      else
9498        ld_shlibs=no
9499      fi
9500      ;;
9501
9502    netbsd*)
9503      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9504	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9505	wlarc=
9506      else
9507	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9509      fi
9510      ;;
9511
9512    solaris*)
9513      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9514	ld_shlibs=no
9515	cat <<_LT_EOF 1>&2
9516
9517*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9518*** create shared libraries on Solaris systems.  Therefore, libtool
9519*** is disabling shared libraries support.  We urge you to upgrade GNU
9520*** binutils to release 2.9.1 or newer.  Another option is to modify
9521*** your PATH or compiler configuration so that the native linker is
9522*** used, and then restart.
9523
9524_LT_EOF
9525      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528      else
9529	ld_shlibs=no
9530      fi
9531      ;;
9532
9533    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9534      case `$LD -v 2>&1` in
9535        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9536	ld_shlibs=no
9537	cat <<_LT_EOF 1>&2
9538
9539*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9540*** reliably create shared libraries on SCO systems.  Therefore, libtool
9541*** is disabling shared libraries support.  We urge you to upgrade GNU
9542*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9543*** your PATH or compiler configuration so that the native linker is
9544*** used, and then restart.
9545
9546_LT_EOF
9547	;;
9548	*)
9549	  # For security reasons, it is highly recommended that you always
9550	  # use absolute paths for naming shared libraries, and exclude the
9551	  # DT_RUNPATH tag from executables and libraries.  But doing so
9552	  # requires that you compile everything twice, which is a pain.
9553	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9554	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9555	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9557	  else
9558	    ld_shlibs=no
9559	  fi
9560	;;
9561      esac
9562      ;;
9563
9564    sunos4*)
9565      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9566      wlarc=
9567      hardcode_direct=yes
9568      hardcode_shlibpath_var=no
9569      ;;
9570
9571    *)
9572      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9573	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9574	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9575      else
9576	ld_shlibs=no
9577      fi
9578      ;;
9579    esac
9580
9581    if test "$ld_shlibs" = no; then
9582      runpath_var=
9583      hardcode_libdir_flag_spec=
9584      export_dynamic_flag_spec=
9585      whole_archive_flag_spec=
9586    fi
9587  else
9588    # PORTME fill in a description of your system's linker (not GNU ld)
9589    case $host_os in
9590    aix3*)
9591      allow_undefined_flag=unsupported
9592      always_export_symbols=yes
9593      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'
9594      # Note: this linker hardcodes the directories in LIBPATH if there
9595      # are no directories specified by -L.
9596      hardcode_minus_L=yes
9597      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9598	# Neither direct hardcoding nor static linking is supported with a
9599	# broken collect2.
9600	hardcode_direct=unsupported
9601      fi
9602      ;;
9603
9604    aix[4-9]*)
9605      if test "$host_cpu" = ia64; then
9606	# On IA64, the linker does run time linking by default, so we don't
9607	# have to do anything special.
9608	aix_use_runtimelinking=no
9609	exp_sym_flag='-Bexport'
9610	no_entry_flag=""
9611      else
9612	# If we're using GNU nm, then we don't want the "-C" option.
9613	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9614	# Also, AIX nm treats weak defined symbols like other global
9615	# defined symbols, whereas GNU nm marks them as "W".
9616	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9617	  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'
9618	else
9619	  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'
9620	fi
9621	aix_use_runtimelinking=no
9622
9623	# Test if we are trying to use run time linking or normal
9624	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9625	# need to do runtime linking.
9626	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9627	  for ld_flag in $LDFLAGS; do
9628	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9629	    aix_use_runtimelinking=yes
9630	    break
9631	  fi
9632	  done
9633	  ;;
9634	esac
9635
9636	exp_sym_flag='-bexport'
9637	no_entry_flag='-bnoentry'
9638      fi
9639
9640      # When large executables or shared objects are built, AIX ld can
9641      # have problems creating the table of contents.  If linking a library
9642      # or program results in "error TOC overflow" add -mminimal-toc to
9643      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9644      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9645
9646      archive_cmds=''
9647      hardcode_direct=yes
9648      hardcode_direct_absolute=yes
9649      hardcode_libdir_separator=':'
9650      link_all_deplibs=yes
9651      file_list_spec='${wl}-f,'
9652
9653      if test "$GCC" = yes; then
9654	case $host_os in aix4.[012]|aix4.[012].*)
9655	# We only want to do this on AIX 4.2 and lower, the check
9656	# below for broken collect2 doesn't work under 4.3+
9657	  collect2name=`${CC} -print-prog-name=collect2`
9658	  if test -f "$collect2name" &&
9659	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9660	  then
9661	  # We have reworked collect2
9662	  :
9663	  else
9664	  # We have old collect2
9665	  hardcode_direct=unsupported
9666	  # It fails to find uninstalled libraries when the uninstalled
9667	  # path is not listed in the libpath.  Setting hardcode_minus_L
9668	  # to unsupported forces relinking
9669	  hardcode_minus_L=yes
9670	  hardcode_libdir_flag_spec='-L$libdir'
9671	  hardcode_libdir_separator=
9672	  fi
9673	  ;;
9674	esac
9675	shared_flag='-shared'
9676	if test "$aix_use_runtimelinking" = yes; then
9677	  shared_flag="$shared_flag "'${wl}-G'
9678	fi
9679      else
9680	# not using gcc
9681	if test "$host_cpu" = ia64; then
9682	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9683	# chokes on -Wl,-G. The following line is correct:
9684	  shared_flag='-G'
9685	else
9686	  if test "$aix_use_runtimelinking" = yes; then
9687	    shared_flag='${wl}-G'
9688	  else
9689	    shared_flag='${wl}-bM:SRE'
9690	  fi
9691	fi
9692      fi
9693
9694      export_dynamic_flag_spec='${wl}-bexpall'
9695      # It seems that -bexpall does not export symbols beginning with
9696      # underscore (_), so it is better to generate a list of symbols to export.
9697      always_export_symbols=yes
9698      if test "$aix_use_runtimelinking" = yes; then
9699	# Warning - without using the other runtime loading flags (-brtl),
9700	# -berok will link without error, but may produce a broken library.
9701	allow_undefined_flag='-berok'
9702        # Determine the default libpath from the value encoded in an
9703        # empty executable.
9704        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705/* end confdefs.h.  */
9706
9707int
9708main ()
9709{
9710
9711  ;
9712  return 0;
9713}
9714_ACEOF
9715if ac_fn_c_try_link "$LINENO"; then :
9716
9717lt_aix_libpath_sed='
9718    /Import File Strings/,/^$/ {
9719	/^0/ {
9720	    s/^0  *\(.*\)$/\1/
9721	    p
9722	}
9723    }'
9724aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9725# Check for a 64-bit object if we didn't find anything.
9726if test -z "$aix_libpath"; then
9727  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728fi
9729fi
9730rm -f core conftest.err conftest.$ac_objext \
9731    conftest$ac_exeext conftest.$ac_ext
9732if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9733
9734        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9735        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"
9736      else
9737	if test "$host_cpu" = ia64; then
9738	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9739	  allow_undefined_flag="-z nodefs"
9740	  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"
9741	else
9742	 # Determine the default libpath from the value encoded in an
9743	 # empty executable.
9744	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746
9747int
9748main ()
9749{
9750
9751  ;
9752  return 0;
9753}
9754_ACEOF
9755if ac_fn_c_try_link "$LINENO"; then :
9756
9757lt_aix_libpath_sed='
9758    /Import File Strings/,/^$/ {
9759	/^0/ {
9760	    s/^0  *\(.*\)$/\1/
9761	    p
9762	}
9763    }'
9764aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9765# Check for a 64-bit object if we didn't find anything.
9766if test -z "$aix_libpath"; then
9767  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9768fi
9769fi
9770rm -f core conftest.err conftest.$ac_objext \
9771    conftest$ac_exeext conftest.$ac_ext
9772if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9773
9774	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9775	  # Warning - without using the other run time loading flags,
9776	  # -berok will link without error, but may produce a broken library.
9777	  no_undefined_flag=' ${wl}-bernotok'
9778	  allow_undefined_flag=' ${wl}-berok'
9779	  if test "$with_gnu_ld" = yes; then
9780	    # We only use this code for GNU lds that support --whole-archive.
9781	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9782	  else
9783	    # Exported symbols can be pulled into shared objects from archives
9784	    whole_archive_flag_spec='$convenience'
9785	  fi
9786	  archive_cmds_need_lc=yes
9787	  # This is similar to how AIX traditionally builds its shared libraries.
9788	  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'
9789	fi
9790      fi
9791      ;;
9792
9793    amigaos*)
9794      case $host_cpu in
9795      powerpc)
9796            # see comment about AmigaOS4 .so support
9797            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798            archive_expsym_cmds=''
9799        ;;
9800      m68k)
9801            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)'
9802            hardcode_libdir_flag_spec='-L$libdir'
9803            hardcode_minus_L=yes
9804        ;;
9805      esac
9806      ;;
9807
9808    bsdi[45]*)
9809      export_dynamic_flag_spec=-rdynamic
9810      ;;
9811
9812    cygwin* | mingw* | pw32* | cegcc*)
9813      # When not using gcc, we currently assume that we are using
9814      # Microsoft Visual C++.
9815      # hardcode_libdir_flag_spec is actually meaningless, as there is
9816      # no search path for DLLs.
9817      hardcode_libdir_flag_spec=' '
9818      allow_undefined_flag=unsupported
9819      # Tell ltmain to make .lib files, not .a files.
9820      libext=lib
9821      # Tell ltmain to make .dll files, not .so files.
9822      shrext_cmds=".dll"
9823      # FIXME: Setting linknames here is a bad hack.
9824      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9825      # The linker will automatically build a .lib file if we build a DLL.
9826      old_archive_from_new_cmds='true'
9827      # FIXME: Should let the user specify the lib program.
9828      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9829      fix_srcfile_path='`cygpath -w "$srcfile"`'
9830      enable_shared_with_static_runtimes=yes
9831      ;;
9832
9833    darwin* | rhapsody*)
9834
9835
9836  archive_cmds_need_lc=no
9837  hardcode_direct=no
9838  hardcode_automatic=yes
9839  hardcode_shlibpath_var=unsupported
9840  if test "$lt_cv_ld_force_load" = "yes"; then
9841    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\"`'
9842  else
9843    whole_archive_flag_spec=''
9844  fi
9845  link_all_deplibs=yes
9846  allow_undefined_flag="$_lt_dar_allow_undefined"
9847  case $cc_basename in
9848     ifort*) _lt_dar_can_shared=yes ;;
9849     *) _lt_dar_can_shared=$GCC ;;
9850  esac
9851  if test "$_lt_dar_can_shared" = "yes"; then
9852    output_verbose_link_cmd=func_echo_all
9853    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9854    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9855    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}"
9856    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}"
9857
9858  else
9859  ld_shlibs=no
9860  fi
9861
9862      ;;
9863
9864    dgux*)
9865      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866      hardcode_libdir_flag_spec='-L$libdir'
9867      hardcode_shlibpath_var=no
9868      ;;
9869
9870    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9871    # support.  Future versions do this automatically, but an explicit c++rt0.o
9872    # does not break anything, and helps significantly (at the cost of a little
9873    # extra space).
9874    freebsd2.2*)
9875      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9876      hardcode_libdir_flag_spec='-R$libdir'
9877      hardcode_direct=yes
9878      hardcode_shlibpath_var=no
9879      ;;
9880
9881    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9882    freebsd2.*)
9883      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9884      hardcode_direct=yes
9885      hardcode_minus_L=yes
9886      hardcode_shlibpath_var=no
9887      ;;
9888
9889    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9890    freebsd* | dragonfly*)
9891      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9892      hardcode_libdir_flag_spec='-R$libdir'
9893      hardcode_direct=yes
9894      hardcode_shlibpath_var=no
9895      ;;
9896
9897    hpux9*)
9898      if test "$GCC" = yes; then
9899	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'
9900      else
9901	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'
9902      fi
9903      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9904      hardcode_libdir_separator=:
9905      hardcode_direct=yes
9906
9907      # hardcode_minus_L: Not really in the search PATH,
9908      # but as the default location of the library.
9909      hardcode_minus_L=yes
9910      export_dynamic_flag_spec='${wl}-E'
9911      ;;
9912
9913    hpux10*)
9914      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9915	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9916      else
9917	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9918      fi
9919      if test "$with_gnu_ld" = no; then
9920	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9921	hardcode_libdir_flag_spec_ld='+b $libdir'
9922	hardcode_libdir_separator=:
9923	hardcode_direct=yes
9924	hardcode_direct_absolute=yes
9925	export_dynamic_flag_spec='${wl}-E'
9926	# hardcode_minus_L: Not really in the search PATH,
9927	# but as the default location of the library.
9928	hardcode_minus_L=yes
9929      fi
9930      ;;
9931
9932    hpux11*)
9933      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9934	case $host_cpu in
9935	hppa*64*)
9936	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9937	  ;;
9938	ia64*)
9939	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9940	  ;;
9941	*)
9942	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9943	  ;;
9944	esac
9945      else
9946	case $host_cpu in
9947	hppa*64*)
9948	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9949	  ;;
9950	ia64*)
9951	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9952	  ;;
9953	*)
9954
9955	  # Older versions of the 11.00 compiler do not understand -b yet
9956	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9957	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9958$as_echo_n "checking if $CC understands -b... " >&6; }
9959if ${lt_cv_prog_compiler__b+:} false; then :
9960  $as_echo_n "(cached) " >&6
9961else
9962  lt_cv_prog_compiler__b=no
9963   save_LDFLAGS="$LDFLAGS"
9964   LDFLAGS="$LDFLAGS -b"
9965   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9966   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9967     # The linker can only warn and ignore the option if not recognized
9968     # So say no if there are warnings
9969     if test -s conftest.err; then
9970       # Append any errors to the config.log.
9971       cat conftest.err 1>&5
9972       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9973       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9974       if diff conftest.exp conftest.er2 >/dev/null; then
9975         lt_cv_prog_compiler__b=yes
9976       fi
9977     else
9978       lt_cv_prog_compiler__b=yes
9979     fi
9980   fi
9981   $RM -r conftest*
9982   LDFLAGS="$save_LDFLAGS"
9983
9984fi
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9986$as_echo "$lt_cv_prog_compiler__b" >&6; }
9987
9988if test x"$lt_cv_prog_compiler__b" = xyes; then
9989    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9990else
9991    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9992fi
9993
9994	  ;;
9995	esac
9996      fi
9997      if test "$with_gnu_ld" = no; then
9998	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9999	hardcode_libdir_separator=:
10000
10001	case $host_cpu in
10002	hppa*64*|ia64*)
10003	  hardcode_direct=no
10004	  hardcode_shlibpath_var=no
10005	  ;;
10006	*)
10007	  hardcode_direct=yes
10008	  hardcode_direct_absolute=yes
10009	  export_dynamic_flag_spec='${wl}-E'
10010
10011	  # hardcode_minus_L: Not really in the search PATH,
10012	  # but as the default location of the library.
10013	  hardcode_minus_L=yes
10014	  ;;
10015	esac
10016      fi
10017      ;;
10018
10019    irix5* | irix6* | nonstopux*)
10020      if test "$GCC" = yes; then
10021	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'
10022	# Try to use the -exported_symbol ld option, if it does not
10023	# work, assume that -exports_file does not work either and
10024	# implicitly export all symbols.
10025        save_LDFLAGS="$LDFLAGS"
10026        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10027        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028/* end confdefs.h.  */
10029int foo(void) {}
10030_ACEOF
10031if ac_fn_c_try_link "$LINENO"; then :
10032  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'
10033
10034fi
10035rm -f core conftest.err conftest.$ac_objext \
10036    conftest$ac_exeext conftest.$ac_ext
10037        LDFLAGS="$save_LDFLAGS"
10038      else
10039	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'
10040	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'
10041      fi
10042      archive_cmds_need_lc='no'
10043      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10044      hardcode_libdir_separator=:
10045      inherit_rpath=yes
10046      link_all_deplibs=yes
10047      ;;
10048
10049    netbsd*)
10050      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10051	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10052      else
10053	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10054      fi
10055      hardcode_libdir_flag_spec='-R$libdir'
10056      hardcode_direct=yes
10057      hardcode_shlibpath_var=no
10058      ;;
10059
10060    newsos6)
10061      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062      hardcode_direct=yes
10063      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10064      hardcode_libdir_separator=:
10065      hardcode_shlibpath_var=no
10066      ;;
10067
10068    *nto* | *qnx*)
10069      ;;
10070
10071    openbsd*)
10072      if test -f /usr/libexec/ld.so; then
10073	hardcode_direct=yes
10074	hardcode_shlibpath_var=no
10075	hardcode_direct_absolute=yes
10076	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10077	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10078	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10079	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10080	  export_dynamic_flag_spec='${wl}-E'
10081	else
10082	  case $host_os in
10083	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10084	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10085	     hardcode_libdir_flag_spec='-R$libdir'
10086	     ;;
10087	   *)
10088	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10089	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10090	     ;;
10091	  esac
10092	fi
10093      else
10094	ld_shlibs=no
10095      fi
10096      ;;
10097
10098    os2*)
10099      hardcode_libdir_flag_spec='-L$libdir'
10100      hardcode_minus_L=yes
10101      allow_undefined_flag=unsupported
10102      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'
10103      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10104      ;;
10105
10106    osf3*)
10107      if test "$GCC" = yes; then
10108	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10109	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'
10110      else
10111	allow_undefined_flag=' -expect_unresolved \*'
10112	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'
10113      fi
10114      archive_cmds_need_lc='no'
10115      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116      hardcode_libdir_separator=:
10117      ;;
10118
10119    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10120      if test "$GCC" = yes; then
10121	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10122	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'
10123	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10124      else
10125	allow_undefined_flag=' -expect_unresolved \*'
10126	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'
10127	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~
10128	$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'
10129
10130	# Both c and cxx compiler support -rpath directly
10131	hardcode_libdir_flag_spec='-rpath $libdir'
10132      fi
10133      archive_cmds_need_lc='no'
10134      hardcode_libdir_separator=:
10135      ;;
10136
10137    solaris*)
10138      no_undefined_flag=' -z defs'
10139      if test "$GCC" = yes; then
10140	wlarc='${wl}'
10141	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10142	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10144      else
10145	case `$CC -V 2>&1` in
10146	*"Compilers 5.0"*)
10147	  wlarc=''
10148	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10150	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10151	  ;;
10152	*)
10153	  wlarc='${wl}'
10154	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10155	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10157	  ;;
10158	esac
10159      fi
10160      hardcode_libdir_flag_spec='-R$libdir'
10161      hardcode_shlibpath_var=no
10162      case $host_os in
10163      solaris2.[0-5] | solaris2.[0-5].*) ;;
10164      *)
10165	# The compiler driver will combine and reorder linker options,
10166	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10167	# but is careful enough not to reorder.
10168	# Supported since Solaris 2.6 (maybe 2.5.1?)
10169	if test "$GCC" = yes; then
10170	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10171	else
10172	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10173	fi
10174	;;
10175      esac
10176      link_all_deplibs=yes
10177      ;;
10178
10179    sunos4*)
10180      if test "x$host_vendor" = xsequent; then
10181	# Use $CC to link under sequent, because it throws in some extra .o
10182	# files that make .init and .fini sections work.
10183	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10184      else
10185	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10186      fi
10187      hardcode_libdir_flag_spec='-L$libdir'
10188      hardcode_direct=yes
10189      hardcode_minus_L=yes
10190      hardcode_shlibpath_var=no
10191      ;;
10192
10193    sysv4)
10194      case $host_vendor in
10195	sni)
10196	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197	  hardcode_direct=yes # is this really true???
10198	;;
10199	siemens)
10200	  ## LD is ld it makes a PLAMLIB
10201	  ## CC just makes a GrossModule.
10202	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10203	  reload_cmds='$CC -r -o $output$reload_objs'
10204	  hardcode_direct=no
10205        ;;
10206	motorola)
10207	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10209	;;
10210      esac
10211      runpath_var='LD_RUN_PATH'
10212      hardcode_shlibpath_var=no
10213      ;;
10214
10215    sysv4.3*)
10216      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217      hardcode_shlibpath_var=no
10218      export_dynamic_flag_spec='-Bexport'
10219      ;;
10220
10221    sysv4*MP*)
10222      if test -d /usr/nec; then
10223	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224	hardcode_shlibpath_var=no
10225	runpath_var=LD_RUN_PATH
10226	hardcode_runpath_var=yes
10227	ld_shlibs=yes
10228      fi
10229      ;;
10230
10231    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10232      no_undefined_flag='${wl}-z,text'
10233      archive_cmds_need_lc=no
10234      hardcode_shlibpath_var=no
10235      runpath_var='LD_RUN_PATH'
10236
10237      if test "$GCC" = yes; then
10238	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240      else
10241	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243      fi
10244      ;;
10245
10246    sysv5* | sco3.2v5* | sco5v6*)
10247      # Note: We can NOT use -z defs as we might desire, because we do not
10248      # link with -lc, and that would cause any symbols used from libc to
10249      # always be unresolved, which means just about no library would
10250      # ever link correctly.  If we're not using GNU ld we use -z text
10251      # though, which does catch some bad symbols but isn't as heavy-handed
10252      # as -z defs.
10253      no_undefined_flag='${wl}-z,text'
10254      allow_undefined_flag='${wl}-z,nodefs'
10255      archive_cmds_need_lc=no
10256      hardcode_shlibpath_var=no
10257      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10258      hardcode_libdir_separator=':'
10259      link_all_deplibs=yes
10260      export_dynamic_flag_spec='${wl}-Bexport'
10261      runpath_var='LD_RUN_PATH'
10262
10263      if test "$GCC" = yes; then
10264	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266      else
10267	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269      fi
10270      ;;
10271
10272    uts4*)
10273      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10274      hardcode_libdir_flag_spec='-L$libdir'
10275      hardcode_shlibpath_var=no
10276      ;;
10277
10278    *)
10279      ld_shlibs=no
10280      ;;
10281    esac
10282
10283    if test x$host_vendor = xsni; then
10284      case $host in
10285      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10286	export_dynamic_flag_spec='${wl}-Blargedynsym'
10287	;;
10288      esac
10289    fi
10290  fi
10291
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10293$as_echo "$ld_shlibs" >&6; }
10294test "$ld_shlibs" = no && can_build_shared=no
10295
10296with_gnu_ld=$with_gnu_ld
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312#
10313# Do we need to explicitly link libc?
10314#
10315case "x$archive_cmds_need_lc" in
10316x|xyes)
10317  # Assume -lc should be added
10318  archive_cmds_need_lc=yes
10319
10320  if test "$enable_shared" = yes && test "$GCC" = yes; then
10321    case $archive_cmds in
10322    *'~'*)
10323      # FIXME: we may have to deal with multi-command sequences.
10324      ;;
10325    '$CC '*)
10326      # Test whether the compiler implicitly links with -lc since on some
10327      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10328      # to ld, don't add -lc before -lgcc.
10329      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10330$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10331if ${lt_cv_archive_cmds_need_lc+:} false; then :
10332  $as_echo_n "(cached) " >&6
10333else
10334  $RM conftest*
10335	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10336
10337	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10338  (eval $ac_compile) 2>&5
10339  ac_status=$?
10340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10341  test $ac_status = 0; } 2>conftest.err; then
10342	  soname=conftest
10343	  lib=conftest
10344	  libobjs=conftest.$ac_objext
10345	  deplibs=
10346	  wl=$lt_prog_compiler_wl
10347	  pic_flag=$lt_prog_compiler_pic
10348	  compiler_flags=-v
10349	  linker_flags=-v
10350	  verstring=
10351	  output_objdir=.
10352	  libname=conftest
10353	  lt_save_allow_undefined_flag=$allow_undefined_flag
10354	  allow_undefined_flag=
10355	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10356  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10357  ac_status=$?
10358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359  test $ac_status = 0; }
10360	  then
10361	    lt_cv_archive_cmds_need_lc=no
10362	  else
10363	    lt_cv_archive_cmds_need_lc=yes
10364	  fi
10365	  allow_undefined_flag=$lt_save_allow_undefined_flag
10366	else
10367	  cat conftest.err 1>&5
10368	fi
10369	$RM conftest*
10370
10371fi
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10373$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10374      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10375      ;;
10376    esac
10377  fi
10378  ;;
10379esac
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10538$as_echo_n "checking dynamic linker characteristics... " >&6; }
10539
10540if test "$GCC" = yes; then
10541  case $host_os in
10542    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10543    *) lt_awk_arg="/^libraries:/" ;;
10544  esac
10545  case $host_os in
10546    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10547    *) lt_sed_strip_eq="s,=/,/,g" ;;
10548  esac
10549  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10550  case $lt_search_path_spec in
10551  *\;*)
10552    # if the path contains ";" then we assume it to be the separator
10553    # otherwise default to the standard path separator (i.e. ":") - it is
10554    # assumed that no part of a normal pathname contains ";" but that should
10555    # okay in the real world where ";" in dirpaths is itself problematic.
10556    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10557    ;;
10558  *)
10559    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10560    ;;
10561  esac
10562  # Ok, now we have the path, separated by spaces, we can step through it
10563  # and add multilib dir if necessary.
10564  lt_tmp_lt_search_path_spec=
10565  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10566  for lt_sys_path in $lt_search_path_spec; do
10567    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10568      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10569    else
10570      test -d "$lt_sys_path" && \
10571	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10572    fi
10573  done
10574  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10575BEGIN {RS=" "; FS="/|\n";} {
10576  lt_foo="";
10577  lt_count=0;
10578  for (lt_i = NF; lt_i > 0; lt_i--) {
10579    if ($lt_i != "" && $lt_i != ".") {
10580      if ($lt_i == "..") {
10581        lt_count++;
10582      } else {
10583        if (lt_count == 0) {
10584          lt_foo="/" $lt_i lt_foo;
10585        } else {
10586          lt_count--;
10587        }
10588      }
10589    }
10590  }
10591  if (lt_foo != "") { lt_freq[lt_foo]++; }
10592  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10593}'`
10594  # AWK program above erroneously prepends '/' to C:/dos/paths
10595  # for these hosts.
10596  case $host_os in
10597    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10598      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10599  esac
10600  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10601else
10602  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10603fi
10604library_names_spec=
10605libname_spec='lib$name'
10606soname_spec=
10607shrext_cmds=".so"
10608postinstall_cmds=
10609postuninstall_cmds=
10610finish_cmds=
10611finish_eval=
10612shlibpath_var=
10613shlibpath_overrides_runpath=unknown
10614version_type=none
10615dynamic_linker="$host_os ld.so"
10616sys_lib_dlsearch_path_spec="/lib /usr/lib"
10617need_lib_prefix=unknown
10618hardcode_into_libs=no
10619
10620# when you set need_version to no, make sure it does not cause -set_version
10621# flags to be left without arguments
10622need_version=unknown
10623
10624case $host_os in
10625aix3*)
10626  version_type=linux
10627  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10628  shlibpath_var=LIBPATH
10629
10630  # AIX 3 has no versioning support, so we append a major version to the name.
10631  soname_spec='${libname}${release}${shared_ext}$major'
10632  ;;
10633
10634aix[4-9]*)
10635  version_type=linux
10636  need_lib_prefix=no
10637  need_version=no
10638  hardcode_into_libs=yes
10639  if test "$host_cpu" = ia64; then
10640    # AIX 5 supports IA64
10641    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10642    shlibpath_var=LD_LIBRARY_PATH
10643  else
10644    # With GCC up to 2.95.x, collect2 would create an import file
10645    # for dependence libraries.  The import file would start with
10646    # the line `#! .'.  This would cause the generated library to
10647    # depend on `.', always an invalid library.  This was fixed in
10648    # development snapshots of GCC prior to 3.0.
10649    case $host_os in
10650      aix4 | aix4.[01] | aix4.[01].*)
10651      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10652	   echo ' yes '
10653	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10654	:
10655      else
10656	can_build_shared=no
10657      fi
10658      ;;
10659    esac
10660    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10661    # soname into executable. Probably we can add versioning support to
10662    # collect2, so additional links can be useful in future.
10663    if test "$aix_use_runtimelinking" = yes; then
10664      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10665      # instead of lib<name>.a to let people know that these are not
10666      # typical AIX shared libraries.
10667      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668    else
10669      # We preserve .a as extension for shared libraries through AIX4.2
10670      # and later when we are not doing run time linking.
10671      library_names_spec='${libname}${release}.a $libname.a'
10672      soname_spec='${libname}${release}${shared_ext}$major'
10673    fi
10674    shlibpath_var=LIBPATH
10675  fi
10676  ;;
10677
10678amigaos*)
10679  case $host_cpu in
10680  powerpc)
10681    # Since July 2007 AmigaOS4 officially supports .so libraries.
10682    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10683    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684    ;;
10685  m68k)
10686    library_names_spec='$libname.ixlibrary $libname.a'
10687    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10688    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'
10689    ;;
10690  esac
10691  ;;
10692
10693beos*)
10694  library_names_spec='${libname}${shared_ext}'
10695  dynamic_linker="$host_os ld.so"
10696  shlibpath_var=LIBRARY_PATH
10697  ;;
10698
10699bsdi[45]*)
10700  version_type=linux
10701  need_version=no
10702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703  soname_spec='${libname}${release}${shared_ext}$major'
10704  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10705  shlibpath_var=LD_LIBRARY_PATH
10706  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10707  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10708  # the default ld.so.conf also contains /usr/contrib/lib and
10709  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10710  # libtool to hard-code these into programs
10711  ;;
10712
10713cygwin* | mingw* | pw32* | cegcc*)
10714  version_type=windows
10715  shrext_cmds=".dll"
10716  need_version=no
10717  need_lib_prefix=no
10718
10719  case $GCC,$host_os in
10720  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10721    library_names_spec='$libname.dll.a'
10722    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10723    postinstall_cmds='base_file=`basename \${file}`~
10724      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10725      dldir=$destdir/`dirname \$dlpath`~
10726      test -d \$dldir || mkdir -p \$dldir~
10727      $install_prog $dir/$dlname \$dldir/$dlname~
10728      chmod a+x \$dldir/$dlname~
10729      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10730        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10731      fi'
10732    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10733      dlpath=$dir/\$dldll~
10734       $RM \$dlpath'
10735    shlibpath_overrides_runpath=yes
10736
10737    case $host_os in
10738    cygwin*)
10739      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10740      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10741
10742      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10743      ;;
10744    mingw* | cegcc*)
10745      # MinGW DLLs use traditional 'lib' prefix
10746      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10747      ;;
10748    pw32*)
10749      # pw32 DLLs use 'pw' prefix rather than 'lib'
10750      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10751      ;;
10752    esac
10753    ;;
10754
10755  *)
10756    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10757    ;;
10758  esac
10759  dynamic_linker='Win32 ld.exe'
10760  # FIXME: first we should search . and the directory the executable is in
10761  shlibpath_var=PATH
10762  ;;
10763
10764darwin* | rhapsody*)
10765  dynamic_linker="$host_os dyld"
10766  version_type=darwin
10767  need_lib_prefix=no
10768  need_version=no
10769  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10770  soname_spec='${libname}${release}${major}$shared_ext'
10771  shlibpath_overrides_runpath=yes
10772  shlibpath_var=DYLD_LIBRARY_PATH
10773  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10774
10775  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10776  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10777  ;;
10778
10779dgux*)
10780  version_type=linux
10781  need_lib_prefix=no
10782  need_version=no
10783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10784  soname_spec='${libname}${release}${shared_ext}$major'
10785  shlibpath_var=LD_LIBRARY_PATH
10786  ;;
10787
10788freebsd* | dragonfly*)
10789  # DragonFly does not have aout.  When/if they implement a new
10790  # versioning mechanism, adjust this.
10791  if test -x /usr/bin/objformat; then
10792    objformat=`/usr/bin/objformat`
10793  else
10794    case $host_os in
10795    freebsd[23].*) objformat=aout ;;
10796    *) objformat=elf ;;
10797    esac
10798  fi
10799  version_type=freebsd-$objformat
10800  case $version_type in
10801    freebsd-elf*)
10802      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10803      need_version=no
10804      need_lib_prefix=no
10805      ;;
10806    freebsd-*)
10807      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10808      need_version=yes
10809      ;;
10810  esac
10811  shlibpath_var=LD_LIBRARY_PATH
10812  case $host_os in
10813  freebsd2.*)
10814    shlibpath_overrides_runpath=yes
10815    ;;
10816  freebsd3.[01]* | freebsdelf3.[01]*)
10817    shlibpath_overrides_runpath=yes
10818    hardcode_into_libs=yes
10819    ;;
10820  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10821  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10822    shlibpath_overrides_runpath=no
10823    hardcode_into_libs=yes
10824    ;;
10825  *) # from 4.6 on, and DragonFly
10826    shlibpath_overrides_runpath=yes
10827    hardcode_into_libs=yes
10828    ;;
10829  esac
10830  ;;
10831
10832gnu*)
10833  version_type=linux
10834  need_lib_prefix=no
10835  need_version=no
10836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10837  soname_spec='${libname}${release}${shared_ext}$major'
10838  shlibpath_var=LD_LIBRARY_PATH
10839  hardcode_into_libs=yes
10840  ;;
10841
10842haiku*)
10843  version_type=linux
10844  need_lib_prefix=no
10845  need_version=no
10846  dynamic_linker="$host_os runtime_loader"
10847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10848  soname_spec='${libname}${release}${shared_ext}$major'
10849  shlibpath_var=LIBRARY_PATH
10850  shlibpath_overrides_runpath=yes
10851  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10852  hardcode_into_libs=yes
10853  ;;
10854
10855hpux9* | hpux10* | hpux11*)
10856  # Give a soname corresponding to the major version so that dld.sl refuses to
10857  # link against other versions.
10858  version_type=sunos
10859  need_lib_prefix=no
10860  need_version=no
10861  case $host_cpu in
10862  ia64*)
10863    shrext_cmds='.so'
10864    hardcode_into_libs=yes
10865    dynamic_linker="$host_os dld.so"
10866    shlibpath_var=LD_LIBRARY_PATH
10867    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10868    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869    soname_spec='${libname}${release}${shared_ext}$major'
10870    if test "X$HPUX_IA64_MODE" = X32; then
10871      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10872    else
10873      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10874    fi
10875    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10876    ;;
10877  hppa*64*)
10878    shrext_cmds='.sl'
10879    hardcode_into_libs=yes
10880    dynamic_linker="$host_os dld.sl"
10881    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10882    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10883    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884    soname_spec='${libname}${release}${shared_ext}$major'
10885    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10886    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10887    ;;
10888  *)
10889    shrext_cmds='.sl'
10890    dynamic_linker="$host_os dld.sl"
10891    shlibpath_var=SHLIB_PATH
10892    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10893    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894    soname_spec='${libname}${release}${shared_ext}$major'
10895    ;;
10896  esac
10897  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10898  postinstall_cmds='chmod 555 $lib'
10899  # or fails outright, so override atomically:
10900  install_override_mode=555
10901  ;;
10902
10903interix[3-9]*)
10904  version_type=linux
10905  need_lib_prefix=no
10906  need_version=no
10907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10908  soname_spec='${libname}${release}${shared_ext}$major'
10909  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10910  shlibpath_var=LD_LIBRARY_PATH
10911  shlibpath_overrides_runpath=no
10912  hardcode_into_libs=yes
10913  ;;
10914
10915irix5* | irix6* | nonstopux*)
10916  case $host_os in
10917    nonstopux*) version_type=nonstopux ;;
10918    *)
10919	if test "$lt_cv_prog_gnu_ld" = yes; then
10920		version_type=linux
10921	else
10922		version_type=irix
10923	fi ;;
10924  esac
10925  need_lib_prefix=no
10926  need_version=no
10927  soname_spec='${libname}${release}${shared_ext}$major'
10928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10929  case $host_os in
10930  irix5* | nonstopux*)
10931    libsuff= shlibsuff=
10932    ;;
10933  *)
10934    case $LD in # libtool.m4 will add one of these switches to LD
10935    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10936      libsuff= shlibsuff= libmagic=32-bit;;
10937    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10938      libsuff=32 shlibsuff=N32 libmagic=N32;;
10939    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10940      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10941    *) libsuff= shlibsuff= libmagic=never-match;;
10942    esac
10943    ;;
10944  esac
10945  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10946  shlibpath_overrides_runpath=no
10947  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10948  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10949  hardcode_into_libs=yes
10950  ;;
10951
10952# No shared lib support for Linux oldld, aout, or coff.
10953linux*oldld* | linux*aout* | linux*coff*)
10954  dynamic_linker=no
10955  ;;
10956
10957# This must be Linux ELF.
10958
10959# uclinux* changes (here and below) have been submitted to the libtool
10960# project, but have not yet been accepted: they are GCC-local changes
10961# for the time being.  (See
10962# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10963linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10964  version_type=linux
10965  need_lib_prefix=no
10966  need_version=no
10967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968  soname_spec='${libname}${release}${shared_ext}$major'
10969  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10970  shlibpath_var=LD_LIBRARY_PATH
10971  shlibpath_overrides_runpath=no
10972
10973  # Some binutils ld are patched to set DT_RUNPATH
10974  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10975  $as_echo_n "(cached) " >&6
10976else
10977  lt_cv_shlibpath_overrides_runpath=no
10978    save_LDFLAGS=$LDFLAGS
10979    save_libdir=$libdir
10980    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10981	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10982    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h.  */
10984
10985int
10986main ()
10987{
10988
10989  ;
10990  return 0;
10991}
10992_ACEOF
10993if ac_fn_c_try_link "$LINENO"; then :
10994  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10995  lt_cv_shlibpath_overrides_runpath=yes
10996fi
10997fi
10998rm -f core conftest.err conftest.$ac_objext \
10999    conftest$ac_exeext conftest.$ac_ext
11000    LDFLAGS=$save_LDFLAGS
11001    libdir=$save_libdir
11002
11003fi
11004
11005  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11006
11007  # This implies no fast_install, which is unacceptable.
11008  # Some rework will be needed to allow for fast_install
11009  # before this can be enabled.
11010  hardcode_into_libs=yes
11011
11012  # Append ld.so.conf contents to the search path
11013  if test -f /etc/ld.so.conf; then
11014    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' ' '`
11015    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11016  fi
11017
11018  # We used to test for /lib/ld.so.1 and disable shared libraries on
11019  # powerpc, because MkLinux only supported shared libraries with the
11020  # GNU dynamic linker.  Since this was broken with cross compilers,
11021  # most powerpc-linux boxes support dynamic linking these days and
11022  # people can always --disable-shared, the test was removed, and we
11023  # assume the GNU/Linux dynamic linker is in use.
11024  dynamic_linker='GNU/Linux ld.so'
11025  ;;
11026
11027netbsd*)
11028  version_type=sunos
11029  need_lib_prefix=no
11030  need_version=no
11031  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11032    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11033    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11034    dynamic_linker='NetBSD (a.out) ld.so'
11035  else
11036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11037    soname_spec='${libname}${release}${shared_ext}$major'
11038    dynamic_linker='NetBSD ld.elf_so'
11039  fi
11040  shlibpath_var=LD_LIBRARY_PATH
11041  shlibpath_overrides_runpath=yes
11042  hardcode_into_libs=yes
11043  ;;
11044
11045newsos6)
11046  version_type=linux
11047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048  shlibpath_var=LD_LIBRARY_PATH
11049  shlibpath_overrides_runpath=yes
11050  ;;
11051
11052*nto* | *qnx*)
11053  version_type=qnx
11054  need_lib_prefix=no
11055  need_version=no
11056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057  soname_spec='${libname}${release}${shared_ext}$major'
11058  shlibpath_var=LD_LIBRARY_PATH
11059  shlibpath_overrides_runpath=no
11060  hardcode_into_libs=yes
11061  dynamic_linker='ldqnx.so'
11062  ;;
11063
11064openbsd*)
11065  version_type=sunos
11066  sys_lib_dlsearch_path_spec="/usr/lib"
11067  need_lib_prefix=no
11068  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11069  case $host_os in
11070    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11071    *)				need_version=no  ;;
11072  esac
11073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11074  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11075  shlibpath_var=LD_LIBRARY_PATH
11076  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11077    case $host_os in
11078      openbsd2.[89] | openbsd2.[89].*)
11079	shlibpath_overrides_runpath=no
11080	;;
11081      *)
11082	shlibpath_overrides_runpath=yes
11083	;;
11084      esac
11085  else
11086    shlibpath_overrides_runpath=yes
11087  fi
11088  ;;
11089
11090os2*)
11091  libname_spec='$name'
11092  shrext_cmds=".dll"
11093  need_lib_prefix=no
11094  library_names_spec='$libname${shared_ext} $libname.a'
11095  dynamic_linker='OS/2 ld.exe'
11096  shlibpath_var=LIBPATH
11097  ;;
11098
11099osf3* | osf4* | osf5*)
11100  version_type=osf
11101  need_lib_prefix=no
11102  need_version=no
11103  soname_spec='${libname}${release}${shared_ext}$major'
11104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105  shlibpath_var=LD_LIBRARY_PATH
11106  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11107  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11108  ;;
11109
11110rdos*)
11111  dynamic_linker=no
11112  ;;
11113
11114solaris*)
11115  version_type=linux
11116  need_lib_prefix=no
11117  need_version=no
11118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119  soname_spec='${libname}${release}${shared_ext}$major'
11120  shlibpath_var=LD_LIBRARY_PATH
11121  shlibpath_overrides_runpath=yes
11122  hardcode_into_libs=yes
11123  # ldd complains unless libraries are executable
11124  postinstall_cmds='chmod +x $lib'
11125  ;;
11126
11127sunos4*)
11128  version_type=sunos
11129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11130  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11131  shlibpath_var=LD_LIBRARY_PATH
11132  shlibpath_overrides_runpath=yes
11133  if test "$with_gnu_ld" = yes; then
11134    need_lib_prefix=no
11135  fi
11136  need_version=yes
11137  ;;
11138
11139sysv4 | sysv4.3*)
11140  version_type=linux
11141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142  soname_spec='${libname}${release}${shared_ext}$major'
11143  shlibpath_var=LD_LIBRARY_PATH
11144  case $host_vendor in
11145    sni)
11146      shlibpath_overrides_runpath=no
11147      need_lib_prefix=no
11148      runpath_var=LD_RUN_PATH
11149      ;;
11150    siemens)
11151      need_lib_prefix=no
11152      ;;
11153    motorola)
11154      need_lib_prefix=no
11155      need_version=no
11156      shlibpath_overrides_runpath=no
11157      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11158      ;;
11159  esac
11160  ;;
11161
11162sysv4*MP*)
11163  if test -d /usr/nec ;then
11164    version_type=linux
11165    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11166    soname_spec='$libname${shared_ext}.$major'
11167    shlibpath_var=LD_LIBRARY_PATH
11168  fi
11169  ;;
11170
11171sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11172  version_type=freebsd-elf
11173  need_lib_prefix=no
11174  need_version=no
11175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11176  soname_spec='${libname}${release}${shared_ext}$major'
11177  shlibpath_var=LD_LIBRARY_PATH
11178  shlibpath_overrides_runpath=yes
11179  hardcode_into_libs=yes
11180  if test "$with_gnu_ld" = yes; then
11181    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11182  else
11183    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11184    case $host_os in
11185      sco3.2v5*)
11186        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11187	;;
11188    esac
11189  fi
11190  sys_lib_dlsearch_path_spec='/usr/lib'
11191  ;;
11192
11193tpf*)
11194  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11195  version_type=linux
11196  need_lib_prefix=no
11197  need_version=no
11198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199  shlibpath_var=LD_LIBRARY_PATH
11200  shlibpath_overrides_runpath=no
11201  hardcode_into_libs=yes
11202  ;;
11203
11204uts4*)
11205  version_type=linux
11206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207  soname_spec='${libname}${release}${shared_ext}$major'
11208  shlibpath_var=LD_LIBRARY_PATH
11209  ;;
11210
11211*)
11212  dynamic_linker=no
11213  ;;
11214esac
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11216$as_echo "$dynamic_linker" >&6; }
11217test "$dynamic_linker" = no && can_build_shared=no
11218
11219variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11220if test "$GCC" = yes; then
11221  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11222fi
11223
11224if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11225  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11226fi
11227if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11228  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11229fi
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11323$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11324hardcode_action=
11325if test -n "$hardcode_libdir_flag_spec" ||
11326   test -n "$runpath_var" ||
11327   test "X$hardcode_automatic" = "Xyes" ; then
11328
11329  # We can hardcode non-existent directories.
11330  if test "$hardcode_direct" != no &&
11331     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11332     # have to relink, otherwise we might link with an installed library
11333     # when we should be linking with a yet-to-be-installed one
11334     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11335     test "$hardcode_minus_L" != no; then
11336    # Linking always hardcodes the temporary library directory.
11337    hardcode_action=relink
11338  else
11339    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11340    hardcode_action=immediate
11341  fi
11342else
11343  # We cannot hardcode anything, or else we can only hardcode existing
11344  # directories.
11345  hardcode_action=unsupported
11346fi
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11348$as_echo "$hardcode_action" >&6; }
11349
11350if test "$hardcode_action" = relink ||
11351   test "$inherit_rpath" = yes; then
11352  # Fast installation is not supported
11353  enable_fast_install=no
11354elif test "$shlibpath_overrides_runpath" = yes ||
11355     test "$enable_shared" = no; then
11356  # Fast installation is not necessary
11357  enable_fast_install=needless
11358fi
11359
11360
11361
11362
11363
11364
11365  if test "x$enable_dlopen" != xyes; then
11366  enable_dlopen=unknown
11367  enable_dlopen_self=unknown
11368  enable_dlopen_self_static=unknown
11369else
11370  lt_cv_dlopen=no
11371  lt_cv_dlopen_libs=
11372
11373  case $host_os in
11374  beos*)
11375    lt_cv_dlopen="load_add_on"
11376    lt_cv_dlopen_libs=
11377    lt_cv_dlopen_self=yes
11378    ;;
11379
11380  mingw* | pw32* | cegcc*)
11381    lt_cv_dlopen="LoadLibrary"
11382    lt_cv_dlopen_libs=
11383    ;;
11384
11385  cygwin*)
11386    lt_cv_dlopen="dlopen"
11387    lt_cv_dlopen_libs=
11388    ;;
11389
11390  darwin*)
11391  # if libdl is installed we need to link against it
11392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11393$as_echo_n "checking for dlopen in -ldl... " >&6; }
11394if ${ac_cv_lib_dl_dlopen+:} false; then :
11395  $as_echo_n "(cached) " >&6
11396else
11397  ac_check_lib_save_LIBS=$LIBS
11398LIBS="-ldl  $LIBS"
11399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400/* end confdefs.h.  */
11401
11402/* Override any GCC internal prototype to avoid an error.
11403   Use char because int might match the return type of a GCC
11404   builtin and then its argument prototype would still apply.  */
11405#ifdef __cplusplus
11406extern "C"
11407#endif
11408char dlopen ();
11409int
11410main ()
11411{
11412return dlopen ();
11413  ;
11414  return 0;
11415}
11416_ACEOF
11417if ac_fn_c_try_link "$LINENO"; then :
11418  ac_cv_lib_dl_dlopen=yes
11419else
11420  ac_cv_lib_dl_dlopen=no
11421fi
11422rm -f core conftest.err conftest.$ac_objext \
11423    conftest$ac_exeext conftest.$ac_ext
11424LIBS=$ac_check_lib_save_LIBS
11425fi
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11427$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11428if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11429  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11430else
11431
11432    lt_cv_dlopen="dyld"
11433    lt_cv_dlopen_libs=
11434    lt_cv_dlopen_self=yes
11435
11436fi
11437
11438    ;;
11439
11440  *)
11441    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11442if test "x$ac_cv_func_shl_load" = xyes; then :
11443  lt_cv_dlopen="shl_load"
11444else
11445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11446$as_echo_n "checking for shl_load in -ldld... " >&6; }
11447if ${ac_cv_lib_dld_shl_load+:} false; then :
11448  $as_echo_n "(cached) " >&6
11449else
11450  ac_check_lib_save_LIBS=$LIBS
11451LIBS="-ldld  $LIBS"
11452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453/* end confdefs.h.  */
11454
11455/* Override any GCC internal prototype to avoid an error.
11456   Use char because int might match the return type of a GCC
11457   builtin and then its argument prototype would still apply.  */
11458#ifdef __cplusplus
11459extern "C"
11460#endif
11461char shl_load ();
11462int
11463main ()
11464{
11465return shl_load ();
11466  ;
11467  return 0;
11468}
11469_ACEOF
11470if ac_fn_c_try_link "$LINENO"; then :
11471  ac_cv_lib_dld_shl_load=yes
11472else
11473  ac_cv_lib_dld_shl_load=no
11474fi
11475rm -f core conftest.err conftest.$ac_objext \
11476    conftest$ac_exeext conftest.$ac_ext
11477LIBS=$ac_check_lib_save_LIBS
11478fi
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11480$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11481if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11482  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11483else
11484  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11485if test "x$ac_cv_func_dlopen" = xyes; then :
11486  lt_cv_dlopen="dlopen"
11487else
11488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11489$as_echo_n "checking for dlopen in -ldl... " >&6; }
11490if ${ac_cv_lib_dl_dlopen+:} false; then :
11491  $as_echo_n "(cached) " >&6
11492else
11493  ac_check_lib_save_LIBS=$LIBS
11494LIBS="-ldl  $LIBS"
11495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496/* end confdefs.h.  */
11497
11498/* Override any GCC internal prototype to avoid an error.
11499   Use char because int might match the return type of a GCC
11500   builtin and then its argument prototype would still apply.  */
11501#ifdef __cplusplus
11502extern "C"
11503#endif
11504char dlopen ();
11505int
11506main ()
11507{
11508return dlopen ();
11509  ;
11510  return 0;
11511}
11512_ACEOF
11513if ac_fn_c_try_link "$LINENO"; then :
11514  ac_cv_lib_dl_dlopen=yes
11515else
11516  ac_cv_lib_dl_dlopen=no
11517fi
11518rm -f core conftest.err conftest.$ac_objext \
11519    conftest$ac_exeext conftest.$ac_ext
11520LIBS=$ac_check_lib_save_LIBS
11521fi
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11523$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11524if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11525  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11526else
11527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11528$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11529if ${ac_cv_lib_svld_dlopen+:} false; then :
11530  $as_echo_n "(cached) " >&6
11531else
11532  ac_check_lib_save_LIBS=$LIBS
11533LIBS="-lsvld  $LIBS"
11534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h.  */
11536
11537/* Override any GCC internal prototype to avoid an error.
11538   Use char because int might match the return type of a GCC
11539   builtin and then its argument prototype would still apply.  */
11540#ifdef __cplusplus
11541extern "C"
11542#endif
11543char dlopen ();
11544int
11545main ()
11546{
11547return dlopen ();
11548  ;
11549  return 0;
11550}
11551_ACEOF
11552if ac_fn_c_try_link "$LINENO"; then :
11553  ac_cv_lib_svld_dlopen=yes
11554else
11555  ac_cv_lib_svld_dlopen=no
11556fi
11557rm -f core conftest.err conftest.$ac_objext \
11558    conftest$ac_exeext conftest.$ac_ext
11559LIBS=$ac_check_lib_save_LIBS
11560fi
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11562$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11563if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11564  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11565else
11566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11567$as_echo_n "checking for dld_link in -ldld... " >&6; }
11568if ${ac_cv_lib_dld_dld_link+:} false; then :
11569  $as_echo_n "(cached) " >&6
11570else
11571  ac_check_lib_save_LIBS=$LIBS
11572LIBS="-ldld  $LIBS"
11573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h.  */
11575
11576/* Override any GCC internal prototype to avoid an error.
11577   Use char because int might match the return type of a GCC
11578   builtin and then its argument prototype would still apply.  */
11579#ifdef __cplusplus
11580extern "C"
11581#endif
11582char dld_link ();
11583int
11584main ()
11585{
11586return dld_link ();
11587  ;
11588  return 0;
11589}
11590_ACEOF
11591if ac_fn_c_try_link "$LINENO"; then :
11592  ac_cv_lib_dld_dld_link=yes
11593else
11594  ac_cv_lib_dld_dld_link=no
11595fi
11596rm -f core conftest.err conftest.$ac_objext \
11597    conftest$ac_exeext conftest.$ac_ext
11598LIBS=$ac_check_lib_save_LIBS
11599fi
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11601$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11602if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11603  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11604fi
11605
11606
11607fi
11608
11609
11610fi
11611
11612
11613fi
11614
11615
11616fi
11617
11618
11619fi
11620
11621    ;;
11622  esac
11623
11624  if test "x$lt_cv_dlopen" != xno; then
11625    enable_dlopen=yes
11626  else
11627    enable_dlopen=no
11628  fi
11629
11630  case $lt_cv_dlopen in
11631  dlopen)
11632    save_CPPFLAGS="$CPPFLAGS"
11633    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11634
11635    save_LDFLAGS="$LDFLAGS"
11636    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11637
11638    save_LIBS="$LIBS"
11639    LIBS="$lt_cv_dlopen_libs $LIBS"
11640
11641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11642$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11643if ${lt_cv_dlopen_self+:} false; then :
11644  $as_echo_n "(cached) " >&6
11645else
11646  	  if test "$cross_compiling" = yes; then :
11647  lt_cv_dlopen_self=cross
11648else
11649  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11650  lt_status=$lt_dlunknown
11651  cat > conftest.$ac_ext <<_LT_EOF
11652#line 11652 "configure"
11653#include "confdefs.h"
11654
11655#if HAVE_DLFCN_H
11656#include <dlfcn.h>
11657#endif
11658
11659#include <stdio.h>
11660
11661#ifdef RTLD_GLOBAL
11662#  define LT_DLGLOBAL		RTLD_GLOBAL
11663#else
11664#  ifdef DL_GLOBAL
11665#    define LT_DLGLOBAL		DL_GLOBAL
11666#  else
11667#    define LT_DLGLOBAL		0
11668#  endif
11669#endif
11670
11671/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11672   find out it does not work in some platform. */
11673#ifndef LT_DLLAZY_OR_NOW
11674#  ifdef RTLD_LAZY
11675#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11676#  else
11677#    ifdef DL_LAZY
11678#      define LT_DLLAZY_OR_NOW		DL_LAZY
11679#    else
11680#      ifdef RTLD_NOW
11681#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11682#      else
11683#        ifdef DL_NOW
11684#          define LT_DLLAZY_OR_NOW	DL_NOW
11685#        else
11686#          define LT_DLLAZY_OR_NOW	0
11687#        endif
11688#      endif
11689#    endif
11690#  endif
11691#endif
11692
11693/* When -fvisbility=hidden is used, assume the code has been annotated
11694   correspondingly for the symbols needed.  */
11695#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11696void fnord () __attribute__((visibility("default")));
11697#endif
11698
11699void fnord () { int i=42; }
11700int main ()
11701{
11702  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11703  int status = $lt_dlunknown;
11704
11705  if (self)
11706    {
11707      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11708      else
11709        {
11710	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11711          else puts (dlerror ());
11712	}
11713      /* dlclose (self); */
11714    }
11715  else
11716    puts (dlerror ());
11717
11718  return status;
11719}
11720_LT_EOF
11721  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11722  (eval $ac_link) 2>&5
11723  ac_status=$?
11724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11725  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11726    (./conftest; exit; ) >&5 2>/dev/null
11727    lt_status=$?
11728    case x$lt_status in
11729      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11730      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11731      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11732    esac
11733  else :
11734    # compilation failed
11735    lt_cv_dlopen_self=no
11736  fi
11737fi
11738rm -fr conftest*
11739
11740
11741fi
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11743$as_echo "$lt_cv_dlopen_self" >&6; }
11744
11745    if test "x$lt_cv_dlopen_self" = xyes; then
11746      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11747      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11748$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11749if ${lt_cv_dlopen_self_static+:} false; then :
11750  $as_echo_n "(cached) " >&6
11751else
11752  	  if test "$cross_compiling" = yes; then :
11753  lt_cv_dlopen_self_static=cross
11754else
11755  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11756  lt_status=$lt_dlunknown
11757  cat > conftest.$ac_ext <<_LT_EOF
11758#line 11758 "configure"
11759#include "confdefs.h"
11760
11761#if HAVE_DLFCN_H
11762#include <dlfcn.h>
11763#endif
11764
11765#include <stdio.h>
11766
11767#ifdef RTLD_GLOBAL
11768#  define LT_DLGLOBAL		RTLD_GLOBAL
11769#else
11770#  ifdef DL_GLOBAL
11771#    define LT_DLGLOBAL		DL_GLOBAL
11772#  else
11773#    define LT_DLGLOBAL		0
11774#  endif
11775#endif
11776
11777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11778   find out it does not work in some platform. */
11779#ifndef LT_DLLAZY_OR_NOW
11780#  ifdef RTLD_LAZY
11781#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11782#  else
11783#    ifdef DL_LAZY
11784#      define LT_DLLAZY_OR_NOW		DL_LAZY
11785#    else
11786#      ifdef RTLD_NOW
11787#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11788#      else
11789#        ifdef DL_NOW
11790#          define LT_DLLAZY_OR_NOW	DL_NOW
11791#        else
11792#          define LT_DLLAZY_OR_NOW	0
11793#        endif
11794#      endif
11795#    endif
11796#  endif
11797#endif
11798
11799/* When -fvisbility=hidden is used, assume the code has been annotated
11800   correspondingly for the symbols needed.  */
11801#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11802void fnord () __attribute__((visibility("default")));
11803#endif
11804
11805void fnord () { int i=42; }
11806int main ()
11807{
11808  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11809  int status = $lt_dlunknown;
11810
11811  if (self)
11812    {
11813      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11814      else
11815        {
11816	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11817          else puts (dlerror ());
11818	}
11819      /* dlclose (self); */
11820    }
11821  else
11822    puts (dlerror ());
11823
11824  return status;
11825}
11826_LT_EOF
11827  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11828  (eval $ac_link) 2>&5
11829  ac_status=$?
11830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11831  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11832    (./conftest; exit; ) >&5 2>/dev/null
11833    lt_status=$?
11834    case x$lt_status in
11835      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11836      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11837      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11838    esac
11839  else :
11840    # compilation failed
11841    lt_cv_dlopen_self_static=no
11842  fi
11843fi
11844rm -fr conftest*
11845
11846
11847fi
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11849$as_echo "$lt_cv_dlopen_self_static" >&6; }
11850    fi
11851
11852    CPPFLAGS="$save_CPPFLAGS"
11853    LDFLAGS="$save_LDFLAGS"
11854    LIBS="$save_LIBS"
11855    ;;
11856  esac
11857
11858  case $lt_cv_dlopen_self in
11859  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11860  *) enable_dlopen_self=unknown ;;
11861  esac
11862
11863  case $lt_cv_dlopen_self_static in
11864  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11865  *) enable_dlopen_self_static=unknown ;;
11866  esac
11867fi
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885striplib=
11886old_striplib=
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11888$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11889if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11890  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11891  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893$as_echo "yes" >&6; }
11894else
11895# FIXME - insert some real tests, host_os isn't really good enough
11896  case $host_os in
11897  darwin*)
11898    if test -n "$STRIP" ; then
11899      striplib="$STRIP -x"
11900      old_striplib="$STRIP -S"
11901      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902$as_echo "yes" >&6; }
11903    else
11904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905$as_echo "no" >&6; }
11906    fi
11907    ;;
11908  *)
11909    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910$as_echo "no" >&6; }
11911    ;;
11912  esac
11913fi
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926  # Report which library types will actually be built
11927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11928$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11930$as_echo "$can_build_shared" >&6; }
11931
11932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11933$as_echo_n "checking whether to build shared libraries... " >&6; }
11934  test "$can_build_shared" = "no" && enable_shared=no
11935
11936  # On AIX, shared libraries and static libraries use the same namespace, and
11937  # are all built from PIC.
11938  case $host_os in
11939  aix3*)
11940    test "$enable_shared" = yes && enable_static=no
11941    if test -n "$RANLIB"; then
11942      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11943      postinstall_cmds='$RANLIB $lib'
11944    fi
11945    ;;
11946
11947  aix[4-9]*)
11948    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11949      test "$enable_shared" = yes && enable_static=no
11950    fi
11951    ;;
11952  esac
11953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11954$as_echo "$enable_shared" >&6; }
11955
11956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11957$as_echo_n "checking whether to build static libraries... " >&6; }
11958  # Make sure either enable_shared or enable_static is yes.
11959  test "$enable_shared" = yes || enable_static=yes
11960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11961$as_echo "$enable_static" >&6; }
11962
11963
11964
11965
11966fi
11967ac_ext=c
11968ac_cpp='$CPP $CPPFLAGS'
11969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972
11973CC="$lt_save_CC"
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987        ac_config_commands="$ac_config_commands libtool"
11988
11989
11990
11991
11992# Only expand once:
11993
11994
11995
11996
11997
11998  gdc_save_DFLAGS=$GDCFLAGS
11999  GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
12000
12001
12002# Source file extension for D test sources.
12003ac_ext=d
12004
12005# Object file extension for compiled D test sources.
12006objext=o
12007objext_D=$objext
12008
12009# Code to be used in simple compile tests
12010lt_simple_compile_test_code="\
12011  module object;
12012  shared int some_variable = 0;
12013"
12014
12015# Code to be used in simple link tests
12016lt_simple_link_test_code="\
12017  module object;
12018  extern(C) int main() { return 0; }
12019"
12020
12021# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12022
12023
12024
12025
12026
12027
12028# If no C compiler was specified, use CC.
12029LTCC=${LTCC-"$CC"}
12030
12031# If no C compiler flags were specified, use CFLAGS.
12032LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12033
12034# Allow CC to be a program name with arguments.
12035compiler=$CC
12036
12037
12038# save warnings/boilerplate of simple test code
12039ac_outfile=conftest.$ac_objext
12040echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12041eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12042_lt_compiler_boilerplate=`cat conftest.err`
12043$RM conftest*
12044
12045ac_outfile=conftest.$ac_objext
12046echo "$lt_simple_link_test_code" >conftest.$ac_ext
12047eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12048_lt_linker_boilerplate=`cat conftest.err`
12049$RM -r conftest*
12050
12051
12052# Allow CC to be a program name with arguments.
12053lt_save_CC=$CC
12054lt_save_CFLAGS=$CFLAGS
12055lt_save_GCC=$GCC
12056GCC=yes
12057CC=${GDC-"gdc"}
12058CFLAGS=$GDCFLAGS
12059compiler=$CC
12060compiler_D=$CC
12061LD_D=$CC
12062for cc_temp in $compiler""; do
12063  case $cc_temp in
12064    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12065    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12066    \-*) ;;
12067    *) break;;
12068  esac
12069done
12070cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12071
12072
12073# GDC did not exist at the time GCC didn't implicitly link libc in.
12074archive_cmds_need_lc_D=no
12075
12076old_archive_cmds_D=$old_archive_cmds
12077reload_flag_D=$reload_flag
12078reload_cmds_D=$reload_cmds
12079
12080## CAVEAT EMPTOR:
12081## There is no encapsulation within the following macros, do not change
12082## the running order or otherwise move them around unless you know exactly
12083## what you are doing...
12084if test -n "$compiler"; then
12085
12086lt_prog_compiler_no_builtin_flag_D=
12087
12088if test "$GCC" = yes; then
12089  case $cc_basename in
12090  nvcc*)
12091    lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12092  *)
12093    lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12094  esac
12095
12096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12097$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12098if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12099  $as_echo_n "(cached) " >&6
12100else
12101  lt_cv_prog_compiler_rtti_exceptions=no
12102   ac_outfile=conftest.$ac_objext
12103   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12104   lt_compiler_flag="-fno-rtti -fno-exceptions"
12105   # Insert the option either (1) after the last *FLAGS variable, or
12106   # (2) before a word containing "conftest.", or (3) at the end.
12107   # Note that $ac_compile itself does not contain backslashes and begins
12108   # with a dollar sign (not a hyphen), so the echo should work correctly.
12109   # The option is referenced via a variable to avoid confusing sed.
12110   lt_compile=`echo "$ac_compile" | $SED \
12111   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12112   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12113   -e 's:$: $lt_compiler_flag:'`
12114   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12115   (eval "$lt_compile" 2>conftest.err)
12116   ac_status=$?
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   if (exit $ac_status) && test -s "$ac_outfile"; then
12120     # The compiler can only warn and ignore the option if not recognized
12121     # So say no if there are warnings other than the usual output.
12122     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12123     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12124     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12125       lt_cv_prog_compiler_rtti_exceptions=yes
12126     fi
12127   fi
12128   $RM conftest*
12129
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12132$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12133
12134if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12135    lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12136else
12137    :
12138fi
12139
12140fi
12141
12142
12143
12144  lt_prog_compiler_wl_D=
12145lt_prog_compiler_pic_D=
12146lt_prog_compiler_static_D=
12147
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12149$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12150
12151  if test "$GCC" = yes; then
12152    lt_prog_compiler_wl_D='-Wl,'
12153    lt_prog_compiler_static_D='-static'
12154
12155    case $host_os in
12156      aix*)
12157      # All AIX code is PIC.
12158      if test "$host_cpu" = ia64; then
12159	# AIX 5 now supports IA64 processor
12160	lt_prog_compiler_static_D='-Bstatic'
12161      fi
12162      lt_prog_compiler_pic_D='-fPIC'
12163      ;;
12164
12165    amigaos*)
12166      case $host_cpu in
12167      powerpc)
12168            # see comment about AmigaOS4 .so support
12169            lt_prog_compiler_pic_D='-fPIC'
12170        ;;
12171      m68k)
12172            # FIXME: we need at least 68020 code to build shared libraries, but
12173            # adding the `-m68020' flag to GCC prevents building anything better,
12174            # like `-m68040'.
12175            lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12176        ;;
12177      esac
12178      ;;
12179
12180    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12181      # PIC is the default for these OSes.
12182      ;;
12183
12184    mingw* | cygwin* | pw32* | os2* | cegcc*)
12185      # This hack is so that the source file can tell whether it is being
12186      # built for inclusion in a dll (and should export symbols for example).
12187      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12188      # (--disable-auto-import) libraries
12189      lt_prog_compiler_pic_D='-DDLL_EXPORT'
12190      ;;
12191
12192    darwin* | rhapsody*)
12193      # PIC is the default on this platform
12194      # Common symbols not allowed in MH_DYLIB files
12195      lt_prog_compiler_pic_D='-fno-common'
12196      ;;
12197
12198    haiku*)
12199      # PIC is the default for Haiku.
12200      # The "-static" flag exists, but is broken.
12201      lt_prog_compiler_static_D=
12202      ;;
12203
12204    hpux*)
12205      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12206      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12207      # sets the default TLS model and affects inlining.
12208      case $host_cpu in
12209      hppa*64*)
12210	# +Z the default
12211	;;
12212      *)
12213	lt_prog_compiler_pic_D='-fPIC'
12214	;;
12215      esac
12216      ;;
12217
12218    interix[3-9]*)
12219      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12220      # Instead, we relocate shared libraries at runtime.
12221      ;;
12222
12223    msdosdjgpp*)
12224      # Just because we use GCC doesn't mean we suddenly get shared libraries
12225      # on systems that don't support them.
12226      lt_prog_compiler_can_build_shared_D=no
12227      enable_shared=no
12228      ;;
12229
12230    *nto* | *qnx*)
12231      # QNX uses GNU C++, but need to define -shared option too, otherwise
12232      # it will coredump.
12233      lt_prog_compiler_pic_D='-fPIC -shared'
12234      ;;
12235
12236    sysv4*MP*)
12237      if test -d /usr/nec; then
12238	lt_prog_compiler_pic_D=-Kconform_pic
12239      fi
12240      ;;
12241
12242    *)
12243      lt_prog_compiler_pic_D='-fPIC'
12244      ;;
12245    esac
12246
12247    case $cc_basename in
12248    nvcc*) # Cuda Compiler Driver 2.2
12249      lt_prog_compiler_wl_D='-Xlinker '
12250      lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12251      ;;
12252    esac
12253  else
12254    # PORTME Check for flag to pass linker flags through the system compiler.
12255    case $host_os in
12256    aix*)
12257      lt_prog_compiler_wl_D='-Wl,'
12258      if test "$host_cpu" = ia64; then
12259	# AIX 5 now supports IA64 processor
12260	lt_prog_compiler_static_D='-Bstatic'
12261      else
12262	lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12263      fi
12264      ;;
12265
12266    mingw* | cygwin* | pw32* | os2* | cegcc*)
12267      # This hack is so that the source file can tell whether it is being
12268      # built for inclusion in a dll (and should export symbols for example).
12269      lt_prog_compiler_pic_D='-DDLL_EXPORT'
12270      ;;
12271
12272    hpux9* | hpux10* | hpux11*)
12273      lt_prog_compiler_wl_D='-Wl,'
12274      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12275      # not for PA HP-UX.
12276      case $host_cpu in
12277      hppa*64*|ia64*)
12278	# +Z the default
12279	;;
12280      *)
12281	lt_prog_compiler_pic_D='+Z'
12282	;;
12283      esac
12284      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12285      lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12286      ;;
12287
12288    irix5* | irix6* | nonstopux*)
12289      lt_prog_compiler_wl_D='-Wl,'
12290      # PIC (with -KPIC) is the default.
12291      lt_prog_compiler_static_D='-non_shared'
12292      ;;
12293
12294    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12295      case $cc_basename in
12296      # old Intel for x86_64 which still supported -KPIC.
12297      ecc*)
12298	lt_prog_compiler_wl_D='-Wl,'
12299	lt_prog_compiler_pic_D='-KPIC'
12300	lt_prog_compiler_static_D='-static'
12301        ;;
12302      # icc used to be incompatible with GCC.
12303      # ICC 10 doesn't accept -KPIC any more.
12304      icc* | ifort*)
12305	lt_prog_compiler_wl_D='-Wl,'
12306	lt_prog_compiler_pic_D='-fPIC'
12307	lt_prog_compiler_static_D='-static'
12308        ;;
12309      # Lahey Fortran 8.1.
12310      lf95*)
12311	lt_prog_compiler_wl_D='-Wl,'
12312	lt_prog_compiler_pic_D='--shared'
12313	lt_prog_compiler_static_D='--static'
12314	;;
12315      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12316        # Portland Group compilers (*not* the Pentium gcc compiler,
12317	# which looks to be a dead project)
12318	lt_prog_compiler_wl_D='-Wl,'
12319	lt_prog_compiler_pic_D='-fpic'
12320	lt_prog_compiler_static_D='-Bstatic'
12321        ;;
12322      ccc*)
12323        lt_prog_compiler_wl_D='-Wl,'
12324        # All Alpha code is PIC.
12325        lt_prog_compiler_static_D='-non_shared'
12326        ;;
12327      xl* | bgxl* | bgf* | mpixl*)
12328	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12329	lt_prog_compiler_wl_D='-Wl,'
12330	lt_prog_compiler_pic_D='-qpic'
12331	lt_prog_compiler_static_D='-qstaticlink'
12332	;;
12333      *)
12334	case `$CC -V 2>&1 | sed 5q` in
12335	*Sun\ F* | *Sun*Fortran*)
12336	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12337	  lt_prog_compiler_pic_D='-KPIC'
12338	  lt_prog_compiler_static_D='-Bstatic'
12339	  lt_prog_compiler_wl_D=''
12340	  ;;
12341	*Sun\ C*)
12342	  # Sun C 5.9
12343	  lt_prog_compiler_pic_D='-KPIC'
12344	  lt_prog_compiler_static_D='-Bstatic'
12345	  lt_prog_compiler_wl_D='-Wl,'
12346	  ;;
12347	esac
12348	;;
12349      esac
12350      ;;
12351
12352    newsos6)
12353      lt_prog_compiler_pic_D='-KPIC'
12354      lt_prog_compiler_static_D='-Bstatic'
12355      ;;
12356
12357    *nto* | *qnx*)
12358      # QNX uses GNU C++, but need to define -shared option too, otherwise
12359      # it will coredump.
12360      lt_prog_compiler_pic_D='-fPIC -shared'
12361      ;;
12362
12363    osf3* | osf4* | osf5*)
12364      lt_prog_compiler_wl_D='-Wl,'
12365      # All OSF/1 code is PIC.
12366      lt_prog_compiler_static_D='-non_shared'
12367      ;;
12368
12369    rdos*)
12370      lt_prog_compiler_static_D='-non_shared'
12371      ;;
12372
12373    solaris*)
12374      lt_prog_compiler_pic_D='-KPIC'
12375      lt_prog_compiler_static_D='-Bstatic'
12376      case $cc_basename in
12377      f77* | f90* | f95*)
12378	lt_prog_compiler_wl_D='-Qoption ld ';;
12379      *)
12380	lt_prog_compiler_wl_D='-Wl,';;
12381      esac
12382      ;;
12383
12384    sunos4*)
12385      lt_prog_compiler_wl_D='-Qoption ld '
12386      lt_prog_compiler_pic_D='-PIC'
12387      lt_prog_compiler_static_D='-Bstatic'
12388      ;;
12389
12390    sysv4 | sysv4.2uw2* | sysv4.3*)
12391      lt_prog_compiler_wl_D='-Wl,'
12392      lt_prog_compiler_pic_D='-KPIC'
12393      lt_prog_compiler_static_D='-Bstatic'
12394      ;;
12395
12396    sysv4*MP*)
12397      if test -d /usr/nec ;then
12398	lt_prog_compiler_pic_D='-Kconform_pic'
12399	lt_prog_compiler_static_D='-Bstatic'
12400      fi
12401      ;;
12402
12403    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12404      lt_prog_compiler_wl_D='-Wl,'
12405      lt_prog_compiler_pic_D='-KPIC'
12406      lt_prog_compiler_static_D='-Bstatic'
12407      ;;
12408
12409    unicos*)
12410      lt_prog_compiler_wl_D='-Wl,'
12411      lt_prog_compiler_can_build_shared_D=no
12412      ;;
12413
12414    uts4*)
12415      lt_prog_compiler_pic_D='-pic'
12416      lt_prog_compiler_static_D='-Bstatic'
12417      ;;
12418
12419    *)
12420      lt_prog_compiler_can_build_shared_D=no
12421      ;;
12422    esac
12423  fi
12424
12425case $host_os in
12426  # For platforms which do not support PIC, -DPIC is meaningless:
12427  *djgpp*)
12428    lt_prog_compiler_pic_D=
12429    ;;
12430  *)
12431    lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12432    ;;
12433esac
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12435$as_echo "$lt_prog_compiler_pic_D" >&6; }
12436
12437
12438
12439#
12440# Check to make sure the PIC flag actually works.
12441#
12442if test -n "$lt_prog_compiler_pic_D"; then
12443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12444$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12445if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12446  $as_echo_n "(cached) " >&6
12447else
12448  lt_cv_prog_compiler_pic_works_D=no
12449   ac_outfile=conftest.$ac_objext
12450   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12451   lt_compiler_flag="$lt_prog_compiler_pic_D"
12452   # Insert the option either (1) after the last *FLAGS variable, or
12453   # (2) before a word containing "conftest.", or (3) at the end.
12454   # Note that $ac_compile itself does not contain backslashes and begins
12455   # with a dollar sign (not a hyphen), so the echo should work correctly.
12456   # The option is referenced via a variable to avoid confusing sed.
12457   lt_compile=`echo "$ac_compile" | $SED \
12458   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12459   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12460   -e 's:$: $lt_compiler_flag:'`
12461   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12462   (eval "$lt_compile" 2>conftest.err)
12463   ac_status=$?
12464   cat conftest.err >&5
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   if (exit $ac_status) && test -s "$ac_outfile"; then
12467     # The compiler can only warn and ignore the option if not recognized
12468     # So say no if there are warnings other than the usual output.
12469     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12470     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12471     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12472       lt_cv_prog_compiler_pic_works_D=yes
12473     fi
12474   fi
12475   $RM conftest*
12476
12477fi
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12479$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12480
12481if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12482    case $lt_prog_compiler_pic_D in
12483     "" | " "*) ;;
12484     *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12485     esac
12486else
12487    lt_prog_compiler_pic_D=
12488     lt_prog_compiler_can_build_shared_D=no
12489fi
12490
12491fi
12492
12493
12494
12495#
12496# Check to make sure the static flag actually works.
12497#
12498wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12500$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12501if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12502  $as_echo_n "(cached) " >&6
12503else
12504  lt_cv_prog_compiler_static_works_D=no
12505   save_LDFLAGS="$LDFLAGS"
12506   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12507   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12508   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12509     # The linker can only warn and ignore the option if not recognized
12510     # So say no if there are warnings
12511     if test -s conftest.err; then
12512       # Append any errors to the config.log.
12513       cat conftest.err 1>&5
12514       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12515       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12516       if diff conftest.exp conftest.er2 >/dev/null; then
12517         lt_cv_prog_compiler_static_works_D=yes
12518       fi
12519     else
12520       lt_cv_prog_compiler_static_works_D=yes
12521     fi
12522   fi
12523   $RM -r conftest*
12524   LDFLAGS="$save_LDFLAGS"
12525
12526fi
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12528$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12529
12530if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12531    :
12532else
12533    lt_prog_compiler_static_D=
12534fi
12535
12536
12537
12538
12539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12540$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12541if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12542  $as_echo_n "(cached) " >&6
12543else
12544  lt_cv_prog_compiler_c_o_D=no
12545   $RM -r conftest 2>/dev/null
12546   mkdir conftest
12547   cd conftest
12548   mkdir out
12549   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12550
12551   lt_compiler_flag="-o out/conftest2.$ac_objext"
12552   # Insert the option either (1) after the last *FLAGS variable, or
12553   # (2) before a word containing "conftest.", or (3) at the end.
12554   # Note that $ac_compile itself does not contain backslashes and begins
12555   # with a dollar sign (not a hyphen), so the echo should work correctly.
12556   lt_compile=`echo "$ac_compile" | $SED \
12557   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12558   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12559   -e 's:$: $lt_compiler_flag:'`
12560   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12561   (eval "$lt_compile" 2>out/conftest.err)
12562   ac_status=$?
12563   cat out/conftest.err >&5
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12566   then
12567     # The compiler can only warn and ignore the option if not recognized
12568     # So say no if there are warnings
12569     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12570     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12571     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12572       lt_cv_prog_compiler_c_o_D=yes
12573     fi
12574   fi
12575   chmod u+w . 2>&5
12576   $RM conftest*
12577   # SGI C++ compiler will create directory out/ii_files/ for
12578   # template instantiation
12579   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12580   $RM out/* && rmdir out
12581   cd ..
12582   $RM -r conftest
12583   $RM conftest*
12584
12585fi
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12587$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12588
12589
12590
12591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12592$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12593if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12594  $as_echo_n "(cached) " >&6
12595else
12596  lt_cv_prog_compiler_c_o_D=no
12597   $RM -r conftest 2>/dev/null
12598   mkdir conftest
12599   cd conftest
12600   mkdir out
12601   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12602
12603   lt_compiler_flag="-o out/conftest2.$ac_objext"
12604   # Insert the option either (1) after the last *FLAGS variable, or
12605   # (2) before a word containing "conftest.", or (3) at the end.
12606   # Note that $ac_compile itself does not contain backslashes and begins
12607   # with a dollar sign (not a hyphen), so the echo should work correctly.
12608   lt_compile=`echo "$ac_compile" | $SED \
12609   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12610   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12611   -e 's:$: $lt_compiler_flag:'`
12612   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12613   (eval "$lt_compile" 2>out/conftest.err)
12614   ac_status=$?
12615   cat out/conftest.err >&5
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12618   then
12619     # The compiler can only warn and ignore the option if not recognized
12620     # So say no if there are warnings
12621     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12622     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12623     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12624       lt_cv_prog_compiler_c_o_D=yes
12625     fi
12626   fi
12627   chmod u+w . 2>&5
12628   $RM conftest*
12629   # SGI C++ compiler will create directory out/ii_files/ for
12630   # template instantiation
12631   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12632   $RM out/* && rmdir out
12633   cd ..
12634   $RM -r conftest
12635   $RM conftest*
12636
12637fi
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12639$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12640
12641
12642
12643
12644hard_links="nottested"
12645if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12646  # do not overwrite the value of need_locks provided by the user
12647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12648$as_echo_n "checking if we can lock with hard links... " >&6; }
12649  hard_links=yes
12650  $RM conftest*
12651  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12652  touch conftest.a
12653  ln conftest.a conftest.b 2>&5 || hard_links=no
12654  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12656$as_echo "$hard_links" >&6; }
12657  if test "$hard_links" = no; then
12658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12659$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12660    need_locks=warn
12661  fi
12662else
12663  need_locks=no
12664fi
12665
12666
12667
12668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12669$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12670
12671  runpath_var=
12672  allow_undefined_flag_D=
12673  always_export_symbols_D=no
12674  archive_cmds_D=
12675  archive_expsym_cmds_D=
12676  compiler_needs_object_D=no
12677  enable_shared_with_static_runtimes_D=no
12678  export_dynamic_flag_spec_D=
12679  export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12680  hardcode_automatic_D=no
12681  hardcode_direct_D=no
12682  hardcode_direct_absolute_D=no
12683  hardcode_libdir_flag_spec_D=
12684  hardcode_libdir_flag_spec_ld_D=
12685  hardcode_libdir_separator_D=
12686  hardcode_minus_L_D=no
12687  hardcode_shlibpath_var_D=unsupported
12688  inherit_rpath_D=no
12689  link_all_deplibs_D=unknown
12690  module_cmds_D=
12691  module_expsym_cmds_D=
12692  old_archive_from_new_cmds_D=
12693  old_archive_from_expsyms_cmds_D=
12694  thread_safe_flag_spec_D=
12695  whole_archive_flag_spec_D=
12696  # include_expsyms should be a list of space-separated symbols to be *always*
12697  # included in the symbol list
12698  include_expsyms_D=
12699  # exclude_expsyms can be an extended regexp of symbols to exclude
12700  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12701  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12702  # as well as any symbol that contains `d'.
12703  exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12704  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12705  # platforms (ab)use it in PIC code, but their linkers get confused if
12706  # the symbol is explicitly referenced.  Since portable code cannot
12707  # rely on this symbol name, it's probably fine to never include it in
12708  # preloaded symbol tables.
12709  # Exclude shared library initialization/finalization symbols.
12710  extract_expsyms_cmds=
12711
12712  case $host_os in
12713  cygwin* | mingw* | pw32* | cegcc*)
12714    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12715    # When not using gcc, we currently assume that we are using
12716    # Microsoft Visual C++.
12717    if test "$GCC" != yes; then
12718      with_gnu_ld=no
12719    fi
12720    ;;
12721  interix*)
12722    # we just hope/assume this is gcc and not c89 (= MSVC++)
12723    with_gnu_ld=yes
12724    ;;
12725  openbsd*)
12726    with_gnu_ld=no
12727    ;;
12728  esac
12729
12730  ld_shlibs_D=yes
12731
12732  # On some targets, GNU ld is compatible enough with the native linker
12733  # that we're better off using the native interface for both.
12734  lt_use_gnu_ld_interface=no
12735  if test "$with_gnu_ld" = yes; then
12736    case $host_os in
12737      aix*)
12738	# The AIX port of GNU ld has always aspired to compatibility
12739	# with the native linker.  However, as the warning in the GNU ld
12740	# block says, versions before 2.19.5* couldn't really create working
12741	# shared libraries, regardless of the interface used.
12742	case `$LD -v 2>&1` in
12743	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12744	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12745	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12746	  *)
12747	    lt_use_gnu_ld_interface=yes
12748	    ;;
12749	esac
12750	;;
12751      *)
12752	lt_use_gnu_ld_interface=yes
12753	;;
12754    esac
12755  fi
12756
12757  if test "$lt_use_gnu_ld_interface" = yes; then
12758    # If archive_cmds runs LD, not CC, wlarc should be empty
12759    wlarc='${wl}'
12760
12761    # Set some defaults for GNU ld with shared library support. These
12762    # are reset later if shared libraries are not supported. Putting them
12763    # here allows them to be overridden if necessary.
12764    runpath_var=LD_RUN_PATH
12765    hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12766    export_dynamic_flag_spec_D='${wl}--export-dynamic'
12767    # ancient GNU ld didn't support --whole-archive et. al.
12768    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12769      whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12770    else
12771      whole_archive_flag_spec_D=
12772    fi
12773    supports_anon_versioning=no
12774    case `$LD -v 2>&1` in
12775      *GNU\ gold*) supports_anon_versioning=yes ;;
12776      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12777      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12778      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12779      *\ 2.11.*) ;; # other 2.11 versions
12780      *) supports_anon_versioning=yes ;;
12781    esac
12782
12783    # See if GNU ld supports shared libraries.
12784    case $host_os in
12785    aix[3-9]*)
12786      # On AIX/PPC, the GNU linker is very broken
12787      if test "$host_cpu" != ia64; then
12788	ld_shlibs_D=no
12789	cat <<_LT_EOF 1>&2
12790
12791*** Warning: the GNU linker, at least up to release 2.19, is reported
12792*** to be unable to reliably create shared libraries on AIX.
12793*** Therefore, libtool is disabling shared libraries support.  If you
12794*** really care for shared libraries, you may want to install binutils
12795*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12796*** You will then need to restart the configuration process.
12797
12798_LT_EOF
12799      fi
12800      ;;
12801
12802    amigaos*)
12803      case $host_cpu in
12804      powerpc)
12805            # see comment about AmigaOS4 .so support
12806            archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12807            archive_expsym_cmds_D=''
12808        ;;
12809      m68k)
12810            archive_cmds_D='$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)'
12811            hardcode_libdir_flag_spec_D='-L$libdir'
12812            hardcode_minus_L_D=yes
12813        ;;
12814      esac
12815      ;;
12816
12817    beos*)
12818      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12819	allow_undefined_flag_D=unsupported
12820	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12821	# support --undefined.  This deserves some investigation.  FIXME
12822	archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823      else
12824	ld_shlibs_D=no
12825      fi
12826      ;;
12827
12828    cygwin* | mingw* | pw32* | cegcc*)
12829      # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12830      # as there is no search path for DLLs.
12831      hardcode_libdir_flag_spec_D='-L$libdir'
12832      export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12833      allow_undefined_flag_D=unsupported
12834      always_export_symbols_D=no
12835      enable_shared_with_static_runtimes_D=yes
12836      export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12837
12838      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12839        archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12840	# If the export-symbols file already is a .def file (1st line
12841	# is EXPORTS), use it as is; otherwise, prepend...
12842	archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12843	  cp $export_symbols $output_objdir/$soname.def;
12844	else
12845	  echo EXPORTS > $output_objdir/$soname.def;
12846	  cat $export_symbols >> $output_objdir/$soname.def;
12847	fi~
12848	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12849      else
12850	ld_shlibs_D=no
12851      fi
12852      ;;
12853
12854    haiku*)
12855      archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12856      link_all_deplibs_D=yes
12857      ;;
12858
12859    interix[3-9]*)
12860      hardcode_direct_D=no
12861      hardcode_shlibpath_var_D=no
12862      hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12863      export_dynamic_flag_spec_D='${wl}-E'
12864      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12865      # Instead, shared libraries are loaded at an image base (0x10000000 by
12866      # default) and relocated if they conflict, which is a slow very memory
12867      # consuming and fragmenting process.  To avoid this, we pick a random,
12868      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12869      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12870      archive_cmds_D='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12871      archive_expsym_cmds_D='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'
12872      ;;
12873
12874    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12875      tmp_diet=no
12876      if test "$host_os" = linux-dietlibc; then
12877	case $cc_basename in
12878	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12879	esac
12880      fi
12881      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12882	 && test "$tmp_diet" = no
12883      then
12884	tmp_addflag=' $pic_flag'
12885	tmp_sharedflag='-shared'
12886	case $cc_basename,$host_cpu in
12887        pgcc*)				# Portland Group C compiler
12888	  whole_archive_flag_spec_D='${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'
12889	  tmp_addflag=' $pic_flag'
12890	  ;;
12891	pgf77* | pgf90* | pgf95* | pgfortran*)
12892					# Portland Group f77 and f90 compilers
12893	  whole_archive_flag_spec_D='${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'
12894	  tmp_addflag=' $pic_flag -Mnomain' ;;
12895	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12896	  tmp_addflag=' -i_dynamic' ;;
12897	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12898	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12899	ifc* | ifort*)			# Intel Fortran compiler
12900	  tmp_addflag=' -nofor_main' ;;
12901	lf95*)				# Lahey Fortran 8.1
12902	  whole_archive_flag_spec_D=
12903	  tmp_sharedflag='--shared' ;;
12904	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12905	  tmp_sharedflag='-qmkshrobj'
12906	  tmp_addflag= ;;
12907	nvcc*)	# Cuda Compiler Driver 2.2
12908	  whole_archive_flag_spec_D='${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'
12909	  compiler_needs_object_D=yes
12910	  ;;
12911	esac
12912	case `$CC -V 2>&1 | sed 5q` in
12913	*Sun\ C*)			# Sun C 5.9
12914	  whole_archive_flag_spec_D='${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'
12915	  compiler_needs_object_D=yes
12916	  tmp_sharedflag='-G' ;;
12917	*Sun\ F*)			# Sun Fortran 8.3
12918	  tmp_sharedflag='-G' ;;
12919	esac
12920	archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12921
12922        if test "x$supports_anon_versioning" = xyes; then
12923          archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12924	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12925	    echo "local: *; };" >> $output_objdir/$libname.ver~
12926	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12927        fi
12928
12929	case $cc_basename in
12930	xlf* | bgf* | bgxlf* | mpixlf*)
12931	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12932	  whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12933	  hardcode_libdir_flag_spec_D=
12934	  hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12935	  archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12936	  if test "x$supports_anon_versioning" = xyes; then
12937	    archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12938	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12939	      echo "local: *; };" >> $output_objdir/$libname.ver~
12940	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12941	  fi
12942	  ;;
12943	esac
12944      else
12945        ld_shlibs_D=no
12946      fi
12947      ;;
12948
12949    netbsd*)
12950      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12951	archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12952	wlarc=
12953      else
12954	archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12955	archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12956      fi
12957      ;;
12958
12959    solaris*)
12960      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12961	ld_shlibs_D=no
12962	cat <<_LT_EOF 1>&2
12963
12964*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12965*** create shared libraries on Solaris systems.  Therefore, libtool
12966*** is disabling shared libraries support.  We urge you to upgrade GNU
12967*** binutils to release 2.9.1 or newer.  Another option is to modify
12968*** your PATH or compiler configuration so that the native linker is
12969*** used, and then restart.
12970
12971_LT_EOF
12972      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12973	archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974	archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12975      else
12976	ld_shlibs_D=no
12977      fi
12978      ;;
12979
12980    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12981      case `$LD -v 2>&1` in
12982        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12983	ld_shlibs_D=no
12984	cat <<_LT_EOF 1>&2
12985
12986*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12987*** reliably create shared libraries on SCO systems.  Therefore, libtool
12988*** is disabling shared libraries support.  We urge you to upgrade GNU
12989*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12990*** your PATH or compiler configuration so that the native linker is
12991*** used, and then restart.
12992
12993_LT_EOF
12994	;;
12995	*)
12996	  # For security reasons, it is highly recommended that you always
12997	  # use absolute paths for naming shared libraries, and exclude the
12998	  # DT_RUNPATH tag from executables and libraries.  But doing so
12999	  # requires that you compile everything twice, which is a pain.
13000	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13001	    hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13002	    archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13003	    archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13004	  else
13005	    ld_shlibs_D=no
13006	  fi
13007	;;
13008      esac
13009      ;;
13010
13011    sunos4*)
13012      archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13013      wlarc=
13014      hardcode_direct_D=yes
13015      hardcode_shlibpath_var_D=no
13016      ;;
13017
13018    *)
13019      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13020	archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021	archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13022      else
13023	ld_shlibs_D=no
13024      fi
13025      ;;
13026    esac
13027
13028    if test "$ld_shlibs_D" = no; then
13029      runpath_var=
13030      hardcode_libdir_flag_spec_D=
13031      export_dynamic_flag_spec_D=
13032      whole_archive_flag_spec_D=
13033    fi
13034  else
13035    # PORTME fill in a description of your system's linker (not GNU ld)
13036    case $host_os in
13037    aix3*)
13038      allow_undefined_flag_D=unsupported
13039      always_export_symbols_D=yes
13040      archive_expsym_cmds_D='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13041      # Note: this linker hardcodes the directories in LIBPATH if there
13042      # are no directories specified by -L.
13043      hardcode_minus_L_D=yes
13044      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13045	# Neither direct hardcoding nor static linking is supported with a
13046	# broken collect2.
13047	hardcode_direct_D=unsupported
13048      fi
13049      ;;
13050
13051    aix[4-9]*)
13052      if test "$host_cpu" = ia64; then
13053	# On IA64, the linker does run time linking by default, so we don't
13054	# have to do anything special.
13055	aix_use_runtimelinking=no
13056	exp_sym_flag='-Bexport'
13057	no_entry_flag=""
13058      else
13059	# If we're using GNU nm, then we don't want the "-C" option.
13060	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13061	# Also, AIX nm treats weak defined symbols like other global
13062	# defined symbols, whereas GNU nm marks them as "W".
13063	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13064	  export_symbols_cmds_D='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13065	else
13066	  export_symbols_cmds_D='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13067	fi
13068	aix_use_runtimelinking=no
13069
13070	# Test if we are trying to use run time linking or normal
13071	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13072	# need to do runtime linking.
13073	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13074	  for ld_flag in $LDFLAGS; do
13075	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13076	    aix_use_runtimelinking=yes
13077	    break
13078	  fi
13079	  done
13080	  ;;
13081	esac
13082
13083	exp_sym_flag='-bexport'
13084	no_entry_flag='-bnoentry'
13085      fi
13086
13087      # When large executables or shared objects are built, AIX ld can
13088      # have problems creating the table of contents.  If linking a library
13089      # or program results in "error TOC overflow" add -mminimal-toc to
13090      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13091      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13092
13093      archive_cmds_D=''
13094      hardcode_direct_D=yes
13095      hardcode_direct_absolute_D=yes
13096      hardcode_libdir_separator_D=':'
13097      link_all_deplibs_D=yes
13098      file_list_spec_D='${wl}-f,'
13099
13100      if test "$GCC" = yes; then
13101	case $host_os in aix4.[012]|aix4.[012].*)
13102	# We only want to do this on AIX 4.2 and lower, the check
13103	# below for broken collect2 doesn't work under 4.3+
13104	  collect2name=`${CC} -print-prog-name=collect2`
13105	  if test -f "$collect2name" &&
13106	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13107	  then
13108	  # We have reworked collect2
13109	  :
13110	  else
13111	  # We have old collect2
13112	  hardcode_direct_D=unsupported
13113	  # It fails to find uninstalled libraries when the uninstalled
13114	  # path is not listed in the libpath.  Setting hardcode_minus_L
13115	  # to unsupported forces relinking
13116	  hardcode_minus_L_D=yes
13117	  hardcode_libdir_flag_spec_D='-L$libdir'
13118	  hardcode_libdir_separator_D=
13119	  fi
13120	  ;;
13121	esac
13122	shared_flag='-shared'
13123	if test "$aix_use_runtimelinking" = yes; then
13124	  shared_flag="$shared_flag "'${wl}-G'
13125	fi
13126      else
13127	# not using gcc
13128	if test "$host_cpu" = ia64; then
13129	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13130	# chokes on -Wl,-G. The following line is correct:
13131	  shared_flag='-G'
13132	else
13133	  if test "$aix_use_runtimelinking" = yes; then
13134	    shared_flag='${wl}-G'
13135	  else
13136	    shared_flag='${wl}-bM:SRE'
13137	  fi
13138	fi
13139      fi
13140
13141      export_dynamic_flag_spec_D='${wl}-bexpall'
13142      # It seems that -bexpall does not export symbols beginning with
13143      # underscore (_), so it is better to generate a list of symbols to export.
13144      always_export_symbols_D=yes
13145      if test "$aix_use_runtimelinking" = yes; then
13146	# Warning - without using the other runtime loading flags (-brtl),
13147	# -berok will link without error, but may produce a broken library.
13148	allow_undefined_flag_D='-berok'
13149        # Determine the default libpath from the value encoded in an
13150        # empty executable.
13151        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152/* end confdefs.h.  */
13153
13154int
13155main ()
13156{
13157
13158  ;
13159  return 0;
13160}
13161_ACEOF
13162if ac_fn_c_try_link "$LINENO"; then :
13163
13164lt_aix_libpath_sed='
13165    /Import File Strings/,/^$/ {
13166	/^0/ {
13167	    s/^0  *\(.*\)$/\1/
13168	    p
13169	}
13170    }'
13171aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13172# Check for a 64-bit object if we didn't find anything.
13173if test -z "$aix_libpath"; then
13174  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13175fi
13176fi
13177rm -f core conftest.err conftest.$ac_objext \
13178    conftest$ac_exeext conftest.$ac_ext
13179if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13180
13181        hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13182        archive_expsym_cmds_D='$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"
13183      else
13184	if test "$host_cpu" = ia64; then
13185	  hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13186	  allow_undefined_flag_D="-z nodefs"
13187	  archive_expsym_cmds_D="\$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"
13188	else
13189	 # Determine the default libpath from the value encoded in an
13190	 # empty executable.
13191	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192/* end confdefs.h.  */
13193
13194int
13195main ()
13196{
13197
13198  ;
13199  return 0;
13200}
13201_ACEOF
13202if ac_fn_c_try_link "$LINENO"; then :
13203
13204lt_aix_libpath_sed='
13205    /Import File Strings/,/^$/ {
13206	/^0/ {
13207	    s/^0  *\(.*\)$/\1/
13208	    p
13209	}
13210    }'
13211aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13212# Check for a 64-bit object if we didn't find anything.
13213if test -z "$aix_libpath"; then
13214  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13215fi
13216fi
13217rm -f core conftest.err conftest.$ac_objext \
13218    conftest$ac_exeext conftest.$ac_ext
13219if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13220
13221	 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13222	  # Warning - without using the other run time loading flags,
13223	  # -berok will link without error, but may produce a broken library.
13224	  no_undefined_flag_D=' ${wl}-bernotok'
13225	  allow_undefined_flag_D=' ${wl}-berok'
13226	  if test "$with_gnu_ld" = yes; then
13227	    # We only use this code for GNU lds that support --whole-archive.
13228	    whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13229	  else
13230	    # Exported symbols can be pulled into shared objects from archives
13231	    whole_archive_flag_spec_D='$convenience'
13232	  fi
13233	  archive_cmds_need_lc_D=yes
13234	  # This is similar to how AIX traditionally builds its shared libraries.
13235	  archive_expsym_cmds_D="\$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'
13236	fi
13237      fi
13238      ;;
13239
13240    amigaos*)
13241      case $host_cpu in
13242      powerpc)
13243            # see comment about AmigaOS4 .so support
13244            archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13245            archive_expsym_cmds_D=''
13246        ;;
13247      m68k)
13248            archive_cmds_D='$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)'
13249            hardcode_libdir_flag_spec_D='-L$libdir'
13250            hardcode_minus_L_D=yes
13251        ;;
13252      esac
13253      ;;
13254
13255    bsdi[45]*)
13256      export_dynamic_flag_spec_D=-rdynamic
13257      ;;
13258
13259    cygwin* | mingw* | pw32* | cegcc*)
13260      # When not using gcc, we currently assume that we are using
13261      # Microsoft Visual C++.
13262      # hardcode_libdir_flag_spec is actually meaningless, as there is
13263      # no search path for DLLs.
13264      hardcode_libdir_flag_spec_D=' '
13265      allow_undefined_flag_D=unsupported
13266      # Tell ltmain to make .lib files, not .a files.
13267      libext=lib
13268      # Tell ltmain to make .dll files, not .so files.
13269      shrext_cmds=".dll"
13270      # FIXME: Setting linknames here is a bad hack.
13271      archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13272      # The linker will automatically build a .lib file if we build a DLL.
13273      old_archive_from_new_cmds_D='true'
13274      # FIXME: Should let the user specify the lib program.
13275      old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13276      fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13277      enable_shared_with_static_runtimes_D=yes
13278      ;;
13279
13280    darwin* | rhapsody*)
13281
13282
13283  archive_cmds_need_lc_D=no
13284  hardcode_direct_D=no
13285  hardcode_automatic_D=yes
13286  hardcode_shlibpath_var_D=unsupported
13287  if test "$lt_cv_ld_force_load" = "yes"; then
13288    whole_archive_flag_spec_D='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13289  else
13290    whole_archive_flag_spec_D=''
13291  fi
13292  link_all_deplibs_D=yes
13293  allow_undefined_flag_D="$_lt_dar_allow_undefined"
13294  case $cc_basename in
13295     ifort*) _lt_dar_can_shared=yes ;;
13296     *) _lt_dar_can_shared=$GCC ;;
13297  esac
13298  if test "$_lt_dar_can_shared" = "yes"; then
13299    output_verbose_link_cmd=func_echo_all
13300    archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13301    module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13302    archive_expsym_cmds_D="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}"
13303    module_expsym_cmds_D="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}"
13304
13305  else
13306  ld_shlibs_D=no
13307  fi
13308
13309      ;;
13310
13311    dgux*)
13312      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13313      hardcode_libdir_flag_spec_D='-L$libdir'
13314      hardcode_shlibpath_var_D=no
13315      ;;
13316
13317    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13318    # support.  Future versions do this automatically, but an explicit c++rt0.o
13319    # does not break anything, and helps significantly (at the cost of a little
13320    # extra space).
13321    freebsd2.2*)
13322      archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13323      hardcode_libdir_flag_spec_D='-R$libdir'
13324      hardcode_direct_D=yes
13325      hardcode_shlibpath_var_D=no
13326      ;;
13327
13328    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13329    freebsd2.*)
13330      archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13331      hardcode_direct_D=yes
13332      hardcode_minus_L_D=yes
13333      hardcode_shlibpath_var_D=no
13334      ;;
13335
13336    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13337    freebsd* | dragonfly*)
13338      archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13339      hardcode_libdir_flag_spec_D='-R$libdir'
13340      hardcode_direct_D=yes
13341      hardcode_shlibpath_var_D=no
13342      ;;
13343
13344    hpux9*)
13345      if test "$GCC" = yes; then
13346	archive_cmds_D='$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'
13347      else
13348	archive_cmds_D='$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'
13349      fi
13350      hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13351      hardcode_libdir_separator_D=:
13352      hardcode_direct_D=yes
13353
13354      # hardcode_minus_L: Not really in the search PATH,
13355      # but as the default location of the library.
13356      hardcode_minus_L_D=yes
13357      export_dynamic_flag_spec_D='${wl}-E'
13358      ;;
13359
13360    hpux10*)
13361      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13362	archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13363      else
13364	archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13365      fi
13366      if test "$with_gnu_ld" = no; then
13367	hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13368	hardcode_libdir_flag_spec_ld_D='+b $libdir'
13369	hardcode_libdir_separator_D=:
13370	hardcode_direct_D=yes
13371	hardcode_direct_absolute_D=yes
13372	export_dynamic_flag_spec_D='${wl}-E'
13373	# hardcode_minus_L: Not really in the search PATH,
13374	# but as the default location of the library.
13375	hardcode_minus_L_D=yes
13376      fi
13377      ;;
13378
13379    hpux11*)
13380      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13381	case $host_cpu in
13382	hppa*64*)
13383	  archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13384	  ;;
13385	ia64*)
13386	  archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13387	  ;;
13388	*)
13389	  archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13390	  ;;
13391	esac
13392      else
13393	case $host_cpu in
13394	hppa*64*)
13395	  archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13396	  ;;
13397	ia64*)
13398	  archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13399	  ;;
13400	*)
13401	archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13402	  ;;
13403	esac
13404      fi
13405      if test "$with_gnu_ld" = no; then
13406	hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13407	hardcode_libdir_separator_D=:
13408
13409	case $host_cpu in
13410	hppa*64*|ia64*)
13411	  hardcode_direct_D=no
13412	  hardcode_shlibpath_var_D=no
13413	  ;;
13414	*)
13415	  hardcode_direct_D=yes
13416	  hardcode_direct_absolute_D=yes
13417	  export_dynamic_flag_spec_D='${wl}-E'
13418
13419	  # hardcode_minus_L: Not really in the search PATH,
13420	  # but as the default location of the library.
13421	  hardcode_minus_L_D=yes
13422	  ;;
13423	esac
13424      fi
13425      ;;
13426
13427    irix5* | irix6* | nonstopux*)
13428      if test "$GCC" = yes; then
13429	archive_cmds_D='$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'
13430	# Try to use the -exported_symbol ld option, if it does not
13431	# work, assume that -exports_file does not work either and
13432	# implicitly export all symbols.
13433        save_LDFLAGS="$LDFLAGS"
13434        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13435        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436/* end confdefs.h.  */
13437int foo(void) {}
13438_ACEOF
13439if ac_fn_c_try_link "$LINENO"; then :
13440  archive_expsym_cmds_D='$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'
13441
13442fi
13443rm -f core conftest.err conftest.$ac_objext \
13444    conftest$ac_exeext conftest.$ac_ext
13445        LDFLAGS="$save_LDFLAGS"
13446      else
13447	archive_cmds_D='$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'
13448	archive_expsym_cmds_D='$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'
13449      fi
13450      archive_cmds_need_lc_D='no'
13451      hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13452      hardcode_libdir_separator_D=:
13453      inherit_rpath_D=yes
13454      link_all_deplibs_D=yes
13455      ;;
13456
13457    netbsd*)
13458      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13459	archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13460      else
13461	archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13462      fi
13463      hardcode_libdir_flag_spec_D='-R$libdir'
13464      hardcode_direct_D=yes
13465      hardcode_shlibpath_var_D=no
13466      ;;
13467
13468    newsos6)
13469      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470      hardcode_direct_D=yes
13471      hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13472      hardcode_libdir_separator_D=:
13473      hardcode_shlibpath_var_D=no
13474      ;;
13475
13476    *nto* | *qnx*)
13477      ;;
13478
13479    openbsd*)
13480      if test -f /usr/libexec/ld.so; then
13481	hardcode_direct_D=yes
13482	hardcode_shlibpath_var_D=no
13483	hardcode_direct_absolute_D=yes
13484	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13485	  archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13486	  archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13487	  hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13488	  export_dynamic_flag_spec_D='${wl}-E'
13489	else
13490	  case $host_os in
13491	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13492	     archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13493	     hardcode_libdir_flag_spec_D='-R$libdir'
13494	     ;;
13495	   *)
13496	     archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13497	     hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13498	     ;;
13499	  esac
13500	fi
13501      else
13502	ld_shlibs_D=no
13503      fi
13504      ;;
13505
13506    os2*)
13507      hardcode_libdir_flag_spec_D='-L$libdir'
13508      hardcode_minus_L_D=yes
13509      allow_undefined_flag_D=unsupported
13510      archive_cmds_D='$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'
13511      old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13512      ;;
13513
13514    osf3*)
13515      if test "$GCC" = yes; then
13516	allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13517	archive_cmds_D='$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'
13518      else
13519	allow_undefined_flag_D=' -expect_unresolved \*'
13520	archive_cmds_D='$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'
13521      fi
13522      archive_cmds_need_lc_D='no'
13523      hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13524      hardcode_libdir_separator_D=:
13525      ;;
13526
13527    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13528      if test "$GCC" = yes; then
13529	allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13530	archive_cmds_D='$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'
13531	hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13532      else
13533	allow_undefined_flag_D=' -expect_unresolved \*'
13534	archive_cmds_D='$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'
13535	archive_expsym_cmds_D='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13536	$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'
13537
13538	# Both c and cxx compiler support -rpath directly
13539	hardcode_libdir_flag_spec_D='-rpath $libdir'
13540      fi
13541      archive_cmds_need_lc_D='no'
13542      hardcode_libdir_separator_D=:
13543      ;;
13544
13545    solaris*)
13546      no_undefined_flag_D=' -z defs'
13547      if test "$GCC" = yes; then
13548	wlarc='${wl}'
13549	archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13550	archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13551	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13552      else
13553	case `$CC -V 2>&1` in
13554	*"Compilers 5.0"*)
13555	  wlarc=''
13556	  archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557	  archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13558	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13559	  ;;
13560	*)
13561	  wlarc='${wl}'
13562	  archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13563	  archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13564	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13565	  ;;
13566	esac
13567      fi
13568      hardcode_libdir_flag_spec_D='-R$libdir'
13569      hardcode_shlibpath_var_D=no
13570      case $host_os in
13571      solaris2.[0-5] | solaris2.[0-5].*) ;;
13572      *)
13573	# The compiler driver will combine and reorder linker options,
13574	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13575	# but is careful enough not to reorder.
13576	# Supported since Solaris 2.6 (maybe 2.5.1?)
13577	if test "$GCC" = yes; then
13578	  whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13579	else
13580	  whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13581	fi
13582	;;
13583      esac
13584      link_all_deplibs_D=yes
13585      ;;
13586
13587    sunos4*)
13588      if test "x$host_vendor" = xsequent; then
13589	# Use $CC to link under sequent, because it throws in some extra .o
13590	# files that make .init and .fini sections work.
13591	archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13592      else
13593	archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13594      fi
13595      hardcode_libdir_flag_spec_D='-L$libdir'
13596      hardcode_direct_D=yes
13597      hardcode_minus_L_D=yes
13598      hardcode_shlibpath_var_D=no
13599      ;;
13600
13601    sysv4)
13602      case $host_vendor in
13603	sni)
13604	  archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13605	  hardcode_direct_D=yes # is this really true???
13606	;;
13607	siemens)
13608	  ## LD is ld it makes a PLAMLIB
13609	  ## CC just makes a GrossModule.
13610	  archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13611	  reload_cmds_D='$CC -r -o $output$reload_objs'
13612	  hardcode_direct_D=no
13613        ;;
13614	motorola)
13615	  archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13616	  hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13617	;;
13618      esac
13619      runpath_var='LD_RUN_PATH'
13620      hardcode_shlibpath_var_D=no
13621      ;;
13622
13623    sysv4.3*)
13624      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625      hardcode_shlibpath_var_D=no
13626      export_dynamic_flag_spec_D='-Bexport'
13627      ;;
13628
13629    sysv4*MP*)
13630      if test -d /usr/nec; then
13631	archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13632	hardcode_shlibpath_var_D=no
13633	runpath_var=LD_RUN_PATH
13634	hardcode_runpath_var=yes
13635	ld_shlibs_D=yes
13636      fi
13637      ;;
13638
13639    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13640      no_undefined_flag_D='${wl}-z,text'
13641      archive_cmds_need_lc_D=no
13642      hardcode_shlibpath_var_D=no
13643      runpath_var='LD_RUN_PATH'
13644
13645      if test "$GCC" = yes; then
13646	archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647	archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648      else
13649	archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650	archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651      fi
13652      ;;
13653
13654    sysv5* | sco3.2v5* | sco5v6*)
13655      # Note: We can NOT use -z defs as we might desire, because we do not
13656      # link with -lc, and that would cause any symbols used from libc to
13657      # always be unresolved, which means just about no library would
13658      # ever link correctly.  If we're not using GNU ld we use -z text
13659      # though, which does catch some bad symbols but isn't as heavy-handed
13660      # as -z defs.
13661      no_undefined_flag_D='${wl}-z,text'
13662      allow_undefined_flag_D='${wl}-z,nodefs'
13663      archive_cmds_need_lc_D=no
13664      hardcode_shlibpath_var_D=no
13665      hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13666      hardcode_libdir_separator_D=':'
13667      link_all_deplibs_D=yes
13668      export_dynamic_flag_spec_D='${wl}-Bexport'
13669      runpath_var='LD_RUN_PATH'
13670
13671      if test "$GCC" = yes; then
13672	archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673	archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674      else
13675	archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676	archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677      fi
13678      ;;
13679
13680    uts4*)
13681      archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13682      hardcode_libdir_flag_spec_D='-L$libdir'
13683      hardcode_shlibpath_var_D=no
13684      ;;
13685
13686    *)
13687      ld_shlibs_D=no
13688      ;;
13689    esac
13690
13691    if test x$host_vendor = xsni; then
13692      case $host in
13693      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13694	export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13695	;;
13696      esac
13697    fi
13698  fi
13699
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13701$as_echo "$ld_shlibs_D" >&6; }
13702test "$ld_shlibs_D" = no && can_build_shared=no
13703
13704with_gnu_ld_D=$with_gnu_ld
13705
13706
13707
13708
13709
13710
13711#
13712# Do we need to explicitly link libc?
13713#
13714case "x$archive_cmds_need_lc_D" in
13715x|xyes)
13716  # Assume -lc should be added
13717  archive_cmds_need_lc_D=yes
13718
13719  if test "$enable_shared" = yes && test "$GCC" = yes; then
13720    case $archive_cmds_D in
13721    *'~'*)
13722      # FIXME: we may have to deal with multi-command sequences.
13723      ;;
13724    '$CC '*)
13725      # Test whether the compiler implicitly links with -lc since on some
13726      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13727      # to ld, don't add -lc before -lgcc.
13728      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13729$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13730if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13731  $as_echo_n "(cached) " >&6
13732else
13733  $RM conftest*
13734	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13735
13736	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13737  (eval $ac_compile) 2>&5
13738  ac_status=$?
13739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13740  test $ac_status = 0; } 2>conftest.err; then
13741	  soname=conftest
13742	  lib=conftest
13743	  libobjs=conftest.$ac_objext
13744	  deplibs=
13745	  wl=$lt_prog_compiler_wl_D
13746	  pic_flag=$lt_prog_compiler_pic_D
13747	  compiler_flags=-v
13748	  linker_flags=-v
13749	  verstring=
13750	  output_objdir=.
13751	  libname=conftest
13752	  lt_save_allow_undefined_flag=$allow_undefined_flag_D
13753	  allow_undefined_flag_D=
13754	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13755  (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13756  ac_status=$?
13757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13758  test $ac_status = 0; }
13759	  then
13760	    lt_cv_archive_cmds_need_lc_D=no
13761	  else
13762	    lt_cv_archive_cmds_need_lc_D=yes
13763	  fi
13764	  allow_undefined_flag_D=$lt_save_allow_undefined_flag
13765	else
13766	  cat conftest.err 1>&5
13767	fi
13768	$RM conftest*
13769
13770fi
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13772$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13773      archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13774      ;;
13775    esac
13776  fi
13777  ;;
13778esac
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13844$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13845hardcode_action_D=
13846if test -n "$hardcode_libdir_flag_spec_D" ||
13847   test -n "$runpath_var_D" ||
13848   test "X$hardcode_automatic_D" = "Xyes" ; then
13849
13850  # We can hardcode non-existent directories.
13851  if test "$hardcode_direct_D" != no &&
13852     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13853     # have to relink, otherwise we might link with an installed library
13854     # when we should be linking with a yet-to-be-installed one
13855     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13856     test "$hardcode_minus_L_D" != no; then
13857    # Linking always hardcodes the temporary library directory.
13858    hardcode_action_D=relink
13859  else
13860    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13861    hardcode_action_D=immediate
13862  fi
13863else
13864  # We cannot hardcode anything, or else we can only hardcode existing
13865  # directories.
13866  hardcode_action_D=unsupported
13867fi
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13869$as_echo "$hardcode_action_D" >&6; }
13870
13871if test "$hardcode_action_D" = relink ||
13872   test "$inherit_rpath_D" = yes; then
13873  # Fast installation is not supported
13874  enable_fast_install=no
13875elif test "$shlibpath_overrides_runpath" = yes ||
13876     test "$enable_shared" = no; then
13877  # Fast installation is not necessary
13878  enable_fast_install=needless
13879fi
13880
13881
13882
13883
13884
13885
13886
13887fi
13888
13889ac_ext=c
13890ac_cpp='$CPP $CPPFLAGS'
13891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13893ac_compiler_gnu=$ac_cv_c_compiler_gnu
13894
13895
13896GCC=$lt_save_GCC
13897CC=$lt_save_CC
13898CFLAGS=$lt_save_CFLAGS
13899
13900  GDCFLAGS=$gdc_save_DFLAGS
13901
13902
13903# libtool variables for Phobos shared and position-independent compiles.
13904#
13905# Use phobos_compiler_shared_flag to designate the compile-time flags for
13906# creating shared objects. Default: -fversion=Shared.
13907#
13908# Use phobos_compiler_pic_flag to designate the compile-time flags for
13909# creating position-independent objects. This varies with the target
13910# hardware and operating system, but is often: -fPIC.
13911#
13912# The distinction between pic and shared compilation flags is not present in
13913# libtool, and so we make it here.  How it is handled is that in shared
13914# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13915# ensure that conditional compilation of shared runtime code is compiled in.
13916# The original PIC flags are then used in the compilation of every object.
13917#
13918# Why are objects destined for libgphobos.a compiled with -fPIC?
13919# Because -fPIC is not harmful to use for objects destined for static
13920# libraries. In addition, using -fPIC will allow the use of static
13921# libgphobos.a in the creation of other D shared libraries.
13922if test "$enable_shared" = yes; then
13923  phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13924  phobos_compiler_shared_flag="-fversion=Shared"
13925else
13926  phobos_compiler_pic_flag=
13927  phobos_compiler_shared_flag=
13928fi
13929
13930
13931
13932# Override the libtool's pic_flag and pic_mode.
13933# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13934# NB: this impacts --with-pic and --without-pic.
13935lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13936pic_mode='default'
13937
13938# Determine what GCC version number to use in filesystem paths.
13939
13940  get_gcc_base_ver="cat"
13941
13942# Check whether --with-gcc-major-version-only was given.
13943if test "${with_gcc_major_version_only+set}" = set; then :
13944  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13945        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13946      fi
13947
13948fi
13949
13950
13951
13952
13953# libphobos/libdruntime specific options and feature detection
13954
13955  # These need to be absolute paths, yet at the same time need to
13956  # canonicalize only relative paths, because then amd will not unmount
13957  # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13958  libphobos_builddir=`${PWDCMD-pwd}`
13959  case $srcdir in
13960    \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13961    *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13962  esac
13963
13964
13965
13966
13967  if test ${multilib} = yes; then
13968    multilib_arg="--enable-multilib"
13969  else
13970    multilib_arg=
13971  fi
13972
13973
13974  # Check whether --enable-werror was given.
13975if test "${enable_werror+set}" = set; then :
13976  enableval=$enable_werror;
13977fi
13978
13979  WERROR_FLAG=""
13980  if test "x$enable_werror" = "xyes"; then
13981      WERROR_FLAG="-Werror"
13982  fi
13983
13984
13985  druntime_target_cpu_parsed=""
13986  case "$target_cpu" in
13987      aarch64*)
13988               druntime_target_cpu_parsed="aarch64"
13989               ;;
13990      arm*)    druntime_target_cpu_parsed="arm"
13991               ;;
13992      mips*)   druntime_target_cpu_parsed="mips"
13993               ;;
13994      powerpc*)
13995               druntime_target_cpu_parsed="powerpc"
13996               ;;
13997      i[34567]86|x86_64)
13998               druntime_target_cpu_parsed="x86"
13999               ;;
14000      s390x)
14001               druntime_target_cpu_parsed="s390x"
14002               ;;
14003      s390)
14004               druntime_target_cpu_parsed="s390"
14005               ;;
14006  esac
14007   if test "$druntime_target_cpu_parsed" = "aarch64"; then
14008  DRUNTIME_CPU_AARCH64_TRUE=
14009  DRUNTIME_CPU_AARCH64_FALSE='#'
14010else
14011  DRUNTIME_CPU_AARCH64_TRUE='#'
14012  DRUNTIME_CPU_AARCH64_FALSE=
14013fi
14014
14015   if test "$druntime_target_cpu_parsed" = "arm"; then
14016  DRUNTIME_CPU_ARM_TRUE=
14017  DRUNTIME_CPU_ARM_FALSE='#'
14018else
14019  DRUNTIME_CPU_ARM_TRUE='#'
14020  DRUNTIME_CPU_ARM_FALSE=
14021fi
14022
14023   if test "$druntime_target_cpu_parsed" = "mips"; then
14024  DRUNTIME_CPU_MIPS_TRUE=
14025  DRUNTIME_CPU_MIPS_FALSE='#'
14026else
14027  DRUNTIME_CPU_MIPS_TRUE='#'
14028  DRUNTIME_CPU_MIPS_FALSE=
14029fi
14030
14031   if test "$druntime_target_cpu_parsed" = "powerpc"; then
14032  DRUNTIME_CPU_POWERPC_TRUE=
14033  DRUNTIME_CPU_POWERPC_FALSE='#'
14034else
14035  DRUNTIME_CPU_POWERPC_TRUE='#'
14036  DRUNTIME_CPU_POWERPC_FALSE=
14037fi
14038
14039   if test "$druntime_target_cpu_parsed" = "x86"; then
14040  DRUNTIME_CPU_X86_TRUE=
14041  DRUNTIME_CPU_X86_FALSE='#'
14042else
14043  DRUNTIME_CPU_X86_TRUE='#'
14044  DRUNTIME_CPU_X86_FALSE=
14045fi
14046
14047   if test "$druntime_target_cpu_parsed" = "s390x"; then
14048  DRUNTIME_CPU_SYSTEMZ_TRUE=
14049  DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14050else
14051  DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14052  DRUNTIME_CPU_SYSTEMZ_FALSE=
14053fi
14054
14055   if test "$druntime_target_cpu_parsed" = "s390"; then
14056  DRUNTIME_CPU_S390_TRUE=
14057  DRUNTIME_CPU_S390_FALSE='#'
14058else
14059  DRUNTIME_CPU_S390_TRUE='#'
14060  DRUNTIME_CPU_S390_FALSE=
14061fi
14062
14063
14064
14065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14066$as_echo_n "checking for target OS... " >&6; }
14067if ${druntime_cv_target_os+:} false; then :
14068  $as_echo_n "(cached) " >&6
14069else
14070  druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14071fi
14072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14073$as_echo "$druntime_cv_target_os" >&6; }
14074    if test -z "$druntime_cv_target_os"; then :
14075  as_fn_error $? "can't detect target OS" "$LINENO" 5
14076fi
14077
14078
14079
14080
14081  druntime_target_os_parsed=""
14082  case "$druntime_cv_target_os" in
14083      aix*)    druntime_target_os_parsed="aix"
14084               ;;
14085      *android*)
14086               druntime_target_os_parsed="android"
14087               ;;
14088      darwin*) druntime_target_os_parsed="darwin"
14089               ;;
14090      dragonfly*)
14091               druntime_target_os_parsed="dragonflybsd"
14092               ;;
14093      freebsd*|k*bsd*-gnu)
14094               druntime_target_os_parsed="freebsd"
14095               ;;
14096      openbsd*)
14097               druntime_target_os_parsed="openbsd"
14098               ;;
14099      netbsd*)
14100               druntime_target_os_parsed="netbsd"
14101               ;;
14102      linux*)  druntime_target_os_parsed="linux"
14103               ;;
14104      mingw*)  druntime_target_os_parsed="mingw"
14105             ;;
14106      *solaris*) druntime_target_os_parsed="solaris"
14107  esac
14108   if test "$druntime_target_os_parsed" = "aix"; then
14109  DRUNTIME_OS_AIX_TRUE=
14110  DRUNTIME_OS_AIX_FALSE='#'
14111else
14112  DRUNTIME_OS_AIX_TRUE='#'
14113  DRUNTIME_OS_AIX_FALSE=
14114fi
14115
14116   if test "$druntime_target_os_parsed" = "android"; then
14117  DRUNTIME_OS_ANDROID_TRUE=
14118  DRUNTIME_OS_ANDROID_FALSE='#'
14119else
14120  DRUNTIME_OS_ANDROID_TRUE='#'
14121  DRUNTIME_OS_ANDROID_FALSE=
14122fi
14123
14124   if test "$druntime_target_os_parsed" = "darwin"; then
14125  DRUNTIME_OS_DARWIN_TRUE=
14126  DRUNTIME_OS_DARWIN_FALSE='#'
14127else
14128  DRUNTIME_OS_DARWIN_TRUE='#'
14129  DRUNTIME_OS_DARWIN_FALSE=
14130fi
14131
14132   if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14133  DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14134  DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14135else
14136  DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14137  DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14138fi
14139
14140   if test "$druntime_target_os_parsed" = "freebsd"; then
14141  DRUNTIME_OS_FREEBSD_TRUE=
14142  DRUNTIME_OS_FREEBSD_FALSE='#'
14143else
14144  DRUNTIME_OS_FREEBSD_TRUE='#'
14145  DRUNTIME_OS_FREEBSD_FALSE=
14146fi
14147
14148   if test "$druntime_target_os_parsed" = "netbsd"; then
14149  DRUNTIME_OS_NETBSD_TRUE=
14150  DRUNTIME_OS_NETBSD_FALSE='#'
14151else
14152  DRUNTIME_OS_NETBSD_TRUE='#'
14153  DRUNTIME_OS_NETBSD_FALSE=
14154fi
14155
14156   if test "$druntime_target_os_parsed" = "openbsd"; then
14157  DRUNTIME_OS_OPENBSD_TRUE=
14158  DRUNTIME_OS_OPENBSD_FALSE='#'
14159else
14160  DRUNTIME_OS_OPENBSD_TRUE='#'
14161  DRUNTIME_OS_OPENBSD_FALSE=
14162fi
14163
14164   if test "$druntime_target_os_parsed" = "linux"; then
14165  DRUNTIME_OS_LINUX_TRUE=
14166  DRUNTIME_OS_LINUX_FALSE='#'
14167else
14168  DRUNTIME_OS_LINUX_TRUE='#'
14169  DRUNTIME_OS_LINUX_FALSE=
14170fi
14171
14172   if test "$druntime_target_os_parsed" = "mingw"; then
14173  DRUNTIME_OS_MINGW_TRUE=
14174  DRUNTIME_OS_MINGW_FALSE='#'
14175else
14176  DRUNTIME_OS_MINGW_TRUE='#'
14177  DRUNTIME_OS_MINGW_FALSE=
14178fi
14179
14180   if test "$druntime_target_os_parsed" = "solaris"; then
14181  DRUNTIME_OS_SOLARIS_TRUE=
14182  DRUNTIME_OS_SOLARIS_FALSE='#'
14183else
14184  DRUNTIME_OS_SOLARIS_TRUE='#'
14185  DRUNTIME_OS_SOLARIS_FALSE=
14186fi
14187
14188
14189  druntime_target_posix="no"
14190  case "$druntime_cv_target_os" in
14191    aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14192      druntime_target_posix="yes"
14193      ;;
14194  esac
14195   if test "$druntime_target_posix" = "yes"; then
14196  DRUNTIME_OS_POSIX_TRUE=
14197  DRUNTIME_OS_POSIX_FALSE='#'
14198else
14199  DRUNTIME_OS_POSIX_TRUE='#'
14200  DRUNTIME_OS_POSIX_FALSE=
14201fi
14202
14203
14204
14205
14206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14207$as_echo_n "checking for thread model used by GDC... " >&6; }
14208  d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14210$as_echo "$d_thread_model" >&6; }
14211
14212  # Map from thread model to thread interface.
14213
14214case $d_thread_model in
14215    aix)    DCFG_THREAD_MODEL="Posix" ;;
14216    lynx)   DCFG_THREAD_MODEL="Posix" ;;
14217    posix)  DCFG_THREAD_MODEL="Posix" ;;
14218    single) DCFG_THREAD_MODEL="Single" ;;
14219    win32)  DCFG_THREAD_MODEL="Win32" ;;
14220    # TODO: These targets need porting.
14221    dce|mipssde|rtems|tpf|vxworks)
14222	    DCFG_THREAD_MODEL="Single" ;;
14223    *)	    as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14224esac
14225
14226
14227
14228
14229  ac_ext=c
14230ac_cpp='$CPP $CPPFLAGS'
14231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14233ac_compiler_gnu=$ac_cv_c_compiler_gnu
14234
14235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14236$as_echo_n "checking for ARM unwinder... " >&6; }
14237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238/* end confdefs.h.  */
14239#include <unwind.h>
14240int
14241main ()
14242{
14243
14244  #if __ARM_EABI_UNWINDER__
14245  #error Yes, it is.
14246  #endif
14247
14248  ;
14249  return 0;
14250}
14251_ACEOF
14252if ac_fn_c_try_compile "$LINENO"; then :
14253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254$as_echo "no" >&6; }
14255     DCFG_ARM_EABI_UNWINDER=false
14256else
14257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14258$as_echo "yes" >&6; }
14259     DCFG_ARM_EABI_UNWINDER=true
14260fi
14261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14262
14263   if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14264  DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14265  DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14266else
14267  DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14268  DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14269fi
14270
14271  ac_ext=c
14272ac_cpp='$CPP $CPPFLAGS'
14273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275ac_compiler_gnu=$ac_cv_c_compiler_gnu
14276
14277
14278
14279  ac_ext=c
14280ac_cpp='$CPP $CPPFLAGS'
14281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283ac_compiler_gnu=$ac_cv_c_compiler_gnu
14284
14285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14286$as_echo_n "checking for minfo section bracketing... " >&6; }
14287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288/* end confdefs.h.  */
14289
14290    void* module_info_ptr __attribute__((section ("minfo")));
14291    extern void* __start_minfo __attribute__((visibility ("hidden")));
14292    extern void* __stop_minfo __attribute__((visibility ("hidden")));
14293
14294    int main()
14295    {
14296        // Never run, just to prevent compiler from optimizing access
14297        return &__start_minfo == &__stop_minfo;
14298    }
14299
14300_ACEOF
14301if ac_fn_c_try_link "$LINENO"; then :
14302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14303$as_echo "yes" >&6; }
14304     DCFG_MINFO_BRACKETING=true
14305else
14306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14307$as_echo "no" >&6; }
14308     DCFG_MINFO_BRACKETING=false
14309fi
14310rm -f core conftest.err conftest.$ac_objext \
14311    conftest$ac_exeext conftest.$ac_ext
14312
14313   if test "$DCFG_MINFO_BRACKETING" = "true"; then
14314  DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14315  DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14316else
14317  DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14318  DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14319fi
14320
14321  ac_ext=c
14322ac_cpp='$CPP $CPPFLAGS'
14323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14325ac_compiler_gnu=$ac_cv_c_compiler_gnu
14326
14327
14328
14329  ac_ext=c
14330ac_cpp='$CPP $CPPFLAGS'
14331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14333ac_compiler_gnu=$ac_cv_c_compiler_gnu
14334
14335  ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14336"
14337if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14338  DCFG_DLPI_TLS_MODID=true
14339else
14340  DCFG_DLPI_TLS_MODID=false
14341fi
14342
14343
14344  ac_ext=c
14345ac_cpp='$CPP $CPPFLAGS'
14346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14348ac_compiler_gnu=$ac_cv_c_compiler_gnu
14349
14350
14351
14352  case $target in
14353    i?86-*-solaris2.* | x86_64-*-solaris2.*)
14354      # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14355      # relocs.  Work around by disabling TLS transitions.  Not necessary
14356      # on 32-bit x86, but cannot be distinguished reliably in specs.
14357      druntime_ld_prog=`$CC -print-prog-name=ld`
14358      druntime_ld_gld=no
14359      druntime_ld_relax_transtls=no
14360      if test -n "$druntime_ld_prog" \
14361         && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14362        druntime_ld_gld=yes
14363      else
14364        echo 'int main (void) { return 0; }' > conftest.c
14365        save_LDFLAGS="$LDFLAGS"
14366        LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14367        if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14368          druntime_ld_relax_transtls=yes
14369        fi
14370        LDFLAGS="$save_LDFLAGS"
14371        rm -f conftest.c conftest
14372      fi
14373      if test "$druntime_ld_relax_transtls" = "yes"; then
14374        OS_LINK_SPEC='-z relax=transtls'
14375      fi
14376      ;;
14377  esac
14378
14379
14380
14381  ac_ext=c
14382ac_cpp='$CPP $CPPFLAGS'
14383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14385ac_compiler_gnu=$ac_cv_c_compiler_gnu
14386
14387  DCFG_HAVE_QSORT_R=false
14388  ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14389if test "x$ac_cv_func_qsort_r" = xyes; then :
14390  DCFG_HAVE_QSORT_R=true
14391fi
14392
14393
14394  ac_ext=c
14395ac_cpp='$CPP $CPPFLAGS'
14396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14398ac_compiler_gnu=$ac_cv_c_compiler_gnu
14399
14400
14401
14402
14403
14404  gdc_save_DFLAGS=$GDCFLAGS
14405  GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14406
14407  ac_ext=d
14408ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14409ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14410ac_compiler_gnu=yes
14411
14412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14413$as_echo_n "checking for library containing malloc... " >&6; }
14414if ${ac_cv_search_malloc+:} false; then :
14415  $as_echo_n "(cached) " >&6
14416else
14417  ac_func_search_save_LIBS=$LIBS
14418cat > conftest.$ac_ext <<_ACEOF
14419module mod;
14420 extern(C) int malloc();
14421
14422extern(C) int main() {
14423  malloc(); return 0;
14424}
14425_ACEOF
14426for ac_lib in '' c; do
14427  if test -z "$ac_lib"; then
14428    ac_res="none required"
14429  else
14430    ac_res=-l$ac_lib
14431    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14432  fi
14433  if ac_fn_d_try_link "$LINENO"; then :
14434  ac_cv_search_malloc=$ac_res
14435fi
14436rm -f core conftest.err conftest.$ac_objext \
14437    conftest$ac_exeext
14438  if ${ac_cv_search_malloc+:} false; then :
14439  break
14440fi
14441done
14442if ${ac_cv_search_malloc+:} false; then :
14443
14444else
14445  ac_cv_search_malloc=no
14446fi
14447rm conftest.$ac_ext
14448LIBS=$ac_func_search_save_LIBS
14449fi
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14451$as_echo "$ac_cv_search_malloc" >&6; }
14452ac_res=$ac_cv_search_malloc
14453if test "$ac_res" != no; then :
14454  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14455
14456fi
14457
14458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14459$as_echo_n "checking for library containing pthread_create... " >&6; }
14460if ${ac_cv_search_pthread_create+:} false; then :
14461  $as_echo_n "(cached) " >&6
14462else
14463  ac_func_search_save_LIBS=$LIBS
14464cat > conftest.$ac_ext <<_ACEOF
14465module mod;
14466 extern(C) int pthread_create();
14467
14468extern(C) int main() {
14469  pthread_create(); return 0;
14470}
14471_ACEOF
14472for ac_lib in '' pthread; do
14473  if test -z "$ac_lib"; then
14474    ac_res="none required"
14475  else
14476    ac_res=-l$ac_lib
14477    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14478  fi
14479  if ac_fn_d_try_link "$LINENO"; then :
14480  ac_cv_search_pthread_create=$ac_res
14481fi
14482rm -f core conftest.err conftest.$ac_objext \
14483    conftest$ac_exeext
14484  if ${ac_cv_search_pthread_create+:} false; then :
14485  break
14486fi
14487done
14488if ${ac_cv_search_pthread_create+:} false; then :
14489
14490else
14491  ac_cv_search_pthread_create=no
14492fi
14493rm conftest.$ac_ext
14494LIBS=$ac_func_search_save_LIBS
14495fi
14496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14497$as_echo "$ac_cv_search_pthread_create" >&6; }
14498ac_res=$ac_cv_search_pthread_create
14499if test "$ac_res" != no; then :
14500  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14501
14502fi
14503
14504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14505$as_echo_n "checking for library containing cosf... " >&6; }
14506if ${ac_cv_search_cosf+:} false; then :
14507  $as_echo_n "(cached) " >&6
14508else
14509  ac_func_search_save_LIBS=$LIBS
14510cat > conftest.$ac_ext <<_ACEOF
14511module mod;
14512 extern(C) int cosf();
14513
14514extern(C) int main() {
14515  cosf(); return 0;
14516}
14517_ACEOF
14518for ac_lib in '' m; do
14519  if test -z "$ac_lib"; then
14520    ac_res="none required"
14521  else
14522    ac_res=-l$ac_lib
14523    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14524  fi
14525  if ac_fn_d_try_link "$LINENO"; then :
14526  ac_cv_search_cosf=$ac_res
14527fi
14528rm -f core conftest.err conftest.$ac_objext \
14529    conftest$ac_exeext
14530  if ${ac_cv_search_cosf+:} false; then :
14531  break
14532fi
14533done
14534if ${ac_cv_search_cosf+:} false; then :
14535
14536else
14537  ac_cv_search_cosf=no
14538fi
14539rm conftest.$ac_ext
14540LIBS=$ac_func_search_save_LIBS
14541fi
14542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14543$as_echo "$ac_cv_search_cosf" >&6; }
14544ac_res=$ac_cv_search_cosf
14545if test "$ac_res" != no; then :
14546  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14547
14548fi
14549
14550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14551$as_echo_n "checking for library containing clock_gettime... " >&6; }
14552if ${ac_cv_search_clock_gettime+:} false; then :
14553  $as_echo_n "(cached) " >&6
14554else
14555  ac_func_search_save_LIBS=$LIBS
14556cat > conftest.$ac_ext <<_ACEOF
14557module mod;
14558 extern(C) int clock_gettime();
14559
14560extern(C) int main() {
14561  clock_gettime(); return 0;
14562}
14563_ACEOF
14564for ac_lib in '' rt; do
14565  if test -z "$ac_lib"; then
14566    ac_res="none required"
14567  else
14568    ac_res=-l$ac_lib
14569    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14570  fi
14571  if ac_fn_d_try_link "$LINENO"; then :
14572  ac_cv_search_clock_gettime=$ac_res
14573fi
14574rm -f core conftest.err conftest.$ac_objext \
14575    conftest$ac_exeext
14576  if ${ac_cv_search_clock_gettime+:} false; then :
14577  break
14578fi
14579done
14580if ${ac_cv_search_clock_gettime+:} false; then :
14581
14582else
14583  ac_cv_search_clock_gettime=no
14584fi
14585rm conftest.$ac_ext
14586LIBS=$ac_func_search_save_LIBS
14587fi
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14589$as_echo "$ac_cv_search_clock_gettime" >&6; }
14590ac_res=$ac_cv_search_clock_gettime
14591if test "$ac_res" != no; then :
14592  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14593
14594fi
14595
14596
14597  # This checks to see if the host supports the compiler-generated builtins
14598  # for atomic operations for various integral sizes. Note, this is intended
14599  # to be an all-or-nothing switch, so all the atomic operations that are
14600  # used should be checked.
14601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14602$as_echo_n "checking for atomic builtins for byte... " >&6; }
14603  if ${druntime_cv_atomic_byte+:} false; then :
14604  $as_echo_n "(cached) " >&6
14605else
14606
14607    cat > conftest.$ac_ext <<_ACEOF
14608module mod;
14609import gcc.builtins;
14610
14611extern(C) int main() {
14612
14613      shared(byte) c1;
14614       byte c2, c3;
14615       __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14616       __atomic_load_1(&c1, 5);
14617       __atomic_store_1(&c1, c2, 5);
14618       return 0;
14619
14620}
14621_ACEOF
14622if ac_fn_d_try_link "$LINENO"; then :
14623  druntime_cv_atomic_byte=yes
14624else
14625  druntime_cv_atomic_byte=no
14626fi
14627rm -f core conftest.err conftest.$ac_objext \
14628    conftest$ac_exeext conftest.$ac_ext
14629
14630fi
14631
14632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14633$as_echo "$druntime_cv_atomic_byte" >&6; }
14634
14635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14636$as_echo_n "checking for atomic builtins for short... " >&6; }
14637  if ${druntime_cv_atomic_short+:} false; then :
14638  $as_echo_n "(cached) " >&6
14639else
14640
14641    cat > conftest.$ac_ext <<_ACEOF
14642module mod;
14643import gcc.builtins;
14644
14645extern(C) int main() {
14646
14647      shared(short) c1;
14648       short c2, c3;
14649       __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14650       __atomic_load_2(&c1, 5);
14651       __atomic_store_2(&c1, c2, 5);
14652       return 0;
14653
14654}
14655_ACEOF
14656if ac_fn_d_try_link "$LINENO"; then :
14657  druntime_cv_atomic_short=yes
14658else
14659  druntime_cv_atomic_short=no
14660fi
14661rm -f core conftest.err conftest.$ac_objext \
14662    conftest$ac_exeext conftest.$ac_ext
14663
14664fi
14665
14666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14667$as_echo "$druntime_cv_atomic_short" >&6; }
14668
14669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14670$as_echo_n "checking for atomic builtins for int... " >&6; }
14671  if ${druntime_cv_atomic_int+:} false; then :
14672  $as_echo_n "(cached) " >&6
14673else
14674
14675    cat > conftest.$ac_ext <<_ACEOF
14676module mod;
14677import gcc.builtins;
14678
14679extern(C) int main() {
14680
14681      shared(int) c1;
14682       int c2, c3;
14683       __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14684       __atomic_load_4(&c1, 5);
14685       __atomic_store_4(&c1, c2, 5);
14686       return 0;
14687
14688}
14689_ACEOF
14690if ac_fn_d_try_link "$LINENO"; then :
14691  druntime_cv_atomic_int=yes
14692else
14693  druntime_cv_atomic_int=no
14694fi
14695rm -f core conftest.err conftest.$ac_objext \
14696    conftest$ac_exeext conftest.$ac_ext
14697
14698fi
14699
14700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14701$as_echo "$druntime_cv_atomic_int" >&6; }
14702
14703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14704$as_echo_n "checking for atomic builtins for long... " >&6; }
14705  if ${druntime_cv_atomic_long+:} false; then :
14706  $as_echo_n "(cached) " >&6
14707else
14708
14709    cat > conftest.$ac_ext <<_ACEOF
14710module mod;
14711import gcc.builtins;
14712
14713extern(C) int main() {
14714
14715       shared(long) c1;
14716       long c2, c3;
14717       __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14718       __atomic_load_8(&c1, 5);
14719       __atomic_store_8(&c1, c2, 5);
14720       return 0;
14721
14722}
14723_ACEOF
14724if ac_fn_d_try_link "$LINENO"; then :
14725  druntime_cv_atomic_long=yes
14726else
14727  druntime_cv_atomic_long=no
14728fi
14729rm -f core conftest.err conftest.$ac_objext \
14730    conftest$ac_exeext conftest.$ac_ext
14731
14732fi
14733
14734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14735$as_echo "$druntime_cv_atomic_long" >&6; }
14736
14737  # Have atomic builtin support if all but the long test above passes.
14738  DCFG_HAVE_ATOMIC_BUILTINS=false
14739  if test "$druntime_cv_atomic_byte" = yes \
14740     && test "$druntime_cv_atomic_short" = yes \
14741     && test "$druntime_cv_atomic_int" = yes; then \
14742    DCFG_HAVE_ATOMIC_BUILTINS=true
14743  fi
14744
14745  # Have 64-bit atomic support if the long test above passes.
14746  DCFG_HAVE_64BIT_ATOMICS=false
14747  if test "$druntime_cv_atomic_long" = yes; then
14748    DCFG_HAVE_64BIT_ATOMICS=true
14749  fi
14750
14751
14752
14753
14754  ac_ext=c
14755ac_cpp='$CPP $CPPFLAGS'
14756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14758ac_compiler_gnu=$ac_cv_c_compiler_gnu
14759
14760
14761  GDCFLAGS=$gdc_save_DFLAGS
14762
14763
14764
14765
14766# Check whether --with-libatomic was given.
14767if test "${with_libatomic+set}" = set; then :
14768  withval=$with_libatomic;
14769fi
14770
14771
14772  DCFG_HAVE_LIBATOMIC=false
14773  LIBATOMIC=
14774  if test "x$with_libatomic" != "xno"; then :
14775
14776    DCFG_HAVE_LIBATOMIC=true
14777    LIBATOMIC=../../libatomic/libatomic_convenience.la
14778
14779else
14780
14781    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14782$as_echo_n "checking for libatomic... " >&6; }
14783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14784$as_echo "disabled" >&6; }
14785
14786fi
14787
14788
14789
14790
14791
14792  ac_ext=c
14793ac_cpp='$CPP $CPPFLAGS'
14794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14796ac_compiler_gnu=$ac_cv_c_compiler_gnu
14797
14798  BACKTRACE_SUPPORTED=false
14799  BACKTRACE_USES_MALLOC=false
14800  BACKTRACE_SUPPORTS_THREADS=false
14801  LIBBACKTRACE=""
14802
14803
14804# Check whether --with-libbacktrace was given.
14805if test "${with_libbacktrace+set}" = set; then :
14806  withval=$with_libbacktrace;
14807fi
14808
14809
14810  if test "x$with_libbacktrace" != "xno"; then :
14811
14812    LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14813
14814    gdc_save_CPPFLAGS=$CPPFLAGS
14815    CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14816
14817    ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14818if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14819  have_libbacktrace_h=true
14820else
14821  have_libbacktrace_h=false
14822fi
14823
14824
14825
14826    if $have_libbacktrace_h; then
14827      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14828$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14829      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830/* end confdefs.h.  */
14831
14832      #include <backtrace-supported.h>
14833      #if BACKTRACE_SUPPORTED
14834        FOUND_LIBBACKTRACE_RESULT_GDC
14835      #endif
14836
14837_ACEOF
14838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14839  $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14840  BACKTRACE_SUPPORTED=true
14841else
14842  BACKTRACE_SUPPORTED=false
14843fi
14844rm -f conftest*
14845
14846      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14847$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14848
14849      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14850$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14851      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853
14854      #include <backtrace-supported.h>
14855      #if BACKTRACE_USES_MALLOC
14856        FOUND_LIBBACKTRACE_RESULT_GDC
14857      #endif
14858
14859_ACEOF
14860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14861  $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14862  BACKTRACE_USES_MALLOC=true
14863else
14864  BACKTRACE_USES_MALLOC=false
14865fi
14866rm -f conftest*
14867
14868      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14869$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14870
14871      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14872$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14873      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874/* end confdefs.h.  */
14875
14876      #include <backtrace-supported.h>
14877      #if BACKTRACE_SUPPORTS_THREADS
14878        FOUND_LIBBACKTRACE_RESULT_GDC
14879      #endif
14880
14881_ACEOF
14882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14883  $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14884  BACKTRACE_SUPPORTS_THREADS=true
14885else
14886  BACKTRACE_SUPPORTS_THREADS=false
14887fi
14888rm -f conftest*
14889
14890      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14891$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14892    fi
14893    CPPFLAGS=$gdc_save_CPPFLAGS
14894
14895else
14896
14897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14898$as_echo_n "checking for libbacktrace... " >&6; }
14899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14900$as_echo "disabled" >&6; }
14901
14902fi
14903
14904
14905
14906
14907
14908  ac_ext=c
14909ac_cpp='$CPP $CPPFLAGS'
14910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912ac_compiler_gnu=$ac_cv_c_compiler_gnu
14913
14914
14915
14916  # Libtool has already checked this, so re-use the inferred dlopen lib.
14917  if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14918
14919    LIBS="$LIBS $lt_cv_dlopen_libs"
14920
14921fi
14922
14923
14924                            druntime_check_both=no
14925  ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14926if test "x$ac_cv_func_connect" = xyes; then :
14927
14928else
14929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14930$as_echo_n "checking for connect in -lsocket... " >&6; }
14931if ${ac_cv_lib_socket_connect+:} false; then :
14932  $as_echo_n "(cached) " >&6
14933else
14934  ac_check_lib_save_LIBS=$LIBS
14935LIBS="-lsocket  $LIBS"
14936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937/* end confdefs.h.  */
14938
14939/* Override any GCC internal prototype to avoid an error.
14940   Use char because int might match the return type of a GCC
14941   builtin and then its argument prototype would still apply.  */
14942#ifdef __cplusplus
14943extern "C"
14944#endif
14945char connect ();
14946int
14947main ()
14948{
14949return connect ();
14950  ;
14951  return 0;
14952}
14953_ACEOF
14954if ac_fn_c_try_link "$LINENO"; then :
14955  ac_cv_lib_socket_connect=yes
14956else
14957  ac_cv_lib_socket_connect=no
14958fi
14959rm -f core conftest.err conftest.$ac_objext \
14960    conftest$ac_exeext conftest.$ac_ext
14961LIBS=$ac_check_lib_save_LIBS
14962fi
14963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14964$as_echo "$ac_cv_lib_socket_connect" >&6; }
14965if test "x$ac_cv_lib_socket_connect" = xyes; then :
14966  LIBS="$LIBS -lsocket"
14967else
14968  druntime_check_both=yes
14969fi
14970
14971fi
14972
14973  if test "$druntime_check_both" = "yes"; then
14974    druntime_old_libs=$LIBS
14975    LIBS="$LIBS -lsocket -lnsl"
14976    ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14977if test "x$ac_cv_func_accept" = xyes; then :
14978
14979else
14980  LIBS=$druntime_old_libs
14981fi
14982
14983  fi
14984  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14985if test "x$ac_cv_func_gethostbyname" = xyes; then :
14986
14987else
14988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14989$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14990if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
14991  $as_echo_n "(cached) " >&6
14992else
14993  ac_check_lib_save_LIBS=$LIBS
14994LIBS="-lnsl  $LIBS"
14995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996/* end confdefs.h.  */
14997
14998/* Override any GCC internal prototype to avoid an error.
14999   Use char because int might match the return type of a GCC
15000   builtin and then its argument prototype would still apply.  */
15001#ifdef __cplusplus
15002extern "C"
15003#endif
15004char gethostbyname ();
15005int
15006main ()
15007{
15008return gethostbyname ();
15009  ;
15010  return 0;
15011}
15012_ACEOF
15013if ac_fn_c_try_link "$LINENO"; then :
15014  ac_cv_lib_nsl_gethostbyname=yes
15015else
15016  ac_cv_lib_nsl_gethostbyname=no
15017fi
15018rm -f core conftest.err conftest.$ac_objext \
15019    conftest$ac_exeext conftest.$ac_ext
15020LIBS=$ac_check_lib_save_LIBS
15021fi
15022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15023$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15024if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15025  LIBS="$LIBS -lnsl"
15026fi
15027
15028fi
15029
15030
15031
15032  # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15033  # "yes" for targets that have 'version = AsmExternal'.
15034  druntime_fiber_asm_external=no
15035  case "$target_cpu" in
15036    aarch64* | \
15037    arm* | \
15038    i[34567]86|x86_64 | \
15039    powerpc)
15040      druntime_fiber_asm_external=yes
15041      ;;
15042  esac
15043  if test "$druntime_fiber_asm_external" = no; then
15044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15045$as_echo_n "checking for library containing swapcontext... " >&6; }
15046if ${ac_cv_search_swapcontext+:} false; then :
15047  $as_echo_n "(cached) " >&6
15048else
15049  ac_func_search_save_LIBS=$LIBS
15050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051/* end confdefs.h.  */
15052
15053/* Override any GCC internal prototype to avoid an error.
15054   Use char because int might match the return type of a GCC
15055   builtin and then its argument prototype would still apply.  */
15056#ifdef __cplusplus
15057extern "C"
15058#endif
15059char swapcontext ();
15060int
15061main ()
15062{
15063return swapcontext ();
15064  ;
15065  return 0;
15066}
15067_ACEOF
15068for ac_lib in '' c ucontext; do
15069  if test -z "$ac_lib"; then
15070    ac_res="none required"
15071  else
15072    ac_res=-l$ac_lib
15073    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15074  fi
15075  if ac_fn_c_try_link "$LINENO"; then :
15076  ac_cv_search_swapcontext=$ac_res
15077fi
15078rm -f core conftest.err conftest.$ac_objext \
15079    conftest$ac_exeext
15080  if ${ac_cv_search_swapcontext+:} false; then :
15081  break
15082fi
15083done
15084if ${ac_cv_search_swapcontext+:} false; then :
15085
15086else
15087  ac_cv_search_swapcontext=no
15088fi
15089rm conftest.$ac_ext
15090LIBS=$ac_func_search_save_LIBS
15091fi
15092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15093$as_echo "$ac_cv_search_swapcontext" >&6; }
15094ac_res=$ac_cv_search_swapcontext
15095if test "$ac_res" != no; then :
15096  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15097
15098else
15099  as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15100fi
15101
15102  fi
15103
15104
15105  ac_ext=c
15106ac_cpp='$CPP $CPPFLAGS'
15107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15109ac_compiler_gnu=$ac_cv_c_compiler_gnu
15110
15111  LIBZ=""
15112
15113
15114# Check whether --with-target-system-zlib was given.
15115if test "${with_target_system_zlib+set}" = set; then :
15116  withval=$with_target_system_zlib;
15117else
15118  with_target_system_zlib=no
15119fi
15120
15121
15122  case "$with_target_system_zlib" in
15123    yes|no|auto) ;;
15124    *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15125  esac
15126
15127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15128$as_echo_n "checking for system zlib... " >&6; }
15129  save_LIBS=$LIBS
15130  LIBS="$LIBS -lz"
15131      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132/* end confdefs.h.  */
15133#include <zlib.h>
15134int
15135main ()
15136{
15137gzopen("none", "rb")
15138  ;
15139  return 0;
15140}
15141_ACEOF
15142if ac_fn_c_try_link "$LINENO"; then :
15143
15144      if test "$cross_compiling" = yes; then :
15145          system_zlib_found=no
15146
15147else
15148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149/* end confdefs.h.  */
15150
15151        #include <zlib.h>
15152        int main() {
15153          gzFile file = gzopen("none", "rb");
15154          return 0;
15155        }
15156
15157_ACEOF
15158if ac_fn_c_try_run "$LINENO"; then :
15159  system_zlib_found=yes
15160else
15161  system_zlib_found=no
15162fi
15163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15164  conftest.$ac_objext conftest.beam conftest.$ac_ext
15165fi
15166
15167
15168else
15169  system_zlib_found=no
15170fi
15171rm -f core conftest.err conftest.$ac_objext \
15172    conftest$ac_exeext conftest.$ac_ext
15173  LIBS=$save_LIBS
15174
15175  if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15177$as_echo "found" >&6; }
15178    LIBS="$LIBS -lz"
15179  elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15180    as_fn_error $? "system zlib required but not found" "$LINENO" 5
15181  else
15182    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15183$as_echo "just compiled" >&6; }
15184    LIBZ=../../zlib/libz_convenience.la
15185  fi
15186
15187
15188  ac_ext=c
15189ac_cpp='$CPP $CPPFLAGS'
15190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15192ac_compiler_gnu=$ac_cv_c_compiler_gnu
15193
15194
15195
15196
15197
15198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15199$as_echo_n "checking D GCC version... " >&6; }
15200  gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15202$as_echo "$gcc_version" >&6; }
15203
15204
15205
15206# Check whether --with-cross-host was given.
15207if test "${with_cross_host+set}" = set; then :
15208  withval=$with_cross_host;
15209fi
15210
15211
15212  libphobos_toolexecdir=no
15213  libphobos_toolexeclibdir=no
15214
15215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15216$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15217  # Check whether --enable-version-specific-runtime-libs was given.
15218if test "${enable_version_specific_runtime_libs+set}" = set; then :
15219  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15220      yes) version_specific_libs=yes ;;
15221      no)  version_specific_libs=no ;;
15222      *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15223     esac
15224else
15225  version_specific_libs=no
15226fi
15227
15228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15229$as_echo "$version_specific_libs" >&6; }
15230
15231
15232# Check whether --with-toolexeclibdir was given.
15233if test "${with_toolexeclibdir+set}" = set; then :
15234  withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15235  /)
15236    ;;
15237  */)
15238    with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15239    ;;
15240esac
15241else
15242  with_toolexeclibdir=no
15243fi
15244
15245
15246
15247  # Version-specific runtime libs processing.
15248  if test $version_specific_libs = yes; then
15249    libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15250    libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15251  else
15252    # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15253    # Install a library built with a cross compiler in tooldir, not libdir.
15254    if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15255      libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15256      case ${with_toolexeclibdir} in
15257	no)
15258	  libphobos_toolexeclibdir='${toolexecdir}/lib'
15259	  ;;
15260	*)
15261	  libphobos_toolexeclibdir=${with_toolexeclibdir}
15262	  ;;
15263      esac
15264    else
15265      libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15266      libphobos_toolexeclibdir='${libdir}'
15267    fi
15268    multi_os_directory=`$GDC -print-multi-os-directory`
15269    case $multi_os_directory in
15270      .) ;; # Avoid trailing /.
15271      *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15272    esac
15273  fi
15274
15275
15276
15277  # Default case for install directory for D sources files.
15278  gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15279
15280
15281
15282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15283$as_echo_n "checking for --enable-libphobos... " >&6; }
15284# Check whether --enable-libphobos was given.
15285if test "${enable_libphobos+set}" = set; then :
15286  enableval=$enable_libphobos;
15287fi
15288
15289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15290$as_echo "$enable_libphobos" >&6; }
15291
15292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15293$as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15294
15295# Check whether --with-libphobos-druntime-only was given.
15296if test "${with_libphobos_druntime_only+set}" = set; then :
15297  withval=$with_libphobos_druntime_only;
15298else
15299  with_libphobos_druntime_only=auto
15300fi
15301
15302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15303$as_echo "$with_libphobos_druntime_only" >&6; }
15304
15305case "$with_libphobos_druntime_only" in
15306  yes|no|auto) ;;
15307  *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15308esac
15309
15310# See if supported.
15311unset LIBPHOBOS_SUPPORTED
15312unset LIBDRUNTIME_ONLY
15313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15314$as_echo_n "checking for host support for libphobos... " >&6; }
15315. ${srcdir}/configure.tgt
15316case ${host} in
15317  x86_64-*-solaris2.* | i?86-*-solaris2.*)
15318    # libphobos doesn't compile with the Solaris/x86 assembler due to a
15319    # relatively low linelength limit.
15320    as_prog=`$CC -print-prog-name=as`
15321    if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15322      druntime_cv_use_gas=yes;
15323    else
15324      druntime_cv_use_gas=no;
15325    fi
15326    rm -f a.out
15327    if test x$druntime_cv_use_gas = xno; then
15328      LIBPHOBOS_SUPPORTED=no
15329    fi
15330    # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15331    if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15332      LIBPHOBOS_SUPPORTED=no
15333    fi
15334    ;;
15335esac
15336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15337$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15338
15339# Decide if it's usable.
15340case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15341*:no)  use_libphobos=no  ;;
15342*:yes) use_libphobos=yes ;;
15343yes:*) use_libphobos=yes ;;
15344*:*)   use_libphobos=no  ;;
15345esac
15346 if test x$use_libphobos = xyes; then
15347  ENABLE_LIBPHOBOS_TRUE=
15348  ENABLE_LIBPHOBOS_FALSE='#'
15349else
15350  ENABLE_LIBPHOBOS_TRUE='#'
15351  ENABLE_LIBPHOBOS_FALSE=
15352fi
15353
15354
15355# Decide if only libdruntime should be built.
15356case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15357*:no)  only_libdruntime=no  ;;
15358*:yes) only_libdruntime=yes ;;
15359yes:*) only_libdruntime=yes ;;
15360*:*)   only_libdruntime=no  ;;
15361esac
15362 if test x$only_libdruntime = xyes; then
15363  ENABLE_LIBDRUNTIME_ONLY_TRUE=
15364  ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15365else
15366  ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15367  ENABLE_LIBDRUNTIME_ONLY_FALSE=
15368fi
15369
15370
15371# Enable expensive internal checks
15372# Check whether --enable-libphobos-checking was given.
15373if test "${enable_libphobos_checking+set}" = set; then :
15374  enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15375else
15376  ac_checking_flags=release
15377fi
15378
15379IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="$IFS,"
15380for check in release $ac_checking_flags
15381do
15382	case $check in
15383	# These set all the flags to specific states
15384	yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15385	no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15386	# These enable particular checks
15387	assert) ASSERT_FLAG="-fassert" ;;
15388	# Accept
15389	*) ;;
15390	esac
15391done
15392IFS="$ac_save_IFS"
15393CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15394
15395
15396# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15397if test "$DCFG_MINFO_BRACKETING" = "false"; then
15398    DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15399else
15400    DRTSTUFF_SPEC=/dev/null
15401fi
15402
15403
15404# Add dependencies for libgphobos.spec file
15405SPEC_PHOBOS_DEPS="$LIBS"
15406
15407
15408# Libdruntime / phobos soname version
15409libtool_VERSION=1:0:0
15410
15411
15412# Set default flags (after DRUNTIME_WERROR!)
15413if test -z "$GDCFLAGS"; then
15414    GDCFLAGS="-g -O2"
15415fi
15416
15417
15418WARN_DFLAGS="-Wall $WERROR_FLAG"
15419
15420
15421# Sanity check for the cross-compilation case:
15422ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15423if test "x$ac_cv_header_stdio_h" = xyes; then :
15424  :
15425else
15426  as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15427fi
15428
15429
15430
15431ac_config_files="$ac_config_files Makefile"
15432
15433
15434ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15435
15436ac_config_files="$ac_config_files src/libgphobos.spec"
15437
15438ac_config_files="$ac_config_files testsuite/testsuite_flags"
15439
15440
15441# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15442# that multilib installs will end up installed in the correct place.
15443# The testsuite needs it for multilib-aware ABI baseline files.
15444# To work around this not being passed down from config-ml.in ->
15445# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15446# append it here.  Only modify Makefiles that have just been created.
15447#
15448# Also, get rid of this simulated-VPATH thing that automake does.
15449ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15450
15451
15452cat >confcache <<\_ACEOF
15453# This file is a shell script that caches the results of configure
15454# tests run on this system so they can be shared between configure
15455# scripts and configure runs, see configure's option --config-cache.
15456# It is not useful on other systems.  If it contains results you don't
15457# want to keep, you may remove or edit it.
15458#
15459# config.status only pays attention to the cache file if you give it
15460# the --recheck option to rerun configure.
15461#
15462# `ac_cv_env_foo' variables (set or unset) will be overridden when
15463# loading this file, other *unset* `ac_cv_foo' will be assigned the
15464# following values.
15465
15466_ACEOF
15467
15468# The following way of writing the cache mishandles newlines in values,
15469# but we know of no workaround that is simple, portable, and efficient.
15470# So, we kill variables containing newlines.
15471# Ultrix sh set writes to stderr and can't be redirected directly,
15472# and sets the high bit in the cache file unless we assign to the vars.
15473(
15474  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15475    eval ac_val=\$$ac_var
15476    case $ac_val in #(
15477    *${as_nl}*)
15478      case $ac_var in #(
15479      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15480$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15481      esac
15482      case $ac_var in #(
15483      _ | IFS | as_nl) ;; #(
15484      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15485      *) { eval $ac_var=; unset $ac_var;} ;;
15486      esac ;;
15487    esac
15488  done
15489
15490  (set) 2>&1 |
15491    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15492    *${as_nl}ac_space=\ *)
15493      # `set' does not quote correctly, so add quotes: double-quote
15494      # substitution turns \\\\ into \\, and sed turns \\ into \.
15495      sed -n \
15496	"s/'/'\\\\''/g;
15497	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15498      ;; #(
15499    *)
15500      # `set' quotes correctly as required by POSIX, so do not add quotes.
15501      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15502      ;;
15503    esac |
15504    sort
15505) |
15506  sed '
15507     /^ac_cv_env_/b end
15508     t clear
15509     :clear
15510     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15511     t end
15512     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15513     :end' >>confcache
15514if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15515  if test -w "$cache_file"; then
15516    if test "x$cache_file" != "x/dev/null"; then
15517      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15518$as_echo "$as_me: updating cache $cache_file" >&6;}
15519      if test ! -f "$cache_file" || test -h "$cache_file"; then
15520	cat confcache >"$cache_file"
15521      else
15522        case $cache_file in #(
15523        */* | ?:*)
15524	  mv -f confcache "$cache_file"$$ &&
15525	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15526        *)
15527	  mv -f confcache "$cache_file" ;;
15528	esac
15529      fi
15530    fi
15531  else
15532    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15533$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15534  fi
15535fi
15536rm -f confcache
15537
15538test "x$prefix" = xNONE && prefix=$ac_default_prefix
15539# Let make expand exec_prefix.
15540test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15541
15542DEFS=-DHAVE_CONFIG_H
15543
15544ac_libobjs=
15545ac_ltlibobjs=
15546U=
15547for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15548  # 1. Remove the extension, and $U if already installed.
15549  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15550  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15551  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15552  #    will be set to the directory where LIBOBJS objects are built.
15553  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15554  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15555done
15556LIBOBJS=$ac_libobjs
15557
15558LTLIBOBJS=$ac_ltlibobjs
15559
15560
15561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15562$as_echo_n "checking that generated files are newer than configure... " >&6; }
15563   if test -n "$am_sleep_pid"; then
15564     # Hide warnings about reused PIDs.
15565     wait $am_sleep_pid 2>/dev/null
15566   fi
15567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15568$as_echo "done" >&6; }
15569 if test -n "$EXEEXT"; then
15570  am__EXEEXT_TRUE=
15571  am__EXEEXT_FALSE='#'
15572else
15573  am__EXEEXT_TRUE='#'
15574  am__EXEEXT_FALSE=
15575fi
15576
15577if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15578  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15579Usually this means the macro was only invoked conditionally." "$LINENO" 5
15580fi
15581if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15582  as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15583Usually this means the macro was only invoked conditionally." "$LINENO" 5
15584fi
15585if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15586  as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15587Usually this means the macro was only invoked conditionally." "$LINENO" 5
15588fi
15589if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15590  as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15591Usually this means the macro was only invoked conditionally." "$LINENO" 5
15592fi
15593if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15594  as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15595Usually this means the macro was only invoked conditionally." "$LINENO" 5
15596fi
15597if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15598  as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15599Usually this means the macro was only invoked conditionally." "$LINENO" 5
15600fi
15601if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15602  as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15603Usually this means the macro was only invoked conditionally." "$LINENO" 5
15604fi
15605if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15606  as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15607Usually this means the macro was only invoked conditionally." "$LINENO" 5
15608fi
15609if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15610  as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15611Usually this means the macro was only invoked conditionally." "$LINENO" 5
15612fi
15613if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15614  as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15615Usually this means the macro was only invoked conditionally." "$LINENO" 5
15616fi
15617if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15618  as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15619Usually this means the macro was only invoked conditionally." "$LINENO" 5
15620fi
15621if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15622  as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15623Usually this means the macro was only invoked conditionally." "$LINENO" 5
15624fi
15625if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15626  as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15627Usually this means the macro was only invoked conditionally." "$LINENO" 5
15628fi
15629if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15630  as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15631Usually this means the macro was only invoked conditionally." "$LINENO" 5
15632fi
15633if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15634  as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15635Usually this means the macro was only invoked conditionally." "$LINENO" 5
15636fi
15637if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15638  as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15639Usually this means the macro was only invoked conditionally." "$LINENO" 5
15640fi
15641if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15642  as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15643Usually this means the macro was only invoked conditionally." "$LINENO" 5
15644fi
15645if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15646  as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15647Usually this means the macro was only invoked conditionally." "$LINENO" 5
15648fi
15649if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15650  as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15651Usually this means the macro was only invoked conditionally." "$LINENO" 5
15652fi
15653if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15654  as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15655Usually this means the macro was only invoked conditionally." "$LINENO" 5
15656fi
15657if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15658  as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15659Usually this means the macro was only invoked conditionally." "$LINENO" 5
15660fi
15661if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15662  as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15663Usually this means the macro was only invoked conditionally." "$LINENO" 5
15664fi
15665if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15666  as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15667Usually this means the macro was only invoked conditionally." "$LINENO" 5
15668fi
15669
15670: "${CONFIG_STATUS=./config.status}"
15671ac_write_fail=0
15672ac_clean_files_save=$ac_clean_files
15673ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15674{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15675$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15676as_write_fail=0
15677cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15678#! $SHELL
15679# Generated by $as_me.
15680# Run this file to recreate the current configuration.
15681# Compiler output produced by configure, useful for debugging
15682# configure, is in config.log if it exists.
15683
15684debug=false
15685ac_cs_recheck=false
15686ac_cs_silent=false
15687
15688SHELL=\${CONFIG_SHELL-$SHELL}
15689export SHELL
15690_ASEOF
15691cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15692## -------------------- ##
15693## M4sh Initialization. ##
15694## -------------------- ##
15695
15696# Be more Bourne compatible
15697DUALCASE=1; export DUALCASE # for MKS sh
15698if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15699  emulate sh
15700  NULLCMD=:
15701  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15702  # is contrary to our usage.  Disable this feature.
15703  alias -g '${1+"$@"}'='"$@"'
15704  setopt NO_GLOB_SUBST
15705else
15706  case `(set -o) 2>/dev/null` in #(
15707  *posix*) :
15708    set -o posix ;; #(
15709  *) :
15710     ;;
15711esac
15712fi
15713
15714
15715as_nl='
15716'
15717export as_nl
15718# Printing a long string crashes Solaris 7 /usr/bin/printf.
15719as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15720as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15721as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15722# Prefer a ksh shell builtin over an external printf program on Solaris,
15723# but without wasting forks for bash or zsh.
15724if test -z "$BASH_VERSION$ZSH_VERSION" \
15725    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15726  as_echo='print -r --'
15727  as_echo_n='print -rn --'
15728elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15729  as_echo='printf %s\n'
15730  as_echo_n='printf %s'
15731else
15732  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15733    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15734    as_echo_n='/usr/ucb/echo -n'
15735  else
15736    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15737    as_echo_n_body='eval
15738      arg=$1;
15739      case $arg in #(
15740      *"$as_nl"*)
15741	expr "X$arg" : "X\\(.*\\)$as_nl";
15742	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15743      esac;
15744      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15745    '
15746    export as_echo_n_body
15747    as_echo_n='sh -c $as_echo_n_body as_echo'
15748  fi
15749  export as_echo_body
15750  as_echo='sh -c $as_echo_body as_echo'
15751fi
15752
15753# The user is always right.
15754if test "${PATH_SEPARATOR+set}" != set; then
15755  PATH_SEPARATOR=:
15756  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15757    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15758      PATH_SEPARATOR=';'
15759  }
15760fi
15761
15762
15763# IFS
15764# We need space, tab and new line, in precisely that order.  Quoting is
15765# there to prevent editors from complaining about space-tab.
15766# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15767# splitting by setting IFS to empty value.)
15768IFS=" ""	$as_nl"
15769
15770# Find who we are.  Look in the path if we contain no directory separator.
15771as_myself=
15772case $0 in #((
15773  *[\\/]* ) as_myself=$0 ;;
15774  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15775for as_dir in $PATH
15776do
15777  IFS=$as_save_IFS
15778  test -z "$as_dir" && as_dir=.
15779    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15780  done
15781IFS=$as_save_IFS
15782
15783     ;;
15784esac
15785# We did not find ourselves, most probably we were run as `sh COMMAND'
15786# in which case we are not to be found in the path.
15787if test "x$as_myself" = x; then
15788  as_myself=$0
15789fi
15790if test ! -f "$as_myself"; then
15791  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15792  exit 1
15793fi
15794
15795# Unset variables that we do not need and which cause bugs (e.g. in
15796# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15797# suppresses any "Segmentation fault" message there.  '((' could
15798# trigger a bug in pdksh 5.2.14.
15799for as_var in BASH_ENV ENV MAIL MAILPATH
15800do eval test x\${$as_var+set} = xset \
15801  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15802done
15803PS1='$ '
15804PS2='> '
15805PS4='+ '
15806
15807# NLS nuisances.
15808LC_ALL=C
15809export LC_ALL
15810LANGUAGE=C
15811export LANGUAGE
15812
15813# CDPATH.
15814(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15815
15816
15817# as_fn_error STATUS ERROR [LINENO LOG_FD]
15818# ----------------------------------------
15819# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15820# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15821# script with STATUS, using 1 if that was 0.
15822as_fn_error ()
15823{
15824  as_status=$1; test $as_status -eq 0 && as_status=1
15825  if test "$4"; then
15826    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15827    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15828  fi
15829  $as_echo "$as_me: error: $2" >&2
15830  as_fn_exit $as_status
15831} # as_fn_error
15832
15833
15834# as_fn_set_status STATUS
15835# -----------------------
15836# Set $? to STATUS, without forking.
15837as_fn_set_status ()
15838{
15839  return $1
15840} # as_fn_set_status
15841
15842# as_fn_exit STATUS
15843# -----------------
15844# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15845as_fn_exit ()
15846{
15847  set +e
15848  as_fn_set_status $1
15849  exit $1
15850} # as_fn_exit
15851
15852# as_fn_unset VAR
15853# ---------------
15854# Portably unset VAR.
15855as_fn_unset ()
15856{
15857  { eval $1=; unset $1;}
15858}
15859as_unset=as_fn_unset
15860# as_fn_append VAR VALUE
15861# ----------------------
15862# Append the text in VALUE to the end of the definition contained in VAR. Take
15863# advantage of any shell optimizations that allow amortized linear growth over
15864# repeated appends, instead of the typical quadratic growth present in naive
15865# implementations.
15866if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15867  eval 'as_fn_append ()
15868  {
15869    eval $1+=\$2
15870  }'
15871else
15872  as_fn_append ()
15873  {
15874    eval $1=\$$1\$2
15875  }
15876fi # as_fn_append
15877
15878# as_fn_arith ARG...
15879# ------------------
15880# Perform arithmetic evaluation on the ARGs, and store the result in the
15881# global $as_val. Take advantage of shells that can avoid forks. The arguments
15882# must be portable across $(()) and expr.
15883if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15884  eval 'as_fn_arith ()
15885  {
15886    as_val=$(( $* ))
15887  }'
15888else
15889  as_fn_arith ()
15890  {
15891    as_val=`expr "$@" || test $? -eq 1`
15892  }
15893fi # as_fn_arith
15894
15895
15896if expr a : '\(a\)' >/dev/null 2>&1 &&
15897   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15898  as_expr=expr
15899else
15900  as_expr=false
15901fi
15902
15903if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15904  as_basename=basename
15905else
15906  as_basename=false
15907fi
15908
15909if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15910  as_dirname=dirname
15911else
15912  as_dirname=false
15913fi
15914
15915as_me=`$as_basename -- "$0" ||
15916$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15917	 X"$0" : 'X\(//\)$' \| \
15918	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15919$as_echo X/"$0" |
15920    sed '/^.*\/\([^/][^/]*\)\/*$/{
15921	    s//\1/
15922	    q
15923	  }
15924	  /^X\/\(\/\/\)$/{
15925	    s//\1/
15926	    q
15927	  }
15928	  /^X\/\(\/\).*/{
15929	    s//\1/
15930	    q
15931	  }
15932	  s/.*/./; q'`
15933
15934# Avoid depending upon Character Ranges.
15935as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15936as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15937as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15938as_cr_digits='0123456789'
15939as_cr_alnum=$as_cr_Letters$as_cr_digits
15940
15941ECHO_C= ECHO_N= ECHO_T=
15942case `echo -n x` in #(((((
15943-n*)
15944  case `echo 'xy\c'` in
15945  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15946  xy)  ECHO_C='\c';;
15947  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15948       ECHO_T='	';;
15949  esac;;
15950*)
15951  ECHO_N='-n';;
15952esac
15953
15954rm -f conf$$ conf$$.exe conf$$.file
15955if test -d conf$$.dir; then
15956  rm -f conf$$.dir/conf$$.file
15957else
15958  rm -f conf$$.dir
15959  mkdir conf$$.dir 2>/dev/null
15960fi
15961if (echo >conf$$.file) 2>/dev/null; then
15962  if ln -s conf$$.file conf$$ 2>/dev/null; then
15963    as_ln_s='ln -s'
15964    # ... but there are two gotchas:
15965    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15966    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15967    # In both cases, we have to default to `cp -pR'.
15968    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15969      as_ln_s='cp -pR'
15970  elif ln conf$$.file conf$$ 2>/dev/null; then
15971    as_ln_s=ln
15972  else
15973    as_ln_s='cp -pR'
15974  fi
15975else
15976  as_ln_s='cp -pR'
15977fi
15978rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15979rmdir conf$$.dir 2>/dev/null
15980
15981
15982# as_fn_mkdir_p
15983# -------------
15984# Create "$as_dir" as a directory, including parents if necessary.
15985as_fn_mkdir_p ()
15986{
15987
15988  case $as_dir in #(
15989  -*) as_dir=./$as_dir;;
15990  esac
15991  test -d "$as_dir" || eval $as_mkdir_p || {
15992    as_dirs=
15993    while :; do
15994      case $as_dir in #(
15995      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15996      *) as_qdir=$as_dir;;
15997      esac
15998      as_dirs="'$as_qdir' $as_dirs"
15999      as_dir=`$as_dirname -- "$as_dir" ||
16000$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16001	 X"$as_dir" : 'X\(//\)[^/]' \| \
16002	 X"$as_dir" : 'X\(//\)$' \| \
16003	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16004$as_echo X"$as_dir" |
16005    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16006	    s//\1/
16007	    q
16008	  }
16009	  /^X\(\/\/\)[^/].*/{
16010	    s//\1/
16011	    q
16012	  }
16013	  /^X\(\/\/\)$/{
16014	    s//\1/
16015	    q
16016	  }
16017	  /^X\(\/\).*/{
16018	    s//\1/
16019	    q
16020	  }
16021	  s/.*/./; q'`
16022      test -d "$as_dir" && break
16023    done
16024    test -z "$as_dirs" || eval "mkdir $as_dirs"
16025  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16026
16027
16028} # as_fn_mkdir_p
16029if mkdir -p . 2>/dev/null; then
16030  as_mkdir_p='mkdir -p "$as_dir"'
16031else
16032  test -d ./-p && rmdir ./-p
16033  as_mkdir_p=false
16034fi
16035
16036
16037# as_fn_executable_p FILE
16038# -----------------------
16039# Test if FILE is an executable regular file.
16040as_fn_executable_p ()
16041{
16042  test -f "$1" && test -x "$1"
16043} # as_fn_executable_p
16044as_test_x='test -x'
16045as_executable_p=as_fn_executable_p
16046
16047# Sed expression to map a string onto a valid CPP name.
16048as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16049
16050# Sed expression to map a string onto a valid variable name.
16051as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16052
16053
16054exec 6>&1
16055## ----------------------------------- ##
16056## Main body of $CONFIG_STATUS script. ##
16057## ----------------------------------- ##
16058_ASEOF
16059test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16060
16061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16062# Save the log message, to keep $0 and so on meaningful, and to
16063# report actual input values of CONFIG_FILES etc. instead of their
16064# values after options handling.
16065ac_log="
16066This file was extended by package-unused $as_me version-unused, which was
16067generated by GNU Autoconf 2.69.  Invocation command line was
16068
16069  CONFIG_FILES    = $CONFIG_FILES
16070  CONFIG_HEADERS  = $CONFIG_HEADERS
16071  CONFIG_LINKS    = $CONFIG_LINKS
16072  CONFIG_COMMANDS = $CONFIG_COMMANDS
16073  $ $0 $@
16074
16075on `(hostname || uname -n) 2>/dev/null | sed 1q`
16076"
16077
16078_ACEOF
16079
16080case $ac_config_files in *"
16081"*) set x $ac_config_files; shift; ac_config_files=$*;;
16082esac
16083
16084case $ac_config_headers in *"
16085"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16086esac
16087
16088
16089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16090# Files that config.status was made for.
16091config_files="$ac_config_files"
16092config_headers="$ac_config_headers"
16093config_commands="$ac_config_commands"
16094
16095_ACEOF
16096
16097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16098ac_cs_usage="\
16099\`$as_me' instantiates files and other configuration actions
16100from templates according to the current configuration.  Unless the files
16101and actions are specified as TAGs, all are instantiated by default.
16102
16103Usage: $0 [OPTION]... [TAG]...
16104
16105  -h, --help       print this help, then exit
16106  -V, --version    print version number and configuration settings, then exit
16107      --config     print configuration, then exit
16108  -q, --quiet, --silent
16109                   do not print progress messages
16110  -d, --debug      don't remove temporary files
16111      --recheck    update $as_me by reconfiguring in the same conditions
16112      --file=FILE[:TEMPLATE]
16113                   instantiate the configuration file FILE
16114      --header=FILE[:TEMPLATE]
16115                   instantiate the configuration header FILE
16116
16117Configuration files:
16118$config_files
16119
16120Configuration headers:
16121$config_headers
16122
16123Configuration commands:
16124$config_commands
16125
16126Report bugs to the package provider."
16127
16128_ACEOF
16129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16130ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16131ac_cs_version="\\
16132package-unused config.status version-unused
16133configured by $0, generated by GNU Autoconf 2.69,
16134  with options \\"\$ac_cs_config\\"
16135
16136Copyright (C) 2012 Free Software Foundation, Inc.
16137This config.status script is free software; the Free Software Foundation
16138gives unlimited permission to copy, distribute and modify it."
16139
16140ac_pwd='$ac_pwd'
16141srcdir='$srcdir'
16142INSTALL='$INSTALL'
16143MKDIR_P='$MKDIR_P'
16144AWK='$AWK'
16145test -n "\$AWK" || AWK=awk
16146_ACEOF
16147
16148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16149# The default lists apply if the user does not specify any file.
16150ac_need_defaults=:
16151while test $# != 0
16152do
16153  case $1 in
16154  --*=?*)
16155    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16156    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16157    ac_shift=:
16158    ;;
16159  --*=)
16160    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16161    ac_optarg=
16162    ac_shift=:
16163    ;;
16164  *)
16165    ac_option=$1
16166    ac_optarg=$2
16167    ac_shift=shift
16168    ;;
16169  esac
16170
16171  case $ac_option in
16172  # Handling of the options.
16173  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16174    ac_cs_recheck=: ;;
16175  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16176    $as_echo "$ac_cs_version"; exit ;;
16177  --config | --confi | --conf | --con | --co | --c )
16178    $as_echo "$ac_cs_config"; exit ;;
16179  --debug | --debu | --deb | --de | --d | -d )
16180    debug=: ;;
16181  --file | --fil | --fi | --f )
16182    $ac_shift
16183    case $ac_optarg in
16184    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16185    '') as_fn_error $? "missing file argument" ;;
16186    esac
16187    as_fn_append CONFIG_FILES " '$ac_optarg'"
16188    ac_need_defaults=false;;
16189  --header | --heade | --head | --hea )
16190    $ac_shift
16191    case $ac_optarg in
16192    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16193    esac
16194    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16195    ac_need_defaults=false;;
16196  --he | --h)
16197    # Conflict between --help and --header
16198    as_fn_error $? "ambiguous option: \`$1'
16199Try \`$0 --help' for more information.";;
16200  --help | --hel | -h )
16201    $as_echo "$ac_cs_usage"; exit ;;
16202  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16203  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16204    ac_cs_silent=: ;;
16205
16206  # This is an error.
16207  -*) as_fn_error $? "unrecognized option: \`$1'
16208Try \`$0 --help' for more information." ;;
16209
16210  *) as_fn_append ac_config_targets " $1"
16211     ac_need_defaults=false ;;
16212
16213  esac
16214  shift
16215done
16216
16217ac_configure_extra_args=
16218
16219if $ac_cs_silent; then
16220  exec 6>/dev/null
16221  ac_configure_extra_args="$ac_configure_extra_args --silent"
16222fi
16223
16224_ACEOF
16225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16226if \$ac_cs_recheck; then
16227  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16228  shift
16229  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16230  CONFIG_SHELL='$SHELL'
16231  export CONFIG_SHELL
16232  exec "\$@"
16233fi
16234
16235_ACEOF
16236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16237exec 5>>config.log
16238{
16239  echo
16240  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16241## Running $as_me. ##
16242_ASBOX
16243  $as_echo "$ac_log"
16244} >&5
16245
16246_ACEOF
16247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16248#
16249# INIT-COMMANDS
16250#
16251
16252srcdir="$srcdir"
16253host="$host"
16254target="$target"
16255with_multisubdir="$with_multisubdir"
16256with_multisrctop="$with_multisrctop"
16257with_target_subdir="$with_target_subdir"
16258ac_configure_args="${multilib_arg} ${ac_configure_args}"
16259multi_basedir="$multi_basedir"
16260CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16261CC="$CC"
16262CXX="$CXX"
16263GFORTRAN="$GFORTRAN"
16264GDC="$GDC"
16265
16266
16267# The HP-UX ksh and POSIX shell print the target directory to stdout
16268# if CDPATH is set.
16269(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16270
16271sed_quote_subst='$sed_quote_subst'
16272double_quote_subst='$double_quote_subst'
16273delay_variable_subst='$delay_variable_subst'
16274macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16275macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16276enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16277enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16278pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16279enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16280SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16281ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16282host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16283host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16284host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16285build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16286build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16287build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16288SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16289Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16290GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16291EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16292FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16293LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16294NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16295LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16296max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16297ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16298exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16299lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16300lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16301lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16302reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16303reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16304OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16305deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16306file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16307AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16308AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16309STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16310RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16311old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16312old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16313old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16314lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16315CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16316CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16317compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16318GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16319lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16320lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16321lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16322lt_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"`'
16323objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16324MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16325lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16326lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16327lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16328lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16329lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16330need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16331DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16332NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16333LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16334OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16335OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16336libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16337shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16338extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16339archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16340enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16341export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16342whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16343compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16344old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16345old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16346archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16347archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16348module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16349module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16350with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16351allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16352no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16353hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16354hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16355hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16356hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16357hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16358hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16359hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16360hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16361inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16362link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16363fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16364always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16365export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16366exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16367include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16368prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16369file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16370variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16371need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16372need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16373version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16374runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16375shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16376shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16377libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16378library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16379soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16380install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16381postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16382postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16383finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16384finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16385hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16386sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16387sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16388hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16389enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16390enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16391enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16392old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16393striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16394LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16395reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16396reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16397old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16398compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16399GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16400lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16401lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16402lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16403lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16404lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16405archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16406enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16407export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16408whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16409compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16410old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16411old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16412archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16413archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16414module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16415module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16416with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16417allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16418no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16419hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16420hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16421hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16422hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16423hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16424hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16425hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16426hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16427inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16428link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16429fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16430always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16431export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16432exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16433include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16434prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16435file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16436hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16437
16438LTCC='$LTCC'
16439LTCFLAGS='$LTCFLAGS'
16440compiler='$compiler_DEFAULT'
16441
16442# A function that is used when there is no print builtin or printf.
16443func_fallback_echo ()
16444{
16445  eval 'cat <<_LTECHO_EOF
16446\$1
16447_LTECHO_EOF'
16448}
16449
16450# Quote evaled strings.
16451for var in SHELL \
16452ECHO \
16453SED \
16454GREP \
16455EGREP \
16456FGREP \
16457LD \
16458NM \
16459LN_S \
16460lt_SP2NL \
16461lt_NL2SP \
16462reload_flag \
16463OBJDUMP \
16464deplibs_check_method \
16465file_magic_cmd \
16466AR \
16467AR_FLAGS \
16468STRIP \
16469RANLIB \
16470CC \
16471CFLAGS \
16472compiler \
16473lt_cv_sys_global_symbol_pipe \
16474lt_cv_sys_global_symbol_to_cdecl \
16475lt_cv_sys_global_symbol_to_c_name_address \
16476lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16477lt_prog_compiler_no_builtin_flag \
16478lt_prog_compiler_wl \
16479lt_prog_compiler_pic \
16480lt_prog_compiler_static \
16481lt_cv_prog_compiler_c_o \
16482need_locks \
16483DSYMUTIL \
16484NMEDIT \
16485LIPO \
16486OTOOL \
16487OTOOL64 \
16488shrext_cmds \
16489export_dynamic_flag_spec \
16490whole_archive_flag_spec \
16491compiler_needs_object \
16492with_gnu_ld \
16493allow_undefined_flag \
16494no_undefined_flag \
16495hardcode_libdir_flag_spec \
16496hardcode_libdir_flag_spec_ld \
16497hardcode_libdir_separator \
16498fix_srcfile_path \
16499exclude_expsyms \
16500include_expsyms \
16501file_list_spec \
16502variables_saved_for_relink \
16503libname_spec \
16504library_names_spec \
16505soname_spec \
16506install_override_mode \
16507finish_eval \
16508old_striplib \
16509striplib \
16510LD_D \
16511reload_flag_D \
16512compiler_D \
16513lt_prog_compiler_no_builtin_flag_D \
16514lt_prog_compiler_wl_D \
16515lt_prog_compiler_pic_D \
16516lt_prog_compiler_static_D \
16517lt_cv_prog_compiler_c_o_D \
16518export_dynamic_flag_spec_D \
16519whole_archive_flag_spec_D \
16520compiler_needs_object_D \
16521with_gnu_ld_D \
16522allow_undefined_flag_D \
16523no_undefined_flag_D \
16524hardcode_libdir_flag_spec_D \
16525hardcode_libdir_flag_spec_ld_D \
16526hardcode_libdir_separator_D \
16527fix_srcfile_path_D \
16528exclude_expsyms_D \
16529include_expsyms_D \
16530file_list_spec_D; do
16531    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16532    *[\\\\\\\`\\"\\\$]*)
16533      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16534      ;;
16535    *)
16536      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16537      ;;
16538    esac
16539done
16540
16541# Double-quote double-evaled strings.
16542for var in reload_cmds \
16543old_postinstall_cmds \
16544old_postuninstall_cmds \
16545old_archive_cmds \
16546extract_expsyms_cmds \
16547old_archive_from_new_cmds \
16548old_archive_from_expsyms_cmds \
16549archive_cmds \
16550archive_expsym_cmds \
16551module_cmds \
16552module_expsym_cmds \
16553export_symbols_cmds \
16554prelink_cmds \
16555postinstall_cmds \
16556postuninstall_cmds \
16557finish_cmds \
16558sys_lib_search_path_spec \
16559sys_lib_dlsearch_path_spec \
16560reload_cmds_D \
16561old_archive_cmds_D \
16562old_archive_from_new_cmds_D \
16563old_archive_from_expsyms_cmds_D \
16564archive_cmds_D \
16565archive_expsym_cmds_D \
16566module_cmds_D \
16567module_expsym_cmds_D \
16568export_symbols_cmds_D \
16569prelink_cmds_D; do
16570    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16571    *[\\\\\\\`\\"\\\$]*)
16572      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16573      ;;
16574    *)
16575      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16576      ;;
16577    esac
16578done
16579
16580ac_aux_dir='$ac_aux_dir'
16581xsi_shell='$xsi_shell'
16582lt_shell_append='$lt_shell_append'
16583
16584# See if we are running on zsh, and set the options which allow our
16585# commands through without removal of \ escapes INIT.
16586if test -n "\${ZSH_VERSION+set}" ; then
16587   setopt NO_GLOB_SUBST
16588fi
16589
16590
16591    PACKAGE='$PACKAGE'
16592    VERSION='$VERSION'
16593    TIMESTAMP='$TIMESTAMP'
16594    RM='$RM'
16595    ofile='$ofile'
16596
16597
16598
16599
16600
16601
16602_ACEOF
16603
16604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16605
16606# Handling of arguments.
16607for ac_config_target in $ac_config_targets
16608do
16609  case $ac_config_target in
16610    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16611    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16612    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16613    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16614    "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16615    "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16616    "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16617    "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16618    "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16619    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16620    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16621
16622  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16623  esac
16624done
16625
16626
16627# If the user did not use the arguments to specify the items to instantiate,
16628# then the envvar interface is used.  Set only those that are not.
16629# We use the long form for the default assignment because of an extremely
16630# bizarre bug on SunOS 4.1.3.
16631if $ac_need_defaults; then
16632  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16633  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16634  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16635fi
16636
16637# Have a temporary directory for convenience.  Make it in the build tree
16638# simply because there is no reason against having it here, and in addition,
16639# creating and moving files from /tmp can sometimes cause problems.
16640# Hook for its removal unless debugging.
16641# Note that there is a small window in which the directory will not be cleaned:
16642# after its creation but before its name has been assigned to `$tmp'.
16643$debug ||
16644{
16645  tmp= ac_tmp=
16646  trap 'exit_status=$?
16647  : "${ac_tmp:=$tmp}"
16648  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16649' 0
16650  trap 'as_fn_exit 1' 1 2 13 15
16651}
16652# Create a (secure) tmp directory for tmp files.
16653
16654{
16655  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16656  test -d "$tmp"
16657}  ||
16658{
16659  tmp=./conf$$-$RANDOM
16660  (umask 077 && mkdir "$tmp")
16661} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16662ac_tmp=$tmp
16663
16664# Set up the scripts for CONFIG_FILES section.
16665# No need to generate them if there are no CONFIG_FILES.
16666# This happens for instance with `./config.status config.h'.
16667if test -n "$CONFIG_FILES"; then
16668
16669if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16670  ac_cs_awk_getline=:
16671  ac_cs_awk_pipe_init=
16672  ac_cs_awk_read_file='
16673      while ((getline aline < (F[key])) > 0)
16674	print(aline)
16675      close(F[key])'
16676  ac_cs_awk_pipe_fini=
16677else
16678  ac_cs_awk_getline=false
16679  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16680  ac_cs_awk_read_file='
16681      print "|#_!!_#|"
16682      print "cat " F[key] " &&"
16683      '$ac_cs_awk_pipe_init
16684  # The final `:' finishes the AND list.
16685  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16686fi
16687ac_cr=`echo X | tr X '\015'`
16688# On cygwin, bash can eat \r inside `` if the user requested igncr.
16689# But we know of no other shell where ac_cr would be empty at this
16690# point, so we can use a bashism as a fallback.
16691if test "x$ac_cr" = x; then
16692  eval ac_cr=\$\'\\r\'
16693fi
16694ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16695if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16696  ac_cs_awk_cr='\\r'
16697else
16698  ac_cs_awk_cr=$ac_cr
16699fi
16700
16701echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16702_ACEOF
16703
16704# Create commands to substitute file output variables.
16705{
16706  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16707  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16708  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16709  echo "_ACAWK" &&
16710  echo "_ACEOF"
16711} >conf$$files.sh &&
16712. ./conf$$files.sh ||
16713  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16714rm -f conf$$files.sh
16715
16716{
16717  echo "cat >conf$$subs.awk <<_ACEOF" &&
16718  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16719  echo "_ACEOF"
16720} >conf$$subs.sh ||
16721  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16722ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16723ac_delim='%!_!# '
16724for ac_last_try in false false false false false :; do
16725  . ./conf$$subs.sh ||
16726    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16727
16728  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16729  if test $ac_delim_n = $ac_delim_num; then
16730    break
16731  elif $ac_last_try; then
16732    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16733  else
16734    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16735  fi
16736done
16737rm -f conf$$subs.sh
16738
16739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16740cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16741_ACEOF
16742sed -n '
16743h
16744s/^/S["/; s/!.*/"]=/
16745p
16746g
16747s/^[^!]*!//
16748:repl
16749t repl
16750s/'"$ac_delim"'$//
16751t delim
16752:nl
16753h
16754s/\(.\{148\}\)..*/\1/
16755t more1
16756s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16757p
16758n
16759b repl
16760:more1
16761s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16762p
16763g
16764s/.\{148\}//
16765t nl
16766:delim
16767h
16768s/\(.\{148\}\)..*/\1/
16769t more2
16770s/["\\]/\\&/g; s/^/"/; s/$/"/
16771p
16772b
16773:more2
16774s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16775p
16776g
16777s/.\{148\}//
16778t delim
16779' <conf$$subs.awk | sed '
16780/^[^""]/{
16781  N
16782  s/\n//
16783}
16784' >>$CONFIG_STATUS || ac_write_fail=1
16785rm -f conf$$subs.awk
16786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16787_ACAWK
16788cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16789  for (key in S) S_is_set[key] = 1
16790  FS = ""
16791  \$ac_cs_awk_pipe_init
16792}
16793{
16794  line = $ 0
16795  nfields = split(line, field, "@")
16796  substed = 0
16797  len = length(field[1])
16798  for (i = 2; i < nfields; i++) {
16799    key = field[i]
16800    keylen = length(key)
16801    if (S_is_set[key]) {
16802      value = S[key]
16803      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16804      len += length(value) + length(field[++i])
16805      substed = 1
16806    } else
16807      len += 1 + keylen
16808  }
16809  if (nfields == 3 && !substed) {
16810    key = field[2]
16811    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
16812      \$ac_cs_awk_read_file
16813      next
16814    }
16815  }
16816  print line
16817}
16818\$ac_cs_awk_pipe_fini
16819_ACAWK
16820_ACEOF
16821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16822if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16823  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16824else
16825  cat
16826fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16827  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16828_ACEOF
16829
16830# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16831# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16832# trailing colons and then remove the whole line if VPATH becomes empty
16833# (actually we leave an empty line to preserve line numbers).
16834if test "x$srcdir" = x.; then
16835  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16836h
16837s///
16838s/^/:/
16839s/[	 ]*$/:/
16840s/:\$(srcdir):/:/g
16841s/:\${srcdir}:/:/g
16842s/:@srcdir@:/:/g
16843s/^:*//
16844s/:*$//
16845x
16846s/\(=[	 ]*\).*/\1/
16847G
16848s/\n//
16849s/^[^=]*=[	 ]*$//
16850}'
16851fi
16852
16853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16854fi # test -n "$CONFIG_FILES"
16855
16856# Set up the scripts for CONFIG_HEADERS section.
16857# No need to generate them if there are no CONFIG_HEADERS.
16858# This happens for instance with `./config.status Makefile'.
16859if test -n "$CONFIG_HEADERS"; then
16860cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16861BEGIN {
16862_ACEOF
16863
16864# Transform confdefs.h into an awk script `defines.awk', embedded as
16865# here-document in config.status, that substitutes the proper values into
16866# config.h.in to produce config.h.
16867
16868# Create a delimiter string that does not exist in confdefs.h, to ease
16869# handling of long lines.
16870ac_delim='%!_!# '
16871for ac_last_try in false false :; do
16872  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16873  if test -z "$ac_tt"; then
16874    break
16875  elif $ac_last_try; then
16876    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16877  else
16878    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16879  fi
16880done
16881
16882# For the awk script, D is an array of macro values keyed by name,
16883# likewise P contains macro parameters if any.  Preserve backslash
16884# newline sequences.
16885
16886ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16887sed -n '
16888s/.\{148\}/&'"$ac_delim"'/g
16889t rset
16890:rset
16891s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16892t def
16893d
16894:def
16895s/\\$//
16896t bsnl
16897s/["\\]/\\&/g
16898s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16899D["\1"]=" \3"/p
16900s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16901d
16902:bsnl
16903s/["\\]/\\&/g
16904s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16905D["\1"]=" \3\\\\\\n"\\/p
16906t cont
16907s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16908t cont
16909d
16910:cont
16911n
16912s/.\{148\}/&'"$ac_delim"'/g
16913t clear
16914:clear
16915s/\\$//
16916t bsnlc
16917s/["\\]/\\&/g; s/^/"/; s/$/"/p
16918d
16919:bsnlc
16920s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16921b cont
16922' <confdefs.h | sed '
16923s/'"$ac_delim"'/"\\\
16924"/g' >>$CONFIG_STATUS || ac_write_fail=1
16925
16926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16927  for (key in D) D_is_set[key] = 1
16928  FS = ""
16929}
16930/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16931  line = \$ 0
16932  split(line, arg, " ")
16933  if (arg[1] == "#") {
16934    defundef = arg[2]
16935    mac1 = arg[3]
16936  } else {
16937    defundef = substr(arg[1], 2)
16938    mac1 = arg[2]
16939  }
16940  split(mac1, mac2, "(") #)
16941  macro = mac2[1]
16942  prefix = substr(line, 1, index(line, defundef) - 1)
16943  if (D_is_set[macro]) {
16944    # Preserve the white space surrounding the "#".
16945    print prefix "define", macro P[macro] D[macro]
16946    next
16947  } else {
16948    # Replace #undef with comments.  This is necessary, for example,
16949    # in the case of _POSIX_SOURCE, which is predefined and required
16950    # on some systems where configure will not decide to define it.
16951    if (defundef == "undef") {
16952      print "/*", prefix defundef, macro, "*/"
16953      next
16954    }
16955  }
16956}
16957{ print }
16958_ACAWK
16959_ACEOF
16960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16961  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16962fi # test -n "$CONFIG_HEADERS"
16963
16964
16965eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16966shift
16967for ac_tag
16968do
16969  case $ac_tag in
16970  :[FHLC]) ac_mode=$ac_tag; continue;;
16971  esac
16972  case $ac_mode$ac_tag in
16973  :[FHL]*:*);;
16974  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16975  :[FH]-) ac_tag=-:-;;
16976  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16977  esac
16978  ac_save_IFS=$IFS
16979  IFS=:
16980  set x $ac_tag
16981  IFS=$ac_save_IFS
16982  shift
16983  ac_file=$1
16984  shift
16985
16986  case $ac_mode in
16987  :L) ac_source=$1;;
16988  :[FH])
16989    ac_file_inputs=
16990    for ac_f
16991    do
16992      case $ac_f in
16993      -) ac_f="$ac_tmp/stdin";;
16994      *) # Look for the file first in the build tree, then in the source tree
16995	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16996	 # because $ac_f cannot contain `:'.
16997	 test -f "$ac_f" ||
16998	   case $ac_f in
16999	   [\\/$]*) false;;
17000	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17001	   esac ||
17002	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17003      esac
17004      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17005      as_fn_append ac_file_inputs " '$ac_f'"
17006    done
17007
17008    # Let's still pretend it is `configure' which instantiates (i.e., don't
17009    # use $as_me), people would be surprised to read:
17010    #    /* config.h.  Generated by config.status.  */
17011    configure_input='Generated from '`
17012	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17013	`' by configure.'
17014    if test x"$ac_file" != x-; then
17015      configure_input="$ac_file.  $configure_input"
17016      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17017$as_echo "$as_me: creating $ac_file" >&6;}
17018    fi
17019    # Neutralize special characters interpreted by sed in replacement strings.
17020    case $configure_input in #(
17021    *\&* | *\|* | *\\* )
17022       ac_sed_conf_input=`$as_echo "$configure_input" |
17023       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17024    *) ac_sed_conf_input=$configure_input;;
17025    esac
17026
17027    case $ac_tag in
17028    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17029      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17030    esac
17031    ;;
17032  esac
17033
17034  ac_dir=`$as_dirname -- "$ac_file" ||
17035$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17036	 X"$ac_file" : 'X\(//\)[^/]' \| \
17037	 X"$ac_file" : 'X\(//\)$' \| \
17038	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17039$as_echo X"$ac_file" |
17040    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17041	    s//\1/
17042	    q
17043	  }
17044	  /^X\(\/\/\)[^/].*/{
17045	    s//\1/
17046	    q
17047	  }
17048	  /^X\(\/\/\)$/{
17049	    s//\1/
17050	    q
17051	  }
17052	  /^X\(\/\).*/{
17053	    s//\1/
17054	    q
17055	  }
17056	  s/.*/./; q'`
17057  as_dir="$ac_dir"; as_fn_mkdir_p
17058  ac_builddir=.
17059
17060case "$ac_dir" in
17061.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17062*)
17063  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17064  # A ".." for each directory in $ac_dir_suffix.
17065  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17066  case $ac_top_builddir_sub in
17067  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17068  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17069  esac ;;
17070esac
17071ac_abs_top_builddir=$ac_pwd
17072ac_abs_builddir=$ac_pwd$ac_dir_suffix
17073# for backward compatibility:
17074ac_top_builddir=$ac_top_build_prefix
17075
17076case $srcdir in
17077  .)  # We are building in place.
17078    ac_srcdir=.
17079    ac_top_srcdir=$ac_top_builddir_sub
17080    ac_abs_top_srcdir=$ac_pwd ;;
17081  [\\/]* | ?:[\\/]* )  # Absolute name.
17082    ac_srcdir=$srcdir$ac_dir_suffix;
17083    ac_top_srcdir=$srcdir
17084    ac_abs_top_srcdir=$srcdir ;;
17085  *) # Relative name.
17086    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17087    ac_top_srcdir=$ac_top_build_prefix$srcdir
17088    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17089esac
17090ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17091
17092
17093  case $ac_mode in
17094  :F)
17095  #
17096  # CONFIG_FILE
17097  #
17098
17099  case $INSTALL in
17100  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17101  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17102  esac
17103  ac_MKDIR_P=$MKDIR_P
17104  case $MKDIR_P in
17105  [\\/$]* | ?:[\\/]* ) ;;
17106  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17107  esac
17108_ACEOF
17109
17110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17111# If the template does not know about datarootdir, expand it.
17112# FIXME: This hack should be removed a few years after 2.60.
17113ac_datarootdir_hack=; ac_datarootdir_seen=
17114ac_sed_dataroot='
17115/datarootdir/ {
17116  p
17117  q
17118}
17119/@datadir@/p
17120/@docdir@/p
17121/@infodir@/p
17122/@localedir@/p
17123/@mandir@/p'
17124case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17125*datarootdir*) ac_datarootdir_seen=yes;;
17126*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17127  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17128$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17129_ACEOF
17130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17131  ac_datarootdir_hack='
17132  s&@datadir@&$datadir&g
17133  s&@docdir@&$docdir&g
17134  s&@infodir@&$infodir&g
17135  s&@localedir@&$localedir&g
17136  s&@mandir@&$mandir&g
17137  s&\\\${datarootdir}&$datarootdir&g' ;;
17138esac
17139_ACEOF
17140
17141# Neutralize VPATH when `$srcdir' = `.'.
17142# Shell code in configure.ac might set extrasub.
17143# FIXME: do we really want to maintain this feature?
17144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17145ac_sed_extra="$ac_vpsub
17146$extrasub
17147_ACEOF
17148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17149:t
17150/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17151s|@configure_input@|$ac_sed_conf_input|;t t
17152s&@top_builddir@&$ac_top_builddir_sub&;t t
17153s&@top_build_prefix@&$ac_top_build_prefix&;t t
17154s&@srcdir@&$ac_srcdir&;t t
17155s&@abs_srcdir@&$ac_abs_srcdir&;t t
17156s&@top_srcdir@&$ac_top_srcdir&;t t
17157s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17158s&@builddir@&$ac_builddir&;t t
17159s&@abs_builddir@&$ac_abs_builddir&;t t
17160s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17161s&@INSTALL@&$ac_INSTALL&;t t
17162s&@MKDIR_P@&$ac_MKDIR_P&;t t
17163$ac_datarootdir_hack
17164"
17165eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17166if $ac_cs_awk_getline; then
17167  $AWK -f "$ac_tmp/subs.awk"
17168else
17169  $AWK -f "$ac_tmp/subs.awk" | $SHELL
17170fi \
17171  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17172
17173test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17174  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17175  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17176      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17177  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17178which seems to be undefined.  Please make sure it is defined" >&5
17179$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17180which seems to be undefined.  Please make sure it is defined" >&2;}
17181
17182  rm -f "$ac_tmp/stdin"
17183  case $ac_file in
17184  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17185  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17186  esac \
17187  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17188 ;;
17189  :H)
17190  #
17191  # CONFIG_HEADER
17192  #
17193  if test x"$ac_file" != x-; then
17194    {
17195      $as_echo "/* $configure_input  */" \
17196      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17197    } >"$ac_tmp/config.h" \
17198      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17199    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17200      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17201$as_echo "$as_me: $ac_file is unchanged" >&6;}
17202    else
17203      rm -f "$ac_file"
17204      mv "$ac_tmp/config.h" "$ac_file" \
17205	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17206    fi
17207  else
17208    $as_echo "/* $configure_input  */" \
17209      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17210      || as_fn_error $? "could not create -" "$LINENO" 5
17211  fi
17212# Compute "$ac_file"'s index in $config_headers.
17213_am_arg="$ac_file"
17214_am_stamp_count=1
17215for _am_header in $config_headers :; do
17216  case $_am_header in
17217    $_am_arg | $_am_arg:* )
17218      break ;;
17219    * )
17220      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17221  esac
17222done
17223echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17224$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17225	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17226	 X"$_am_arg" : 'X\(//\)$' \| \
17227	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17228$as_echo X"$_am_arg" |
17229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17230	    s//\1/
17231	    q
17232	  }
17233	  /^X\(\/\/\)[^/].*/{
17234	    s//\1/
17235	    q
17236	  }
17237	  /^X\(\/\/\)$/{
17238	    s//\1/
17239	    q
17240	  }
17241	  /^X\(\/\).*/{
17242	    s//\1/
17243	    q
17244	  }
17245	  s/.*/./; q'`/stamp-h$_am_stamp_count
17246 ;;
17247
17248  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17249$as_echo "$as_me: executing $ac_file commands" >&6;}
17250 ;;
17251  esac
17252
17253
17254  case $ac_file$ac_mode in
17255    "default-1":C)
17256# Only add multilib support code if we just rebuilt the top-level
17257# Makefile.
17258case " $CONFIG_FILES " in
17259 *" Makefile "*)
17260   ac_file=Makefile . ${multi_basedir}/config-ml.in
17261   ;;
17262esac ;;
17263    "libtool":C)
17264
17265    # See if we are running on zsh, and set the options which allow our
17266    # commands through without removal of \ escapes.
17267    if test -n "${ZSH_VERSION+set}" ; then
17268      setopt NO_GLOB_SUBST
17269    fi
17270
17271    cfgfile="${ofile}T"
17272    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17273    $RM "$cfgfile"
17274
17275    cat <<_LT_EOF >> "$cfgfile"
17276#! $SHELL
17277
17278# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17279# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17280# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17281# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17282#
17283#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17284#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17285#   Written by Gordon Matzigkeit, 1996
17286#
17287#   This file is part of GNU Libtool.
17288#
17289# GNU Libtool is free software; you can redistribute it and/or
17290# modify it under the terms of the GNU General Public License as
17291# published by the Free Software Foundation; either version 2 of
17292# the License, or (at your option) any later version.
17293#
17294# As a special exception to the GNU General Public License,
17295# if you distribute this file as part of a program or library that
17296# is built using GNU Libtool, you may include this file under the
17297# same distribution terms that you use for the rest of that program.
17298#
17299# GNU Libtool is distributed in the hope that it will be useful,
17300# but WITHOUT ANY WARRANTY; without even the implied warranty of
17301# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17302# GNU General Public License for more details.
17303#
17304# You should have received a copy of the GNU General Public License
17305# along with GNU Libtool; see the file COPYING.  If not, a copy
17306# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17307# obtained by writing to the Free Software Foundation, Inc.,
17308# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17309
17310
17311# The names of the tagged configurations supported by this script.
17312available_tags="D "
17313
17314# ### BEGIN LIBTOOL CONFIG
17315
17316# Which release of libtool.m4 was used?
17317macro_version=$macro_version
17318macro_revision=$macro_revision
17319
17320# Whether or not to build shared libraries.
17321build_libtool_libs=$enable_shared
17322
17323# Whether or not to build static libraries.
17324build_old_libs=$enable_static
17325
17326# What type of objects to build.
17327pic_mode=$pic_mode
17328
17329# Whether or not to optimize for fast installation.
17330fast_install=$enable_fast_install
17331
17332# Shell to use when invoking shell scripts.
17333SHELL=$lt_SHELL
17334
17335# An echo program that protects backslashes.
17336ECHO=$lt_ECHO
17337
17338# The host system.
17339host_alias=$host_alias
17340host=$host
17341host_os=$host_os
17342
17343# The build system.
17344build_alias=$build_alias
17345build=$build
17346build_os=$build_os
17347
17348# A sed program that does not truncate output.
17349SED=$lt_SED
17350
17351# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17352Xsed="\$SED -e 1s/^X//"
17353
17354# A grep program that handles long lines.
17355GREP=$lt_GREP
17356
17357# An ERE matcher.
17358EGREP=$lt_EGREP
17359
17360# A literal string matcher.
17361FGREP=$lt_FGREP
17362
17363# A BSD- or MS-compatible name lister.
17364NM=$lt_NM
17365
17366# Whether we need soft or hard links.
17367LN_S=$lt_LN_S
17368
17369# What is the maximum length of a command?
17370max_cmd_len=$max_cmd_len
17371
17372# Object file suffix (normally "o").
17373objext=$ac_objext
17374
17375# Executable file suffix (normally "").
17376exeext=$exeext
17377
17378# whether the shell understands "unset".
17379lt_unset=$lt_unset
17380
17381# turn spaces into newlines.
17382SP2NL=$lt_lt_SP2NL
17383
17384# turn newlines into spaces.
17385NL2SP=$lt_lt_NL2SP
17386
17387# An object symbol dumper.
17388OBJDUMP=$lt_OBJDUMP
17389
17390# Method to check whether dependent libraries are shared objects.
17391deplibs_check_method=$lt_deplibs_check_method
17392
17393# Command to use when deplibs_check_method == "file_magic".
17394file_magic_cmd=$lt_file_magic_cmd
17395
17396# The archiver.
17397AR=$lt_AR
17398AR_FLAGS=$lt_AR_FLAGS
17399
17400# A symbol stripping program.
17401STRIP=$lt_STRIP
17402
17403# Commands used to install an old-style archive.
17404RANLIB=$lt_RANLIB
17405old_postinstall_cmds=$lt_old_postinstall_cmds
17406old_postuninstall_cmds=$lt_old_postuninstall_cmds
17407
17408# Whether to use a lock for old archive extraction.
17409lock_old_archive_extraction=$lock_old_archive_extraction
17410
17411# A C compiler.
17412LTCC=$lt_CC
17413
17414# LTCC compiler flags.
17415LTCFLAGS=$lt_CFLAGS
17416
17417# Take the output of nm and produce a listing of raw symbols and C names.
17418global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17419
17420# Transform the output of nm in a proper C declaration.
17421global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17422
17423# Transform the output of nm in a C name address pair.
17424global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17425
17426# Transform the output of nm in a C name address pair when lib prefix is needed.
17427global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17428
17429# The name of the directory that contains temporary libtool files.
17430objdir=$objdir
17431
17432# Used to examine libraries when file_magic_cmd begins with "file".
17433MAGIC_CMD=$MAGIC_CMD
17434
17435# Must we lock files when doing compilation?
17436need_locks=$lt_need_locks
17437
17438# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17439DSYMUTIL=$lt_DSYMUTIL
17440
17441# Tool to change global to local symbols on Mac OS X.
17442NMEDIT=$lt_NMEDIT
17443
17444# Tool to manipulate fat objects and archives on Mac OS X.
17445LIPO=$lt_LIPO
17446
17447# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17448OTOOL=$lt_OTOOL
17449
17450# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17451OTOOL64=$lt_OTOOL64
17452
17453# Old archive suffix (normally "a").
17454libext=$libext
17455
17456# Shared library suffix (normally ".so").
17457shrext_cmds=$lt_shrext_cmds
17458
17459# The commands to extract the exported symbol list from a shared archive.
17460extract_expsyms_cmds=$lt_extract_expsyms_cmds
17461
17462# Variables whose values should be saved in libtool wrapper scripts and
17463# restored at link time.
17464variables_saved_for_relink=$lt_variables_saved_for_relink
17465
17466# Do we need the "lib" prefix for modules?
17467need_lib_prefix=$need_lib_prefix
17468
17469# Do we need a version for libraries?
17470need_version=$need_version
17471
17472# Library versioning type.
17473version_type=$version_type
17474
17475# Shared library runtime path variable.
17476runpath_var=$runpath_var
17477
17478# Shared library path variable.
17479shlibpath_var=$shlibpath_var
17480
17481# Is shlibpath searched before the hard-coded library search path?
17482shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17483
17484# Format of library name prefix.
17485libname_spec=$lt_libname_spec
17486
17487# List of archive names.  First name is the real one, the rest are links.
17488# The last name is the one that the linker finds with -lNAME
17489library_names_spec=$lt_library_names_spec
17490
17491# The coded name of the library, if different from the real name.
17492soname_spec=$lt_soname_spec
17493
17494# Permission mode override for installation of shared libraries.
17495install_override_mode=$lt_install_override_mode
17496
17497# Command to use after installation of a shared archive.
17498postinstall_cmds=$lt_postinstall_cmds
17499
17500# Command to use after uninstallation of a shared archive.
17501postuninstall_cmds=$lt_postuninstall_cmds
17502
17503# Commands used to finish a libtool library installation in a directory.
17504finish_cmds=$lt_finish_cmds
17505
17506# As "finish_cmds", except a single script fragment to be evaled but
17507# not shown.
17508finish_eval=$lt_finish_eval
17509
17510# Whether we should hardcode library paths into libraries.
17511hardcode_into_libs=$hardcode_into_libs
17512
17513# Compile-time system search path for libraries.
17514sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17515
17516# Run-time system search path for libraries.
17517sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17518
17519# Whether dlopen is supported.
17520dlopen_support=$enable_dlopen
17521
17522# Whether dlopen of programs is supported.
17523dlopen_self=$enable_dlopen_self
17524
17525# Whether dlopen of statically linked programs is supported.
17526dlopen_self_static=$enable_dlopen_self_static
17527
17528# Commands to strip libraries.
17529old_striplib=$lt_old_striplib
17530striplib=$lt_striplib
17531
17532
17533# The linker used to build libraries.
17534LD=$lt_LD
17535
17536# How to create reloadable object files.
17537reload_flag=$lt_reload_flag
17538reload_cmds=$lt_reload_cmds
17539
17540# Commands used to build an old-style archive.
17541old_archive_cmds=$lt_old_archive_cmds
17542
17543# A language specific compiler.
17544CC=$lt_compiler
17545
17546# Is the compiler the GNU compiler?
17547with_gcc=$GCC
17548
17549# Compiler flag to turn off builtin functions.
17550no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17551
17552# How to pass a linker flag through the compiler.
17553wl=$lt_lt_prog_compiler_wl
17554
17555# Additional compiler flags for building library objects.
17556pic_flag=$lt_lt_prog_compiler_pic
17557
17558# Compiler flag to prevent dynamic linking.
17559link_static_flag=$lt_lt_prog_compiler_static
17560
17561# Does compiler simultaneously support -c and -o options?
17562compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17563
17564# Whether or not to add -lc for building shared libraries.
17565build_libtool_need_lc=$archive_cmds_need_lc
17566
17567# Whether or not to disallow shared libs when runtime libs are static.
17568allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17569
17570# Compiler flag to allow reflexive dlopens.
17571export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17572
17573# Compiler flag to generate shared objects directly from archives.
17574whole_archive_flag_spec=$lt_whole_archive_flag_spec
17575
17576# Whether the compiler copes with passing no objects directly.
17577compiler_needs_object=$lt_compiler_needs_object
17578
17579# Create an old-style archive from a shared archive.
17580old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17581
17582# Create a temporary old-style archive to link instead of a shared archive.
17583old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17584
17585# Commands used to build a shared archive.
17586archive_cmds=$lt_archive_cmds
17587archive_expsym_cmds=$lt_archive_expsym_cmds
17588
17589# Commands used to build a loadable module if different from building
17590# a shared archive.
17591module_cmds=$lt_module_cmds
17592module_expsym_cmds=$lt_module_expsym_cmds
17593
17594# Whether we are building with GNU ld or not.
17595with_gnu_ld=$lt_with_gnu_ld
17596
17597# Flag that allows shared libraries with undefined symbols to be built.
17598allow_undefined_flag=$lt_allow_undefined_flag
17599
17600# Flag that enforces no undefined symbols.
17601no_undefined_flag=$lt_no_undefined_flag
17602
17603# Flag to hardcode \$libdir into a binary during linking.
17604# This must work even if \$libdir does not exist
17605hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17606
17607# If ld is used when linking, flag to hardcode \$libdir into a binary
17608# during linking.  This must work even if \$libdir does not exist.
17609hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17610
17611# Whether we need a single "-rpath" flag with a separated argument.
17612hardcode_libdir_separator=$lt_hardcode_libdir_separator
17613
17614# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17615# DIR into the resulting binary.
17616hardcode_direct=$hardcode_direct
17617
17618# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17619# DIR into the resulting binary and the resulting library dependency is
17620# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17621# library is relocated.
17622hardcode_direct_absolute=$hardcode_direct_absolute
17623
17624# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17625# into the resulting binary.
17626hardcode_minus_L=$hardcode_minus_L
17627
17628# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17629# into the resulting binary.
17630hardcode_shlibpath_var=$hardcode_shlibpath_var
17631
17632# Set to "yes" if building a shared library automatically hardcodes DIR
17633# into the library and all subsequent libraries and executables linked
17634# against it.
17635hardcode_automatic=$hardcode_automatic
17636
17637# Set to yes if linker adds runtime paths of dependent libraries
17638# to runtime path list.
17639inherit_rpath=$inherit_rpath
17640
17641# Whether libtool must link a program against all its dependency libraries.
17642link_all_deplibs=$link_all_deplibs
17643
17644# Fix the shell variable \$srcfile for the compiler.
17645fix_srcfile_path=$lt_fix_srcfile_path
17646
17647# Set to "yes" if exported symbols are required.
17648always_export_symbols=$always_export_symbols
17649
17650# The commands to list exported symbols.
17651export_symbols_cmds=$lt_export_symbols_cmds
17652
17653# Symbols that should not be listed in the preloaded symbols.
17654exclude_expsyms=$lt_exclude_expsyms
17655
17656# Symbols that must always be exported.
17657include_expsyms=$lt_include_expsyms
17658
17659# Commands necessary for linking programs (against libraries) with templates.
17660prelink_cmds=$lt_prelink_cmds
17661
17662# Specify filename containing input files.
17663file_list_spec=$lt_file_list_spec
17664
17665# How to hardcode a shared library path into an executable.
17666hardcode_action=$hardcode_action
17667
17668# ### END LIBTOOL CONFIG
17669
17670_LT_EOF
17671
17672  case $host_os in
17673  aix3*)
17674    cat <<\_LT_EOF >> "$cfgfile"
17675# AIX sometimes has problems with the GCC collect2 program.  For some
17676# reason, if we set the COLLECT_NAMES environment variable, the problems
17677# vanish in a puff of smoke.
17678if test "X${COLLECT_NAMES+set}" != Xset; then
17679  COLLECT_NAMES=
17680  export COLLECT_NAMES
17681fi
17682_LT_EOF
17683    ;;
17684  esac
17685
17686
17687ltmain="$ac_aux_dir/ltmain.sh"
17688
17689
17690  # We use sed instead of cat because bash on DJGPP gets confused if
17691  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17692  # text mode, it properly converts lines to CR/LF.  This bash problem
17693  # is reportedly fixed, but why not run on old versions too?
17694  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17695    || (rm -f "$cfgfile"; exit 1)
17696
17697  case $xsi_shell in
17698  yes)
17699    cat << \_LT_EOF >> "$cfgfile"
17700
17701# func_dirname file append nondir_replacement
17702# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17703# otherwise set result to NONDIR_REPLACEMENT.
17704func_dirname ()
17705{
17706  case ${1} in
17707    */*) func_dirname_result="${1%/*}${2}" ;;
17708    *  ) func_dirname_result="${3}" ;;
17709  esac
17710}
17711
17712# func_basename file
17713func_basename ()
17714{
17715  func_basename_result="${1##*/}"
17716}
17717
17718# func_dirname_and_basename file append nondir_replacement
17719# perform func_basename and func_dirname in a single function
17720# call:
17721#   dirname:  Compute the dirname of FILE.  If nonempty,
17722#             add APPEND to the result, otherwise set result
17723#             to NONDIR_REPLACEMENT.
17724#             value returned in "$func_dirname_result"
17725#   basename: Compute filename of FILE.
17726#             value retuned in "$func_basename_result"
17727# Implementation must be kept synchronized with func_dirname
17728# and func_basename. For efficiency, we do not delegate to
17729# those functions but instead duplicate the functionality here.
17730func_dirname_and_basename ()
17731{
17732  case ${1} in
17733    */*) func_dirname_result="${1%/*}${2}" ;;
17734    *  ) func_dirname_result="${3}" ;;
17735  esac
17736  func_basename_result="${1##*/}"
17737}
17738
17739# func_stripname prefix suffix name
17740# strip PREFIX and SUFFIX off of NAME.
17741# PREFIX and SUFFIX must not contain globbing or regex special
17742# characters, hashes, percent signs, but SUFFIX may contain a leading
17743# dot (in which case that matches only a dot).
17744func_stripname ()
17745{
17746  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17747  # positional parameters, so assign one to ordinary parameter first.
17748  func_stripname_result=${3}
17749  func_stripname_result=${func_stripname_result#"${1}"}
17750  func_stripname_result=${func_stripname_result%"${2}"}
17751}
17752
17753# func_opt_split
17754func_opt_split ()
17755{
17756  func_opt_split_opt=${1%%=*}
17757  func_opt_split_arg=${1#*=}
17758}
17759
17760# func_lo2o object
17761func_lo2o ()
17762{
17763  case ${1} in
17764    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17765    *)    func_lo2o_result=${1} ;;
17766  esac
17767}
17768
17769# func_xform libobj-or-source
17770func_xform ()
17771{
17772  func_xform_result=${1%.*}.lo
17773}
17774
17775# func_arith arithmetic-term...
17776func_arith ()
17777{
17778  func_arith_result=$(( $* ))
17779}
17780
17781# func_len string
17782# STRING may not start with a hyphen.
17783func_len ()
17784{
17785  func_len_result=${#1}
17786}
17787
17788_LT_EOF
17789    ;;
17790  *) # Bourne compatible functions.
17791    cat << \_LT_EOF >> "$cfgfile"
17792
17793# func_dirname file append nondir_replacement
17794# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17795# otherwise set result to NONDIR_REPLACEMENT.
17796func_dirname ()
17797{
17798  # Extract subdirectory from the argument.
17799  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17800  if test "X$func_dirname_result" = "X${1}"; then
17801    func_dirname_result="${3}"
17802  else
17803    func_dirname_result="$func_dirname_result${2}"
17804  fi
17805}
17806
17807# func_basename file
17808func_basename ()
17809{
17810  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17811}
17812
17813
17814# func_stripname prefix suffix name
17815# strip PREFIX and SUFFIX off of NAME.
17816# PREFIX and SUFFIX must not contain globbing or regex special
17817# characters, hashes, percent signs, but SUFFIX may contain a leading
17818# dot (in which case that matches only a dot).
17819# func_strip_suffix prefix name
17820func_stripname ()
17821{
17822  case ${2} in
17823    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17824    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17825  esac
17826}
17827
17828# sed scripts:
17829my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17830my_sed_long_arg='1s/^-[^=]*=//'
17831
17832# func_opt_split
17833func_opt_split ()
17834{
17835  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17836  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17837}
17838
17839# func_lo2o object
17840func_lo2o ()
17841{
17842  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17843}
17844
17845# func_xform libobj-or-source
17846func_xform ()
17847{
17848  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17849}
17850
17851# func_arith arithmetic-term...
17852func_arith ()
17853{
17854  func_arith_result=`expr "$@"`
17855}
17856
17857# func_len string
17858# STRING may not start with a hyphen.
17859func_len ()
17860{
17861  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17862}
17863
17864_LT_EOF
17865esac
17866
17867case $lt_shell_append in
17868  yes)
17869    cat << \_LT_EOF >> "$cfgfile"
17870
17871# func_append var value
17872# Append VALUE to the end of shell variable VAR.
17873func_append ()
17874{
17875  eval "$1+=\$2"
17876}
17877_LT_EOF
17878    ;;
17879  *)
17880    cat << \_LT_EOF >> "$cfgfile"
17881
17882# func_append var value
17883# Append VALUE to the end of shell variable VAR.
17884func_append ()
17885{
17886  eval "$1=\$$1\$2"
17887}
17888
17889_LT_EOF
17890    ;;
17891  esac
17892
17893
17894  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17895    || (rm -f "$cfgfile"; exit 1)
17896
17897  mv -f "$cfgfile" "$ofile" ||
17898    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17899  chmod +x "$ofile"
17900
17901
17902    cat <<_LT_EOF >> "$ofile"
17903
17904# ### BEGIN LIBTOOL TAG CONFIG: D
17905
17906# The linker used to build libraries.
17907LD=$lt_LD_D
17908
17909# How to create reloadable object files.
17910reload_flag=$lt_reload_flag_D
17911reload_cmds=$lt_reload_cmds_D
17912
17913# Commands used to build an old-style archive.
17914old_archive_cmds=$lt_old_archive_cmds_D
17915
17916# A language specific compiler.
17917CC=$lt_compiler_D
17918
17919# Is the compiler the GNU compiler?
17920with_gcc=$GCC_D
17921
17922# Compiler flag to turn off builtin functions.
17923no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17924
17925# How to pass a linker flag through the compiler.
17926wl=$lt_lt_prog_compiler_wl_D
17927
17928# Additional compiler flags for building library objects.
17929pic_flag=$lt_lt_prog_compiler_pic_D
17930
17931# Compiler flag to prevent dynamic linking.
17932link_static_flag=$lt_lt_prog_compiler_static_D
17933
17934# Does compiler simultaneously support -c and -o options?
17935compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17936
17937# Whether or not to add -lc for building shared libraries.
17938build_libtool_need_lc=$archive_cmds_need_lc_D
17939
17940# Whether or not to disallow shared libs when runtime libs are static.
17941allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17942
17943# Compiler flag to allow reflexive dlopens.
17944export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17945
17946# Compiler flag to generate shared objects directly from archives.
17947whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17948
17949# Whether the compiler copes with passing no objects directly.
17950compiler_needs_object=$lt_compiler_needs_object_D
17951
17952# Create an old-style archive from a shared archive.
17953old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17954
17955# Create a temporary old-style archive to link instead of a shared archive.
17956old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17957
17958# Commands used to build a shared archive.
17959archive_cmds=$lt_archive_cmds_D
17960archive_expsym_cmds=$lt_archive_expsym_cmds_D
17961
17962# Commands used to build a loadable module if different from building
17963# a shared archive.
17964module_cmds=$lt_module_cmds_D
17965module_expsym_cmds=$lt_module_expsym_cmds_D
17966
17967# Whether we are building with GNU ld or not.
17968with_gnu_ld=$lt_with_gnu_ld_D
17969
17970# Flag that allows shared libraries with undefined symbols to be built.
17971allow_undefined_flag=$lt_allow_undefined_flag_D
17972
17973# Flag that enforces no undefined symbols.
17974no_undefined_flag=$lt_no_undefined_flag_D
17975
17976# Flag to hardcode \$libdir into a binary during linking.
17977# This must work even if \$libdir does not exist
17978hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17979
17980# If ld is used when linking, flag to hardcode \$libdir into a binary
17981# during linking.  This must work even if \$libdir does not exist.
17982hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17983
17984# Whether we need a single "-rpath" flag with a separated argument.
17985hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17986
17987# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17988# DIR into the resulting binary.
17989hardcode_direct=$hardcode_direct_D
17990
17991# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17992# DIR into the resulting binary and the resulting library dependency is
17993# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17994# library is relocated.
17995hardcode_direct_absolute=$hardcode_direct_absolute_D
17996
17997# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17998# into the resulting binary.
17999hardcode_minus_L=$hardcode_minus_L_D
18000
18001# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18002# into the resulting binary.
18003hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18004
18005# Set to "yes" if building a shared library automatically hardcodes DIR
18006# into the library and all subsequent libraries and executables linked
18007# against it.
18008hardcode_automatic=$hardcode_automatic_D
18009
18010# Set to yes if linker adds runtime paths of dependent libraries
18011# to runtime path list.
18012inherit_rpath=$inherit_rpath_D
18013
18014# Whether libtool must link a program against all its dependency libraries.
18015link_all_deplibs=$link_all_deplibs_D
18016
18017# Fix the shell variable \$srcfile for the compiler.
18018fix_srcfile_path=$lt_fix_srcfile_path_D
18019
18020# Set to "yes" if exported symbols are required.
18021always_export_symbols=$always_export_symbols_D
18022
18023# The commands to list exported symbols.
18024export_symbols_cmds=$lt_export_symbols_cmds_D
18025
18026# Symbols that should not be listed in the preloaded symbols.
18027exclude_expsyms=$lt_exclude_expsyms_D
18028
18029# Symbols that must always be exported.
18030include_expsyms=$lt_include_expsyms_D
18031
18032# Commands necessary for linking programs (against libraries) with templates.
18033prelink_cmds=$lt_prelink_cmds_D
18034
18035# Specify filename containing input files.
18036file_list_spec=$lt_file_list_spec_D
18037
18038# How to hardcode a shared library path into an executable.
18039hardcode_action=$hardcode_action_D
18040
18041# ### END LIBTOOL TAG CONFIG: D
18042_LT_EOF
18043
18044 ;;
18045    "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
18046    "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18047s!`test -f '$<' || echo '$(srcdir)/'`!!
18048_EOF
18049   sed -f vpsed$$ $ac_file > tmp$$
18050   mv tmp$$ $ac_file
18051   rm vpsed$$
18052   echo 'MULTISUBDIR =' >> $ac_file
18053   ml_norecursion=yes
18054   . ${multi_basedir}/config-ml.in
18055   { ml_norecursion=; unset ml_norecursion;}
18056 ;;
18057    "src/Makefile":F) cat > vpsed$$ << \_EOF
18058s!`test -f '$<' || echo '$(srcdir)/'`!!
18059_EOF
18060   sed -f vpsed$$ $ac_file > tmp$$
18061   mv tmp$$ $ac_file
18062   rm vpsed$$
18063   echo 'MULTISUBDIR =' >> $ac_file
18064   ml_norecursion=yes
18065   . ${multi_basedir}/config-ml.in
18066   { ml_norecursion=; unset ml_norecursion;}
18067 ;;
18068    "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18069s!`test -f '$<' || echo '$(srcdir)/'`!!
18070_EOF
18071   sed -f vpsed$$ $ac_file > tmp$$
18072   mv tmp$$ $ac_file
18073   rm vpsed$$
18074   echo 'MULTISUBDIR =' >> $ac_file
18075   ml_norecursion=yes
18076   . ${multi_basedir}/config-ml.in
18077   { ml_norecursion=; unset ml_norecursion;}
18078 ;;
18079
18080  esac
18081done # for ac_tag
18082
18083
18084as_fn_exit 0
18085_ACEOF
18086ac_clean_files=$ac_clean_files_save
18087
18088test $ac_write_fail = 0 ||
18089  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18090
18091
18092# configure is writing to config.log, and then calls config.status.
18093# config.status does its own redirection, appending to config.log.
18094# Unfortunately, on DOS this fails, as config.log is still kept open
18095# by configure, so config.status won't be able to write to it; its
18096# output is simply discarded.  So we exec the FD to /dev/null,
18097# effectively closing config.log, so it can be properly (re)opened and
18098# appended to by config.status.  When coming back to configure, we
18099# need to make the FD available again.
18100if test "$no_create" != yes; then
18101  ac_cs_success=:
18102  ac_config_status_args=
18103  test "$silent" = yes &&
18104    ac_config_status_args="$ac_config_status_args --quiet"
18105  exec 5>/dev/null
18106  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18107  exec 5>>config.log
18108  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18109  # would make configure fail if this is the last instruction.
18110  $ac_cs_success || as_fn_exit 1
18111fi
18112if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18113  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18114$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18115fi
18116
18117