1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for LTO plugin for ld 0.1.
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='LTO plugin for ld'
589PACKAGE_TARNAME='lto-plugin'
590PACKAGE_VERSION='0.1'
591PACKAGE_STRING='LTO plugin for ld 0.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609#  include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614#  include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
635target_noncanonical
636lt_host_flags
637OTOOL64
638OTOOL
639LIPO
640NMEDIT
641DSYMUTIL
642RANLIB
643AR
644OBJDUMP
645LN_S
646NM
647ac_ct_DUMPBIN
648DUMPBIN
649LD
650FGREP
651SED
652LIBTOOL
653LTO_PLUGIN_USE_SYMVER_SUN_FALSE
654LTO_PLUGIN_USE_SYMVER_SUN_TRUE
655LTO_PLUGIN_USE_SYMVER_GNU_FALSE
656LTO_PLUGIN_USE_SYMVER_GNU_TRUE
657LTO_PLUGIN_USE_SYMVER_FALSE
658LTO_PLUGIN_USE_SYMVER_TRUE
659get_gcc_base_ver
660real_target_noncanonical
661accel_dir_suffix
662gcc_build_dir
663CET_HOST_FLAGS
664ac_lto_plugin_ldflags
665ac_lto_plugin_warn_cflags
666EGREP
667GREP
668CPP
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__quote
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
686with_libiberty
687MAINT
688MAINTAINER_MODE_FALSE
689MAINTAINER_MODE_TRUE
690AM_BACKSLASH
691AM_DEFAULT_VERBOSITY
692AM_DEFAULT_V
693AM_V
694am__untar
695am__tar
696AMTAR
697am__leading_dot
698SET_MAKE
699AWK
700mkdir_p
701MKDIR_P
702INSTALL_STRIP_PROGRAM
703STRIP
704install_sh
705MAKEINFO
706AUTOHEADER
707AUTOMAKE
708AUTOCONF
709ACLOCAL
710VERSION
711PACKAGE
712CYGPATH_W
713am__isrc
714INSTALL_DATA
715INSTALL_SCRIPT
716INSTALL_PROGRAM
717target_subdir
718host_subdir
719build_subdir
720build_libsubdir
721target_os
722target_vendor
723target_cpu
724target
725host_os
726host_vendor
727host_cpu
728host
729build_os
730build_vendor
731build_cpu
732build
733target_alias
734host_alias
735build_alias
736LIBS
737ECHO_T
738ECHO_N
739ECHO_C
740DEFS
741mandir
742localedir
743libdir
744psdir
745pdfdir
746dvidir
747htmldir
748infodir
749docdir
750oldincludedir
751includedir
752localstatedir
753sharedstatedir
754sysconfdir
755datadir
756datarootdir
757libexecdir
758sbindir
759bindir
760program_transform_name
761prefix
762exec_prefix
763PACKAGE_URL
764PACKAGE_BUGREPORT
765PACKAGE_STRING
766PACKAGE_VERSION
767PACKAGE_TARNAME
768PACKAGE_NAME
769PATH_SEPARATOR
770SHELL'
771ac_subst_files=''
772ac_user_opts='
773enable_option_checking
774with_build_libsubdir
775enable_silent_rules
776enable_maintainer_mode
777with_libiberty
778enable_dependency_tracking
779enable_largefile
780enable_cet
781with_gcc_major_version_only
782enable_shared
783enable_static
784with_pic
785enable_fast_install
786with_gnu_ld
787enable_libtool_lock
788'
789      ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797CPP'
798
799
800# Initialize some variables set by options.
801ac_init_help=
802ac_init_version=false
803ac_unrecognized_opts=
804ac_unrecognized_sep=
805# The variables have the same names as the options, with
806# dashes changed to underlines.
807cache_file=/dev/null
808exec_prefix=NONE
809no_create=
810no_recursion=
811prefix=NONE
812program_prefix=NONE
813program_suffix=NONE
814program_transform_name=s,x,x,
815silent=
816site=
817srcdir=
818verbose=
819x_includes=NONE
820x_libraries=NONE
821
822# Installation directory options.
823# These are left unexpanded so users can "make install exec_prefix=/foo"
824# and all the variables that are supposed to be based on exec_prefix
825# by default will actually change.
826# Use braces instead of parens because sh, perl, etc. also accept them.
827# (The list follows the same order as the GNU Coding Standards.)
828bindir='${exec_prefix}/bin'
829sbindir='${exec_prefix}/sbin'
830libexecdir='${exec_prefix}/libexec'
831datarootdir='${prefix}/share'
832datadir='${datarootdir}'
833sysconfdir='${prefix}/etc'
834sharedstatedir='${prefix}/com'
835localstatedir='${prefix}/var'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  # Accept the important Cygnus configure options, so we can diagnose typos.
866
867  case $ac_dashdash$ac_option in
868  --)
869    ac_dashdash=yes ;;
870
871  -bindir | --bindir | --bindi | --bind | --bin | --bi)
872    ac_prev=bindir ;;
873  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874    bindir=$ac_optarg ;;
875
876  -build | --build | --buil | --bui | --bu)
877    ac_prev=build_alias ;;
878  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879    build_alias=$ac_optarg ;;
880
881  -cache-file | --cache-file | --cache-fil | --cache-fi \
882  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883    ac_prev=cache_file ;;
884  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886    cache_file=$ac_optarg ;;
887
888  --config-cache | -C)
889    cache_file=config.cache ;;
890
891  -datadir | --datadir | --datadi | --datad)
892    ac_prev=datadir ;;
893  -datadir=* | --datadir=* | --datadi=* | --datad=*)
894    datadir=$ac_optarg ;;
895
896  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897  | --dataroo | --dataro | --datar)
898    ac_prev=datarootdir ;;
899  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901    datarootdir=$ac_optarg ;;
902
903  -disable-* | --disable-*)
904    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907      as_fn_error $? "invalid feature name: $ac_useropt"
908    ac_useropt_orig=$ac_useropt
909    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910    case $ac_user_opts in
911      *"
912"enable_$ac_useropt"
913"*) ;;
914      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915	 ac_unrecognized_sep=', ';;
916    esac
917    eval enable_$ac_useropt=no ;;
918
919  -docdir | --docdir | --docdi | --doc | --do)
920    ac_prev=docdir ;;
921  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922    docdir=$ac_optarg ;;
923
924  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925    ac_prev=dvidir ;;
926  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927    dvidir=$ac_optarg ;;
928
929  -enable-* | --enable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error $? "invalid feature name: $ac_useropt"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=\$ac_optarg ;;
944
945  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947  | --exec | --exe | --ex)
948    ac_prev=exec_prefix ;;
949  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951  | --exec=* | --exe=* | --ex=*)
952    exec_prefix=$ac_optarg ;;
953
954  -gas | --gas | --ga | --g)
955    # Obsolete; use --with-gas.
956    with_gas=yes ;;
957
958  -help | --help | --hel | --he | -h)
959    ac_init_help=long ;;
960  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961    ac_init_help=recursive ;;
962  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963    ac_init_help=short ;;
964
965  -host | --host | --hos | --ho)
966    ac_prev=host_alias ;;
967  -host=* | --host=* | --hos=* | --ho=*)
968    host_alias=$ac_optarg ;;
969
970  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971    ac_prev=htmldir ;;
972  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973  | --ht=*)
974    htmldir=$ac_optarg ;;
975
976  -includedir | --includedir | --includedi | --included | --include \
977  | --includ | --inclu | --incl | --inc)
978    ac_prev=includedir ;;
979  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980  | --includ=* | --inclu=* | --incl=* | --inc=*)
981    includedir=$ac_optarg ;;
982
983  -infodir | --infodir | --infodi | --infod | --info | --inf)
984    ac_prev=infodir ;;
985  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986    infodir=$ac_optarg ;;
987
988  -libdir | --libdir | --libdi | --libd)
989    ac_prev=libdir ;;
990  -libdir=* | --libdir=* | --libdi=* | --libd=*)
991    libdir=$ac_optarg ;;
992
993  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994  | --libexe | --libex | --libe)
995    ac_prev=libexecdir ;;
996  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997  | --libexe=* | --libex=* | --libe=*)
998    libexecdir=$ac_optarg ;;
999
1000  -localedir | --localedir | --localedi | --localed | --locale)
1001    ac_prev=localedir ;;
1002  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003    localedir=$ac_optarg ;;
1004
1005  -localstatedir | --localstatedir | --localstatedi | --localstated \
1006  | --localstate | --localstat | --localsta | --localst | --locals)
1007    ac_prev=localstatedir ;;
1008  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010    localstatedir=$ac_optarg ;;
1011
1012  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013    ac_prev=mandir ;;
1014  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015    mandir=$ac_optarg ;;
1016
1017  -nfp | --nfp | --nf)
1018    # Obsolete; use --without-fp.
1019    with_fp=no ;;
1020
1021  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022  | --no-cr | --no-c | -n)
1023    no_create=yes ;;
1024
1025  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027    no_recursion=yes ;;
1028
1029  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031  | --oldin | --oldi | --old | --ol | --o)
1032    ac_prev=oldincludedir ;;
1033  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036    oldincludedir=$ac_optarg ;;
1037
1038  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039    ac_prev=prefix ;;
1040  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041    prefix=$ac_optarg ;;
1042
1043  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044  | --program-pre | --program-pr | --program-p)
1045    ac_prev=program_prefix ;;
1046  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048    program_prefix=$ac_optarg ;;
1049
1050  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051  | --program-suf | --program-su | --program-s)
1052    ac_prev=program_suffix ;;
1053  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055    program_suffix=$ac_optarg ;;
1056
1057  -program-transform-name | --program-transform-name \
1058  | --program-transform-nam | --program-transform-na \
1059  | --program-transform-n | --program-transform- \
1060  | --program-transform | --program-transfor \
1061  | --program-transfo | --program-transf \
1062  | --program-trans | --program-tran \
1063  | --progr-tra | --program-tr | --program-t)
1064    ac_prev=program_transform_name ;;
1065  -program-transform-name=* | --program-transform-name=* \
1066  | --program-transform-nam=* | --program-transform-na=* \
1067  | --program-transform-n=* | --program-transform-=* \
1068  | --program-transform=* | --program-transfor=* \
1069  | --program-transfo=* | --program-transf=* \
1070  | --program-trans=* | --program-tran=* \
1071  | --progr-tra=* | --program-tr=* | --program-t=*)
1072    program_transform_name=$ac_optarg ;;
1073
1074  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075    ac_prev=pdfdir ;;
1076  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077    pdfdir=$ac_optarg ;;
1078
1079  -psdir | --psdir | --psdi | --psd | --ps)
1080    ac_prev=psdir ;;
1081  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082    psdir=$ac_optarg ;;
1083
1084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085  | -silent | --silent | --silen | --sile | --sil)
1086    silent=yes ;;
1087
1088  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089    ac_prev=sbindir ;;
1090  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091  | --sbi=* | --sb=*)
1092    sbindir=$ac_optarg ;;
1093
1094  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096  | --sharedst | --shareds | --shared | --share | --shar \
1097  | --sha | --sh)
1098    ac_prev=sharedstatedir ;;
1099  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102  | --sha=* | --sh=*)
1103    sharedstatedir=$ac_optarg ;;
1104
1105  -site | --site | --sit)
1106    ac_prev=site ;;
1107  -site=* | --site=* | --sit=*)
1108    site=$ac_optarg ;;
1109
1110  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111    ac_prev=srcdir ;;
1112  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113    srcdir=$ac_optarg ;;
1114
1115  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116  | --syscon | --sysco | --sysc | --sys | --sy)
1117    ac_prev=sysconfdir ;;
1118  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120    sysconfdir=$ac_optarg ;;
1121
1122  -target | --target | --targe | --targ | --tar | --ta | --t)
1123    ac_prev=target_alias ;;
1124  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125    target_alias=$ac_optarg ;;
1126
1127  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128    verbose=yes ;;
1129
1130  -version | --version | --versio | --versi | --vers | -V)
1131    ac_init_version=: ;;
1132
1133  -with-* | --with-*)
1134    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137      as_fn_error $? "invalid package name: $ac_useropt"
1138    ac_useropt_orig=$ac_useropt
1139    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140    case $ac_user_opts in
1141      *"
1142"with_$ac_useropt"
1143"*) ;;
1144      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145	 ac_unrecognized_sep=', ';;
1146    esac
1147    eval with_$ac_useropt=\$ac_optarg ;;
1148
1149  -without-* | --without-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error $? "invalid package name: $ac_useropt"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=no ;;
1164
1165  --x)
1166    # Obsolete; use --with-x.
1167    with_x=yes ;;
1168
1169  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170  | --x-incl | --x-inc | --x-in | --x-i)
1171    ac_prev=x_includes ;;
1172  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174    x_includes=$ac_optarg ;;
1175
1176  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178    ac_prev=x_libraries ;;
1179  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181    x_libraries=$ac_optarg ;;
1182
1183  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184Try \`$0 --help' for more information"
1185    ;;
1186
1187  *=*)
1188    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189    # Reject names that are not valid shell variable names.
1190    case $ac_envvar in #(
1191      '' | [0-9]* | *[!_$as_cr_alnum]* )
1192      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193    esac
1194    eval $ac_envvar=\$ac_optarg
1195    export $ac_envvar ;;
1196
1197  *)
1198    # FIXME: should be removed in autoconf 3.0.
1199    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203    ;;
1204
1205  esac
1206done
1207
1208if test -n "$ac_prev"; then
1209  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210  as_fn_error $? "missing argument to $ac_option"
1211fi
1212
1213if test -n "$ac_unrecognized_opts"; then
1214  case $enable_option_checking in
1215    no) ;;
1216    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218  esac
1219fi
1220
1221# Check all directory arguments for consistency.
1222for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223		datadir sysconfdir sharedstatedir localstatedir includedir \
1224		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225		libdir localedir mandir
1226do
1227  eval ac_val=\$$ac_var
1228  # Remove trailing slashes.
1229  case $ac_val in
1230    */ )
1231      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232      eval $ac_var=\$ac_val;;
1233  esac
1234  # Be sure to have absolute directory names.
1235  case $ac_val in
1236    [\\/$]* | ?:[\\/]* )  continue;;
1237    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238  esac
1239  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240done
1241
1242# There might be people who depend on the old broken behavior: `$host'
1243# used to hold the argument of --host etc.
1244# FIXME: To remove some day.
1245build=$build_alias
1246host=$host_alias
1247target=$target_alias
1248
1249# FIXME: To remove some day.
1250if test "x$host_alias" != x; then
1251  if test "x$build_alias" = x; then
1252    cross_compiling=maybe
1253  elif test "x$build_alias" != "x$host_alias"; then
1254    cross_compiling=yes
1255  fi
1256fi
1257
1258ac_tool_prefix=
1259test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261test "$silent" = yes && exec 6>/dev/null
1262
1263
1264ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265ac_ls_di=`ls -di .` &&
1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267  as_fn_error $? "working directory cannot be determined"
1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269  as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272# Find the source files, if location was not specified.
1273if test -z "$srcdir"; then
1274  ac_srcdir_defaulted=yes
1275  # Try the directory containing this script, then the parent directory.
1276  ac_confdir=`$as_dirname -- "$as_myself" ||
1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278	 X"$as_myself" : 'X\(//\)[^/]' \| \
1279	 X"$as_myself" : 'X\(//\)$' \| \
1280	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281$as_echo X"$as_myself" |
1282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\/\)[^/].*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\).*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  s/.*/./; q'`
1299  srcdir=$ac_confdir
1300  if test ! -r "$srcdir/$ac_unique_file"; then
1301    srcdir=..
1302  fi
1303else
1304  ac_srcdir_defaulted=no
1305fi
1306if test ! -r "$srcdir/$ac_unique_file"; then
1307  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309fi
1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311ac_abs_confdir=`(
1312	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313	pwd)`
1314# When building in place, set srcdir=.
1315if test "$ac_abs_confdir" = "$ac_pwd"; then
1316  srcdir=.
1317fi
1318# Remove unnecessary trailing slashes from srcdir.
1319# Double slashes in file names in object file debugging info
1320# mess up M-x gdb in Emacs.
1321case $srcdir in
1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323esac
1324for ac_var in $ac_precious_vars; do
1325  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_env_${ac_var}_value=\$${ac_var}
1327  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329done
1330
1331#
1332# Report the --help message.
1333#
1334if test "$ac_init_help" = "long"; then
1335  # Omit some internal or obsolete options to make the list less imposing.
1336  # This message is too long to be a string in the A/UX 3.1 sh.
1337  cat <<_ACEOF
1338\`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1339
1340Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343VAR=VALUE.  See below for descriptions of some of the useful variables.
1344
1345Defaults for the options are specified in brackets.
1346
1347Configuration:
1348  -h, --help              display this help and exit
1349      --help=short        display options specific to this package
1350      --help=recursive    display the short help of all the included packages
1351  -V, --version           display version information and exit
1352  -q, --quiet, --silent   do not print \`checking ...' messages
1353      --cache-file=FILE   cache test results in FILE [disabled]
1354  -C, --config-cache      alias for \`--cache-file=config.cache'
1355  -n, --no-create         do not create output files
1356      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1357
1358Installation directories:
1359  --prefix=PREFIX         install architecture-independent files in PREFIX
1360                          [$ac_default_prefix]
1361  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1362                          [PREFIX]
1363
1364By default, \`make install' will install all the files in
1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1366an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367for instance \`--prefix=\$HOME'.
1368
1369For better control, use the options below.
1370
1371Fine tuning of the installation directories:
1372  --bindir=DIR            user executables [EPREFIX/bin]
1373  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1374  --libexecdir=DIR        program executables [EPREFIX/libexec]
1375  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1376  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1377  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1378  --libdir=DIR            object code libraries [EPREFIX/lib]
1379  --includedir=DIR        C header files [PREFIX/include]
1380  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1381  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1382  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1383  --infodir=DIR           info documentation [DATAROOTDIR/info]
1384  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1385  --mandir=DIR            man documentation [DATAROOTDIR/man]
1386  --docdir=DIR            documentation root [DATAROOTDIR/doc/lto-plugin]
1387  --htmldir=DIR           html documentation [DOCDIR]
1388  --dvidir=DIR            dvi documentation [DOCDIR]
1389  --pdfdir=DIR            pdf documentation [DOCDIR]
1390  --psdir=DIR             ps documentation [DOCDIR]
1391_ACEOF
1392
1393  cat <<\_ACEOF
1394
1395Program names:
1396  --program-prefix=PREFIX            prepend PREFIX to installed program names
1397  --program-suffix=SUFFIX            append SUFFIX to installed program names
1398  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1399
1400System types:
1401  --build=BUILD     configure for building on BUILD [guessed]
1402  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1403  --target=TARGET   configure for building compilers for TARGET [HOST]
1404_ACEOF
1405fi
1406
1407if test -n "$ac_init_help"; then
1408  case $ac_init_help in
1409     short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1410   esac
1411  cat <<\_ACEOF
1412
1413Optional Features:
1414  --disable-option-checking  ignore unrecognized --enable/--with options
1415  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417  --enable-silent-rules   less verbose build output (undo: "make V=1")
1418  --disable-silent-rules  verbose build output (undo: "make V=0")
1419  --enable-maintainer-mode
1420                          enable make rules and dependencies not useful (and
1421                          sometimes confusing) to the casual installer
1422  --enable-dependency-tracking
1423                          do not reject slow dependency extractors
1424  --disable-dependency-tracking
1425                          speeds up one-time build
1426  --disable-largefile     omit support for large files
1427  --enable-cet            enable Intel CET in host libraries [default=auto]
1428  --enable-shared[=PKGS]  build shared libraries [default=yes]
1429  --enable-static[=PKGS]  build static libraries [default=yes]
1430  --enable-fast-install[=PKGS]
1431                          optimize for fast installation [default=yes]
1432  --disable-libtool-lock  avoid locking (might break parallel builds)
1433
1434Optional Packages:
1435  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1436  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1437  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1438  --with-libiberty=PATH   specify the directory where to find libiberty
1439                          [../libiberty]
1440  --with-gcc-major-version-only
1441                          use only GCC major number in filesystem paths
1442  --with-pic              try to use only PIC/non-PIC objects [default=use
1443                          both]
1444  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1445
1446Some influential environment variables:
1447  CC          C compiler command
1448  CFLAGS      C compiler flags
1449  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450              nonstandard directory <lib dir>
1451  LIBS        libraries to pass to the linker, e.g. -l<library>
1452  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453              you have headers in a nonstandard directory <include dir>
1454  CPP         C preprocessor
1455
1456Use these variables to override the choices made by `configure' or to help
1457it to find libraries and programs with nonstandard names/locations.
1458
1459Report bugs to the package provider.
1460_ACEOF
1461ac_status=$?
1462fi
1463
1464if test "$ac_init_help" = "recursive"; then
1465  # If there are subdirs, report their specific --help.
1466  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467    test -d "$ac_dir" ||
1468      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469      continue
1470    ac_builddir=.
1471
1472case "$ac_dir" in
1473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474*)
1475  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476  # A ".." for each directory in $ac_dir_suffix.
1477  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478  case $ac_top_builddir_sub in
1479  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481  esac ;;
1482esac
1483ac_abs_top_builddir=$ac_pwd
1484ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485# for backward compatibility:
1486ac_top_builddir=$ac_top_build_prefix
1487
1488case $srcdir in
1489  .)  # We are building in place.
1490    ac_srcdir=.
1491    ac_top_srcdir=$ac_top_builddir_sub
1492    ac_abs_top_srcdir=$ac_pwd ;;
1493  [\\/]* | ?:[\\/]* )  # Absolute name.
1494    ac_srcdir=$srcdir$ac_dir_suffix;
1495    ac_top_srcdir=$srcdir
1496    ac_abs_top_srcdir=$srcdir ;;
1497  *) # Relative name.
1498    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499    ac_top_srcdir=$ac_top_build_prefix$srcdir
1500    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501esac
1502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504    cd "$ac_dir" || { ac_status=$?; continue; }
1505    # Check for guested configure.
1506    if test -f "$ac_srcdir/configure.gnu"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509    elif test -f "$ac_srcdir/configure"; then
1510      echo &&
1511      $SHELL "$ac_srcdir/configure" --help=recursive
1512    else
1513      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514    fi || ac_status=$?
1515    cd "$ac_pwd" || { ac_status=$?; break; }
1516  done
1517fi
1518
1519test -n "$ac_init_help" && exit $ac_status
1520if $ac_init_version; then
1521  cat <<\_ACEOF
1522LTO plugin for ld configure 0.1
1523generated by GNU Autoconf 2.69
1524
1525Copyright (C) 2012 Free Software Foundation, Inc.
1526This configure script is free software; the Free Software Foundation
1527gives unlimited permission to copy, distribute and modify it.
1528_ACEOF
1529  exit
1530fi
1531
1532## ------------------------ ##
1533## Autoconf initialization. ##
1534## ------------------------ ##
1535
1536# ac_fn_c_try_compile LINENO
1537# --------------------------
1538# Try to compile conftest.$ac_ext, and return whether this succeeded.
1539ac_fn_c_try_compile ()
1540{
1541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542  rm -f conftest.$ac_objext
1543  if { { ac_try="$ac_compile"
1544case "(($ac_try" in
1545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546  *) ac_try_echo=$ac_try;;
1547esac
1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549$as_echo "$ac_try_echo"; } >&5
1550  (eval "$ac_compile") 2>conftest.err
1551  ac_status=$?
1552  if test -s conftest.err; then
1553    grep -v '^ *+' conftest.err >conftest.er1
1554    cat conftest.er1 >&5
1555    mv -f conftest.er1 conftest.err
1556  fi
1557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558  test $ac_status = 0; } && {
1559	 test -z "$ac_c_werror_flag" ||
1560	 test ! -s conftest.err
1561       } && test -s conftest.$ac_objext; then :
1562  ac_retval=0
1563else
1564  $as_echo "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
1567	ac_retval=1
1568fi
1569  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570  as_fn_set_status $ac_retval
1571
1572} # ac_fn_c_try_compile
1573
1574# ac_fn_c_try_cpp LINENO
1575# ----------------------
1576# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_cpp ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  if { { ac_try="$ac_cpp conftest.$ac_ext"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } > conftest.i && {
1596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       }; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604    ac_retval=1
1605fi
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_cpp
1610
1611# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1612# -------------------------------------------------------
1613# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1614# the include files in INCLUDES and setting the cache variable VAR
1615# accordingly.
1616ac_fn_c_check_header_mongrel ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  if eval \${$3+:} false; then :
1620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621$as_echo_n "checking for $2... " >&6; }
1622if eval \${$3+:} false; then :
1623  $as_echo_n "(cached) " >&6
1624fi
1625eval ac_res=\$$3
1626	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627$as_echo "$ac_res" >&6; }
1628else
1629  # Is the header compilable?
1630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1631$as_echo_n "checking $2 usability... " >&6; }
1632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633/* end confdefs.h.  */
1634$4
1635#include <$2>
1636_ACEOF
1637if ac_fn_c_try_compile "$LINENO"; then :
1638  ac_header_compiler=yes
1639else
1640  ac_header_compiler=no
1641fi
1642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1644$as_echo "$ac_header_compiler" >&6; }
1645
1646# Is the header present?
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1648$as_echo_n "checking $2 presence... " >&6; }
1649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h.  */
1651#include <$2>
1652_ACEOF
1653if ac_fn_c_try_cpp "$LINENO"; then :
1654  ac_header_preproc=yes
1655else
1656  ac_header_preproc=no
1657fi
1658rm -f conftest.err conftest.i conftest.$ac_ext
1659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1660$as_echo "$ac_header_preproc" >&6; }
1661
1662# So?  What about this header?
1663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1664  yes:no: )
1665    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1666$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1667    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669    ;;
1670  no:yes:* )
1671    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1672$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1673    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1674$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1675    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1676$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1677    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1678$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1679    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681    ;;
1682esac
1683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
1685if eval \${$3+:} false; then :
1686  $as_echo_n "(cached) " >&6
1687else
1688  eval "$3=\$ac_header_compiler"
1689fi
1690eval ac_res=\$$3
1691	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692$as_echo "$ac_res" >&6; }
1693fi
1694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695
1696} # ac_fn_c_check_header_mongrel
1697
1698# ac_fn_c_try_run LINENO
1699# ----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701# that executables *can* be run.
1702ac_fn_c_try_run ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_link") 2>&5
1713  ac_status=$?
1714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716  { { case "(($ac_try" in
1717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718  *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722  (eval "$ac_try") 2>&5
1723  ac_status=$?
1724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725  test $ac_status = 0; }; }; then :
1726  ac_retval=0
1727else
1728  $as_echo "$as_me: program exited with status $ac_status" >&5
1729       $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732       ac_retval=$ac_status
1733fi
1734  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_run
1739
1740# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1741# -------------------------------------------------------
1742# Tests whether HEADER exists and can be compiled using the include files in
1743# INCLUDES, setting the cache variable VAR accordingly.
1744ac_fn_c_check_header_compile ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if eval \${$3+:} false; then :
1750  $as_echo_n "(cached) " >&6
1751else
1752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753/* end confdefs.h.  */
1754$4
1755#include <$2>
1756_ACEOF
1757if ac_fn_c_try_compile "$LINENO"; then :
1758  eval "$3=yes"
1759else
1760  eval "$3=no"
1761fi
1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763fi
1764eval ac_res=\$$3
1765	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766$as_echo "$ac_res" >&6; }
1767  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769} # ac_fn_c_check_header_compile
1770
1771# ac_fn_c_try_link LINENO
1772# -----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded.
1774ac_fn_c_try_link ()
1775{
1776  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777  rm -f conftest.$ac_objext conftest$ac_exeext
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>conftest.err
1786  ac_status=$?
1787  if test -s conftest.err; then
1788    grep -v '^ *+' conftest.err >conftest.er1
1789    cat conftest.er1 >&5
1790    mv -f conftest.er1 conftest.err
1791  fi
1792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793  test $ac_status = 0; } && {
1794	 test -z "$ac_c_werror_flag" ||
1795	 test ! -s conftest.err
1796       } && test -s conftest$ac_exeext && {
1797	 test "$cross_compiling" = yes ||
1798	 test -x conftest$ac_exeext
1799       }; then :
1800  ac_retval=0
1801else
1802  $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805	ac_retval=1
1806fi
1807  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809  # interfere with the next link command; also delete a directory that is
1810  # left behind by Apple's compiler.  We do this before executing the actions.
1811  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813  as_fn_set_status $ac_retval
1814
1815} # ac_fn_c_try_link
1816
1817# ac_fn_c_check_func LINENO FUNC VAR
1818# ----------------------------------
1819# Tests whether FUNC exists, setting the cache variable VAR accordingly
1820ac_fn_c_check_func ()
1821{
1822  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
1825if eval \${$3+:} false; then :
1826  $as_echo_n "(cached) " >&6
1827else
1828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1832#define $2 innocuous_$2
1833
1834/* System header to define __stub macros and hopefully few prototypes,
1835    which can conflict with char $2 (); below.
1836    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1837    <limits.h> exists even on freestanding compilers.  */
1838
1839#ifdef __STDC__
1840# include <limits.h>
1841#else
1842# include <assert.h>
1843#endif
1844
1845#undef $2
1846
1847/* Override any GCC internal prototype to avoid an error.
1848   Use char because int might match the return type of a GCC
1849   builtin and then its argument prototype would still apply.  */
1850#ifdef __cplusplus
1851extern "C"
1852#endif
1853char $2 ();
1854/* The GNU C library defines this for functions which it implements
1855    to always fail with ENOSYS.  Some functions are actually named
1856    something starting with __ and the normal name is an alias.  */
1857#if defined __stub_$2 || defined __stub___$2
1858choke me
1859#endif
1860
1861int
1862main ()
1863{
1864return $2 ();
1865  ;
1866  return 0;
1867}
1868_ACEOF
1869if ac_fn_c_try_link "$LINENO"; then :
1870  eval "$3=yes"
1871else
1872  eval "$3=no"
1873fi
1874rm -f core conftest.err conftest.$ac_objext \
1875    conftest$ac_exeext conftest.$ac_ext
1876fi
1877eval ac_res=\$$3
1878	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
1880  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882} # ac_fn_c_check_func
1883
1884# ac_fn_c_find_intX_t LINENO BITS VAR
1885# -----------------------------------
1886# Finds a signed integer type with width BITS, setting cache variable VAR
1887# accordingly.
1888ac_fn_c_find_intX_t ()
1889{
1890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1892$as_echo_n "checking for int$2_t... " >&6; }
1893if eval \${$3+:} false; then :
1894  $as_echo_n "(cached) " >&6
1895else
1896  eval "$3=no"
1897     # Order is important - never check a type that is potentially smaller
1898     # than half of the expected target width.
1899     for ac_type in int$2_t 'int' 'long int' \
1900	 'long long int' 'short int' 'signed char'; do
1901       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h.  */
1903$ac_includes_default
1904	     enum { N = $2 / 2 - 1 };
1905int
1906main ()
1907{
1908static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1909test_array [0] = 0;
1910return test_array [0];
1911
1912  ;
1913  return 0;
1914}
1915_ACEOF
1916if ac_fn_c_try_compile "$LINENO"; then :
1917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h.  */
1919$ac_includes_default
1920	        enum { N = $2 / 2 - 1 };
1921int
1922main ()
1923{
1924static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1925		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1926test_array [0] = 0;
1927return test_array [0];
1928
1929  ;
1930  return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934
1935else
1936  case $ac_type in #(
1937  int$2_t) :
1938    eval "$3=yes" ;; #(
1939  *) :
1940    eval "$3=\$ac_type" ;;
1941esac
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946       if eval test \"x\$"$3"\" = x"no"; then :
1947
1948else
1949  break
1950fi
1951     done
1952fi
1953eval ac_res=\$$3
1954	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958} # ac_fn_c_find_intX_t
1959
1960# ac_fn_c_find_uintX_t LINENO BITS VAR
1961# ------------------------------------
1962# Finds an unsigned integer type with width BITS, setting cache variable VAR
1963# accordingly.
1964ac_fn_c_find_uintX_t ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1968$as_echo_n "checking for uint$2_t... " >&6; }
1969if eval \${$3+:} false; then :
1970  $as_echo_n "(cached) " >&6
1971else
1972  eval "$3=no"
1973     # Order is important - never check a type that is potentially smaller
1974     # than half of the expected target width.
1975     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1976	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1977       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$ac_includes_default
1980int
1981main ()
1982{
1983static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1984test_array [0] = 0;
1985return test_array [0];
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991if ac_fn_c_try_compile "$LINENO"; then :
1992  case $ac_type in #(
1993  uint$2_t) :
1994    eval "$3=yes" ;; #(
1995  *) :
1996    eval "$3=\$ac_type" ;;
1997esac
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000       if eval test \"x\$"$3"\" = x"no"; then :
2001
2002else
2003  break
2004fi
2005     done
2006fi
2007eval ac_res=\$$3
2008	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009$as_echo "$ac_res" >&6; }
2010  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012} # ac_fn_c_find_uintX_t
2013cat >config.log <<_ACEOF
2014This file contains any messages produced by compilers while
2015running configure, to aid debugging if configure makes a mistake.
2016
2017It was created by LTO plugin for ld $as_me 0.1, which was
2018generated by GNU Autoconf 2.69.  Invocation command line was
2019
2020  $ $0 $@
2021
2022_ACEOF
2023exec 5>>config.log
2024{
2025cat <<_ASUNAME
2026## --------- ##
2027## Platform. ##
2028## --------- ##
2029
2030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2031uname -m = `(uname -m) 2>/dev/null || echo unknown`
2032uname -r = `(uname -r) 2>/dev/null || echo unknown`
2033uname -s = `(uname -s) 2>/dev/null || echo unknown`
2034uname -v = `(uname -v) 2>/dev/null || echo unknown`
2035
2036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2037/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2038
2039/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2040/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2042/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2043/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2044/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2045/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2046
2047_ASUNAME
2048
2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052  IFS=$as_save_IFS
2053  test -z "$as_dir" && as_dir=.
2054    $as_echo "PATH: $as_dir"
2055  done
2056IFS=$as_save_IFS
2057
2058} >&5
2059
2060cat >&5 <<_ACEOF
2061
2062
2063## ----------- ##
2064## Core tests. ##
2065## ----------- ##
2066
2067_ACEOF
2068
2069
2070# Keep a trace of the command line.
2071# Strip out --no-create and --no-recursion so they do not pile up.
2072# Strip out --silent because we don't want to record it for future runs.
2073# Also quote any args containing shell meta-characters.
2074# Make two passes to allow for proper duplicate-argument suppression.
2075ac_configure_args=
2076ac_configure_args0=
2077ac_configure_args1=
2078ac_must_keep_next=false
2079for ac_pass in 1 2
2080do
2081  for ac_arg
2082  do
2083    case $ac_arg in
2084    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2085    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2086    | -silent | --silent | --silen | --sile | --sil)
2087      continue ;;
2088    *\'*)
2089      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2090    esac
2091    case $ac_pass in
2092    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2093    2)
2094      as_fn_append ac_configure_args1 " '$ac_arg'"
2095      if test $ac_must_keep_next = true; then
2096	ac_must_keep_next=false # Got value, back to normal.
2097      else
2098	case $ac_arg in
2099	  *=* | --config-cache | -C | -disable-* | --disable-* \
2100	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2101	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2102	  | -with-* | --with-* | -without-* | --without-* | --x)
2103	    case "$ac_configure_args0 " in
2104	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2105	    esac
2106	    ;;
2107	  -* ) ac_must_keep_next=true ;;
2108	esac
2109      fi
2110      as_fn_append ac_configure_args " '$ac_arg'"
2111      ;;
2112    esac
2113  done
2114done
2115{ ac_configure_args0=; unset ac_configure_args0;}
2116{ ac_configure_args1=; unset ac_configure_args1;}
2117
2118# When interrupted or exit'd, cleanup temporary files, and complete
2119# config.log.  We remove comments because anyway the quotes in there
2120# would cause problems or look ugly.
2121# WARNING: Use '\'' to represent an apostrophe within the trap.
2122# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2123trap 'exit_status=$?
2124  # Save into config.log some information that might help in debugging.
2125  {
2126    echo
2127
2128    $as_echo "## ---------------- ##
2129## Cache variables. ##
2130## ---------------- ##"
2131    echo
2132    # The following way of writing the cache mishandles newlines in values,
2133(
2134  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2135    eval ac_val=\$$ac_var
2136    case $ac_val in #(
2137    *${as_nl}*)
2138      case $ac_var in #(
2139      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2140$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2141      esac
2142      case $ac_var in #(
2143      _ | IFS | as_nl) ;; #(
2144      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2145      *) { eval $ac_var=; unset $ac_var;} ;;
2146      esac ;;
2147    esac
2148  done
2149  (set) 2>&1 |
2150    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2151    *${as_nl}ac_space=\ *)
2152      sed -n \
2153	"s/'\''/'\''\\\\'\'''\''/g;
2154	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2155      ;; #(
2156    *)
2157      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2158      ;;
2159    esac |
2160    sort
2161)
2162    echo
2163
2164    $as_echo "## ----------------- ##
2165## Output variables. ##
2166## ----------------- ##"
2167    echo
2168    for ac_var in $ac_subst_vars
2169    do
2170      eval ac_val=\$$ac_var
2171      case $ac_val in
2172      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173      esac
2174      $as_echo "$ac_var='\''$ac_val'\''"
2175    done | sort
2176    echo
2177
2178    if test -n "$ac_subst_files"; then
2179      $as_echo "## ------------------- ##
2180## File substitutions. ##
2181## ------------------- ##"
2182      echo
2183      for ac_var in $ac_subst_files
2184      do
2185	eval ac_val=\$$ac_var
2186	case $ac_val in
2187	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188	esac
2189	$as_echo "$ac_var='\''$ac_val'\''"
2190      done | sort
2191      echo
2192    fi
2193
2194    if test -s confdefs.h; then
2195      $as_echo "## ----------- ##
2196## confdefs.h. ##
2197## ----------- ##"
2198      echo
2199      cat confdefs.h
2200      echo
2201    fi
2202    test "$ac_signal" != 0 &&
2203      $as_echo "$as_me: caught signal $ac_signal"
2204    $as_echo "$as_me: exit $exit_status"
2205  } >&5
2206  rm -f core *.core core.conftest.* &&
2207    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2208    exit $exit_status
2209' 0
2210for ac_signal in 1 2 13 15; do
2211  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2212done
2213ac_signal=0
2214
2215# confdefs.h avoids OS command line length limits that DEFS can exceed.
2216rm -f -r conftest* confdefs.h
2217
2218$as_echo "/* confdefs.h */" > confdefs.h
2219
2220# Predefined preprocessor variables.
2221
2222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_NAME "$PACKAGE_NAME"
2224_ACEOF
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2228_ACEOF
2229
2230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_VERSION "$PACKAGE_VERSION"
2232_ACEOF
2233
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_STRING "$PACKAGE_STRING"
2236_ACEOF
2237
2238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2240_ACEOF
2241
2242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_URL "$PACKAGE_URL"
2244_ACEOF
2245
2246
2247# Let the site file select an alternate cache file if it wants to.
2248# Prefer an explicitly selected file to automatically selected ones.
2249ac_site_file1=NONE
2250ac_site_file2=NONE
2251if test -n "$CONFIG_SITE"; then
2252  # We do not want a PATH search for config.site.
2253  case $CONFIG_SITE in #((
2254    -*)  ac_site_file1=./$CONFIG_SITE;;
2255    */*) ac_site_file1=$CONFIG_SITE;;
2256    *)   ac_site_file1=./$CONFIG_SITE;;
2257  esac
2258elif test "x$prefix" != xNONE; then
2259  ac_site_file1=$prefix/share/config.site
2260  ac_site_file2=$prefix/etc/config.site
2261else
2262  ac_site_file1=$ac_default_prefix/share/config.site
2263  ac_site_file2=$ac_default_prefix/etc/config.site
2264fi
2265for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2266do
2267  test "x$ac_site_file" = xNONE && continue
2268  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2269    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2270$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2271    sed 's/^/| /' "$ac_site_file" >&5
2272    . "$ac_site_file" \
2273      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275as_fn_error $? "failed to load site script $ac_site_file
2276See \`config.log' for more details" "$LINENO" 5; }
2277  fi
2278done
2279
2280if test -r "$cache_file"; then
2281  # Some versions of bash will fail to source /dev/null (special files
2282  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2283  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2284    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2285$as_echo "$as_me: loading cache $cache_file" >&6;}
2286    case $cache_file in
2287      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288      *)                      . "./$cache_file";;
2289    esac
2290  fi
2291else
2292  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2293$as_echo "$as_me: creating cache $cache_file" >&6;}
2294  >$cache_file
2295fi
2296
2297# Check that the precious variables saved in the cache have kept the same
2298# value.
2299ac_cache_corrupted=false
2300for ac_var in $ac_precious_vars; do
2301  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302  eval ac_new_set=\$ac_env_${ac_var}_set
2303  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304  eval ac_new_val=\$ac_env_${ac_var}_value
2305  case $ac_old_set,$ac_new_set in
2306    set,)
2307      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309      ac_cache_corrupted=: ;;
2310    ,set)
2311      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2312$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313      ac_cache_corrupted=: ;;
2314    ,);;
2315    *)
2316      if test "x$ac_old_val" != "x$ac_new_val"; then
2317	# differences in whitespace do not lead to failure.
2318	ac_old_val_w=`echo x $ac_old_val`
2319	ac_new_val_w=`echo x $ac_new_val`
2320	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2321	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2322$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323	  ac_cache_corrupted=:
2324	else
2325	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2326$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2327	  eval $ac_var=\$ac_old_val
2328	fi
2329	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2330$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2331	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2332$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2333      fi;;
2334  esac
2335  # Pass precious variables to config.status.
2336  if test "$ac_new_set" = set; then
2337    case $ac_new_val in
2338    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339    *) ac_arg=$ac_var=$ac_new_val ;;
2340    esac
2341    case " $ac_configure_args " in
2342      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2343      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2344    esac
2345  fi
2346done
2347if $ac_cache_corrupted; then
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2351$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2353fi
2354## -------------------- ##
2355## Main body of script. ##
2356## -------------------- ##
2357
2358ac_ext=c
2359ac_cpp='$CPP $CPPFLAGS'
2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363
2364
2365
2366
2367
2368ac_aux_dir=
2369for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2370  if test -f "$ac_dir/install-sh"; then
2371    ac_aux_dir=$ac_dir
2372    ac_install_sh="$SHELL $ac_aux_dir/install-sh -c"
2373    break
2374  elif test -f "$ac_dir/install.sh"; then
2375    ac_aux_dir=$ac_dir
2376    ac_install_sh="$SHELL $ac_aux_dir/install.sh -c"
2377    break
2378  elif test -f "$ac_dir/shtool"; then
2379    ac_aux_dir=$ac_dir
2380    ac_install_sh="$SHELL $ac_aux_dir/shtool install -c"
2381    break
2382  fi
2383done
2384if test -z "$ac_aux_dir"; then
2385  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2386fi
2387
2388# These three variables are undocumented and unsupported,
2389# and are intended to be withdrawn in a future Autoconf release.
2390# They can cause serious problems if a builder's source tree is in a directory
2391# whose full name contains unusual characters.
2392ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2393ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2394ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2395
2396
2397# Make sure we can run config.sub.
2398$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2399  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2400
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2402$as_echo_n "checking build system type... " >&6; }
2403if ${ac_cv_build+:} false; then :
2404  $as_echo_n "(cached) " >&6
2405else
2406  ac_build_alias=$build_alias
2407test "x$ac_build_alias" = x &&
2408  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2409test "x$ac_build_alias" = x &&
2410  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2411ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2412  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2413
2414fi
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2416$as_echo "$ac_cv_build" >&6; }
2417case $ac_cv_build in
2418*-*-*) ;;
2419*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2420esac
2421build=$ac_cv_build
2422ac_save_IFS=$IFS; IFS='-'
2423set x $ac_cv_build
2424shift
2425build_cpu=$1
2426build_vendor=$2
2427shift; shift
2428# Remember, the first character of IFS is used to create $*,
2429# except with old shells:
2430build_os=$*
2431IFS=$ac_save_IFS
2432case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2433
2434
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2436$as_echo_n "checking host system type... " >&6; }
2437if ${ac_cv_host+:} false; then :
2438  $as_echo_n "(cached) " >&6
2439else
2440  if test "x$host_alias" = x; then
2441  ac_cv_host=$ac_cv_build
2442else
2443  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2444    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445fi
2446
2447fi
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2449$as_echo "$ac_cv_host" >&6; }
2450case $ac_cv_host in
2451*-*-*) ;;
2452*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2453esac
2454host=$ac_cv_host
2455ac_save_IFS=$IFS; IFS='-'
2456set x $ac_cv_host
2457shift
2458host_cpu=$1
2459host_vendor=$2
2460shift; shift
2461# Remember, the first character of IFS is used to create $*,
2462# except with old shells:
2463host_os=$*
2464IFS=$ac_save_IFS
2465case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466
2467
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2469$as_echo_n "checking target system type... " >&6; }
2470if ${ac_cv_target+:} false; then :
2471  $as_echo_n "(cached) " >&6
2472else
2473  if test "x$target_alias" = x; then
2474  ac_cv_target=$ac_cv_host
2475else
2476  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2477    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2478fi
2479
2480fi
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2482$as_echo "$ac_cv_target" >&6; }
2483case $ac_cv_target in
2484*-*-*) ;;
2485*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2486esac
2487target=$ac_cv_target
2488ac_save_IFS=$IFS; IFS='-'
2489set x $ac_cv_target
2490shift
2491target_cpu=$1
2492target_vendor=$2
2493shift; shift
2494# Remember, the first character of IFS is used to create $*,
2495# except with old shells:
2496target_os=$*
2497IFS=$ac_save_IFS
2498case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2499
2500
2501# The aliases save the names the user supplied, while $host etc.
2502# will get canonicalized.
2503test -n "$target_alias" &&
2504  test "$program_prefix$program_suffix$program_transform_name" = \
2505    NONENONEs,x,x, &&
2506  program_prefix=${target_alias}-
2507
2508 case ${build_alias} in
2509  "") build_noncanonical=${build} ;;
2510  *) build_noncanonical=${build_alias} ;;
2511esac
2512
2513 case ${host_alias} in
2514  "") host_noncanonical=${build_noncanonical} ;;
2515  *) host_noncanonical=${host_alias} ;;
2516esac
2517
2518 case ${target_alias} in
2519  "") target_noncanonical=${host_noncanonical} ;;
2520  *) target_noncanonical=${target_alias} ;;
2521esac
2522
2523
2524# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2525# have matching libraries, they should use host libraries: Makefile.tpl
2526# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2527# However, they still use the build modules, because the corresponding
2528# host modules (e.g. bison) are only built for the host when bootstrap
2529# finishes. So:
2530# - build_subdir is where we find build modules, and never changes.
2531# - build_libsubdir is where we find build libraries, and can be overridden.
2532
2533# Prefix 'build-' so this never conflicts with target_subdir.
2534build_subdir="build-${build_noncanonical}"
2535
2536# Check whether --with-build-libsubdir was given.
2537if test "${with_build_libsubdir+set}" = set; then :
2538  withval=$with_build_libsubdir; build_libsubdir="$withval"
2539else
2540  build_libsubdir="$build_subdir"
2541fi
2542
2543# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2544if ( test $srcdir = . && test -d gcc ) \
2545   || test -d $srcdir/../host-${host_noncanonical}; then
2546  host_subdir="host-${host_noncanonical}"
2547else
2548  host_subdir=.
2549fi
2550# No prefix.
2551target_subdir=${target_noncanonical}
2552
2553am__api_version='1.15'
2554
2555# Find a good install program.  We prefer a C program (faster),
2556# so one script is as good as another.  But avoid the broken or
2557# incompatible versions:
2558# SysV /etc/install, /usr/sbin/install
2559# SunOS /usr/etc/install
2560# IRIX /sbin/install
2561# AIX /bin/install
2562# AmigaOS /C/install, which installs bootblocks on floppy discs
2563# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2564# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2565# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2566# OS/2's system install, which has a completely different semantic
2567# ./install, which can be erroneously created by make from ./install.sh.
2568# Reject install programs that cannot install multiple files.
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2570$as_echo_n "checking for a BSD-compatible install... " >&6; }
2571if test -z "$INSTALL"; then
2572if ${ac_cv_path_install+:} false; then :
2573  $as_echo_n "(cached) " >&6
2574else
2575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578  IFS=$as_save_IFS
2579  test -z "$as_dir" && as_dir=.
2580    # Account for people who put trailing slashes in PATH elements.
2581case $as_dir/ in #((
2582  ./ | .// | /[cC]/* | \
2583  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2584  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2585  /usr/ucb/* ) ;;
2586  *)
2587    # OSF1 and SCO ODT 3.0 have their own names for install.
2588    # Don't use installbsd from OSF since it installs stuff as root
2589    # by default.
2590    for ac_prog in ginstall scoinst install; do
2591      for ac_exec_ext in '' $ac_executable_extensions; do
2592	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2593	  if test $ac_prog = install &&
2594	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2595	    # AIX install.  It has an incompatible calling convention.
2596	    :
2597	  elif test $ac_prog = install &&
2598	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599	    # program-specific install script used by HP pwplus--don't use.
2600	    :
2601	  else
2602	    rm -rf conftest.one conftest.two conftest.dir
2603	    echo one > conftest.one
2604	    echo two > conftest.two
2605	    mkdir conftest.dir
2606	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2607	      test -s conftest.one && test -s conftest.two &&
2608	      test -s conftest.dir/conftest.one &&
2609	      test -s conftest.dir/conftest.two
2610	    then
2611	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2612	      break 3
2613	    fi
2614	  fi
2615	fi
2616      done
2617    done
2618    ;;
2619esac
2620
2621  done
2622IFS=$as_save_IFS
2623
2624rm -rf conftest.one conftest.two conftest.dir
2625
2626fi
2627  if test "${ac_cv_path_install+set}" = set; then
2628    INSTALL=$ac_cv_path_install
2629  else
2630    # As a last resort, use the slow shell script.  Don't cache a
2631    # value for INSTALL within a source directory, because that will
2632    # break other packages using the cache if that directory is
2633    # removed, or if the value is a relative name.
2634    INSTALL=$ac_install_sh
2635  fi
2636fi
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2638$as_echo "$INSTALL" >&6; }
2639
2640# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2641# It thinks the first close brace ends the variable substitution.
2642test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2643
2644test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2645
2646test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2647
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2649$as_echo_n "checking whether build environment is sane... " >&6; }
2650# Reject unsafe characters in $srcdir or the absolute working directory
2651# name.  Accept space and tab only in the latter.
2652am_lf='
2653'
2654case `pwd` in
2655  *[\\\"\#\$\&\'\`$am_lf]*)
2656    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2657esac
2658case $srcdir in
2659  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2660    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2661esac
2662
2663# Do 'set' in a subshell so we don't clobber the current shell's
2664# arguments.  Must try -L first in case configure is actually a
2665# symlink; some systems play weird games with the mod time of symlinks
2666# (eg FreeBSD returns the mod time of the symlink's containing
2667# directory).
2668if (
2669   am_has_slept=no
2670   for am_try in 1 2; do
2671     echo "timestamp, slept: $am_has_slept" > conftest.file
2672     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2673     if test "$*" = "X"; then
2674	# -L didn't work.
2675	set X `ls -t "$srcdir/configure" conftest.file`
2676     fi
2677     if test "$*" != "X $srcdir/configure conftest.file" \
2678	&& test "$*" != "X conftest.file $srcdir/configure"; then
2679
2680	# If neither matched, then we have a broken ls.  This can happen
2681	# if, for instance, CONFIG_SHELL is bash and it inherits a
2682	# broken ls alias from the environment.  This has actually
2683	# happened.  Such a system could not be considered "sane".
2684	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2685  alias in your environment" "$LINENO" 5
2686     fi
2687     if test "$2" = conftest.file || test $am_try -eq 2; then
2688       break
2689     fi
2690     # Just in case.
2691     sleep 1
2692     am_has_slept=yes
2693   done
2694   test "$2" = conftest.file
2695   )
2696then
2697   # Ok.
2698   :
2699else
2700   as_fn_error $? "newly created file is older than distributed files!
2701Check your system clock" "$LINENO" 5
2702fi
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2704$as_echo "yes" >&6; }
2705# If we didn't sleep, we still need to ensure time stamps of config.status and
2706# generated files are strictly newer.
2707am_sleep_pid=
2708if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2709  ( sleep 1 ) &
2710  am_sleep_pid=$!
2711fi
2712
2713rm -f conftest.file
2714
2715test "$program_prefix" != NONE &&
2716  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2717# Use a double $ so make ignores it.
2718test "$program_suffix" != NONE &&
2719  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2720# Double any \ or $.
2721# By default was `s,x,x', remove it if useless.
2722ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2723program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2724
2725# Expand $ac_aux_dir to an absolute path.
2726am_aux_dir=`cd "$ac_aux_dir" && pwd`
2727
2728if test x"${MISSING+set}" != xset; then
2729  case $am_aux_dir in
2730  *\ * | *\	*)
2731    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2732  *)
2733    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2734  esac
2735fi
2736# Use eval to expand $SHELL
2737if eval "$MISSING --is-lightweight"; then
2738  am_missing_run="$MISSING "
2739else
2740  am_missing_run=
2741  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2742$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2743fi
2744
2745if test x"${install_sh+set}" != xset; then
2746  case $am_aux_dir in
2747  *\ * | *\	*)
2748    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2749  *)
2750    install_sh="\${SHELL} $am_aux_dir/install-sh"
2751  esac
2752fi
2753
2754# Installed binaries are usually stripped using 'strip' when the user
2755# run "make install-strip".  However 'strip' might not be the right
2756# tool to use in cross-compilation environments, therefore Automake
2757# will honor the 'STRIP' environment variable to overrule this program.
2758if test "$cross_compiling" != no; then
2759  if test -n "$ac_tool_prefix"; then
2760  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2761set dummy ${ac_tool_prefix}strip; ac_word=$2
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763$as_echo_n "checking for $ac_word... " >&6; }
2764if ${ac_cv_prog_STRIP+:} false; then :
2765  $as_echo_n "(cached) " >&6
2766else
2767  if test -n "$STRIP"; then
2768  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2769else
2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773  IFS=$as_save_IFS
2774  test -z "$as_dir" && as_dir=.
2775    for ac_exec_ext in '' $ac_executable_extensions; do
2776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779    break 2
2780  fi
2781done
2782  done
2783IFS=$as_save_IFS
2784
2785fi
2786fi
2787STRIP=$ac_cv_prog_STRIP
2788if test -n "$STRIP"; then
2789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2790$as_echo "$STRIP" >&6; }
2791else
2792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793$as_echo "no" >&6; }
2794fi
2795
2796
2797fi
2798if test -z "$ac_cv_prog_STRIP"; then
2799  ac_ct_STRIP=$STRIP
2800  # Extract the first word of "strip", so it can be a program name with args.
2801set dummy strip; ac_word=$2
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803$as_echo_n "checking for $ac_word... " >&6; }
2804if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2805  $as_echo_n "(cached) " >&6
2806else
2807  if test -n "$ac_ct_STRIP"; then
2808  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2809else
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813  IFS=$as_save_IFS
2814  test -z "$as_dir" && as_dir=.
2815    for ac_exec_ext in '' $ac_executable_extensions; do
2816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817    ac_cv_prog_ac_ct_STRIP="strip"
2818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819    break 2
2820  fi
2821done
2822  done
2823IFS=$as_save_IFS
2824
2825fi
2826fi
2827ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2828if test -n "$ac_ct_STRIP"; then
2829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2830$as_echo "$ac_ct_STRIP" >&6; }
2831else
2832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833$as_echo "no" >&6; }
2834fi
2835
2836  if test "x$ac_ct_STRIP" = x; then
2837    STRIP=":"
2838  else
2839    case $cross_compiling:$ac_tool_warned in
2840yes:)
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2843ac_tool_warned=yes ;;
2844esac
2845    STRIP=$ac_ct_STRIP
2846  fi
2847else
2848  STRIP="$ac_cv_prog_STRIP"
2849fi
2850
2851fi
2852INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2853
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2855$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2856if test -z "$MKDIR_P"; then
2857  if ${ac_cv_path_mkdir+:} false; then :
2858  $as_echo_n "(cached) " >&6
2859else
2860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2862do
2863  IFS=$as_save_IFS
2864  test -z "$as_dir" && as_dir=.
2865    for ac_prog in mkdir gmkdir; do
2866	 for ac_exec_ext in '' $ac_executable_extensions; do
2867	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2868	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2869	     'mkdir (GNU coreutils) '* | \
2870	     'mkdir (coreutils) '* | \
2871	     'mkdir (fileutils) '4.1*)
2872	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2873	       break 3;;
2874	   esac
2875	 done
2876       done
2877  done
2878IFS=$as_save_IFS
2879
2880fi
2881
2882  test -d ./--version && rmdir ./--version
2883  if test "${ac_cv_path_mkdir+set}" = set; then
2884    MKDIR_P="$ac_cv_path_mkdir -p"
2885  else
2886    # As a last resort, use the slow shell script.  Don't cache a
2887    # value for MKDIR_P within a source directory, because that will
2888    # break other packages using the cache if that directory is
2889    # removed, or if the value is a relative name.
2890    MKDIR_P="$ac_install_sh -d"
2891  fi
2892fi
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2894$as_echo "$MKDIR_P" >&6; }
2895
2896for ac_prog in gawk mawk nawk awk
2897do
2898  # Extract the first word of "$ac_prog", so it can be a program name with args.
2899set dummy $ac_prog; ac_word=$2
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901$as_echo_n "checking for $ac_word... " >&6; }
2902if ${ac_cv_prog_AWK+:} false; then :
2903  $as_echo_n "(cached) " >&6
2904else
2905  if test -n "$AWK"; then
2906  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911  IFS=$as_save_IFS
2912  test -z "$as_dir" && as_dir=.
2913    for ac_exec_ext in '' $ac_executable_extensions; do
2914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915    ac_cv_prog_AWK="$ac_prog"
2916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917    break 2
2918  fi
2919done
2920  done
2921IFS=$as_save_IFS
2922
2923fi
2924fi
2925AWK=$ac_cv_prog_AWK
2926if test -n "$AWK"; then
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2928$as_echo "$AWK" >&6; }
2929else
2930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931$as_echo "no" >&6; }
2932fi
2933
2934
2935  test -n "$AWK" && break
2936done
2937
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2939$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2940set x ${MAKE-make}
2941ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2942if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2943  $as_echo_n "(cached) " >&6
2944else
2945  cat >conftest.make <<\_ACEOF
2946SHELL = /bin/sh
2947all:
2948	@echo '@@@%%%=$(MAKE)=@@@%%%'
2949_ACEOF
2950# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2951case `${MAKE-make} -f conftest.make 2>/dev/null` in
2952  *@@@%%%=?*=@@@%%%*)
2953    eval ac_cv_prog_make_${ac_make}_set=yes;;
2954  *)
2955    eval ac_cv_prog_make_${ac_make}_set=no;;
2956esac
2957rm -f conftest.make
2958fi
2959if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2961$as_echo "yes" >&6; }
2962  SET_MAKE=
2963else
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
2966  SET_MAKE="MAKE=${MAKE-make}"
2967fi
2968
2969rm -rf .tst 2>/dev/null
2970mkdir .tst 2>/dev/null
2971if test -d .tst; then
2972  am__leading_dot=.
2973else
2974  am__leading_dot=_
2975fi
2976rmdir .tst 2>/dev/null
2977
2978# Check whether --enable-silent-rules was given.
2979if test "${enable_silent_rules+set}" = set; then :
2980  enableval=$enable_silent_rules;
2981fi
2982
2983case $enable_silent_rules in # (((
2984  yes) AM_DEFAULT_VERBOSITY=0;;
2985   no) AM_DEFAULT_VERBOSITY=1;;
2986    *) AM_DEFAULT_VERBOSITY=1;;
2987esac
2988am_make=${MAKE-make}
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2990$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2991if ${am_cv_make_support_nested_variables+:} false; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  if $as_echo 'TRUE=$(BAR$(V))
2995BAR0=false
2996BAR1=true
2997V=1
2998am__doit:
2999	@$(TRUE)
3000.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3001  am_cv_make_support_nested_variables=yes
3002else
3003  am_cv_make_support_nested_variables=no
3004fi
3005fi
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3007$as_echo "$am_cv_make_support_nested_variables" >&6; }
3008if test $am_cv_make_support_nested_variables = yes; then
3009    AM_V='$(V)'
3010  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3011else
3012  AM_V=$AM_DEFAULT_VERBOSITY
3013  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3014fi
3015AM_BACKSLASH='\'
3016
3017if test "`cd $srcdir && pwd`" != "`pwd`"; then
3018  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3019  # is not polluted with repeated "-I."
3020  am__isrc=' -I$(srcdir)'
3021  # test to see if srcdir already configured
3022  if test -f $srcdir/config.status; then
3023    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3024  fi
3025fi
3026
3027# test whether we have cygpath
3028if test -z "$CYGPATH_W"; then
3029  if (cygpath --version) >/dev/null 2>/dev/null; then
3030    CYGPATH_W='cygpath -w'
3031  else
3032    CYGPATH_W=echo
3033  fi
3034fi
3035
3036
3037# Define the identity of the package.
3038 PACKAGE='lto-plugin'
3039 VERSION='0.1'
3040
3041
3042cat >>confdefs.h <<_ACEOF
3043#define PACKAGE "$PACKAGE"
3044_ACEOF
3045
3046
3047cat >>confdefs.h <<_ACEOF
3048#define VERSION "$VERSION"
3049_ACEOF
3050
3051# Some tools Automake needs.
3052
3053ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3054
3055
3056AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3057
3058
3059AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3060
3061
3062AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3063
3064
3065MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3066
3067# For better backward compatibility.  To be removed once Automake 1.9.x
3068# dies out for good.  For more background, see:
3069# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3070# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3071mkdir_p='$(MKDIR_P)'
3072
3073# We need awk for the "check" target (and possibly the TAP driver).  The
3074# system "awk" is bad on some platforms.
3075# Always define AMTAR for backward compatibility.  Yes, it's still used
3076# in the wild :-(  We should find a proper way to deprecate it ...
3077AMTAR='$${TAR-tar}'
3078
3079
3080# We'll loop over all known methods to create a tar archive until one works.
3081_am_tools='gnutar  pax cpio none'
3082
3083am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3084
3085
3086
3087
3088
3089
3090# POSIX will say in a future version that running "rm -f" with no argument
3091# is OK; and we want to be able to make that assumption in our Makefile
3092# recipes.  So use an aggressive probe to check that the usage we want is
3093# actually supported "in the wild" to an acceptable degree.
3094# See automake bug#10828.
3095# To make any issue more visible, cause the running configure to be aborted
3096# by default if the 'rm' program in use doesn't match our expectations; the
3097# user can still override this though.
3098if rm -f && rm -fr && rm -rf; then : OK; else
3099  cat >&2 <<'END'
3100Oops!
3101
3102Your 'rm' program seems unable to run without file operands specified
3103on the command line, even when the '-f' option is present.  This is contrary
3104to the behaviour of most rm programs out there, and not conforming with
3105the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3106
3107Please tell bug-automake@gnu.org about your system, including the value
3108of your $PATH and any error possibly output before this message.  This
3109can help us improve future automake versions.
3110
3111END
3112  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3113    echo 'Configuration will proceed anyway, since you have set the' >&2
3114    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3115    echo >&2
3116  else
3117    cat >&2 <<'END'
3118Aborting the configuration process, to ensure you take notice of the issue.
3119
3120You can download and install GNU coreutils to get an 'rm' implementation
3121that behaves properly: <http://www.gnu.org/software/coreutils/>.
3122
3123If you want to complete the configuration process using your problematic
3124'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3125to "yes", and re-run configure.
3126
3127END
3128    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3129  fi
3130fi
3131
3132
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3134$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3135    # Check whether --enable-maintainer-mode was given.
3136if test "${enable_maintainer_mode+set}" = set; then :
3137  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3138else
3139  USE_MAINTAINER_MODE=no
3140fi
3141
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3143$as_echo "$USE_MAINTAINER_MODE" >&6; }
3144   if test $USE_MAINTAINER_MODE = yes; then
3145  MAINTAINER_MODE_TRUE=
3146  MAINTAINER_MODE_FALSE='#'
3147else
3148  MAINTAINER_MODE_TRUE='#'
3149  MAINTAINER_MODE_FALSE=
3150fi
3151
3152  MAINT=$MAINTAINER_MODE_TRUE
3153
3154
3155
3156# Check whether --with-libiberty was given.
3157if test "${with_libiberty+set}" = set; then :
3158  withval=$with_libiberty;
3159else
3160  with_libiberty=../libiberty
3161fi
3162
3163
3164DEPDIR="${am__leading_dot}deps"
3165
3166ac_config_commands="$ac_config_commands depfiles"
3167
3168
3169am_make=${MAKE-make}
3170cat > confinc << 'END'
3171am__doit:
3172	@echo this is the am__doit target
3173.PHONY: am__doit
3174END
3175# If we don't find an include directive, just comment out the code.
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3177$as_echo_n "checking for style of include used by $am_make... " >&6; }
3178am__include="#"
3179am__quote=
3180_am_result=none
3181# First try GNU make style include.
3182echo "include confinc" > confmf
3183# Ignore all kinds of additional output from 'make'.
3184case `$am_make -s -f confmf 2> /dev/null` in #(
3185*the\ am__doit\ target*)
3186  am__include=include
3187  am__quote=
3188  _am_result=GNU
3189  ;;
3190esac
3191# Now try BSD make style include.
3192if test "$am__include" = "#"; then
3193   echo '.include "confinc"' > confmf
3194   case `$am_make -s -f confmf 2> /dev/null` in #(
3195   *the\ am__doit\ target*)
3196     am__include=.include
3197     am__quote="\""
3198     _am_result=BSD
3199     ;;
3200   esac
3201fi
3202
3203
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3205$as_echo "$_am_result" >&6; }
3206rm -f confinc confmf
3207
3208# Check whether --enable-dependency-tracking was given.
3209if test "${enable_dependency_tracking+set}" = set; then :
3210  enableval=$enable_dependency_tracking;
3211fi
3212
3213if test "x$enable_dependency_tracking" != xno; then
3214  am_depcomp="$ac_aux_dir/depcomp"
3215  AMDEPBACKSLASH='\'
3216  am__nodep='_no'
3217fi
3218 if test "x$enable_dependency_tracking" != xno; then
3219  AMDEP_TRUE=
3220  AMDEP_FALSE='#'
3221else
3222  AMDEP_TRUE='#'
3223  AMDEP_FALSE=
3224fi
3225
3226
3227ac_ext=c
3228ac_cpp='$CPP $CPPFLAGS'
3229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232if test -n "$ac_tool_prefix"; then
3233  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3234set dummy ${ac_tool_prefix}gcc; ac_word=$2
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236$as_echo_n "checking for $ac_word... " >&6; }
3237if ${ac_cv_prog_CC+:} false; then :
3238  $as_echo_n "(cached) " >&6
3239else
3240  if test -n "$CC"; then
3241  ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246  IFS=$as_save_IFS
3247  test -z "$as_dir" && as_dir=.
3248    for ac_exec_ext in '' $ac_executable_extensions; do
3249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252    break 2
3253  fi
3254done
3255  done
3256IFS=$as_save_IFS
3257
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
3262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263$as_echo "$CC" >&6; }
3264else
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267fi
3268
3269
3270fi
3271if test -z "$ac_cv_prog_CC"; then
3272  ac_ct_CC=$CC
3273  # Extract the first word of "gcc", so it can be a program name with args.
3274set dummy gcc; ac_word=$2
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
3277if ${ac_cv_prog_ac_ct_CC+:} false; then :
3278  $as_echo_n "(cached) " >&6
3279else
3280  if test -n "$ac_ct_CC"; then
3281  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288    for ac_exec_ext in '' $ac_executable_extensions; do
3289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290    ac_cv_prog_ac_ct_CC="gcc"
3291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295  done
3296IFS=$as_save_IFS
3297
3298fi
3299fi
3300ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301if test -n "$ac_ct_CC"; then
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303$as_echo "$ac_ct_CC" >&6; }
3304else
3305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307fi
3308
3309  if test "x$ac_ct_CC" = x; then
3310    CC=""
3311  else
3312    case $cross_compiling:$ac_tool_warned in
3313yes:)
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316ac_tool_warned=yes ;;
3317esac
3318    CC=$ac_ct_CC
3319  fi
3320else
3321  CC="$ac_cv_prog_CC"
3322fi
3323
3324if test -z "$CC"; then
3325          if test -n "$ac_tool_prefix"; then
3326    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3327set dummy ${ac_tool_prefix}cc; ac_word=$2
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329$as_echo_n "checking for $ac_word... " >&6; }
3330if ${ac_cv_prog_CC+:} false; then :
3331  $as_echo_n "(cached) " >&6
3332else
3333  if test -n "$CC"; then
3334  ac_cv_prog_CC="$CC" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339  IFS=$as_save_IFS
3340  test -z "$as_dir" && as_dir=.
3341    for ac_exec_ext in '' $ac_executable_extensions; do
3342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343    ac_cv_prog_CC="${ac_tool_prefix}cc"
3344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345    break 2
3346  fi
3347done
3348  done
3349IFS=$as_save_IFS
3350
3351fi
3352fi
3353CC=$ac_cv_prog_CC
3354if test -n "$CC"; then
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356$as_echo "$CC" >&6; }
3357else
3358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
3360fi
3361
3362
3363  fi
3364fi
3365if test -z "$CC"; then
3366  # Extract the first word of "cc", so it can be a program name with args.
3367set dummy cc; ac_word=$2
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369$as_echo_n "checking for $ac_word... " >&6; }
3370if ${ac_cv_prog_CC+:} false; then :
3371  $as_echo_n "(cached) " >&6
3372else
3373  if test -n "$CC"; then
3374  ac_cv_prog_CC="$CC" # Let the user override the test.
3375else
3376  ac_prog_rejected=no
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380  IFS=$as_save_IFS
3381  test -z "$as_dir" && as_dir=.
3382    for ac_exec_ext in '' $ac_executable_extensions; do
3383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3385       ac_prog_rejected=yes
3386       continue
3387     fi
3388    ac_cv_prog_CC="cc"
3389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390    break 2
3391  fi
3392done
3393  done
3394IFS=$as_save_IFS
3395
3396if test $ac_prog_rejected = yes; then
3397  # We found a bogon in the path, so make sure we never use it.
3398  set dummy $ac_cv_prog_CC
3399  shift
3400  if test $# != 0; then
3401    # We chose a different compiler from the bogus one.
3402    # However, it has the same basename, so the bogon will be chosen
3403    # first if we set CC to just the basename; use the full file name.
3404    shift
3405    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3406  fi
3407fi
3408fi
3409fi
3410CC=$ac_cv_prog_CC
3411if test -n "$CC"; then
3412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413$as_echo "$CC" >&6; }
3414else
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
3417fi
3418
3419
3420fi
3421if test -z "$CC"; then
3422  if test -n "$ac_tool_prefix"; then
3423  for ac_prog in cl.exe
3424  do
3425    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3426set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428$as_echo_n "checking for $ac_word... " >&6; }
3429if ${ac_cv_prog_CC+:} false; then :
3430  $as_echo_n "(cached) " >&6
3431else
3432  if test -n "$CC"; then
3433  ac_cv_prog_CC="$CC" # Let the user override the test.
3434else
3435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in $PATH
3437do
3438  IFS=$as_save_IFS
3439  test -z "$as_dir" && as_dir=.
3440    for ac_exec_ext in '' $ac_executable_extensions; do
3441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444    break 2
3445  fi
3446done
3447  done
3448IFS=$as_save_IFS
3449
3450fi
3451fi
3452CC=$ac_cv_prog_CC
3453if test -n "$CC"; then
3454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455$as_echo "$CC" >&6; }
3456else
3457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458$as_echo "no" >&6; }
3459fi
3460
3461
3462    test -n "$CC" && break
3463  done
3464fi
3465if test -z "$CC"; then
3466  ac_ct_CC=$CC
3467  for ac_prog in cl.exe
3468do
3469  # Extract the first word of "$ac_prog", so it can be a program name with args.
3470set dummy $ac_prog; ac_word=$2
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472$as_echo_n "checking for $ac_word... " >&6; }
3473if ${ac_cv_prog_ac_ct_CC+:} false; then :
3474  $as_echo_n "(cached) " >&6
3475else
3476  if test -n "$ac_ct_CC"; then
3477  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482  IFS=$as_save_IFS
3483  test -z "$as_dir" && as_dir=.
3484    for ac_exec_ext in '' $ac_executable_extensions; do
3485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486    ac_cv_prog_ac_ct_CC="$ac_prog"
3487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488    break 2
3489  fi
3490done
3491  done
3492IFS=$as_save_IFS
3493
3494fi
3495fi
3496ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497if test -n "$ac_ct_CC"; then
3498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3499$as_echo "$ac_ct_CC" >&6; }
3500else
3501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503fi
3504
3505
3506  test -n "$ac_ct_CC" && break
3507done
3508
3509  if test "x$ac_ct_CC" = x; then
3510    CC=""
3511  else
3512    case $cross_compiling:$ac_tool_warned in
3513yes:)
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516ac_tool_warned=yes ;;
3517esac
3518    CC=$ac_ct_CC
3519  fi
3520fi
3521
3522fi
3523
3524
3525test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527as_fn_error $? "no acceptable C compiler found in \$PATH
3528See \`config.log' for more details" "$LINENO" 5; }
3529
3530# Provide some information about the compiler.
3531$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3532set X $ac_compile
3533ac_compiler=$2
3534for ac_option in --version -v -V -qversion; do
3535  { { ac_try="$ac_compiler $ac_option >&5"
3536case "(($ac_try" in
3537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538  *) ac_try_echo=$ac_try;;
3539esac
3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541$as_echo "$ac_try_echo"; } >&5
3542  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3543  ac_status=$?
3544  if test -s conftest.err; then
3545    sed '10a\
3546... rest of stderr output deleted ...
3547         10q' conftest.err >conftest.er1
3548    cat conftest.er1 >&5
3549  fi
3550  rm -f conftest.er1 conftest.err
3551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552  test $ac_status = 0; }
3553done
3554
3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h.  */
3557
3558int
3559main ()
3560{
3561
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566ac_clean_files_save=$ac_clean_files
3567ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3568# Try to create an executable without -o first, disregard a.out.
3569# It will help us diagnose broken compilers, and finding out an intuition
3570# of exeext.
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572$as_echo_n "checking whether the C compiler works... " >&6; }
3573ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3574
3575# The possible output files:
3576ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3577
3578ac_rmfiles=
3579for ac_file in $ac_files
3580do
3581  case $ac_file in
3582    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3583    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3584  esac
3585done
3586rm -f $ac_rmfiles
3587
3588if { { ac_try="$ac_link_default"
3589case "(($ac_try" in
3590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591  *) ac_try_echo=$ac_try;;
3592esac
3593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594$as_echo "$ac_try_echo"; } >&5
3595  (eval "$ac_link_default") 2>&5
3596  ac_status=$?
3597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598  test $ac_status = 0; }; then :
3599  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3600# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3601# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3602# so that the user can short-circuit this test for compilers unknown to
3603# Autoconf.
3604for ac_file in $ac_files ''
3605do
3606  test -f "$ac_file" || continue
3607  case $ac_file in
3608    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3609	;;
3610    [ab].out )
3611	# We found the default executable, but exeext='' is most
3612	# certainly right.
3613	break;;
3614    *.* )
3615	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3616	then :; else
3617	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618	fi
3619	# We set ac_cv_exeext here because the later test for it is not
3620	# safe: cross compilers may not add the suffix if given an `-o'
3621	# argument, so we may need to know it at that point already.
3622	# Even if this section looks crufty: it has the advantage of
3623	# actually working.
3624	break;;
3625    * )
3626	break;;
3627  esac
3628done
3629test "$ac_cv_exeext" = no && ac_cv_exeext=
3630
3631else
3632  ac_file=''
3633fi
3634if test -z "$ac_file"; then :
3635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636$as_echo "no" >&6; }
3637$as_echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642as_fn_error 77 "C compiler cannot create executables
3643See \`config.log' for more details" "$LINENO" 5; }
3644else
3645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646$as_echo "yes" >&6; }
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3649$as_echo_n "checking for C compiler default output file name... " >&6; }
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3651$as_echo "$ac_file" >&6; }
3652ac_exeext=$ac_cv_exeext
3653
3654rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3655ac_clean_files=$ac_clean_files_save
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3657$as_echo_n "checking for suffix of executables... " >&6; }
3658if { { ac_try="$ac_link"
3659case "(($ac_try" in
3660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661  *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664$as_echo "$ac_try_echo"; } >&5
3665  (eval "$ac_link") 2>&5
3666  ac_status=$?
3667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668  test $ac_status = 0; }; then :
3669  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3670# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3671# work properly (i.e., refer to `conftest.exe'), while it won't with
3672# `rm'.
3673for ac_file in conftest.exe conftest conftest.*; do
3674  test -f "$ac_file" || continue
3675  case $ac_file in
3676    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678	  break;;
3679    * ) break;;
3680  esac
3681done
3682else
3683  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3686See \`config.log' for more details" "$LINENO" 5; }
3687fi
3688rm -f conftest conftest$ac_cv_exeext
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3690$as_echo "$ac_cv_exeext" >&6; }
3691
3692rm -f conftest.$ac_ext
3693EXEEXT=$ac_cv_exeext
3694ac_exeext=$EXEEXT
3695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h.  */
3697#include <stdio.h>
3698int
3699main ()
3700{
3701FILE *f = fopen ("conftest.out", "w");
3702 return ferror (f) || fclose (f) != 0;
3703
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708ac_clean_files="$ac_clean_files conftest.out"
3709# Check that the compiler produces executables we can run.  If not, either
3710# the compiler is broken, or we cross compile.
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3712$as_echo_n "checking whether we are cross compiling... " >&6; }
3713if test "$cross_compiling" != yes; then
3714  { { ac_try="$ac_link"
3715case "(($ac_try" in
3716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717  *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720$as_echo "$ac_try_echo"; } >&5
3721  (eval "$ac_link") 2>&5
3722  ac_status=$?
3723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724  test $ac_status = 0; }
3725  if { ac_try='./conftest$ac_cv_exeext'
3726  { { case "(($ac_try" in
3727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728  *) ac_try_echo=$ac_try;;
3729esac
3730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731$as_echo "$ac_try_echo"; } >&5
3732  (eval "$ac_try") 2>&5
3733  ac_status=$?
3734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735  test $ac_status = 0; }; }; then
3736    cross_compiling=no
3737  else
3738    if test "$cross_compiling" = maybe; then
3739	cross_compiling=yes
3740    else
3741	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743as_fn_error $? "cannot run C compiled programs.
3744If you meant to cross compile, use \`--host'.
3745See \`config.log' for more details" "$LINENO" 5; }
3746    fi
3747  fi
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3750$as_echo "$cross_compiling" >&6; }
3751
3752rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3753ac_clean_files=$ac_clean_files_save
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3755$as_echo_n "checking for suffix of object files... " >&6; }
3756if ${ac_cv_objext+:} false; then :
3757  $as_echo_n "(cached) " >&6
3758else
3759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761
3762int
3763main ()
3764{
3765
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770rm -f conftest.o conftest.obj
3771if { { ac_try="$ac_compile"
3772case "(($ac_try" in
3773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774  *) ac_try_echo=$ac_try;;
3775esac
3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777$as_echo "$ac_try_echo"; } >&5
3778  (eval "$ac_compile") 2>&5
3779  ac_status=$?
3780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781  test $ac_status = 0; }; then :
3782  for ac_file in conftest.o conftest.obj conftest.*; do
3783  test -f "$ac_file" || continue;
3784  case $ac_file in
3785    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3786    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3787       break;;
3788  esac
3789done
3790else
3791  $as_echo "$as_me: failed program was:" >&5
3792sed 's/^/| /' conftest.$ac_ext >&5
3793
3794{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796as_fn_error $? "cannot compute suffix of object files: cannot compile
3797See \`config.log' for more details" "$LINENO" 5; }
3798fi
3799rm -f conftest.$ac_cv_objext conftest.$ac_ext
3800fi
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3802$as_echo "$ac_cv_objext" >&6; }
3803OBJEXT=$ac_cv_objext
3804ac_objext=$OBJEXT
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3806$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3807if ${ac_cv_c_compiler_gnu+:} false; then :
3808  $as_echo_n "(cached) " >&6
3809else
3810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811/* end confdefs.h.  */
3812
3813int
3814main ()
3815{
3816#ifndef __GNUC__
3817       choke me
3818#endif
3819
3820  ;
3821  return 0;
3822}
3823_ACEOF
3824if ac_fn_c_try_compile "$LINENO"; then :
3825  ac_compiler_gnu=yes
3826else
3827  ac_compiler_gnu=no
3828fi
3829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831
3832fi
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3834$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3835if test $ac_compiler_gnu = yes; then
3836  GCC=yes
3837else
3838  GCC=
3839fi
3840ac_test_CFLAGS=${CFLAGS+set}
3841ac_save_CFLAGS=$CFLAGS
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3843$as_echo_n "checking whether $CC accepts -g... " >&6; }
3844if ${ac_cv_prog_cc_g+:} false; then :
3845  $as_echo_n "(cached) " >&6
3846else
3847  ac_save_c_werror_flag=$ac_c_werror_flag
3848   ac_c_werror_flag=yes
3849   ac_cv_prog_cc_g=no
3850   CFLAGS="-g"
3851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852/* end confdefs.h.  */
3853
3854int
3855main ()
3856{
3857
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862if ac_fn_c_try_compile "$LINENO"; then :
3863  ac_cv_prog_cc_g=yes
3864else
3865  CFLAGS=""
3866      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867/* end confdefs.h.  */
3868
3869int
3870main ()
3871{
3872
3873  ;
3874  return 0;
3875}
3876_ACEOF
3877if ac_fn_c_try_compile "$LINENO"; then :
3878
3879else
3880  ac_c_werror_flag=$ac_save_c_werror_flag
3881	 CFLAGS="-g"
3882	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h.  */
3884
3885int
3886main ()
3887{
3888
3889  ;
3890  return 0;
3891}
3892_ACEOF
3893if ac_fn_c_try_compile "$LINENO"; then :
3894  ac_cv_prog_cc_g=yes
3895fi
3896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897fi
3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899fi
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901   ac_c_werror_flag=$ac_save_c_werror_flag
3902fi
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3904$as_echo "$ac_cv_prog_cc_g" >&6; }
3905if test "$ac_test_CFLAGS" = set; then
3906  CFLAGS=$ac_save_CFLAGS
3907elif test $ac_cv_prog_cc_g = yes; then
3908  if test "$GCC" = yes; then
3909    CFLAGS="-g -O2"
3910  else
3911    CFLAGS="-g"
3912  fi
3913else
3914  if test "$GCC" = yes; then
3915    CFLAGS="-O2"
3916  else
3917    CFLAGS=
3918  fi
3919fi
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3921$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3922if ${ac_cv_prog_cc_c89+:} false; then :
3923  $as_echo_n "(cached) " >&6
3924else
3925  ac_cv_prog_cc_c89=no
3926ac_save_CC=$CC
3927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928/* end confdefs.h.  */
3929#include <stdarg.h>
3930#include <stdio.h>
3931struct stat;
3932/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3933struct buf { int x; };
3934FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935static char *e (p, i)
3936     char **p;
3937     int i;
3938{
3939  return p[i];
3940}
3941static char *f (char * (*g) (char **, int), char **p, ...)
3942{
3943  char *s;
3944  va_list v;
3945  va_start (v,p);
3946  s = g (p, va_arg (v,int));
3947  va_end (v);
3948  return s;
3949}
3950
3951/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3952   function prototypes and stuff, but not '\xHH' hex character constants.
3953   These don't provoke an error unfortunately, instead are silently treated
3954   as 'x'.  The following induces an error, until -std is added to get
3955   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3956   array size at least.  It's necessary to write '\x00'==0 to get something
3957   that's true only with -std.  */
3958int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3959
3960/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961   inside strings and character constants.  */
3962#define FOO(x) 'x'
3963int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3964
3965int test (int i, double x);
3966struct s1 {int (*f) (int a);};
3967struct s2 {int (*f) (double a);};
3968int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969int argc;
3970char **argv;
3971int
3972main ()
3973{
3974return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3981do
3982  CC="$ac_save_CC $ac_arg"
3983  if ac_fn_c_try_compile "$LINENO"; then :
3984  ac_cv_prog_cc_c89=$ac_arg
3985fi
3986rm -f core conftest.err conftest.$ac_objext
3987  test "x$ac_cv_prog_cc_c89" != "xno" && break
3988done
3989rm -f conftest.$ac_ext
3990CC=$ac_save_CC
3991
3992fi
3993# AC_CACHE_VAL
3994case "x$ac_cv_prog_cc_c89" in
3995  x)
3996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997$as_echo "none needed" >&6; } ;;
3998  xno)
3999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000$as_echo "unsupported" >&6; } ;;
4001  *)
4002    CC="$CC $ac_cv_prog_cc_c89"
4003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4004$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4005esac
4006if test "x$ac_cv_prog_cc_c89" != xno; then :
4007
4008fi
4009
4010ac_ext=c
4011ac_cpp='$CPP $CPPFLAGS'
4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
4016ac_ext=c
4017ac_cpp='$CPP $CPPFLAGS'
4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4022$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4023if ${am_cv_prog_cc_c_o+:} false; then :
4024  $as_echo_n "(cached) " >&6
4025else
4026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028
4029int
4030main ()
4031{
4032
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037  # Make sure it works both with $CC and with simple cc.
4038  # Following AC_PROG_CC_C_O, we do the test twice because some
4039  # compilers refuse to overwrite an existing .o file with -o,
4040  # though they will create one.
4041  am_cv_prog_cc_c_o=yes
4042  for am_i in 1 2; do
4043    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4044   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); } \
4048         && test -f conftest2.$ac_objext; then
4049      : OK
4050    else
4051      am_cv_prog_cc_c_o=no
4052      break
4053    fi
4054  done
4055  rm -f core conftest*
4056  unset am_i
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4059$as_echo "$am_cv_prog_cc_c_o" >&6; }
4060if test "$am_cv_prog_cc_c_o" != yes; then
4061   # Losing compiler, so override with the script.
4062   # FIXME: It is wrong to rewrite CC.
4063   # But if we don't then we get into trouble of one sort or another.
4064   # A longer-term fix would be to have automake use am__CC in this case,
4065   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4066   CC="$am_aux_dir/compile $CC"
4067fi
4068ac_ext=c
4069ac_cpp='$CPP $CPPFLAGS'
4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074
4075depcc="$CC"   am_compiler_list=
4076
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4078$as_echo_n "checking dependency style of $depcc... " >&6; }
4079if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4080  $as_echo_n "(cached) " >&6
4081else
4082  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4083  # We make a subdir and do the tests there.  Otherwise we can end up
4084  # making bogus files that we don't know about and never remove.  For
4085  # instance it was reported that on HP-UX the gcc test will end up
4086  # making a dummy file named 'D' -- because '-MD' means "put the output
4087  # in D".
4088  rm -rf conftest.dir
4089  mkdir conftest.dir
4090  # Copy depcomp to subdir because otherwise we won't find it if we're
4091  # using a relative directory.
4092  cp "$am_depcomp" conftest.dir
4093  cd conftest.dir
4094  # We will build objects and dependencies in a subdirectory because
4095  # it helps to detect inapplicable dependency modes.  For instance
4096  # both Tru64's cc and ICC support -MD to output dependencies as a
4097  # side effect of compilation, but ICC will put the dependencies in
4098  # the current directory while Tru64 will put them in the object
4099  # directory.
4100  mkdir sub
4101
4102  am_cv_CC_dependencies_compiler_type=none
4103  if test "$am_compiler_list" = ""; then
4104     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4105  fi
4106  am__universal=false
4107  case " $depcc " in #(
4108     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4109     esac
4110
4111  for depmode in $am_compiler_list; do
4112    # Setup a source with many dependencies, because some compilers
4113    # like to wrap large dependency lists on column 80 (with \), and
4114    # we should not choose a depcomp mode which is confused by this.
4115    #
4116    # We need to recreate these files for each test, as the compiler may
4117    # overwrite some of them when testing with obscure command lines.
4118    # This happens at least with the AIX C compiler.
4119    : > sub/conftest.c
4120    for i in 1 2 3 4 5 6; do
4121      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4122      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4123      # Solaris 10 /bin/sh.
4124      echo '/* dummy */' > sub/conftst$i.h
4125    done
4126    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4127
4128    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4129    # mode.  It turns out that the SunPro C++ compiler does not properly
4130    # handle '-M -o', and we need to detect this.  Also, some Intel
4131    # versions had trouble with output in subdirs.
4132    am__obj=sub/conftest.${OBJEXT-o}
4133    am__minus_obj="-o $am__obj"
4134    case $depmode in
4135    gcc)
4136      # This depmode causes a compiler race in universal mode.
4137      test "$am__universal" = false || continue
4138      ;;
4139    nosideeffect)
4140      # After this tag, mechanisms are not by side-effect, so they'll
4141      # only be used when explicitly requested.
4142      if test "x$enable_dependency_tracking" = xyes; then
4143	continue
4144      else
4145	break
4146      fi
4147      ;;
4148    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4149      # This compiler won't grok '-c -o', but also, the minuso test has
4150      # not run yet.  These depmodes are late enough in the game, and
4151      # so weak that their functioning should not be impacted.
4152      am__obj=conftest.${OBJEXT-o}
4153      am__minus_obj=
4154      ;;
4155    none) break ;;
4156    esac
4157    if depmode=$depmode \
4158       source=sub/conftest.c object=$am__obj \
4159       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4160       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4161         >/dev/null 2>conftest.err &&
4162       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4163       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4164       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4165       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4166      # icc doesn't choke on unknown options, it will just issue warnings
4167      # or remarks (even with -Werror).  So we grep stderr for any message
4168      # that says an option was ignored or not supported.
4169      # When given -MP, icc 7.0 and 7.1 complain thusly:
4170      #   icc: Command line warning: ignoring option '-M'; no argument required
4171      # The diagnosis changed in icc 8.0:
4172      #   icc: Command line remark: option '-MP' not supported
4173      if (grep 'ignoring option' conftest.err ||
4174          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4175        am_cv_CC_dependencies_compiler_type=$depmode
4176        break
4177      fi
4178    fi
4179  done
4180
4181  cd ..
4182  rm -rf conftest.dir
4183else
4184  am_cv_CC_dependencies_compiler_type=none
4185fi
4186
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4189$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4190CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4191
4192 if
4193  test "x$enable_dependency_tracking" != xno \
4194  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4195  am__fastdepCC_TRUE=
4196  am__fastdepCC_FALSE='#'
4197else
4198  am__fastdepCC_TRUE='#'
4199  am__fastdepCC_FALSE=
4200fi
4201
4202
4203
4204ac_ext=c
4205ac_cpp='$CPP $CPPFLAGS'
4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4210$as_echo_n "checking how to run the C preprocessor... " >&6; }
4211# On Suns, sometimes $CPP names a directory.
4212if test -n "$CPP" && test -d "$CPP"; then
4213  CPP=
4214fi
4215if test -z "$CPP"; then
4216  if ${ac_cv_prog_CPP+:} false; then :
4217  $as_echo_n "(cached) " >&6
4218else
4219      # Double quotes because CPP needs to be expanded
4220    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4221    do
4222      ac_preproc_ok=false
4223for ac_c_preproc_warn_flag in '' yes
4224do
4225  # Use a header file that comes with gcc, so configuring glibc
4226  # with a fresh cross-compiler works.
4227  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228  # <limits.h> exists even on freestanding compilers.
4229  # On the NeXT, cc -E runs the code through the compiler's parser,
4230  # not just through cpp. "Syntax error" is here to catch this case.
4231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232/* end confdefs.h.  */
4233#ifdef __STDC__
4234# include <limits.h>
4235#else
4236# include <assert.h>
4237#endif
4238		     Syntax error
4239_ACEOF
4240if ac_fn_c_try_cpp "$LINENO"; then :
4241
4242else
4243  # Broken: fails on valid input.
4244continue
4245fi
4246rm -f conftest.err conftest.i conftest.$ac_ext
4247
4248  # OK, works on sane cases.  Now check whether nonexistent headers
4249  # can be detected and how.
4250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251/* end confdefs.h.  */
4252#include <ac_nonexistent.h>
4253_ACEOF
4254if ac_fn_c_try_cpp "$LINENO"; then :
4255  # Broken: success on invalid input.
4256continue
4257else
4258  # Passes both tests.
4259ac_preproc_ok=:
4260break
4261fi
4262rm -f conftest.err conftest.i conftest.$ac_ext
4263
4264done
4265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4266rm -f conftest.i conftest.err conftest.$ac_ext
4267if $ac_preproc_ok; then :
4268  break
4269fi
4270
4271    done
4272    ac_cv_prog_CPP=$CPP
4273
4274fi
4275  CPP=$ac_cv_prog_CPP
4276else
4277  ac_cv_prog_CPP=$CPP
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4280$as_echo "$CPP" >&6; }
4281ac_preproc_ok=false
4282for ac_c_preproc_warn_flag in '' yes
4283do
4284  # Use a header file that comes with gcc, so configuring glibc
4285  # with a fresh cross-compiler works.
4286  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287  # <limits.h> exists even on freestanding compilers.
4288  # On the NeXT, cc -E runs the code through the compiler's parser,
4289  # not just through cpp. "Syntax error" is here to catch this case.
4290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292#ifdef __STDC__
4293# include <limits.h>
4294#else
4295# include <assert.h>
4296#endif
4297		     Syntax error
4298_ACEOF
4299if ac_fn_c_try_cpp "$LINENO"; then :
4300
4301else
4302  # Broken: fails on valid input.
4303continue
4304fi
4305rm -f conftest.err conftest.i conftest.$ac_ext
4306
4307  # OK, works on sane cases.  Now check whether nonexistent headers
4308  # can be detected and how.
4309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310/* end confdefs.h.  */
4311#include <ac_nonexistent.h>
4312_ACEOF
4313if ac_fn_c_try_cpp "$LINENO"; then :
4314  # Broken: success on invalid input.
4315continue
4316else
4317  # Passes both tests.
4318ac_preproc_ok=:
4319break
4320fi
4321rm -f conftest.err conftest.i conftest.$ac_ext
4322
4323done
4324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4325rm -f conftest.i conftest.err conftest.$ac_ext
4326if $ac_preproc_ok; then :
4327
4328else
4329  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4331as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4332See \`config.log' for more details" "$LINENO" 5; }
4333fi
4334
4335ac_ext=c
4336ac_cpp='$CPP $CPPFLAGS'
4337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340
4341
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4343$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4344if ${ac_cv_path_GREP+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  if test -z "$GREP"; then
4348  ac_path_GREP_found=false
4349  # Loop through the user's path and test for each of PROGNAME-LIST
4350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4352do
4353  IFS=$as_save_IFS
4354  test -z "$as_dir" && as_dir=.
4355    for ac_prog in grep ggrep; do
4356    for ac_exec_ext in '' $ac_executable_extensions; do
4357      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4358      as_fn_executable_p "$ac_path_GREP" || continue
4359# Check for GNU ac_path_GREP and select it if it is found.
4360  # Check for GNU $ac_path_GREP
4361case `"$ac_path_GREP" --version 2>&1` in
4362*GNU*)
4363  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4364*)
4365  ac_count=0
4366  $as_echo_n 0123456789 >"conftest.in"
4367  while :
4368  do
4369    cat "conftest.in" "conftest.in" >"conftest.tmp"
4370    mv "conftest.tmp" "conftest.in"
4371    cp "conftest.in" "conftest.nl"
4372    $as_echo 'GREP' >> "conftest.nl"
4373    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4374    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4375    as_fn_arith $ac_count + 1 && ac_count=$as_val
4376    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4377      # Best one so far, save it but keep looking for a better one
4378      ac_cv_path_GREP="$ac_path_GREP"
4379      ac_path_GREP_max=$ac_count
4380    fi
4381    # 10*(2^10) chars as input seems more than enough
4382    test $ac_count -gt 10 && break
4383  done
4384  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4385esac
4386
4387      $ac_path_GREP_found && break 3
4388    done
4389  done
4390  done
4391IFS=$as_save_IFS
4392  if test -z "$ac_cv_path_GREP"; then
4393    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4394  fi
4395else
4396  ac_cv_path_GREP=$GREP
4397fi
4398
4399fi
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4401$as_echo "$ac_cv_path_GREP" >&6; }
4402 GREP="$ac_cv_path_GREP"
4403
4404
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4406$as_echo_n "checking for egrep... " >&6; }
4407if ${ac_cv_path_EGREP+:} false; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4411   then ac_cv_path_EGREP="$GREP -E"
4412   else
4413     if test -z "$EGREP"; then
4414  ac_path_EGREP_found=false
4415  # Loop through the user's path and test for each of PROGNAME-LIST
4416  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4418do
4419  IFS=$as_save_IFS
4420  test -z "$as_dir" && as_dir=.
4421    for ac_prog in egrep; do
4422    for ac_exec_ext in '' $ac_executable_extensions; do
4423      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4424      as_fn_executable_p "$ac_path_EGREP" || continue
4425# Check for GNU ac_path_EGREP and select it if it is found.
4426  # Check for GNU $ac_path_EGREP
4427case `"$ac_path_EGREP" --version 2>&1` in
4428*GNU*)
4429  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4430*)
4431  ac_count=0
4432  $as_echo_n 0123456789 >"conftest.in"
4433  while :
4434  do
4435    cat "conftest.in" "conftest.in" >"conftest.tmp"
4436    mv "conftest.tmp" "conftest.in"
4437    cp "conftest.in" "conftest.nl"
4438    $as_echo 'EGREP' >> "conftest.nl"
4439    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4440    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441    as_fn_arith $ac_count + 1 && ac_count=$as_val
4442    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4443      # Best one so far, save it but keep looking for a better one
4444      ac_cv_path_EGREP="$ac_path_EGREP"
4445      ac_path_EGREP_max=$ac_count
4446    fi
4447    # 10*(2^10) chars as input seems more than enough
4448    test $ac_count -gt 10 && break
4449  done
4450  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451esac
4452
4453      $ac_path_EGREP_found && break 3
4454    done
4455  done
4456  done
4457IFS=$as_save_IFS
4458  if test -z "$ac_cv_path_EGREP"; then
4459    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4460  fi
4461else
4462  ac_cv_path_EGREP=$EGREP
4463fi
4464
4465   fi
4466fi
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4468$as_echo "$ac_cv_path_EGREP" >&6; }
4469 EGREP="$ac_cv_path_EGREP"
4470
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4473$as_echo_n "checking for ANSI C header files... " >&6; }
4474if ${ac_cv_header_stdc+:} false; then :
4475  $as_echo_n "(cached) " >&6
4476else
4477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* end confdefs.h.  */
4479#include <stdlib.h>
4480#include <stdarg.h>
4481#include <string.h>
4482#include <float.h>
4483
4484int
4485main ()
4486{
4487
4488  ;
4489  return 0;
4490}
4491_ACEOF
4492if ac_fn_c_try_compile "$LINENO"; then :
4493  ac_cv_header_stdc=yes
4494else
4495  ac_cv_header_stdc=no
4496fi
4497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498
4499if test $ac_cv_header_stdc = yes; then
4500  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h.  */
4503#include <string.h>
4504
4505_ACEOF
4506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507  $EGREP "memchr" >/dev/null 2>&1; then :
4508
4509else
4510  ac_cv_header_stdc=no
4511fi
4512rm -f conftest*
4513
4514fi
4515
4516if test $ac_cv_header_stdc = yes; then
4517  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519/* end confdefs.h.  */
4520#include <stdlib.h>
4521
4522_ACEOF
4523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524  $EGREP "free" >/dev/null 2>&1; then :
4525
4526else
4527  ac_cv_header_stdc=no
4528fi
4529rm -f conftest*
4530
4531fi
4532
4533if test $ac_cv_header_stdc = yes; then
4534  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4535  if test "$cross_compiling" = yes; then :
4536  :
4537else
4538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h.  */
4540#include <ctype.h>
4541#include <stdlib.h>
4542#if ((' ' & 0x0FF) == 0x020)
4543# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4544# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4545#else
4546# define ISLOWER(c) \
4547		   (('a' <= (c) && (c) <= 'i') \
4548		     || ('j' <= (c) && (c) <= 'r') \
4549		     || ('s' <= (c) && (c) <= 'z'))
4550# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4551#endif
4552
4553#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4554int
4555main ()
4556{
4557  int i;
4558  for (i = 0; i < 256; i++)
4559    if (XOR (islower (i), ISLOWER (i))
4560	|| toupper (i) != TOUPPER (i))
4561      return 2;
4562  return 0;
4563}
4564_ACEOF
4565if ac_fn_c_try_run "$LINENO"; then :
4566
4567else
4568  ac_cv_header_stdc=no
4569fi
4570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4571  conftest.$ac_objext conftest.beam conftest.$ac_ext
4572fi
4573
4574fi
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4577$as_echo "$ac_cv_header_stdc" >&6; }
4578if test $ac_cv_header_stdc = yes; then
4579
4580$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4581
4582fi
4583
4584# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4585for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4586		  inttypes.h stdint.h unistd.h
4587do :
4588  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4589ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4590"
4591if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4592  cat >>confdefs.h <<_ACEOF
4593#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4594_ACEOF
4595
4596fi
4597
4598done
4599
4600
4601
4602  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4603if test "x$ac_cv_header_minix_config_h" = xyes; then :
4604  MINIX=yes
4605else
4606  MINIX=
4607fi
4608
4609
4610  if test "$MINIX" = yes; then
4611
4612$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4613
4614
4615$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4616
4617
4618$as_echo "#define _MINIX 1" >>confdefs.h
4619
4620  fi
4621
4622
4623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4624$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4625if ${ac_cv_safe_to_define___extensions__+:} false; then :
4626  $as_echo_n "(cached) " >&6
4627else
4628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629/* end confdefs.h.  */
4630
4631#         define __EXTENSIONS__ 1
4632          $ac_includes_default
4633int
4634main ()
4635{
4636
4637  ;
4638  return 0;
4639}
4640_ACEOF
4641if ac_fn_c_try_compile "$LINENO"; then :
4642  ac_cv_safe_to_define___extensions__=yes
4643else
4644  ac_cv_safe_to_define___extensions__=no
4645fi
4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647fi
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4649$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4650  test $ac_cv_safe_to_define___extensions__ = yes &&
4651    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4652
4653  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4654
4655  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4656
4657  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4658
4659  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4660
4661
4662ac_ext=c
4663ac_cpp='$CPP $CPPFLAGS'
4664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667if test -n "$ac_tool_prefix"; then
4668  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4669set dummy ${ac_tool_prefix}gcc; ac_word=$2
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671$as_echo_n "checking for $ac_word... " >&6; }
4672if ${ac_cv_prog_CC+:} false; then :
4673  $as_echo_n "(cached) " >&6
4674else
4675  if test -n "$CC"; then
4676  ac_cv_prog_CC="$CC" # Let the user override the test.
4677else
4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681  IFS=$as_save_IFS
4682  test -z "$as_dir" && as_dir=.
4683    for ac_exec_ext in '' $ac_executable_extensions; do
4684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687    break 2
4688  fi
4689done
4690  done
4691IFS=$as_save_IFS
4692
4693fi
4694fi
4695CC=$ac_cv_prog_CC
4696if test -n "$CC"; then
4697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4698$as_echo "$CC" >&6; }
4699else
4700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701$as_echo "no" >&6; }
4702fi
4703
4704
4705fi
4706if test -z "$ac_cv_prog_CC"; then
4707  ac_ct_CC=$CC
4708  # Extract the first word of "gcc", so it can be a program name with args.
4709set dummy gcc; ac_word=$2
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711$as_echo_n "checking for $ac_word... " >&6; }
4712if ${ac_cv_prog_ac_ct_CC+:} false; then :
4713  $as_echo_n "(cached) " >&6
4714else
4715  if test -n "$ac_ct_CC"; then
4716  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4717else
4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH
4720do
4721  IFS=$as_save_IFS
4722  test -z "$as_dir" && as_dir=.
4723    for ac_exec_ext in '' $ac_executable_extensions; do
4724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725    ac_cv_prog_ac_ct_CC="gcc"
4726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727    break 2
4728  fi
4729done
4730  done
4731IFS=$as_save_IFS
4732
4733fi
4734fi
4735ac_ct_CC=$ac_cv_prog_ac_ct_CC
4736if test -n "$ac_ct_CC"; then
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4738$as_echo "$ac_ct_CC" >&6; }
4739else
4740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741$as_echo "no" >&6; }
4742fi
4743
4744  if test "x$ac_ct_CC" = x; then
4745    CC=""
4746  else
4747    case $cross_compiling:$ac_tool_warned in
4748yes:)
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751ac_tool_warned=yes ;;
4752esac
4753    CC=$ac_ct_CC
4754  fi
4755else
4756  CC="$ac_cv_prog_CC"
4757fi
4758
4759if test -z "$CC"; then
4760          if test -n "$ac_tool_prefix"; then
4761    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4762set dummy ${ac_tool_prefix}cc; ac_word=$2
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764$as_echo_n "checking for $ac_word... " >&6; }
4765if ${ac_cv_prog_CC+:} false; then :
4766  $as_echo_n "(cached) " >&6
4767else
4768  if test -n "$CC"; then
4769  ac_cv_prog_CC="$CC" # Let the user override the test.
4770else
4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774  IFS=$as_save_IFS
4775  test -z "$as_dir" && as_dir=.
4776    for ac_exec_ext in '' $ac_executable_extensions; do
4777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778    ac_cv_prog_CC="${ac_tool_prefix}cc"
4779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780    break 2
4781  fi
4782done
4783  done
4784IFS=$as_save_IFS
4785
4786fi
4787fi
4788CC=$ac_cv_prog_CC
4789if test -n "$CC"; then
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4791$as_echo "$CC" >&6; }
4792else
4793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794$as_echo "no" >&6; }
4795fi
4796
4797
4798  fi
4799fi
4800if test -z "$CC"; then
4801  # Extract the first word of "cc", so it can be a program name with args.
4802set dummy cc; ac_word=$2
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804$as_echo_n "checking for $ac_word... " >&6; }
4805if ${ac_cv_prog_CC+:} false; then :
4806  $as_echo_n "(cached) " >&6
4807else
4808  if test -n "$CC"; then
4809  ac_cv_prog_CC="$CC" # Let the user override the test.
4810else
4811  ac_prog_rejected=no
4812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815  IFS=$as_save_IFS
4816  test -z "$as_dir" && as_dir=.
4817    for ac_exec_ext in '' $ac_executable_extensions; do
4818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4820       ac_prog_rejected=yes
4821       continue
4822     fi
4823    ac_cv_prog_CC="cc"
4824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825    break 2
4826  fi
4827done
4828  done
4829IFS=$as_save_IFS
4830
4831if test $ac_prog_rejected = yes; then
4832  # We found a bogon in the path, so make sure we never use it.
4833  set dummy $ac_cv_prog_CC
4834  shift
4835  if test $# != 0; then
4836    # We chose a different compiler from the bogus one.
4837    # However, it has the same basename, so the bogon will be chosen
4838    # first if we set CC to just the basename; use the full file name.
4839    shift
4840    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4841  fi
4842fi
4843fi
4844fi
4845CC=$ac_cv_prog_CC
4846if test -n "$CC"; then
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4848$as_echo "$CC" >&6; }
4849else
4850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
4852fi
4853
4854
4855fi
4856if test -z "$CC"; then
4857  if test -n "$ac_tool_prefix"; then
4858  for ac_prog in cl.exe
4859  do
4860    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4861set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863$as_echo_n "checking for $ac_word... " >&6; }
4864if ${ac_cv_prog_CC+:} false; then :
4865  $as_echo_n "(cached) " >&6
4866else
4867  if test -n "$CC"; then
4868  ac_cv_prog_CC="$CC" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873  IFS=$as_save_IFS
4874  test -z "$as_dir" && as_dir=.
4875    for ac_exec_ext in '' $ac_executable_extensions; do
4876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879    break 2
4880  fi
4881done
4882  done
4883IFS=$as_save_IFS
4884
4885fi
4886fi
4887CC=$ac_cv_prog_CC
4888if test -n "$CC"; then
4889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4890$as_echo "$CC" >&6; }
4891else
4892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893$as_echo "no" >&6; }
4894fi
4895
4896
4897    test -n "$CC" && break
4898  done
4899fi
4900if test -z "$CC"; then
4901  ac_ct_CC=$CC
4902  for ac_prog in cl.exe
4903do
4904  # Extract the first word of "$ac_prog", so it can be a program name with args.
4905set dummy $ac_prog; ac_word=$2
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907$as_echo_n "checking for $ac_word... " >&6; }
4908if ${ac_cv_prog_ac_ct_CC+:} false; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  if test -n "$ac_ct_CC"; then
4912  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4913else
4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915for as_dir in $PATH
4916do
4917  IFS=$as_save_IFS
4918  test -z "$as_dir" && as_dir=.
4919    for ac_exec_ext in '' $ac_executable_extensions; do
4920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921    ac_cv_prog_ac_ct_CC="$ac_prog"
4922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923    break 2
4924  fi
4925done
4926  done
4927IFS=$as_save_IFS
4928
4929fi
4930fi
4931ac_ct_CC=$ac_cv_prog_ac_ct_CC
4932if test -n "$ac_ct_CC"; then
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4934$as_echo "$ac_ct_CC" >&6; }
4935else
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937$as_echo "no" >&6; }
4938fi
4939
4940
4941  test -n "$ac_ct_CC" && break
4942done
4943
4944  if test "x$ac_ct_CC" = x; then
4945    CC=""
4946  else
4947    case $cross_compiling:$ac_tool_warned in
4948yes:)
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4951ac_tool_warned=yes ;;
4952esac
4953    CC=$ac_ct_CC
4954  fi
4955fi
4956
4957fi
4958
4959
4960test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4962as_fn_error $? "no acceptable C compiler found in \$PATH
4963See \`config.log' for more details" "$LINENO" 5; }
4964
4965# Provide some information about the compiler.
4966$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4967set X $ac_compile
4968ac_compiler=$2
4969for ac_option in --version -v -V -qversion; do
4970  { { ac_try="$ac_compiler $ac_option >&5"
4971case "(($ac_try" in
4972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973  *) ac_try_echo=$ac_try;;
4974esac
4975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4976$as_echo "$ac_try_echo"; } >&5
4977  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4978  ac_status=$?
4979  if test -s conftest.err; then
4980    sed '10a\
4981... rest of stderr output deleted ...
4982         10q' conftest.err >conftest.er1
4983    cat conftest.er1 >&5
4984  fi
4985  rm -f conftest.er1 conftest.err
4986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987  test $ac_status = 0; }
4988done
4989
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4991$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4992if ${ac_cv_c_compiler_gnu+:} false; then :
4993  $as_echo_n "(cached) " >&6
4994else
4995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996/* end confdefs.h.  */
4997
4998int
4999main ()
5000{
5001#ifndef __GNUC__
5002       choke me
5003#endif
5004
5005  ;
5006  return 0;
5007}
5008_ACEOF
5009if ac_fn_c_try_compile "$LINENO"; then :
5010  ac_compiler_gnu=yes
5011else
5012  ac_compiler_gnu=no
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015ac_cv_c_compiler_gnu=$ac_compiler_gnu
5016
5017fi
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5019$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5020if test $ac_compiler_gnu = yes; then
5021  GCC=yes
5022else
5023  GCC=
5024fi
5025ac_test_CFLAGS=${CFLAGS+set}
5026ac_save_CFLAGS=$CFLAGS
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5028$as_echo_n "checking whether $CC accepts -g... " >&6; }
5029if ${ac_cv_prog_cc_g+:} false; then :
5030  $as_echo_n "(cached) " >&6
5031else
5032  ac_save_c_werror_flag=$ac_c_werror_flag
5033   ac_c_werror_flag=yes
5034   ac_cv_prog_cc_g=no
5035   CFLAGS="-g"
5036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h.  */
5038
5039int
5040main ()
5041{
5042
5043  ;
5044  return 0;
5045}
5046_ACEOF
5047if ac_fn_c_try_compile "$LINENO"; then :
5048  ac_cv_prog_cc_g=yes
5049else
5050  CFLAGS=""
5051      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052/* end confdefs.h.  */
5053
5054int
5055main ()
5056{
5057
5058  ;
5059  return 0;
5060}
5061_ACEOF
5062if ac_fn_c_try_compile "$LINENO"; then :
5063
5064else
5065  ac_c_werror_flag=$ac_save_c_werror_flag
5066	 CFLAGS="-g"
5067	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h.  */
5069
5070int
5071main ()
5072{
5073
5074  ;
5075  return 0;
5076}
5077_ACEOF
5078if ac_fn_c_try_compile "$LINENO"; then :
5079  ac_cv_prog_cc_g=yes
5080fi
5081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082fi
5083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084fi
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086   ac_c_werror_flag=$ac_save_c_werror_flag
5087fi
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5089$as_echo "$ac_cv_prog_cc_g" >&6; }
5090if test "$ac_test_CFLAGS" = set; then
5091  CFLAGS=$ac_save_CFLAGS
5092elif test $ac_cv_prog_cc_g = yes; then
5093  if test "$GCC" = yes; then
5094    CFLAGS="-g -O2"
5095  else
5096    CFLAGS="-g"
5097  fi
5098else
5099  if test "$GCC" = yes; then
5100    CFLAGS="-O2"
5101  else
5102    CFLAGS=
5103  fi
5104fi
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5106$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5107if ${ac_cv_prog_cc_c89+:} false; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110  ac_cv_prog_cc_c89=no
5111ac_save_CC=$CC
5112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113/* end confdefs.h.  */
5114#include <stdarg.h>
5115#include <stdio.h>
5116struct stat;
5117/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5118struct buf { int x; };
5119FILE * (*rcsopen) (struct buf *, struct stat *, int);
5120static char *e (p, i)
5121     char **p;
5122     int i;
5123{
5124  return p[i];
5125}
5126static char *f (char * (*g) (char **, int), char **p, ...)
5127{
5128  char *s;
5129  va_list v;
5130  va_start (v,p);
5131  s = g (p, va_arg (v,int));
5132  va_end (v);
5133  return s;
5134}
5135
5136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5137   function prototypes and stuff, but not '\xHH' hex character constants.
5138   These don't provoke an error unfortunately, instead are silently treated
5139   as 'x'.  The following induces an error, until -std is added to get
5140   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5141   array size at least.  It's necessary to write '\x00'==0 to get something
5142   that's true only with -std.  */
5143int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5144
5145/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5146   inside strings and character constants.  */
5147#define FOO(x) 'x'
5148int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5149
5150int test (int i, double x);
5151struct s1 {int (*f) (int a);};
5152struct s2 {int (*f) (double a);};
5153int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5154int argc;
5155char **argv;
5156int
5157main ()
5158{
5159return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5160  ;
5161  return 0;
5162}
5163_ACEOF
5164for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5165	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5166do
5167  CC="$ac_save_CC $ac_arg"
5168  if ac_fn_c_try_compile "$LINENO"; then :
5169  ac_cv_prog_cc_c89=$ac_arg
5170fi
5171rm -f core conftest.err conftest.$ac_objext
5172  test "x$ac_cv_prog_cc_c89" != "xno" && break
5173done
5174rm -f conftest.$ac_ext
5175CC=$ac_save_CC
5176
5177fi
5178# AC_CACHE_VAL
5179case "x$ac_cv_prog_cc_c89" in
5180  x)
5181    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5182$as_echo "none needed" >&6; } ;;
5183  xno)
5184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5185$as_echo "unsupported" >&6; } ;;
5186  *)
5187    CC="$CC $ac_cv_prog_cc_c89"
5188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5189$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5190esac
5191if test "x$ac_cv_prog_cc_c89" != xno; then :
5192
5193fi
5194
5195ac_ext=c
5196ac_cpp='$CPP $CPPFLAGS'
5197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200
5201ac_ext=c
5202ac_cpp='$CPP $CPPFLAGS'
5203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205ac_compiler_gnu=$ac_cv_c_compiler_gnu
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5207$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5208if ${am_cv_prog_cc_c_o+:} false; then :
5209  $as_echo_n "(cached) " >&6
5210else
5211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212/* end confdefs.h.  */
5213
5214int
5215main ()
5216{
5217
5218  ;
5219  return 0;
5220}
5221_ACEOF
5222  # Make sure it works both with $CC and with simple cc.
5223  # Following AC_PROG_CC_C_O, we do the test twice because some
5224  # compilers refuse to overwrite an existing .o file with -o,
5225  # though they will create one.
5226  am_cv_prog_cc_c_o=yes
5227  for am_i in 1 2; do
5228    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5229   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); } \
5233         && test -f conftest2.$ac_objext; then
5234      : OK
5235    else
5236      am_cv_prog_cc_c_o=no
5237      break
5238    fi
5239  done
5240  rm -f core conftest*
5241  unset am_i
5242fi
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5244$as_echo "$am_cv_prog_cc_c_o" >&6; }
5245if test "$am_cv_prog_cc_c_o" != yes; then
5246   # Losing compiler, so override with the script.
5247   # FIXME: It is wrong to rewrite CC.
5248   # But if we don't then we get into trouble of one sort or another.
5249   # A longer-term fix would be to have automake use am__CC in this case,
5250   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5251   CC="$am_aux_dir/compile $CC"
5252fi
5253ac_ext=c
5254ac_cpp='$CPP $CPPFLAGS'
5255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258
5259
5260depcc="$CC"   am_compiler_list=
5261
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5263$as_echo_n "checking dependency style of $depcc... " >&6; }
5264if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5268  # We make a subdir and do the tests there.  Otherwise we can end up
5269  # making bogus files that we don't know about and never remove.  For
5270  # instance it was reported that on HP-UX the gcc test will end up
5271  # making a dummy file named 'D' -- because '-MD' means "put the output
5272  # in D".
5273  rm -rf conftest.dir
5274  mkdir conftest.dir
5275  # Copy depcomp to subdir because otherwise we won't find it if we're
5276  # using a relative directory.
5277  cp "$am_depcomp" conftest.dir
5278  cd conftest.dir
5279  # We will build objects and dependencies in a subdirectory because
5280  # it helps to detect inapplicable dependency modes.  For instance
5281  # both Tru64's cc and ICC support -MD to output dependencies as a
5282  # side effect of compilation, but ICC will put the dependencies in
5283  # the current directory while Tru64 will put them in the object
5284  # directory.
5285  mkdir sub
5286
5287  am_cv_CC_dependencies_compiler_type=none
5288  if test "$am_compiler_list" = ""; then
5289     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5290  fi
5291  am__universal=false
5292  case " $depcc " in #(
5293     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5294     esac
5295
5296  for depmode in $am_compiler_list; do
5297    # Setup a source with many dependencies, because some compilers
5298    # like to wrap large dependency lists on column 80 (with \), and
5299    # we should not choose a depcomp mode which is confused by this.
5300    #
5301    # We need to recreate these files for each test, as the compiler may
5302    # overwrite some of them when testing with obscure command lines.
5303    # This happens at least with the AIX C compiler.
5304    : > sub/conftest.c
5305    for i in 1 2 3 4 5 6; do
5306      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5307      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5308      # Solaris 10 /bin/sh.
5309      echo '/* dummy */' > sub/conftst$i.h
5310    done
5311    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5312
5313    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5314    # mode.  It turns out that the SunPro C++ compiler does not properly
5315    # handle '-M -o', and we need to detect this.  Also, some Intel
5316    # versions had trouble with output in subdirs.
5317    am__obj=sub/conftest.${OBJEXT-o}
5318    am__minus_obj="-o $am__obj"
5319    case $depmode in
5320    gcc)
5321      # This depmode causes a compiler race in universal mode.
5322      test "$am__universal" = false || continue
5323      ;;
5324    nosideeffect)
5325      # After this tag, mechanisms are not by side-effect, so they'll
5326      # only be used when explicitly requested.
5327      if test "x$enable_dependency_tracking" = xyes; then
5328	continue
5329      else
5330	break
5331      fi
5332      ;;
5333    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5334      # This compiler won't grok '-c -o', but also, the minuso test has
5335      # not run yet.  These depmodes are late enough in the game, and
5336      # so weak that their functioning should not be impacted.
5337      am__obj=conftest.${OBJEXT-o}
5338      am__minus_obj=
5339      ;;
5340    none) break ;;
5341    esac
5342    if depmode=$depmode \
5343       source=sub/conftest.c object=$am__obj \
5344       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5345       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5346         >/dev/null 2>conftest.err &&
5347       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5348       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5349       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5350       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5351      # icc doesn't choke on unknown options, it will just issue warnings
5352      # or remarks (even with -Werror).  So we grep stderr for any message
5353      # that says an option was ignored or not supported.
5354      # When given -MP, icc 7.0 and 7.1 complain thusly:
5355      #   icc: Command line warning: ignoring option '-M'; no argument required
5356      # The diagnosis changed in icc 8.0:
5357      #   icc: Command line remark: option '-MP' not supported
5358      if (grep 'ignoring option' conftest.err ||
5359          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5360        am_cv_CC_dependencies_compiler_type=$depmode
5361        break
5362      fi
5363    fi
5364  done
5365
5366  cd ..
5367  rm -rf conftest.dir
5368else
5369  am_cv_CC_dependencies_compiler_type=none
5370fi
5371
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5374$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5375CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5376
5377 if
5378  test "x$enable_dependency_tracking" != xno \
5379  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5380  am__fastdepCC_TRUE=
5381  am__fastdepCC_FALSE='#'
5382else
5383  am__fastdepCC_TRUE='#'
5384  am__fastdepCC_FALSE=
5385fi
5386
5387
5388# Check whether --enable-largefile was given.
5389if test "${enable_largefile+set}" = set; then :
5390  enableval=$enable_largefile;
5391fi
5392
5393if test "$enable_largefile" != no; then
5394
5395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5396$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5397if ${ac_cv_sys_largefile_CC+:} false; then :
5398  $as_echo_n "(cached) " >&6
5399else
5400  ac_cv_sys_largefile_CC=no
5401     if test "$GCC" != yes; then
5402       ac_save_CC=$CC
5403       while :; do
5404	 # IRIX 6.2 and later do not support large files by default,
5405	 # so use the C compiler's -n32 option if that helps.
5406	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408#include <sys/types.h>
5409 /* Check that off_t can represent 2**63 - 1 correctly.
5410    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5411    since some C++ compilers masquerading as C compilers
5412    incorrectly reject 9223372036854775807.  */
5413#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5414  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5415		       && LARGE_OFF_T % 2147483647 == 1)
5416		      ? 1 : -1];
5417int
5418main ()
5419{
5420
5421  ;
5422  return 0;
5423}
5424_ACEOF
5425	 if ac_fn_c_try_compile "$LINENO"; then :
5426  break
5427fi
5428rm -f core conftest.err conftest.$ac_objext
5429	 CC="$CC -n32"
5430	 if ac_fn_c_try_compile "$LINENO"; then :
5431  ac_cv_sys_largefile_CC=' -n32'; break
5432fi
5433rm -f core conftest.err conftest.$ac_objext
5434	 break
5435       done
5436       CC=$ac_save_CC
5437       rm -f conftest.$ac_ext
5438    fi
5439fi
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5441$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5442  if test "$ac_cv_sys_largefile_CC" != no; then
5443    CC=$CC$ac_cv_sys_largefile_CC
5444  fi
5445
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5447$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5448if ${ac_cv_sys_file_offset_bits+:} false; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451  while :; do
5452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h.  */
5454#include <sys/types.h>
5455 /* Check that off_t can represent 2**63 - 1 correctly.
5456    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5457    since some C++ compilers masquerading as C compilers
5458    incorrectly reject 9223372036854775807.  */
5459#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5460  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5461		       && LARGE_OFF_T % 2147483647 == 1)
5462		      ? 1 : -1];
5463int
5464main ()
5465{
5466
5467  ;
5468  return 0;
5469}
5470_ACEOF
5471if ac_fn_c_try_compile "$LINENO"; then :
5472  ac_cv_sys_file_offset_bits=no; break
5473fi
5474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h.  */
5477#define _FILE_OFFSET_BITS 64
5478#include <sys/types.h>
5479 /* Check that off_t can represent 2**63 - 1 correctly.
5480    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5481    since some C++ compilers masquerading as C compilers
5482    incorrectly reject 9223372036854775807.  */
5483#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5484  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5485		       && LARGE_OFF_T % 2147483647 == 1)
5486		      ? 1 : -1];
5487int
5488main ()
5489{
5490
5491  ;
5492  return 0;
5493}
5494_ACEOF
5495if ac_fn_c_try_compile "$LINENO"; then :
5496  ac_cv_sys_file_offset_bits=64; break
5497fi
5498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499  ac_cv_sys_file_offset_bits=unknown
5500  break
5501done
5502fi
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5504$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5505case $ac_cv_sys_file_offset_bits in #(
5506  no | unknown) ;;
5507  *)
5508cat >>confdefs.h <<_ACEOF
5509#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5510_ACEOF
5511;;
5512esac
5513rm -rf conftest*
5514  if test $ac_cv_sys_file_offset_bits = unknown; then
5515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5516$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5517if ${ac_cv_sys_large_files+:} false; then :
5518  $as_echo_n "(cached) " >&6
5519else
5520  while :; do
5521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522/* end confdefs.h.  */
5523#include <sys/types.h>
5524 /* Check that off_t can represent 2**63 - 1 correctly.
5525    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5526    since some C++ compilers masquerading as C compilers
5527    incorrectly reject 9223372036854775807.  */
5528#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5529  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5530		       && LARGE_OFF_T % 2147483647 == 1)
5531		      ? 1 : -1];
5532int
5533main ()
5534{
5535
5536  ;
5537  return 0;
5538}
5539_ACEOF
5540if ac_fn_c_try_compile "$LINENO"; then :
5541  ac_cv_sys_large_files=no; break
5542fi
5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h.  */
5546#define _LARGE_FILES 1
5547#include <sys/types.h>
5548 /* Check that off_t can represent 2**63 - 1 correctly.
5549    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5550    since some C++ compilers masquerading as C compilers
5551    incorrectly reject 9223372036854775807.  */
5552#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5553  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5554		       && LARGE_OFF_T % 2147483647 == 1)
5555		      ? 1 : -1];
5556int
5557main ()
5558{
5559
5560  ;
5561  return 0;
5562}
5563_ACEOF
5564if ac_fn_c_try_compile "$LINENO"; then :
5565  ac_cv_sys_large_files=1; break
5566fi
5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568  ac_cv_sys_large_files=unknown
5569  break
5570done
5571fi
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5573$as_echo "$ac_cv_sys_large_files" >&6; }
5574case $ac_cv_sys_large_files in #(
5575  no | unknown) ;;
5576  *)
5577cat >>confdefs.h <<_ACEOF
5578#define _LARGE_FILES $ac_cv_sys_large_files
5579_ACEOF
5580;;
5581esac
5582rm -rf conftest*
5583  fi
5584
5585
5586fi
5587
5588ac_ext=c
5589ac_cpp='$CPP $CPPFLAGS'
5590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592ac_compiler_gnu=$ac_cv_c_compiler_gnu
5593
5594ac_lto_plugin_warn_cflags=
5595save_CFLAGS="$CFLAGS"
5596for real_option in -Wall; do
5597  # Do the check with the no- prefix removed since gcc silently
5598  # accepts any -Wno-* option on purpose
5599  case $real_option in
5600    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5601    *) option=$real_option ;;
5602  esac
5603  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5604
5605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5606$as_echo_n "checking whether $CC supports $option... " >&6; }
5607if eval \${$as_acx_Woption+:} false; then :
5608  $as_echo_n "(cached) " >&6
5609else
5610  CFLAGS="$option"
5611    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612/* end confdefs.h.  */
5613
5614int
5615main ()
5616{
5617
5618  ;
5619  return 0;
5620}
5621_ACEOF
5622if ac_fn_c_try_compile "$LINENO"; then :
5623  eval "$as_acx_Woption=yes"
5624else
5625  eval "$as_acx_Woption=no"
5626fi
5627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628
5629fi
5630eval ac_res=\$$as_acx_Woption
5631	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5632$as_echo "$ac_res" >&6; }
5633  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5634  ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5635fi
5636  done
5637CFLAGS="$save_CFLAGS"
5638ac_ext=c
5639ac_cpp='$CPP $CPPFLAGS'
5640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5642ac_compiler_gnu=$ac_cv_c_compiler_gnu
5643
5644
5645
5646# Check whether -static-libgcc is supported.
5647saved_LDFLAGS="$LDFLAGS"
5648LDFLAGS="$LDFLAGS -static-libgcc"
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5650$as_echo_n "checking for -static-libgcc... " >&6; }
5651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653
5654  int main() {}
5655_ACEOF
5656if ac_fn_c_try_link "$LINENO"; then :
5657  have_static_libgcc=yes
5658else
5659  have_static_libgcc=no
5660fi
5661rm -f core conftest.err conftest.$ac_objext \
5662    conftest$ac_exeext conftest.$ac_ext
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5664$as_echo "$have_static_libgcc" >&6; };
5665LDFLAGS="$saved_LDFLAGS"
5666# Need -Wc to get it through libtool.
5667if test "x$have_static_libgcc" = xyes; then
5668   ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5669fi
5670
5671
5672 # Check whether --enable-cet was given.
5673if test "${enable_cet+set}" = set; then :
5674  enableval=$enable_cet;
5675      case "$enableval" in
5676       yes|no|auto) ;;
5677       *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5678                          esac
5679
5680else
5681  enable_cet=auto
5682fi
5683
5684
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5686$as_echo_n "checking for CET support... " >&6; }
5687
5688case "$host" in
5689  i[34567]86-*-linux* | x86_64-*-linux*)
5690    may_have_cet=yes
5691    cet_save_CFLAGS="$CFLAGS"
5692    CFLAGS="$CFLAGS -fcf-protection"
5693    case "$enable_cet" in
5694      auto)
5695	# Check if target supports multi-byte NOPs
5696	# and if compiler and assembler support CET.
5697	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h.  */
5699
5700int
5701main ()
5702{
5703
5704#if !defined(__SSE2__)
5705#error target does not support multi-byte NOPs
5706#else
5707asm ("setssbsy");
5708#endif
5709
5710  ;
5711  return 0;
5712}
5713_ACEOF
5714if ac_fn_c_try_compile "$LINENO"; then :
5715  enable_cet=yes
5716else
5717  enable_cet=no
5718fi
5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720	;;
5721      yes)
5722	# Check if compiler and assembler support CET.
5723	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725
5726int
5727main ()
5728{
5729asm ("setssbsy");
5730  ;
5731  return 0;
5732}
5733_ACEOF
5734if ac_fn_c_try_compile "$LINENO"; then :
5735  support_cet=yes
5736else
5737  support_cet=no
5738fi
5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740	if test $support_cet = "no"; then
5741	  if test x$enable_bootstrap != xno \
5742	     && test -z "${with_build_subdir}" \
5743	     && (test ! -f ../stage_current \
5744	         || test `cat ../stage_current` != "stage1"); then
5745	    # Require CET support only for the final GCC build.
5746	    as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
5747	  else
5748	    # Don't enable CET without CET support for non-bootstrap
5749	    # build, in stage1 nor for build support.
5750	    enable_cet=no
5751	  fi
5752	fi
5753	;;
5754    esac
5755    CFLAGS="$cet_save_CFLAGS"
5756    ;;
5757  *)
5758    may_have_cet=no
5759    enable_cet=no
5760    ;;
5761esac
5762
5763cet_save_CFLAGS="$CFLAGS"
5764CFLAGS="$CFLAGS -fcf-protection=none"
5765cet_save_LDFLAGS="$LDFLAGS"
5766LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
5767if test x$may_have_cet = xyes; then
5768  # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770/* end confdefs.h.  */
5771
5772int
5773main ()
5774{
5775return 0;
5776  ;
5777  return 0;
5778}
5779_ACEOF
5780if ac_fn_c_try_link "$LINENO"; then :
5781  may_have_cet=yes
5782else
5783  may_have_cet=no
5784fi
5785rm -f core conftest.err conftest.$ac_objext \
5786    conftest$ac_exeext conftest.$ac_ext
5787fi
5788
5789if test x$may_have_cet = xyes; then
5790  if test x$cross_compiling = xno; then
5791    if test "$cross_compiling" = yes; then :
5792  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5794as_fn_error $? "cannot run test program while cross compiling
5795See \`config.log' for more details" "$LINENO" 5; }
5796else
5797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h.  */
5799
5800int
5801main ()
5802{
5803  asm ("endbr32");
5804  return 0;
5805}
5806
5807_ACEOF
5808if ac_fn_c_try_run "$LINENO"; then :
5809  have_multi_byte_nop=yes
5810else
5811  have_multi_byte_nop=no
5812fi
5813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5814  conftest.$ac_objext conftest.beam conftest.$ac_ext
5815fi
5816
5817    have_cet=no
5818    if test x$have_multi_byte_nop = xyes; then
5819      if test "$cross_compiling" = yes; then :
5820  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822as_fn_error $? "cannot run test program while cross compiling
5823See \`config.log' for more details" "$LINENO" 5; }
5824else
5825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h.  */
5827
5828static void
5829foo (void)
5830{
5831}
5832
5833static void
5834__attribute__ ((noinline, noclone))
5835xxx (void (*f) (void))
5836{
5837  f ();
5838}
5839
5840static void
5841__attribute__ ((noinline, noclone))
5842bar (void)
5843{
5844  xxx (foo);
5845}
5846
5847int
5848main ()
5849{
5850  bar ();
5851  return 0;
5852}
5853
5854_ACEOF
5855if ac_fn_c_try_run "$LINENO"; then :
5856  have_cet=no
5857else
5858  have_cet=yes
5859fi
5860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5861  conftest.$ac_objext conftest.beam conftest.$ac_ext
5862fi
5863
5864    fi
5865    if test x$enable_cet = xno -a x$have_cet = xyes; then
5866      as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5867    fi
5868  fi
5869else
5870  # Enable CET in cross compiler if possible so that it will run on both
5871  # CET and non-CET hosts.
5872  have_cet=yes
5873fi
5874if test x$enable_cet = xyes; then
5875  CET_HOST_FLAGS="-fcf-protection"
5876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5877$as_echo "yes" >&6; }
5878else
5879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880$as_echo "no" >&6; }
5881fi
5882CFLAGS="$cet_save_CFLAGS"
5883LDFLAGS="$cet_save_LDFLAGS"
5884
5885
5886
5887if test x"$host_subdir" = x.; then
5888   gcc_build_dir=../gcc
5889else
5890   gcc_build_dir=../../$host_subdir/gcc
5891fi
5892
5893
5894# Used for constructing correct paths for offload compilers.
5895accel_dir_suffix=
5896real_target_noncanonical=${target_noncanonical}
5897if test x"$enable_as_accelerator_for" != x; then
5898  accel_dir_suffix=/accel/${target_noncanonical}
5899  real_target_noncanonical=${enable_as_accelerator_for}
5900fi
5901
5902
5903
5904# Determine what GCC version number to use in filesystem paths.
5905
5906  get_gcc_base_ver="cat"
5907
5908# Check whether --with-gcc-major-version-only was given.
5909if test "${with_gcc_major_version_only+set}" = set; then :
5910  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5911        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5912      fi
5913
5914fi
5915
5916
5917
5918
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5920$as_echo_n "checking whether symbol versioning is supported... " >&6; }
5921lto_plugin_use_symver=no
5922if test x$gcc_no_link = xyes; then
5923  # If we cannot link, we cannot build shared libraries, so do not use
5924  # symbol versioning.
5925  lto_plugin_use_symver=no
5926else
5927  save_LDFLAGS="$LDFLAGS"
5928  LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5929  cat > conftest.map <<EOF
5930{
5931  global: *foo*; bar; local: *;
5932};
5933EOF
5934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935/* end confdefs.h.  */
5936int foo;
5937int
5938main ()
5939{
5940
5941  ;
5942  return 0;
5943}
5944_ACEOF
5945if ac_fn_c_try_link "$LINENO"; then :
5946  lto_plugin_use_symver=gnu
5947else
5948  lto_plugin_use_symver=no
5949fi
5950rm -f core conftest.err conftest.$ac_objext \
5951    conftest$ac_exeext conftest.$ac_ext
5952  if test x$lto_plugin_use_symver = xno; then
5953    case "$target_os" in
5954      solaris2*)
5955	LDFLAGS="$save_LDFLAGS"
5956	LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5957	# Sun ld cannot handle wildcards and treats all entries as undefined.
5958	cat > conftest.map <<EOF
5959{
5960  global: foo; local: *;
5961};
5962EOF
5963	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964/* end confdefs.h.  */
5965int foo;
5966int
5967main ()
5968{
5969
5970  ;
5971  return 0;
5972}
5973_ACEOF
5974if ac_fn_c_try_link "$LINENO"; then :
5975  lto_plugin_use_symver=sun
5976else
5977  lto_plugin_use_symver=no
5978fi
5979rm -f core conftest.err conftest.$ac_objext \
5980    conftest$ac_exeext conftest.$ac_ext
5981	  ;;
5982    esac
5983  fi
5984  LDFLAGS="$save_LDFLAGS"
5985fi
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lto_plugin_use_symver" >&5
5987$as_echo "$lto_plugin_use_symver" >&6; }
5988 if test "x$lto_plugin_use_symver" != xno; then
5989  LTO_PLUGIN_USE_SYMVER_TRUE=
5990  LTO_PLUGIN_USE_SYMVER_FALSE='#'
5991else
5992  LTO_PLUGIN_USE_SYMVER_TRUE='#'
5993  LTO_PLUGIN_USE_SYMVER_FALSE=
5994fi
5995
5996 if test "x$lto_plugin_use_symver" = xgnu; then
5997  LTO_PLUGIN_USE_SYMVER_GNU_TRUE=
5998  LTO_PLUGIN_USE_SYMVER_GNU_FALSE='#'
5999else
6000  LTO_PLUGIN_USE_SYMVER_GNU_TRUE='#'
6001  LTO_PLUGIN_USE_SYMVER_GNU_FALSE=
6002fi
6003
6004 if test "x$lto_plugin_use_symver" = xsun; then
6005  LTO_PLUGIN_USE_SYMVER_SUN_TRUE=
6006  LTO_PLUGIN_USE_SYMVER_SUN_FALSE='#'
6007else
6008  LTO_PLUGIN_USE_SYMVER_SUN_TRUE='#'
6009  LTO_PLUGIN_USE_SYMVER_SUN_FALSE=
6010fi
6011
6012
6013case `pwd` in
6014  *\ * | *\	*)
6015    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6016$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6017esac
6018
6019
6020
6021macro_version='2.2.7a'
6022macro_revision='1.3134'
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036ltmain="$ac_aux_dir/ltmain.sh"
6037
6038# Backslashify metacharacters that are still active within
6039# double-quoted strings.
6040sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6041
6042# Same as above, but do not quote variable references.
6043double_quote_subst='s/\(["`\\]\)/\\\1/g'
6044
6045# Sed substitution to delay expansion of an escaped shell variable in a
6046# double_quote_subst'ed string.
6047delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6048
6049# Sed substitution to delay expansion of an escaped single quote.
6050delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6051
6052# Sed substitution to avoid accidental globbing in evaled expressions
6053no_glob_subst='s/\*/\\\*/g'
6054
6055ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6056ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6057ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6058
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6060$as_echo_n "checking how to print strings... " >&6; }
6061# Test print first, because it will be a builtin if present.
6062if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6063   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6064  ECHO='print -r --'
6065elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6066  ECHO='printf %s\n'
6067else
6068  # Use this function as a fallback that always works.
6069  func_fallback_echo ()
6070  {
6071    eval 'cat <<_LTECHO_EOF
6072$1
6073_LTECHO_EOF'
6074  }
6075  ECHO='func_fallback_echo'
6076fi
6077
6078# func_echo_all arg...
6079# Invoke $ECHO with all args, space-separated.
6080func_echo_all ()
6081{
6082    $ECHO ""
6083}
6084
6085case "$ECHO" in
6086  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6087$as_echo "printf" >&6; } ;;
6088  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6089$as_echo "print -r" >&6; } ;;
6090  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6091$as_echo "cat" >&6; } ;;
6092esac
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6108$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6109if ${ac_cv_path_SED+:} false; then :
6110  $as_echo_n "(cached) " >&6
6111else
6112            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6113     for ac_i in 1 2 3 4 5 6 7; do
6114       ac_script="$ac_script$as_nl$ac_script"
6115     done
6116     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6117     { ac_script=; unset ac_script;}
6118     if test -z "$SED"; then
6119  ac_path_SED_found=false
6120  # Loop through the user's path and test for each of PROGNAME-LIST
6121  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124  IFS=$as_save_IFS
6125  test -z "$as_dir" && as_dir=.
6126    for ac_prog in sed gsed; do
6127    for ac_exec_ext in '' $ac_executable_extensions; do
6128      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6129      as_fn_executable_p "$ac_path_SED" || continue
6130# Check for GNU ac_path_SED and select it if it is found.
6131  # Check for GNU $ac_path_SED
6132case `"$ac_path_SED" --version 2>&1` in
6133*GNU*)
6134  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6135*)
6136  ac_count=0
6137  $as_echo_n 0123456789 >"conftest.in"
6138  while :
6139  do
6140    cat "conftest.in" "conftest.in" >"conftest.tmp"
6141    mv "conftest.tmp" "conftest.in"
6142    cp "conftest.in" "conftest.nl"
6143    $as_echo '' >> "conftest.nl"
6144    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6145    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6146    as_fn_arith $ac_count + 1 && ac_count=$as_val
6147    if test $ac_count -gt ${ac_path_SED_max-0}; then
6148      # Best one so far, save it but keep looking for a better one
6149      ac_cv_path_SED="$ac_path_SED"
6150      ac_path_SED_max=$ac_count
6151    fi
6152    # 10*(2^10) chars as input seems more than enough
6153    test $ac_count -gt 10 && break
6154  done
6155  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6156esac
6157
6158      $ac_path_SED_found && break 3
6159    done
6160  done
6161  done
6162IFS=$as_save_IFS
6163  if test -z "$ac_cv_path_SED"; then
6164    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6165  fi
6166else
6167  ac_cv_path_SED=$SED
6168fi
6169
6170fi
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6172$as_echo "$ac_cv_path_SED" >&6; }
6173 SED="$ac_cv_path_SED"
6174  rm -f conftest.sed
6175
6176test -z "$SED" && SED=sed
6177Xsed="$SED -e 1s/^X//"
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6190$as_echo_n "checking for fgrep... " >&6; }
6191if ${ac_cv_path_FGREP+:} false; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6195   then ac_cv_path_FGREP="$GREP -F"
6196   else
6197     if test -z "$FGREP"; then
6198  ac_path_FGREP_found=false
6199  # Loop through the user's path and test for each of PROGNAME-LIST
6200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6202do
6203  IFS=$as_save_IFS
6204  test -z "$as_dir" && as_dir=.
6205    for ac_prog in fgrep; do
6206    for ac_exec_ext in '' $ac_executable_extensions; do
6207      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6208      as_fn_executable_p "$ac_path_FGREP" || continue
6209# Check for GNU ac_path_FGREP and select it if it is found.
6210  # Check for GNU $ac_path_FGREP
6211case `"$ac_path_FGREP" --version 2>&1` in
6212*GNU*)
6213  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6214*)
6215  ac_count=0
6216  $as_echo_n 0123456789 >"conftest.in"
6217  while :
6218  do
6219    cat "conftest.in" "conftest.in" >"conftest.tmp"
6220    mv "conftest.tmp" "conftest.in"
6221    cp "conftest.in" "conftest.nl"
6222    $as_echo 'FGREP' >> "conftest.nl"
6223    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6224    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6225    as_fn_arith $ac_count + 1 && ac_count=$as_val
6226    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6227      # Best one so far, save it but keep looking for a better one
6228      ac_cv_path_FGREP="$ac_path_FGREP"
6229      ac_path_FGREP_max=$ac_count
6230    fi
6231    # 10*(2^10) chars as input seems more than enough
6232    test $ac_count -gt 10 && break
6233  done
6234  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6235esac
6236
6237      $ac_path_FGREP_found && break 3
6238    done
6239  done
6240  done
6241IFS=$as_save_IFS
6242  if test -z "$ac_cv_path_FGREP"; then
6243    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6244  fi
6245else
6246  ac_cv_path_FGREP=$FGREP
6247fi
6248
6249   fi
6250fi
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6252$as_echo "$ac_cv_path_FGREP" >&6; }
6253 FGREP="$ac_cv_path_FGREP"
6254
6255
6256test -z "$GREP" && GREP=grep
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276# Check whether --with-gnu-ld was given.
6277if test "${with_gnu_ld+set}" = set; then :
6278  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6279else
6280  with_gnu_ld=no
6281fi
6282
6283ac_prog=ld
6284if test "$GCC" = yes; then
6285  # Check if gcc -print-prog-name=ld gives a path.
6286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6287$as_echo_n "checking for ld used by $CC... " >&6; }
6288  case $host in
6289  *-*-mingw*)
6290    # gcc leaves a trailing carriage return which upsets mingw
6291    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6292  *)
6293    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6294  esac
6295  case $ac_prog in
6296    # Accept absolute paths.
6297    [\\/]* | ?:[\\/]*)
6298      re_direlt='/[^/][^/]*/\.\./'
6299      # Canonicalize the pathname of ld
6300      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6301      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6302	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6303      done
6304      test -z "$LD" && LD="$ac_prog"
6305      ;;
6306  "")
6307    # If it fails, then pretend we aren't using GCC.
6308    ac_prog=ld
6309    ;;
6310  *)
6311    # If it is relative, then search for the first ld in PATH.
6312    with_gnu_ld=unknown
6313    ;;
6314  esac
6315elif test "$with_gnu_ld" = yes; then
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6317$as_echo_n "checking for GNU ld... " >&6; }
6318else
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6320$as_echo_n "checking for non-GNU ld... " >&6; }
6321fi
6322if ${lt_cv_path_LD+:} false; then :
6323  $as_echo_n "(cached) " >&6
6324else
6325  if test -z "$LD"; then
6326  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6327  for ac_dir in $PATH; do
6328    IFS="$lt_save_ifs"
6329    test -z "$ac_dir" && ac_dir=.
6330    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6331      lt_cv_path_LD="$ac_dir/$ac_prog"
6332      # Check to see if the program is GNU ld.  I'd rather use --version,
6333      # but apparently some variants of GNU ld only accept -v.
6334      # Break only if it was the GNU/non-GNU ld that we prefer.
6335      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6336      *GNU* | *'with BFD'*)
6337	test "$with_gnu_ld" != no && break
6338	;;
6339      *)
6340	test "$with_gnu_ld" != yes && break
6341	;;
6342      esac
6343    fi
6344  done
6345  IFS="$lt_save_ifs"
6346else
6347  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6348fi
6349fi
6350
6351LD="$lt_cv_path_LD"
6352if test -n "$LD"; then
6353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6354$as_echo "$LD" >&6; }
6355else
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357$as_echo "no" >&6; }
6358fi
6359test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6361$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6362if ${lt_cv_prog_gnu_ld+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6366case `$LD -v 2>&1 </dev/null` in
6367*GNU* | *'with BFD'*)
6368  lt_cv_prog_gnu_ld=yes
6369  ;;
6370*)
6371  lt_cv_prog_gnu_ld=no
6372  ;;
6373esac
6374fi
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6376$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6377with_gnu_ld=$lt_cv_prog_gnu_ld
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6388$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6389if ${lt_cv_path_NM+:} false; then :
6390  $as_echo_n "(cached) " >&6
6391else
6392  if test -n "$NM"; then
6393  # Let the user override the test.
6394  lt_cv_path_NM="$NM"
6395else
6396  lt_nm_to_check="${ac_tool_prefix}nm"
6397  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6398    lt_nm_to_check="$lt_nm_to_check nm"
6399  fi
6400  for lt_tmp_nm in $lt_nm_to_check; do
6401    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6402    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6403      IFS="$lt_save_ifs"
6404      test -z "$ac_dir" && ac_dir=.
6405      tmp_nm="$ac_dir/$lt_tmp_nm"
6406      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6407	# Check to see if the nm accepts a BSD-compat flag.
6408	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6409	#   nm: unknown option "B" ignored
6410	# Tru64's nm complains that /dev/null is an invalid object file
6411	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6412	*/dev/null* | *'Invalid file or object type'*)
6413	  lt_cv_path_NM="$tmp_nm -B"
6414	  break
6415	  ;;
6416	*)
6417	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6418	  */dev/null*)
6419	    lt_cv_path_NM="$tmp_nm -p"
6420	    break
6421	    ;;
6422	  *)
6423	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6424	    continue # so that we can try to find one that supports BSD flags
6425	    ;;
6426	  esac
6427	  ;;
6428	esac
6429      fi
6430    done
6431    IFS="$lt_save_ifs"
6432  done
6433  : ${lt_cv_path_NM=no}
6434fi
6435fi
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6437$as_echo "$lt_cv_path_NM" >&6; }
6438if test "$lt_cv_path_NM" != "no"; then
6439  NM="$lt_cv_path_NM"
6440else
6441  # Didn't find any BSD compatible name lister, look for dumpbin.
6442  if test -n "$DUMPBIN"; then :
6443    # Let the user override the test.
6444  else
6445    if test -n "$ac_tool_prefix"; then
6446  for ac_prog in dumpbin "link -dump"
6447  do
6448    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6449set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451$as_echo_n "checking for $ac_word... " >&6; }
6452if ${ac_cv_prog_DUMPBIN+:} false; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  if test -n "$DUMPBIN"; then
6456  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6457else
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461  IFS=$as_save_IFS
6462  test -z "$as_dir" && as_dir=.
6463    for ac_exec_ext in '' $ac_executable_extensions; do
6464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467    break 2
6468  fi
6469done
6470  done
6471IFS=$as_save_IFS
6472
6473fi
6474fi
6475DUMPBIN=$ac_cv_prog_DUMPBIN
6476if test -n "$DUMPBIN"; then
6477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6478$as_echo "$DUMPBIN" >&6; }
6479else
6480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481$as_echo "no" >&6; }
6482fi
6483
6484
6485    test -n "$DUMPBIN" && break
6486  done
6487fi
6488if test -z "$DUMPBIN"; then
6489  ac_ct_DUMPBIN=$DUMPBIN
6490  for ac_prog in dumpbin "link -dump"
6491do
6492  # Extract the first word of "$ac_prog", so it can be a program name with args.
6493set dummy $ac_prog; ac_word=$2
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
6496if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  if test -n "$ac_ct_DUMPBIN"; then
6500  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505  IFS=$as_save_IFS
6506  test -z "$as_dir" && as_dir=.
6507    for ac_exec_ext in '' $ac_executable_extensions; do
6508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511    break 2
6512  fi
6513done
6514  done
6515IFS=$as_save_IFS
6516
6517fi
6518fi
6519ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6520if test -n "$ac_ct_DUMPBIN"; then
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6522$as_echo "$ac_ct_DUMPBIN" >&6; }
6523else
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
6526fi
6527
6528
6529  test -n "$ac_ct_DUMPBIN" && break
6530done
6531
6532  if test "x$ac_ct_DUMPBIN" = x; then
6533    DUMPBIN=":"
6534  else
6535    case $cross_compiling:$ac_tool_warned in
6536yes:)
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539ac_tool_warned=yes ;;
6540esac
6541    DUMPBIN=$ac_ct_DUMPBIN
6542  fi
6543fi
6544
6545    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6546    *COFF*)
6547      DUMPBIN="$DUMPBIN -symbols"
6548      ;;
6549    *)
6550      DUMPBIN=:
6551      ;;
6552    esac
6553  fi
6554
6555  if test "$DUMPBIN" != ":"; then
6556    NM="$DUMPBIN"
6557  fi
6558fi
6559test -z "$NM" && NM=nm
6560
6561
6562
6563
6564
6565
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6567$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6568if ${lt_cv_nm_interface+:} false; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  lt_cv_nm_interface="BSD nm"
6572  echo "int some_variable = 0;" > conftest.$ac_ext
6573  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6574  (eval "$ac_compile" 2>conftest.err)
6575  cat conftest.err >&5
6576  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6577  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6578  cat conftest.err >&5
6579  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6580  cat conftest.out >&5
6581  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6582    lt_cv_nm_interface="MS dumpbin"
6583  fi
6584  rm -f conftest*
6585fi
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6587$as_echo "$lt_cv_nm_interface" >&6; }
6588
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6590$as_echo_n "checking whether ln -s works... " >&6; }
6591LN_S=$as_ln_s
6592if test "$LN_S" = "ln -s"; then
6593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6594$as_echo "yes" >&6; }
6595else
6596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6597$as_echo "no, using $LN_S" >&6; }
6598fi
6599
6600# find the maximum length of command line arguments
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6602$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6603if ${lt_cv_sys_max_cmd_len+:} false; then :
6604  $as_echo_n "(cached) " >&6
6605else
6606    i=0
6607  teststring="ABCD"
6608
6609  case $build_os in
6610  msdosdjgpp*)
6611    # On DJGPP, this test can blow up pretty badly due to problems in libc
6612    # (any single argument exceeding 2000 bytes causes a buffer overrun
6613    # during glob expansion).  Even if it were fixed, the result of this
6614    # check would be larger than it should be.
6615    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6616    ;;
6617
6618  gnu*)
6619    # Under GNU Hurd, this test is not required because there is
6620    # no limit to the length of command line arguments.
6621    # Libtool will interpret -1 as no limit whatsoever
6622    lt_cv_sys_max_cmd_len=-1;
6623    ;;
6624
6625  cygwin* | mingw* | cegcc*)
6626    # On Win9x/ME, this test blows up -- it succeeds, but takes
6627    # about 5 minutes as the teststring grows exponentially.
6628    # Worse, since 9x/ME are not pre-emptively multitasking,
6629    # you end up with a "frozen" computer, even though with patience
6630    # the test eventually succeeds (with a max line length of 256k).
6631    # Instead, let's just punt: use the minimum linelength reported by
6632    # all of the supported platforms: 8192 (on NT/2K/XP).
6633    lt_cv_sys_max_cmd_len=8192;
6634    ;;
6635
6636  mint*)
6637    # On MiNT this can take a long time and run out of memory.
6638    lt_cv_sys_max_cmd_len=8192;
6639    ;;
6640
6641  amigaos*)
6642    # On AmigaOS with pdksh, this test takes hours, literally.
6643    # So we just punt and use a minimum line length of 8192.
6644    lt_cv_sys_max_cmd_len=8192;
6645    ;;
6646
6647  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6648    # This has been around since 386BSD, at least.  Likely further.
6649    if test -x /sbin/sysctl; then
6650      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6651    elif test -x /usr/sbin/sysctl; then
6652      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6653    else
6654      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6655    fi
6656    # And add a safety zone
6657    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6658    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6659    ;;
6660
6661  interix*)
6662    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6663    lt_cv_sys_max_cmd_len=196608
6664    ;;
6665
6666  osf*)
6667    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6668    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6669    # nice to cause kernel panics so lets avoid the loop below.
6670    # First set a reasonable default.
6671    lt_cv_sys_max_cmd_len=16384
6672    #
6673    if test -x /sbin/sysconfig; then
6674      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6675        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6676      esac
6677    fi
6678    ;;
6679  sco3.2v5*)
6680    lt_cv_sys_max_cmd_len=102400
6681    ;;
6682  sysv5* | sco5v6* | sysv4.2uw2*)
6683    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6684    if test -n "$kargmax"; then
6685      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6686    else
6687      lt_cv_sys_max_cmd_len=32768
6688    fi
6689    ;;
6690  *)
6691    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6692    if test -n "$lt_cv_sys_max_cmd_len"; then
6693      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6694      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6695    else
6696      # Make teststring a little bigger before we do anything with it.
6697      # a 1K string should be a reasonable start.
6698      for i in 1 2 3 4 5 6 7 8 ; do
6699        teststring=$teststring$teststring
6700      done
6701      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6702      # If test is not a shell built-in, we'll probably end up computing a
6703      # maximum length that is only half of the actual maximum length, but
6704      # we can't tell.
6705      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6706	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6707	      test $i != 17 # 1/2 MB should be enough
6708      do
6709        i=`expr $i + 1`
6710        teststring=$teststring$teststring
6711      done
6712      # Only check the string length outside the loop.
6713      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6714      teststring=
6715      # Add a significant safety factor because C++ compilers can tack on
6716      # massive amounts of additional arguments before passing them to the
6717      # linker.  It appears as though 1/2 is a usable value.
6718      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6719    fi
6720    ;;
6721  esac
6722
6723fi
6724
6725if test -n $lt_cv_sys_max_cmd_len ; then
6726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6727$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6728else
6729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6730$as_echo "none" >&6; }
6731fi
6732max_cmd_len=$lt_cv_sys_max_cmd_len
6733
6734
6735
6736
6737
6738
6739: ${CP="cp -f"}
6740: ${MV="mv -f"}
6741: ${RM="rm -f"}
6742
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6744$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6745# Try some XSI features
6746xsi_shell=no
6747( _lt_dummy="a/b/c"
6748  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6749      = c,a/b,, \
6750    && eval 'test $(( 1 + 1 )) -eq 2 \
6751    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6752  && xsi_shell=yes
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6754$as_echo "$xsi_shell" >&6; }
6755
6756
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6758$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6759lt_shell_append=no
6760( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6761    >/dev/null 2>&1 \
6762  && lt_shell_append=yes
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6764$as_echo "$lt_shell_append" >&6; }
6765
6766
6767if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6768  lt_unset=unset
6769else
6770  lt_unset=false
6771fi
6772
6773
6774
6775
6776
6777# test EBCDIC or ASCII
6778case `echo X|tr X '\101'` in
6779 A) # ASCII based system
6780    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6781  lt_SP2NL='tr \040 \012'
6782  lt_NL2SP='tr \015\012 \040\040'
6783  ;;
6784 *) # EBCDIC based system
6785  lt_SP2NL='tr \100 \n'
6786  lt_NL2SP='tr \r\n \100\100'
6787  ;;
6788esac
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6799$as_echo_n "checking for $LD option to reload object files... " >&6; }
6800if ${lt_cv_ld_reload_flag+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  lt_cv_ld_reload_flag='-r'
6804fi
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6806$as_echo "$lt_cv_ld_reload_flag" >&6; }
6807reload_flag=$lt_cv_ld_reload_flag
6808case $reload_flag in
6809"" | " "*) ;;
6810*) reload_flag=" $reload_flag" ;;
6811esac
6812reload_cmds='$LD$reload_flag -o $output$reload_objs'
6813case $host_os in
6814  darwin*)
6815    if test "$GCC" = yes; then
6816      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6817    else
6818      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6819    fi
6820    ;;
6821esac
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831if test -n "$ac_tool_prefix"; then
6832  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6833set dummy ${ac_tool_prefix}objdump; ac_word=$2
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835$as_echo_n "checking for $ac_word... " >&6; }
6836if ${ac_cv_prog_OBJDUMP+:} false; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839  if test -n "$OBJDUMP"; then
6840  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6841else
6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845  IFS=$as_save_IFS
6846  test -z "$as_dir" && as_dir=.
6847    for ac_exec_ext in '' $ac_executable_extensions; do
6848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851    break 2
6852  fi
6853done
6854  done
6855IFS=$as_save_IFS
6856
6857fi
6858fi
6859OBJDUMP=$ac_cv_prog_OBJDUMP
6860if test -n "$OBJDUMP"; then
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6862$as_echo "$OBJDUMP" >&6; }
6863else
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865$as_echo "no" >&6; }
6866fi
6867
6868
6869fi
6870if test -z "$ac_cv_prog_OBJDUMP"; then
6871  ac_ct_OBJDUMP=$OBJDUMP
6872  # Extract the first word of "objdump", so it can be a program name with args.
6873set dummy objdump; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6877  $as_echo_n "(cached) " >&6
6878else
6879  if test -n "$ac_ct_OBJDUMP"; then
6880  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885  IFS=$as_save_IFS
6886  test -z "$as_dir" && as_dir=.
6887    for ac_exec_ext in '' $ac_executable_extensions; do
6888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891    break 2
6892  fi
6893done
6894  done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6900if test -n "$ac_ct_OBJDUMP"; then
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6902$as_echo "$ac_ct_OBJDUMP" >&6; }
6903else
6904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908  if test "x$ac_ct_OBJDUMP" = x; then
6909    OBJDUMP="false"
6910  else
6911    case $cross_compiling:$ac_tool_warned in
6912yes:)
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917    OBJDUMP=$ac_ct_OBJDUMP
6918  fi
6919else
6920  OBJDUMP="$ac_cv_prog_OBJDUMP"
6921fi
6922
6923test -z "$OBJDUMP" && OBJDUMP=objdump
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6934$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6935if ${lt_cv_deplibs_check_method+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  lt_cv_file_magic_cmd='$MAGIC_CMD'
6939lt_cv_file_magic_test_file=
6940lt_cv_deplibs_check_method='unknown'
6941# Need to set the preceding variable on all platforms that support
6942# interlibrary dependencies.
6943# 'none' -- dependencies not supported.
6944# `unknown' -- same as none, but documents that we really don't know.
6945# 'pass_all' -- all dependencies passed with no checks.
6946# 'test_compile' -- check by making test program.
6947# 'file_magic [[regex]]' -- check by looking for files in library path
6948# which responds to the $file_magic_cmd with a given extended regex.
6949# If you have `file' or equivalent on your system and you're not sure
6950# whether `pass_all' will *always* work, you probably want this one.
6951
6952case $host_os in
6953aix[4-9]*)
6954  lt_cv_deplibs_check_method=pass_all
6955  ;;
6956
6957beos*)
6958  lt_cv_deplibs_check_method=pass_all
6959  ;;
6960
6961bsdi[45]*)
6962  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6963  lt_cv_file_magic_cmd='/usr/bin/file -L'
6964  lt_cv_file_magic_test_file=/shlib/libc.so
6965  ;;
6966
6967cygwin*)
6968  # func_win32_libid is a shell function defined in ltmain.sh
6969  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6970  lt_cv_file_magic_cmd='func_win32_libid'
6971  ;;
6972
6973mingw* | pw32*)
6974  # Base MSYS/MinGW do not provide the 'file' command needed by
6975  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6976  # unless we find 'file', for example because we are cross-compiling.
6977  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6978  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6979    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6980    lt_cv_file_magic_cmd='func_win32_libid'
6981  else
6982    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6983    lt_cv_file_magic_cmd='$OBJDUMP -f'
6984  fi
6985  ;;
6986
6987cegcc*)
6988  # use the weaker test based on 'objdump'. See mingw*.
6989  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6990  lt_cv_file_magic_cmd='$OBJDUMP -f'
6991  ;;
6992
6993darwin* | rhapsody*)
6994  lt_cv_deplibs_check_method=pass_all
6995  ;;
6996
6997freebsd* | dragonfly*)
6998  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6999    case $host_cpu in
7000    i*86 )
7001      # Not sure whether the presence of OpenBSD here was a mistake.
7002      # Let's accept both of them until this is cleared up.
7003      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7004      lt_cv_file_magic_cmd=/usr/bin/file
7005      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7006      ;;
7007    esac
7008  else
7009    lt_cv_deplibs_check_method=pass_all
7010  fi
7011  ;;
7012
7013gnu*)
7014  lt_cv_deplibs_check_method=pass_all
7015  ;;
7016
7017haiku*)
7018  lt_cv_deplibs_check_method=pass_all
7019  ;;
7020
7021hpux10.20* | hpux11*)
7022  lt_cv_file_magic_cmd=/usr/bin/file
7023  case $host_cpu in
7024  ia64*)
7025    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7026    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7027    ;;
7028  hppa*64*)
7029    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]'
7030    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7031    ;;
7032  *)
7033    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7034    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7035    ;;
7036  esac
7037  ;;
7038
7039interix[3-9]*)
7040  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7041  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7042  ;;
7043
7044irix5* | irix6* | nonstopux*)
7045  case $LD in
7046  *-32|*"-32 ") libmagic=32-bit;;
7047  *-n32|*"-n32 ") libmagic=N32;;
7048  *-64|*"-64 ") libmagic=64-bit;;
7049  *) libmagic=never-match;;
7050  esac
7051  lt_cv_deplibs_check_method=pass_all
7052  ;;
7053
7054# This must be Linux ELF.
7055linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7056  lt_cv_deplibs_check_method=pass_all
7057  ;;
7058
7059netbsd*)
7060  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7061    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7062  else
7063    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7064  fi
7065  ;;
7066
7067newos6*)
7068  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7069  lt_cv_file_magic_cmd=/usr/bin/file
7070  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7071  ;;
7072
7073*nto* | *qnx*)
7074  lt_cv_deplibs_check_method=pass_all
7075  ;;
7076
7077openbsd*)
7078  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7079    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7080  else
7081    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7082  fi
7083  ;;
7084
7085osf3* | osf4* | osf5*)
7086  lt_cv_deplibs_check_method=pass_all
7087  ;;
7088
7089rdos*)
7090  lt_cv_deplibs_check_method=pass_all
7091  ;;
7092
7093solaris*)
7094  lt_cv_deplibs_check_method=pass_all
7095  ;;
7096
7097sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7098  lt_cv_deplibs_check_method=pass_all
7099  ;;
7100
7101sysv4 | sysv4.3*)
7102  case $host_vendor in
7103  motorola)
7104    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]'
7105    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7106    ;;
7107  ncr)
7108    lt_cv_deplibs_check_method=pass_all
7109    ;;
7110  sequent)
7111    lt_cv_file_magic_cmd='/bin/file'
7112    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7113    ;;
7114  sni)
7115    lt_cv_file_magic_cmd='/bin/file'
7116    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7117    lt_cv_file_magic_test_file=/lib/libc.so
7118    ;;
7119  siemens)
7120    lt_cv_deplibs_check_method=pass_all
7121    ;;
7122  pc)
7123    lt_cv_deplibs_check_method=pass_all
7124    ;;
7125  esac
7126  ;;
7127
7128tpf*)
7129  lt_cv_deplibs_check_method=pass_all
7130  ;;
7131esac
7132
7133fi
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7135$as_echo "$lt_cv_deplibs_check_method" >&6; }
7136file_magic_cmd=$lt_cv_file_magic_cmd
7137deplibs_check_method=$lt_cv_deplibs_check_method
7138test -z "$deplibs_check_method" && deplibs_check_method=unknown
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151if test -n "$ac_tool_prefix"; then
7152  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7153set dummy ${ac_tool_prefix}ar; ac_word=$2
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155$as_echo_n "checking for $ac_word... " >&6; }
7156if ${ac_cv_prog_AR+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  if test -n "$AR"; then
7160  ac_cv_prog_AR="$AR" # Let the user override the test.
7161else
7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163for as_dir in $PATH
7164do
7165  IFS=$as_save_IFS
7166  test -z "$as_dir" && as_dir=.
7167    for ac_exec_ext in '' $ac_executable_extensions; do
7168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169    ac_cv_prog_AR="${ac_tool_prefix}ar"
7170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171    break 2
7172  fi
7173done
7174  done
7175IFS=$as_save_IFS
7176
7177fi
7178fi
7179AR=$ac_cv_prog_AR
7180if test -n "$AR"; then
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7182$as_echo "$AR" >&6; }
7183else
7184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
7186fi
7187
7188
7189fi
7190if test -z "$ac_cv_prog_AR"; then
7191  ac_ct_AR=$AR
7192  # Extract the first word of "ar", so it can be a program name with args.
7193set dummy ar; ac_word=$2
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195$as_echo_n "checking for $ac_word... " >&6; }
7196if ${ac_cv_prog_ac_ct_AR+:} false; then :
7197  $as_echo_n "(cached) " >&6
7198else
7199  if test -n "$ac_ct_AR"; then
7200  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205  IFS=$as_save_IFS
7206  test -z "$as_dir" && as_dir=.
7207    for ac_exec_ext in '' $ac_executable_extensions; do
7208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209    ac_cv_prog_ac_ct_AR="ar"
7210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211    break 2
7212  fi
7213done
7214  done
7215IFS=$as_save_IFS
7216
7217fi
7218fi
7219ac_ct_AR=$ac_cv_prog_ac_ct_AR
7220if test -n "$ac_ct_AR"; then
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7222$as_echo "$ac_ct_AR" >&6; }
7223else
7224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225$as_echo "no" >&6; }
7226fi
7227
7228  if test "x$ac_ct_AR" = x; then
7229    AR="false"
7230  else
7231    case $cross_compiling:$ac_tool_warned in
7232yes:)
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235ac_tool_warned=yes ;;
7236esac
7237    AR=$ac_ct_AR
7238  fi
7239else
7240  AR="$ac_cv_prog_AR"
7241fi
7242
7243test -z "$AR" && AR=ar
7244test -z "$AR_FLAGS" && AR_FLAGS=cru
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256if test -n "$ac_tool_prefix"; then
7257  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7258set dummy ${ac_tool_prefix}strip; ac_word=$2
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260$as_echo_n "checking for $ac_word... " >&6; }
7261if ${ac_cv_prog_STRIP+:} false; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264  if test -n "$STRIP"; then
7265  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270  IFS=$as_save_IFS
7271  test -z "$as_dir" && as_dir=.
7272    for ac_exec_ext in '' $ac_executable_extensions; do
7273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276    break 2
7277  fi
7278done
7279  done
7280IFS=$as_save_IFS
7281
7282fi
7283fi
7284STRIP=$ac_cv_prog_STRIP
7285if test -n "$STRIP"; then
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7287$as_echo "$STRIP" >&6; }
7288else
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
7291fi
7292
7293
7294fi
7295if test -z "$ac_cv_prog_STRIP"; then
7296  ac_ct_STRIP=$STRIP
7297  # Extract the first word of "strip", so it can be a program name with args.
7298set dummy strip; ac_word=$2
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300$as_echo_n "checking for $ac_word... " >&6; }
7301if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7302  $as_echo_n "(cached) " >&6
7303else
7304  if test -n "$ac_ct_STRIP"; then
7305  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7306else
7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310  IFS=$as_save_IFS
7311  test -z "$as_dir" && as_dir=.
7312    for ac_exec_ext in '' $ac_executable_extensions; do
7313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314    ac_cv_prog_ac_ct_STRIP="strip"
7315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316    break 2
7317  fi
7318done
7319  done
7320IFS=$as_save_IFS
7321
7322fi
7323fi
7324ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7325if test -n "$ac_ct_STRIP"; then
7326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7327$as_echo "$ac_ct_STRIP" >&6; }
7328else
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330$as_echo "no" >&6; }
7331fi
7332
7333  if test "x$ac_ct_STRIP" = x; then
7334    STRIP=":"
7335  else
7336    case $cross_compiling:$ac_tool_warned in
7337yes:)
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7340ac_tool_warned=yes ;;
7341esac
7342    STRIP=$ac_ct_STRIP
7343  fi
7344else
7345  STRIP="$ac_cv_prog_STRIP"
7346fi
7347
7348test -z "$STRIP" && STRIP=:
7349
7350
7351
7352
7353
7354
7355if test -n "$ac_tool_prefix"; then
7356  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7357set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359$as_echo_n "checking for $ac_word... " >&6; }
7360if ${ac_cv_prog_RANLIB+:} false; then :
7361  $as_echo_n "(cached) " >&6
7362else
7363  if test -n "$RANLIB"; then
7364  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7365else
7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369  IFS=$as_save_IFS
7370  test -z "$as_dir" && as_dir=.
7371    for ac_exec_ext in '' $ac_executable_extensions; do
7372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375    break 2
7376  fi
7377done
7378  done
7379IFS=$as_save_IFS
7380
7381fi
7382fi
7383RANLIB=$ac_cv_prog_RANLIB
7384if test -n "$RANLIB"; then
7385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7386$as_echo "$RANLIB" >&6; }
7387else
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389$as_echo "no" >&6; }
7390fi
7391
7392
7393fi
7394if test -z "$ac_cv_prog_RANLIB"; then
7395  ac_ct_RANLIB=$RANLIB
7396  # Extract the first word of "ranlib", so it can be a program name with args.
7397set dummy ranlib; ac_word=$2
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399$as_echo_n "checking for $ac_word... " >&6; }
7400if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  if test -n "$ac_ct_RANLIB"; then
7404  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7405else
7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409  IFS=$as_save_IFS
7410  test -z "$as_dir" && as_dir=.
7411    for ac_exec_ext in '' $ac_executable_extensions; do
7412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413    ac_cv_prog_ac_ct_RANLIB="ranlib"
7414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415    break 2
7416  fi
7417done
7418  done
7419IFS=$as_save_IFS
7420
7421fi
7422fi
7423ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7424if test -n "$ac_ct_RANLIB"; then
7425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7426$as_echo "$ac_ct_RANLIB" >&6; }
7427else
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429$as_echo "no" >&6; }
7430fi
7431
7432  if test "x$ac_ct_RANLIB" = x; then
7433    RANLIB=":"
7434  else
7435    case $cross_compiling:$ac_tool_warned in
7436yes:)
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439ac_tool_warned=yes ;;
7440esac
7441    RANLIB=$ac_ct_RANLIB
7442  fi
7443else
7444  RANLIB="$ac_cv_prog_RANLIB"
7445fi
7446
7447test -z "$RANLIB" && RANLIB=:
7448
7449
7450
7451
7452
7453
7454# Determine commands to create old-style static archives.
7455old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7456old_postinstall_cmds='chmod 644 $oldlib'
7457old_postuninstall_cmds=
7458
7459if test -n "$RANLIB"; then
7460  case $host_os in
7461  openbsd*)
7462    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7463    ;;
7464  *)
7465    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7466    ;;
7467  esac
7468  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7469fi
7470
7471case $host_os in
7472  darwin*)
7473    lock_old_archive_extraction=yes ;;
7474  *)
7475    lock_old_archive_extraction=no ;;
7476esac
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516# If no C compiler was specified, use CC.
7517LTCC=${LTCC-"$CC"}
7518
7519# If no C compiler flags were specified, use CFLAGS.
7520LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7521
7522# Allow CC to be a program name with arguments.
7523compiler=$CC
7524
7525
7526# Check for command to grab the raw symbol name followed by C symbol from nm.
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7528$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7529if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532
7533# These are sane defaults that work on at least a few old systems.
7534# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7535
7536# Character class describing NM global symbol codes.
7537symcode='[BCDEGRST]'
7538
7539# Regexp to match symbols that can be accessed directly from C.
7540sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7541
7542# Define system-specific variables.
7543case $host_os in
7544aix*)
7545  symcode='[BCDT]'
7546  ;;
7547cygwin* | mingw* | pw32* | cegcc*)
7548  symcode='[ABCDGISTW]'
7549  ;;
7550hpux*)
7551  if test "$host_cpu" = ia64; then
7552    symcode='[ABCDEGRST]'
7553  fi
7554  ;;
7555irix* | nonstopux*)
7556  symcode='[BCDEGRST]'
7557  ;;
7558osf*)
7559  symcode='[BCDEGQRST]'
7560  ;;
7561solaris*)
7562  symcode='[BDRT]'
7563  ;;
7564sco3.2v5*)
7565  symcode='[DT]'
7566  ;;
7567sysv4.2uw2*)
7568  symcode='[DT]'
7569  ;;
7570sysv5* | sco5v6* | unixware* | OpenUNIX*)
7571  symcode='[ABDT]'
7572  ;;
7573sysv4)
7574  symcode='[DFNSTU]'
7575  ;;
7576esac
7577
7578# If we're using GNU nm, then use its standard symbol codes.
7579case `$NM -V 2>&1` in
7580*GNU* | *'with BFD'*)
7581  symcode='[ABCDGIRSTW]' ;;
7582esac
7583
7584# Transform an extracted symbol line into a proper C declaration.
7585# Some systems (esp. on ia64) link data and code symbols differently,
7586# so use this general approach.
7587lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7588
7589# Transform an extracted symbol line into symbol name and symbol address
7590lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7591lt_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'"
7592
7593# Handle CRLF in mingw tool chain
7594opt_cr=
7595case $build_os in
7596mingw*)
7597  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7598  ;;
7599esac
7600
7601# Try without a prefix underscore, then with it.
7602for ac_symprfx in "" "_"; do
7603
7604  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7605  symxfrm="\\1 $ac_symprfx\\2 \\2"
7606
7607  # Write the raw and C identifiers.
7608  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7609    # Fake it for dumpbin and say T for any non-static function
7610    # and D for any global variable.
7611    # Also find C++ and __fastcall symbols from MSVC++,
7612    # which start with @ or ?.
7613    lt_cv_sys_global_symbol_pipe="$AWK '"\
7614"     {last_section=section; section=\$ 3};"\
7615"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7616"     \$ 0!~/External *\|/{next};"\
7617"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7618"     {if(hide[section]) next};"\
7619"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7620"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7621"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7622"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7623"     ' prfx=^$ac_symprfx"
7624  else
7625    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7626  fi
7627
7628  # Check to see that the pipe works correctly.
7629  pipe_works=no
7630
7631  rm -f conftest*
7632  cat > conftest.$ac_ext <<_LT_EOF
7633#ifdef __cplusplus
7634extern "C" {
7635#endif
7636char nm_test_var;
7637void nm_test_func(void);
7638void nm_test_func(void){}
7639#ifdef __cplusplus
7640}
7641#endif
7642int main(){nm_test_var='a';nm_test_func();return(0);}
7643_LT_EOF
7644
7645  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7646  (eval $ac_compile) 2>&5
7647  ac_status=$?
7648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649  test $ac_status = 0; }; then
7650    # Now try to grab the symbols.
7651    nlist=conftest.nm
7652    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7653  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7654  ac_status=$?
7655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656  test $ac_status = 0; } && test -s "$nlist"; then
7657      # Try sorting and uniquifying the output.
7658      if sort "$nlist" | uniq > "$nlist"T; then
7659	mv -f "$nlist"T "$nlist"
7660      else
7661	rm -f "$nlist"T
7662      fi
7663
7664      # Make sure that we snagged all the symbols we need.
7665      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7666	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7667	  cat <<_LT_EOF > conftest.$ac_ext
7668#ifdef __cplusplus
7669extern "C" {
7670#endif
7671
7672_LT_EOF
7673	  # Now generate the symbol file.
7674	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7675
7676	  cat <<_LT_EOF >> conftest.$ac_ext
7677
7678/* The mapping between symbol names and symbols.  */
7679const struct {
7680  const char *name;
7681  void       *address;
7682}
7683lt__PROGRAM__LTX_preloaded_symbols[] =
7684{
7685  { "@PROGRAM@", (void *) 0 },
7686_LT_EOF
7687	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7688	  cat <<\_LT_EOF >> conftest.$ac_ext
7689  {0, (void *) 0}
7690};
7691
7692/* This works around a problem in FreeBSD linker */
7693#ifdef FREEBSD_WORKAROUND
7694static const void *lt_preloaded_setup() {
7695  return lt__PROGRAM__LTX_preloaded_symbols;
7696}
7697#endif
7698
7699#ifdef __cplusplus
7700}
7701#endif
7702_LT_EOF
7703	  # Now try linking the two files.
7704	  mv conftest.$ac_objext conftstm.$ac_objext
7705	  lt_save_LIBS="$LIBS"
7706	  lt_save_CFLAGS="$CFLAGS"
7707	  LIBS="conftstm.$ac_objext"
7708	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7709	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7710  (eval $ac_link) 2>&5
7711  ac_status=$?
7712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7714	    pipe_works=yes
7715	  fi
7716	  LIBS="$lt_save_LIBS"
7717	  CFLAGS="$lt_save_CFLAGS"
7718	else
7719	  echo "cannot find nm_test_func in $nlist" >&5
7720	fi
7721      else
7722	echo "cannot find nm_test_var in $nlist" >&5
7723      fi
7724    else
7725      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7726    fi
7727  else
7728    echo "$progname: failed program was:" >&5
7729    cat conftest.$ac_ext >&5
7730  fi
7731  rm -rf conftest* conftst*
7732
7733  # Do not use the global_symbol_pipe unless it works.
7734  if test "$pipe_works" = yes; then
7735    break
7736  else
7737    lt_cv_sys_global_symbol_pipe=
7738  fi
7739done
7740
7741fi
7742
7743if test -z "$lt_cv_sys_global_symbol_pipe"; then
7744  lt_cv_sys_global_symbol_to_cdecl=
7745fi
7746if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7748$as_echo "failed" >&6; }
7749else
7750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7751$as_echo "ok" >&6; }
7752fi
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775# Check whether --enable-libtool-lock was given.
7776if test "${enable_libtool_lock+set}" = set; then :
7777  enableval=$enable_libtool_lock;
7778fi
7779
7780test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7781
7782# Some flags need to be propagated to the compiler or linker for good
7783# libtool support.
7784case $host in
7785ia64-*-hpux*)
7786  # Find out which ABI we are using.
7787  echo 'int i;' > conftest.$ac_ext
7788  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7789  (eval $ac_compile) 2>&5
7790  ac_status=$?
7791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7792  test $ac_status = 0; }; then
7793    case `/usr/bin/file conftest.$ac_objext` in
7794      *ELF-32*)
7795	HPUX_IA64_MODE="32"
7796	;;
7797      *ELF-64*)
7798	HPUX_IA64_MODE="64"
7799	;;
7800    esac
7801  fi
7802  rm -rf conftest*
7803  ;;
7804*-*-irix6*)
7805  # Find out which ABI we are using.
7806  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7807  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7808  (eval $ac_compile) 2>&5
7809  ac_status=$?
7810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7811  test $ac_status = 0; }; then
7812    if test "$lt_cv_prog_gnu_ld" = yes; then
7813      case `/usr/bin/file conftest.$ac_objext` in
7814	*32-bit*)
7815	  LD="${LD-ld} -melf32bsmip"
7816	  ;;
7817	*N32*)
7818	  LD="${LD-ld} -melf32bmipn32"
7819	  ;;
7820	*64-bit*)
7821	  LD="${LD-ld} -melf64bmip"
7822	;;
7823      esac
7824    else
7825      case `/usr/bin/file conftest.$ac_objext` in
7826	*32-bit*)
7827	  LD="${LD-ld} -32"
7828	  ;;
7829	*N32*)
7830	  LD="${LD-ld} -n32"
7831	  ;;
7832	*64-bit*)
7833	  LD="${LD-ld} -64"
7834	  ;;
7835      esac
7836    fi
7837  fi
7838  rm -rf conftest*
7839  ;;
7840
7841x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7842s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7843  # Find out which ABI we are using.
7844  echo 'int i;' > conftest.$ac_ext
7845  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7846  (eval $ac_compile) 2>&5
7847  ac_status=$?
7848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7849  test $ac_status = 0; }; then
7850    case `/usr/bin/file conftest.o` in
7851      *32-bit*)
7852	case $host in
7853	  x86_64-*kfreebsd*-gnu)
7854	    LD="${LD-ld} -m elf_i386_fbsd"
7855	    ;;
7856	  x86_64-*linux*)
7857	    case `/usr/bin/file conftest.o` in
7858	      *x86-64*)
7859		LD="${LD-ld} -m elf32_x86_64"
7860		;;
7861	      *)
7862		LD="${LD-ld} -m elf_i386"
7863		;;
7864	    esac
7865	    ;;
7866	  powerpc64le-*linux*)
7867	    LD="${LD-ld} -m elf32lppclinux"
7868	    ;;
7869	  powerpc64-*linux*)
7870	    LD="${LD-ld} -m elf32ppclinux"
7871	    ;;
7872	  s390x-*linux*)
7873	    LD="${LD-ld} -m elf_s390"
7874	    ;;
7875	  sparc64-*linux*)
7876	    LD="${LD-ld} -m elf32_sparc"
7877	    ;;
7878	esac
7879	;;
7880      *64-bit*)
7881	case $host in
7882	  x86_64-*kfreebsd*-gnu)
7883	    LD="${LD-ld} -m elf_x86_64_fbsd"
7884	    ;;
7885	  x86_64-*linux*)
7886	    LD="${LD-ld} -m elf_x86_64"
7887	    ;;
7888	  powerpcle-*linux*)
7889	    LD="${LD-ld} -m elf64lppc"
7890	    ;;
7891	  powerpc-*linux*)
7892	    LD="${LD-ld} -m elf64ppc"
7893	    ;;
7894	  s390*-*linux*|s390*-*tpf*)
7895	    LD="${LD-ld} -m elf64_s390"
7896	    ;;
7897	  sparc*-*linux*)
7898	    LD="${LD-ld} -m elf64_sparc"
7899	    ;;
7900	esac
7901	;;
7902    esac
7903  fi
7904  rm -rf conftest*
7905  ;;
7906
7907*-*-sco3.2v5*)
7908  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7909  SAVE_CFLAGS="$CFLAGS"
7910  CFLAGS="$CFLAGS -belf"
7911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7912$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7913if ${lt_cv_cc_needs_belf+:} false; then :
7914  $as_echo_n "(cached) " >&6
7915else
7916  ac_ext=c
7917ac_cpp='$CPP $CPPFLAGS'
7918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h.  */
7924
7925int
7926main ()
7927{
7928
7929  ;
7930  return 0;
7931}
7932_ACEOF
7933if ac_fn_c_try_link "$LINENO"; then :
7934  lt_cv_cc_needs_belf=yes
7935else
7936  lt_cv_cc_needs_belf=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext \
7939    conftest$ac_exeext conftest.$ac_ext
7940     ac_ext=c
7941ac_cpp='$CPP $CPPFLAGS'
7942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944ac_compiler_gnu=$ac_cv_c_compiler_gnu
7945
7946fi
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7948$as_echo "$lt_cv_cc_needs_belf" >&6; }
7949  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7950    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7951    CFLAGS="$SAVE_CFLAGS"
7952  fi
7953  ;;
7954sparc*-*solaris*)
7955  # Find out which ABI we are using.
7956  echo 'int i;' > conftest.$ac_ext
7957  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7958  (eval $ac_compile) 2>&5
7959  ac_status=$?
7960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7961  test $ac_status = 0; }; then
7962    case `/usr/bin/file conftest.o` in
7963    *64-bit*)
7964      case $lt_cv_prog_gnu_ld in
7965      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7966      *)
7967	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7968	  LD="${LD-ld} -64"
7969	fi
7970	;;
7971      esac
7972      ;;
7973    esac
7974  fi
7975  rm -rf conftest*
7976  ;;
7977esac
7978
7979need_locks="$enable_libtool_lock"
7980
7981
7982  case $host_os in
7983    rhapsody* | darwin*)
7984    if test -n "$ac_tool_prefix"; then
7985  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7986set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988$as_echo_n "checking for $ac_word... " >&6; }
7989if ${ac_cv_prog_DSYMUTIL+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  if test -n "$DSYMUTIL"; then
7993  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7994else
7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996for as_dir in $PATH
7997do
7998  IFS=$as_save_IFS
7999  test -z "$as_dir" && as_dir=.
8000    for ac_exec_ext in '' $ac_executable_extensions; do
8001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004    break 2
8005  fi
8006done
8007  done
8008IFS=$as_save_IFS
8009
8010fi
8011fi
8012DSYMUTIL=$ac_cv_prog_DSYMUTIL
8013if test -n "$DSYMUTIL"; then
8014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8015$as_echo "$DSYMUTIL" >&6; }
8016else
8017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018$as_echo "no" >&6; }
8019fi
8020
8021
8022fi
8023if test -z "$ac_cv_prog_DSYMUTIL"; then
8024  ac_ct_DSYMUTIL=$DSYMUTIL
8025  # Extract the first word of "dsymutil", so it can be a program name with args.
8026set dummy dsymutil; ac_word=$2
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028$as_echo_n "checking for $ac_word... " >&6; }
8029if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8030  $as_echo_n "(cached) " >&6
8031else
8032  if test -n "$ac_ct_DSYMUTIL"; then
8033  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8034else
8035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036for as_dir in $PATH
8037do
8038  IFS=$as_save_IFS
8039  test -z "$as_dir" && as_dir=.
8040    for ac_exec_ext in '' $ac_executable_extensions; do
8041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044    break 2
8045  fi
8046done
8047  done
8048IFS=$as_save_IFS
8049
8050fi
8051fi
8052ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8053if test -n "$ac_ct_DSYMUTIL"; then
8054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8055$as_echo "$ac_ct_DSYMUTIL" >&6; }
8056else
8057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058$as_echo "no" >&6; }
8059fi
8060
8061  if test "x$ac_ct_DSYMUTIL" = x; then
8062    DSYMUTIL=":"
8063  else
8064    case $cross_compiling:$ac_tool_warned in
8065yes:)
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068ac_tool_warned=yes ;;
8069esac
8070    DSYMUTIL=$ac_ct_DSYMUTIL
8071  fi
8072else
8073  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8074fi
8075
8076    if test -n "$ac_tool_prefix"; then
8077  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8078set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080$as_echo_n "checking for $ac_word... " >&6; }
8081if ${ac_cv_prog_NMEDIT+:} false; then :
8082  $as_echo_n "(cached) " >&6
8083else
8084  if test -n "$NMEDIT"; then
8085  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8086else
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090  IFS=$as_save_IFS
8091  test -z "$as_dir" && as_dir=.
8092    for ac_exec_ext in '' $ac_executable_extensions; do
8093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096    break 2
8097  fi
8098done
8099  done
8100IFS=$as_save_IFS
8101
8102fi
8103fi
8104NMEDIT=$ac_cv_prog_NMEDIT
8105if test -n "$NMEDIT"; then
8106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8107$as_echo "$NMEDIT" >&6; }
8108else
8109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
8111fi
8112
8113
8114fi
8115if test -z "$ac_cv_prog_NMEDIT"; then
8116  ac_ct_NMEDIT=$NMEDIT
8117  # Extract the first word of "nmedit", so it can be a program name with args.
8118set dummy nmedit; ac_word=$2
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120$as_echo_n "checking for $ac_word... " >&6; }
8121if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8122  $as_echo_n "(cached) " >&6
8123else
8124  if test -n "$ac_ct_NMEDIT"; then
8125  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8126else
8127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128for as_dir in $PATH
8129do
8130  IFS=$as_save_IFS
8131  test -z "$as_dir" && as_dir=.
8132    for ac_exec_ext in '' $ac_executable_extensions; do
8133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136    break 2
8137  fi
8138done
8139  done
8140IFS=$as_save_IFS
8141
8142fi
8143fi
8144ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8145if test -n "$ac_ct_NMEDIT"; then
8146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8147$as_echo "$ac_ct_NMEDIT" >&6; }
8148else
8149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150$as_echo "no" >&6; }
8151fi
8152
8153  if test "x$ac_ct_NMEDIT" = x; then
8154    NMEDIT=":"
8155  else
8156    case $cross_compiling:$ac_tool_warned in
8157yes:)
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8160ac_tool_warned=yes ;;
8161esac
8162    NMEDIT=$ac_ct_NMEDIT
8163  fi
8164else
8165  NMEDIT="$ac_cv_prog_NMEDIT"
8166fi
8167
8168    if test -n "$ac_tool_prefix"; then
8169  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8170set dummy ${ac_tool_prefix}lipo; ac_word=$2
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172$as_echo_n "checking for $ac_word... " >&6; }
8173if ${ac_cv_prog_LIPO+:} false; then :
8174  $as_echo_n "(cached) " >&6
8175else
8176  if test -n "$LIPO"; then
8177  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8178else
8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182  IFS=$as_save_IFS
8183  test -z "$as_dir" && as_dir=.
8184    for ac_exec_ext in '' $ac_executable_extensions; do
8185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188    break 2
8189  fi
8190done
8191  done
8192IFS=$as_save_IFS
8193
8194fi
8195fi
8196LIPO=$ac_cv_prog_LIPO
8197if test -n "$LIPO"; then
8198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8199$as_echo "$LIPO" >&6; }
8200else
8201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }
8203fi
8204
8205
8206fi
8207if test -z "$ac_cv_prog_LIPO"; then
8208  ac_ct_LIPO=$LIPO
8209  # Extract the first word of "lipo", so it can be a program name with args.
8210set dummy lipo; ac_word=$2
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212$as_echo_n "checking for $ac_word... " >&6; }
8213if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  if test -n "$ac_ct_LIPO"; then
8217  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8218else
8219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220for as_dir in $PATH
8221do
8222  IFS=$as_save_IFS
8223  test -z "$as_dir" && as_dir=.
8224    for ac_exec_ext in '' $ac_executable_extensions; do
8225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226    ac_cv_prog_ac_ct_LIPO="lipo"
8227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228    break 2
8229  fi
8230done
8231  done
8232IFS=$as_save_IFS
8233
8234fi
8235fi
8236ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8237if test -n "$ac_ct_LIPO"; then
8238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8239$as_echo "$ac_ct_LIPO" >&6; }
8240else
8241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242$as_echo "no" >&6; }
8243fi
8244
8245  if test "x$ac_ct_LIPO" = x; then
8246    LIPO=":"
8247  else
8248    case $cross_compiling:$ac_tool_warned in
8249yes:)
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252ac_tool_warned=yes ;;
8253esac
8254    LIPO=$ac_ct_LIPO
8255  fi
8256else
8257  LIPO="$ac_cv_prog_LIPO"
8258fi
8259
8260    if test -n "$ac_tool_prefix"; then
8261  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8262set dummy ${ac_tool_prefix}otool; ac_word=$2
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264$as_echo_n "checking for $ac_word... " >&6; }
8265if ${ac_cv_prog_OTOOL+:} false; then :
8266  $as_echo_n "(cached) " >&6
8267else
8268  if test -n "$OTOOL"; then
8269  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8270else
8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274  IFS=$as_save_IFS
8275  test -z "$as_dir" && as_dir=.
8276    for ac_exec_ext in '' $ac_executable_extensions; do
8277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8278    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280    break 2
8281  fi
8282done
8283  done
8284IFS=$as_save_IFS
8285
8286fi
8287fi
8288OTOOL=$ac_cv_prog_OTOOL
8289if test -n "$OTOOL"; then
8290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8291$as_echo "$OTOOL" >&6; }
8292else
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
8295fi
8296
8297
8298fi
8299if test -z "$ac_cv_prog_OTOOL"; then
8300  ac_ct_OTOOL=$OTOOL
8301  # Extract the first word of "otool", so it can be a program name with args.
8302set dummy otool; ac_word=$2
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304$as_echo_n "checking for $ac_word... " >&6; }
8305if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308  if test -n "$ac_ct_OTOOL"; then
8309  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8310else
8311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312for as_dir in $PATH
8313do
8314  IFS=$as_save_IFS
8315  test -z "$as_dir" && as_dir=.
8316    for ac_exec_ext in '' $ac_executable_extensions; do
8317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318    ac_cv_prog_ac_ct_OTOOL="otool"
8319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320    break 2
8321  fi
8322done
8323  done
8324IFS=$as_save_IFS
8325
8326fi
8327fi
8328ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8329if test -n "$ac_ct_OTOOL"; then
8330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8331$as_echo "$ac_ct_OTOOL" >&6; }
8332else
8333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334$as_echo "no" >&6; }
8335fi
8336
8337  if test "x$ac_ct_OTOOL" = x; then
8338    OTOOL=":"
8339  else
8340    case $cross_compiling:$ac_tool_warned in
8341yes:)
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8344ac_tool_warned=yes ;;
8345esac
8346    OTOOL=$ac_ct_OTOOL
8347  fi
8348else
8349  OTOOL="$ac_cv_prog_OTOOL"
8350fi
8351
8352    if test -n "$ac_tool_prefix"; then
8353  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8354set dummy ${ac_tool_prefix}otool64; ac_word=$2
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356$as_echo_n "checking for $ac_word... " >&6; }
8357if ${ac_cv_prog_OTOOL64+:} false; then :
8358  $as_echo_n "(cached) " >&6
8359else
8360  if test -n "$OTOOL64"; then
8361  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8362else
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366  IFS=$as_save_IFS
8367  test -z "$as_dir" && as_dir=.
8368    for ac_exec_ext in '' $ac_executable_extensions; do
8369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372    break 2
8373  fi
8374done
8375  done
8376IFS=$as_save_IFS
8377
8378fi
8379fi
8380OTOOL64=$ac_cv_prog_OTOOL64
8381if test -n "$OTOOL64"; then
8382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8383$as_echo "$OTOOL64" >&6; }
8384else
8385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
8387fi
8388
8389
8390fi
8391if test -z "$ac_cv_prog_OTOOL64"; then
8392  ac_ct_OTOOL64=$OTOOL64
8393  # Extract the first word of "otool64", so it can be a program name with args.
8394set dummy otool64; ac_word=$2
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396$as_echo_n "checking for $ac_word... " >&6; }
8397if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8398  $as_echo_n "(cached) " >&6
8399else
8400  if test -n "$ac_ct_OTOOL64"; then
8401  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8402else
8403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404for as_dir in $PATH
8405do
8406  IFS=$as_save_IFS
8407  test -z "$as_dir" && as_dir=.
8408    for ac_exec_ext in '' $ac_executable_extensions; do
8409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410    ac_cv_prog_ac_ct_OTOOL64="otool64"
8411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412    break 2
8413  fi
8414done
8415  done
8416IFS=$as_save_IFS
8417
8418fi
8419fi
8420ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8421if test -n "$ac_ct_OTOOL64"; then
8422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8423$as_echo "$ac_ct_OTOOL64" >&6; }
8424else
8425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426$as_echo "no" >&6; }
8427fi
8428
8429  if test "x$ac_ct_OTOOL64" = x; then
8430    OTOOL64=":"
8431  else
8432    case $cross_compiling:$ac_tool_warned in
8433yes:)
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8436ac_tool_warned=yes ;;
8437esac
8438    OTOOL64=$ac_ct_OTOOL64
8439  fi
8440else
8441  OTOOL64="$ac_cv_prog_OTOOL64"
8442fi
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8471$as_echo_n "checking for -single_module linker flag... " >&6; }
8472if ${lt_cv_apple_cc_single_mod+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  lt_cv_apple_cc_single_mod=no
8476      if test -z "${LT_MULTI_MODULE}"; then
8477	# By default we will add the -single_module flag. You can override
8478	# by either setting the environment variable LT_MULTI_MODULE
8479	# non-empty at configure time, or by adding -multi_module to the
8480	# link flags.
8481	rm -rf libconftest.dylib*
8482	echo "int foo(void){return 1;}" > conftest.c
8483	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8484-dynamiclib -Wl,-single_module conftest.c" >&5
8485	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8486	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8487        _lt_result=$?
8488	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8489	  lt_cv_apple_cc_single_mod=yes
8490	else
8491	  cat conftest.err >&5
8492	fi
8493	rm -rf libconftest.dylib*
8494	rm -f conftest.*
8495      fi
8496fi
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8498$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8499    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8500$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8501if ${lt_cv_ld_exported_symbols_list+:} false; then :
8502  $as_echo_n "(cached) " >&6
8503else
8504  lt_cv_ld_exported_symbols_list=no
8505      save_LDFLAGS=$LDFLAGS
8506      echo "_main" > conftest.sym
8507      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8508      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h.  */
8510
8511int
8512main ()
8513{
8514
8515  ;
8516  return 0;
8517}
8518_ACEOF
8519if ac_fn_c_try_link "$LINENO"; then :
8520  lt_cv_ld_exported_symbols_list=yes
8521else
8522  lt_cv_ld_exported_symbols_list=no
8523fi
8524rm -f core conftest.err conftest.$ac_objext \
8525    conftest$ac_exeext conftest.$ac_ext
8526	LDFLAGS="$save_LDFLAGS"
8527
8528fi
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8530$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8532$as_echo_n "checking for -force_load linker flag... " >&6; }
8533if ${lt_cv_ld_force_load+:} false; then :
8534  $as_echo_n "(cached) " >&6
8535else
8536  lt_cv_ld_force_load=no
8537      cat > conftest.c << _LT_EOF
8538int forced_loaded() { return 2;}
8539_LT_EOF
8540      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8541      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8542      echo "$AR cru libconftest.a conftest.o" >&5
8543      $AR cru libconftest.a conftest.o 2>&5
8544      cat > conftest.c << _LT_EOF
8545int main() { return 0;}
8546_LT_EOF
8547      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8548      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8549      _lt_result=$?
8550      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8551	lt_cv_ld_force_load=yes
8552      else
8553	cat conftest.err >&5
8554      fi
8555        rm -f conftest.err libconftest.a conftest conftest.c
8556        rm -rf conftest.dSYM
8557
8558fi
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8560$as_echo "$lt_cv_ld_force_load" >&6; }
8561    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8562    # build without first building modern cctools / linker.
8563    case $host_cpu-$host_os in
8564    *-rhapsody* | *-darwin1.[012])
8565      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8566    *-darwin1.*)
8567      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8568    *-darwin*)
8569      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8570      # deployment target is forced to an earlier version.
8571      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8572	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8573	  ;;
8574	10.[012][,.]*)
8575	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8576	  ;;
8577	*)
8578	  ;;
8579     esac
8580    ;;
8581  esac
8582    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8583      _lt_dar_single_mod='$single_module'
8584    fi
8585    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8586      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8587    else
8588      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8589    fi
8590    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8591      _lt_dsymutil='~$DSYMUTIL $lib || :'
8592    else
8593      _lt_dsymutil=
8594    fi
8595    ;;
8596  esac
8597
8598for ac_header in dlfcn.h
8599do :
8600  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8601"
8602if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8603  cat >>confdefs.h <<_ACEOF
8604#define HAVE_DLFCN_H 1
8605_ACEOF
8606
8607fi
8608
8609done
8610
8611
8612
8613
8614
8615# Set options
8616
8617
8618
8619        enable_dlopen=no
8620
8621
8622  enable_win32_dll=no
8623
8624
8625            # Check whether --enable-shared was given.
8626if test "${enable_shared+set}" = set; then :
8627  enableval=$enable_shared; p=${PACKAGE-default}
8628    case $enableval in
8629    yes) enable_shared=yes ;;
8630    no) enable_shared=no ;;
8631    *)
8632      enable_shared=no
8633      # Look at the argument we got.  We use all the common list separators.
8634      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8635      for pkg in $enableval; do
8636	IFS="$lt_save_ifs"
8637	if test "X$pkg" = "X$p"; then
8638	  enable_shared=yes
8639	fi
8640      done
8641      IFS="$lt_save_ifs"
8642      ;;
8643    esac
8644else
8645  enable_shared=yes
8646fi
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656  # Check whether --enable-static was given.
8657if test "${enable_static+set}" = set; then :
8658  enableval=$enable_static; p=${PACKAGE-default}
8659    case $enableval in
8660    yes) enable_static=yes ;;
8661    no) enable_static=no ;;
8662    *)
8663     enable_static=no
8664      # Look at the argument we got.  We use all the common list separators.
8665      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8666      for pkg in $enableval; do
8667	IFS="$lt_save_ifs"
8668	if test "X$pkg" = "X$p"; then
8669	  enable_static=yes
8670	fi
8671      done
8672      IFS="$lt_save_ifs"
8673      ;;
8674    esac
8675else
8676  enable_static=yes
8677fi
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688# Check whether --with-pic was given.
8689if test "${with_pic+set}" = set; then :
8690  withval=$with_pic; pic_mode="$withval"
8691else
8692  pic_mode=default
8693fi
8694
8695
8696test -z "$pic_mode" && pic_mode=default
8697
8698
8699
8700
8701
8702
8703
8704  # Check whether --enable-fast-install was given.
8705if test "${enable_fast_install+set}" = set; then :
8706  enableval=$enable_fast_install; p=${PACKAGE-default}
8707    case $enableval in
8708    yes) enable_fast_install=yes ;;
8709    no) enable_fast_install=no ;;
8710    *)
8711      enable_fast_install=no
8712      # Look at the argument we got.  We use all the common list separators.
8713      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8714      for pkg in $enableval; do
8715	IFS="$lt_save_ifs"
8716	if test "X$pkg" = "X$p"; then
8717	  enable_fast_install=yes
8718	fi
8719      done
8720      IFS="$lt_save_ifs"
8721      ;;
8722    esac
8723else
8724  enable_fast_install=yes
8725fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737# This can be used to rebuild libtool when needed
8738LIBTOOL_DEPS="$ltmain"
8739
8740# Always use our own libtool.
8741LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768test -z "$LN_S" && LN_S="ln -s"
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783if test -n "${ZSH_VERSION+set}" ; then
8784   setopt NO_GLOB_SUBST
8785fi
8786
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8788$as_echo_n "checking for objdir... " >&6; }
8789if ${lt_cv_objdir+:} false; then :
8790  $as_echo_n "(cached) " >&6
8791else
8792  rm -f .libs 2>/dev/null
8793mkdir .libs 2>/dev/null
8794if test -d .libs; then
8795  lt_cv_objdir=.libs
8796else
8797  # MS-DOS does not allow filenames that begin with a dot.
8798  lt_cv_objdir=_libs
8799fi
8800rmdir .libs 2>/dev/null
8801fi
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8803$as_echo "$lt_cv_objdir" >&6; }
8804objdir=$lt_cv_objdir
8805
8806
8807
8808
8809
8810cat >>confdefs.h <<_ACEOF
8811#define LT_OBJDIR "$lt_cv_objdir/"
8812_ACEOF
8813
8814
8815
8816
8817case $host_os in
8818aix3*)
8819  # AIX sometimes has problems with the GCC collect2 program.  For some
8820  # reason, if we set the COLLECT_NAMES environment variable, the problems
8821  # vanish in a puff of smoke.
8822  if test "X${COLLECT_NAMES+set}" != Xset; then
8823    COLLECT_NAMES=
8824    export COLLECT_NAMES
8825  fi
8826  ;;
8827esac
8828
8829# Global variables:
8830ofile=libtool
8831can_build_shared=yes
8832
8833# All known linkers require a `.a' archive for static linking (except MSVC,
8834# which needs '.lib').
8835libext=a
8836
8837with_gnu_ld="$lt_cv_prog_gnu_ld"
8838
8839old_CC="$CC"
8840old_CFLAGS="$CFLAGS"
8841
8842# Set sane defaults for various variables
8843test -z "$CC" && CC=cc
8844test -z "$LTCC" && LTCC=$CC
8845test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8846test -z "$LD" && LD=ld
8847test -z "$ac_objext" && ac_objext=o
8848
8849for cc_temp in $compiler""; do
8850  case $cc_temp in
8851    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8852    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8853    \-*) ;;
8854    *) break;;
8855  esac
8856done
8857cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8858
8859
8860# Only perform the check for file, if the check method requires it
8861test -z "$MAGIC_CMD" && MAGIC_CMD=file
8862case $deplibs_check_method in
8863file_magic*)
8864  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8866$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8867if ${lt_cv_path_MAGIC_CMD+:} false; then :
8868  $as_echo_n "(cached) " >&6
8869else
8870  case $MAGIC_CMD in
8871[\\/*] |  ?:[\\/]*)
8872  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8873  ;;
8874*)
8875  lt_save_MAGIC_CMD="$MAGIC_CMD"
8876  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8877  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8878  for ac_dir in $ac_dummy; do
8879    IFS="$lt_save_ifs"
8880    test -z "$ac_dir" && ac_dir=.
8881    if test -f $ac_dir/${ac_tool_prefix}file; then
8882      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8883      if test -n "$file_magic_test_file"; then
8884	case $deplibs_check_method in
8885	"file_magic "*)
8886	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8887	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8889	    $EGREP "$file_magic_regex" > /dev/null; then
8890	    :
8891	  else
8892	    cat <<_LT_EOF 1>&2
8893
8894*** Warning: the command libtool uses to detect shared libraries,
8895*** $file_magic_cmd, produces output that libtool cannot recognize.
8896*** The result is that libtool may fail to recognize shared libraries
8897*** as such.  This will affect the creation of libtool libraries that
8898*** depend on shared libraries, but programs linked with such libtool
8899*** libraries will work regardless of this problem.  Nevertheless, you
8900*** may want to report the problem to your system manager and/or to
8901*** bug-libtool@gnu.org
8902
8903_LT_EOF
8904	  fi ;;
8905	esac
8906      fi
8907      break
8908    fi
8909  done
8910  IFS="$lt_save_ifs"
8911  MAGIC_CMD="$lt_save_MAGIC_CMD"
8912  ;;
8913esac
8914fi
8915
8916MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8917if test -n "$MAGIC_CMD"; then
8918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8919$as_echo "$MAGIC_CMD" >&6; }
8920else
8921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922$as_echo "no" >&6; }
8923fi
8924
8925
8926
8927
8928
8929if test -z "$lt_cv_path_MAGIC_CMD"; then
8930  if test -n "$ac_tool_prefix"; then
8931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8932$as_echo_n "checking for file... " >&6; }
8933if ${lt_cv_path_MAGIC_CMD+:} false; then :
8934  $as_echo_n "(cached) " >&6
8935else
8936  case $MAGIC_CMD in
8937[\\/*] |  ?:[\\/]*)
8938  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8939  ;;
8940*)
8941  lt_save_MAGIC_CMD="$MAGIC_CMD"
8942  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8943  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8944  for ac_dir in $ac_dummy; do
8945    IFS="$lt_save_ifs"
8946    test -z "$ac_dir" && ac_dir=.
8947    if test -f $ac_dir/file; then
8948      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8949      if test -n "$file_magic_test_file"; then
8950	case $deplibs_check_method in
8951	"file_magic "*)
8952	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8953	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8954	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8955	    $EGREP "$file_magic_regex" > /dev/null; then
8956	    :
8957	  else
8958	    cat <<_LT_EOF 1>&2
8959
8960*** Warning: the command libtool uses to detect shared libraries,
8961*** $file_magic_cmd, produces output that libtool cannot recognize.
8962*** The result is that libtool may fail to recognize shared libraries
8963*** as such.  This will affect the creation of libtool libraries that
8964*** depend on shared libraries, but programs linked with such libtool
8965*** libraries will work regardless of this problem.  Nevertheless, you
8966*** may want to report the problem to your system manager and/or to
8967*** bug-libtool@gnu.org
8968
8969_LT_EOF
8970	  fi ;;
8971	esac
8972      fi
8973      break
8974    fi
8975  done
8976  IFS="$lt_save_ifs"
8977  MAGIC_CMD="$lt_save_MAGIC_CMD"
8978  ;;
8979esac
8980fi
8981
8982MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8983if test -n "$MAGIC_CMD"; then
8984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8985$as_echo "$MAGIC_CMD" >&6; }
8986else
8987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988$as_echo "no" >&6; }
8989fi
8990
8991
8992  else
8993    MAGIC_CMD=:
8994  fi
8995fi
8996
8997  fi
8998  ;;
8999esac
9000
9001# Use C for the default configuration in the libtool script
9002
9003lt_save_CC="$CC"
9004ac_ext=c
9005ac_cpp='$CPP $CPPFLAGS'
9006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9008ac_compiler_gnu=$ac_cv_c_compiler_gnu
9009
9010
9011# Source file extension for C test sources.
9012ac_ext=c
9013
9014# Object file extension for compiled C test sources.
9015objext=o
9016objext=$objext
9017
9018# Code to be used in simple compile tests
9019lt_simple_compile_test_code="int some_variable = 0;"
9020
9021# Code to be used in simple link tests
9022lt_simple_link_test_code='int main(){return(0);}'
9023
9024
9025
9026
9027
9028
9029
9030# If no C compiler was specified, use CC.
9031LTCC=${LTCC-"$CC"}
9032
9033# If no C compiler flags were specified, use CFLAGS.
9034LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9035
9036# Allow CC to be a program name with arguments.
9037compiler=$CC
9038
9039# Save the default compiler, since it gets overwritten when the other
9040# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9041compiler_DEFAULT=$CC
9042
9043# save warnings/boilerplate of simple test code
9044ac_outfile=conftest.$ac_objext
9045echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9046eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9047_lt_compiler_boilerplate=`cat conftest.err`
9048$RM conftest*
9049
9050ac_outfile=conftest.$ac_objext
9051echo "$lt_simple_link_test_code" >conftest.$ac_ext
9052eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9053_lt_linker_boilerplate=`cat conftest.err`
9054$RM -r conftest*
9055
9056
9057## CAVEAT EMPTOR:
9058## There is no encapsulation within the following macros, do not change
9059## the running order or otherwise move them around unless you know exactly
9060## what you are doing...
9061if test -n "$compiler"; then
9062
9063lt_prog_compiler_no_builtin_flag=
9064
9065if test "$GCC" = yes; then
9066  case $cc_basename in
9067  nvcc*)
9068    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9069  *)
9070    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9071  esac
9072
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9074$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9075if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9076  $as_echo_n "(cached) " >&6
9077else
9078  lt_cv_prog_compiler_rtti_exceptions=no
9079   ac_outfile=conftest.$ac_objext
9080   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081   lt_compiler_flag="-fno-rtti -fno-exceptions"
9082   # Insert the option either (1) after the last *FLAGS variable, or
9083   # (2) before a word containing "conftest.", or (3) at the end.
9084   # Note that $ac_compile itself does not contain backslashes and begins
9085   # with a dollar sign (not a hyphen), so the echo should work correctly.
9086   # The option is referenced via a variable to avoid confusing sed.
9087   lt_compile=`echo "$ac_compile" | $SED \
9088   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9089   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9090   -e 's:$: $lt_compiler_flag:'`
9091   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9092   (eval "$lt_compile" 2>conftest.err)
9093   ac_status=$?
9094   cat conftest.err >&5
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   if (exit $ac_status) && test -s "$ac_outfile"; then
9097     # The compiler can only warn and ignore the option if not recognized
9098     # So say no if there are warnings other than the usual output.
9099     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9100     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9101     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9102       lt_cv_prog_compiler_rtti_exceptions=yes
9103     fi
9104   fi
9105   $RM conftest*
9106
9107fi
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9109$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9110
9111if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9112    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9113else
9114    :
9115fi
9116
9117fi
9118
9119
9120
9121
9122
9123
9124  lt_prog_compiler_wl=
9125lt_prog_compiler_pic=
9126lt_prog_compiler_static=
9127
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9129$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9130
9131  if test "$GCC" = yes; then
9132    lt_prog_compiler_wl='-Wl,'
9133    lt_prog_compiler_static='-static'
9134
9135    case $host_os in
9136      aix*)
9137      # All AIX code is PIC.
9138      if test "$host_cpu" = ia64; then
9139	# AIX 5 now supports IA64 processor
9140	lt_prog_compiler_static='-Bstatic'
9141      fi
9142      lt_prog_compiler_pic='-fPIC'
9143      ;;
9144
9145    amigaos*)
9146      case $host_cpu in
9147      powerpc)
9148            # see comment about AmigaOS4 .so support
9149            lt_prog_compiler_pic='-fPIC'
9150        ;;
9151      m68k)
9152            # FIXME: we need at least 68020 code to build shared libraries, but
9153            # adding the `-m68020' flag to GCC prevents building anything better,
9154            # like `-m68040'.
9155            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9156        ;;
9157      esac
9158      ;;
9159
9160    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9161      # PIC is the default for these OSes.
9162      ;;
9163
9164    mingw* | cygwin* | pw32* | os2* | cegcc*)
9165      # This hack is so that the source file can tell whether it is being
9166      # built for inclusion in a dll (and should export symbols for example).
9167      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9168      # (--disable-auto-import) libraries
9169      lt_prog_compiler_pic='-DDLL_EXPORT'
9170      ;;
9171
9172    darwin* | rhapsody*)
9173      # PIC is the default on this platform
9174      # Common symbols not allowed in MH_DYLIB files
9175      lt_prog_compiler_pic='-fno-common'
9176      ;;
9177
9178    haiku*)
9179      # PIC is the default for Haiku.
9180      # The "-static" flag exists, but is broken.
9181      lt_prog_compiler_static=
9182      ;;
9183
9184    hpux*)
9185      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9186      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9187      # sets the default TLS model and affects inlining.
9188      case $host_cpu in
9189      hppa*64*)
9190	# +Z the default
9191	;;
9192      *)
9193	lt_prog_compiler_pic='-fPIC'
9194	;;
9195      esac
9196      ;;
9197
9198    interix[3-9]*)
9199      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9200      # Instead, we relocate shared libraries at runtime.
9201      ;;
9202
9203    msdosdjgpp*)
9204      # Just because we use GCC doesn't mean we suddenly get shared libraries
9205      # on systems that don't support them.
9206      lt_prog_compiler_can_build_shared=no
9207      enable_shared=no
9208      ;;
9209
9210    *nto* | *qnx*)
9211      # QNX uses GNU C++, but need to define -shared option too, otherwise
9212      # it will coredump.
9213      lt_prog_compiler_pic='-fPIC -shared'
9214      ;;
9215
9216    sysv4*MP*)
9217      if test -d /usr/nec; then
9218	lt_prog_compiler_pic=-Kconform_pic
9219      fi
9220      ;;
9221
9222    *)
9223      lt_prog_compiler_pic='-fPIC'
9224      ;;
9225    esac
9226
9227    case $cc_basename in
9228    nvcc*) # Cuda Compiler Driver 2.2
9229      lt_prog_compiler_wl='-Xlinker '
9230      lt_prog_compiler_pic='-Xcompiler -fPIC'
9231      ;;
9232    esac
9233  else
9234    # PORTME Check for flag to pass linker flags through the system compiler.
9235    case $host_os in
9236    aix*)
9237      lt_prog_compiler_wl='-Wl,'
9238      if test "$host_cpu" = ia64; then
9239	# AIX 5 now supports IA64 processor
9240	lt_prog_compiler_static='-Bstatic'
9241      else
9242	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9243      fi
9244      ;;
9245
9246    mingw* | cygwin* | pw32* | os2* | cegcc*)
9247      # This hack is so that the source file can tell whether it is being
9248      # built for inclusion in a dll (and should export symbols for example).
9249      lt_prog_compiler_pic='-DDLL_EXPORT'
9250      ;;
9251
9252    hpux9* | hpux10* | hpux11*)
9253      lt_prog_compiler_wl='-Wl,'
9254      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9255      # not for PA HP-UX.
9256      case $host_cpu in
9257      hppa*64*|ia64*)
9258	# +Z the default
9259	;;
9260      *)
9261	lt_prog_compiler_pic='+Z'
9262	;;
9263      esac
9264      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9265      lt_prog_compiler_static='${wl}-a ${wl}archive'
9266      ;;
9267
9268    irix5* | irix6* | nonstopux*)
9269      lt_prog_compiler_wl='-Wl,'
9270      # PIC (with -KPIC) is the default.
9271      lt_prog_compiler_static='-non_shared'
9272      ;;
9273
9274    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9275      case $cc_basename in
9276      # old Intel for x86_64 which still supported -KPIC.
9277      ecc*)
9278	lt_prog_compiler_wl='-Wl,'
9279	lt_prog_compiler_pic='-KPIC'
9280	lt_prog_compiler_static='-static'
9281        ;;
9282      # icc used to be incompatible with GCC.
9283      # ICC 10 doesn't accept -KPIC any more.
9284      icc* | ifort*)
9285	lt_prog_compiler_wl='-Wl,'
9286	lt_prog_compiler_pic='-fPIC'
9287	lt_prog_compiler_static='-static'
9288        ;;
9289      # Lahey Fortran 8.1.
9290      lf95*)
9291	lt_prog_compiler_wl='-Wl,'
9292	lt_prog_compiler_pic='--shared'
9293	lt_prog_compiler_static='--static'
9294	;;
9295      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9296        # Portland Group compilers (*not* the Pentium gcc compiler,
9297	# which looks to be a dead project)
9298	lt_prog_compiler_wl='-Wl,'
9299	lt_prog_compiler_pic='-fpic'
9300	lt_prog_compiler_static='-Bstatic'
9301        ;;
9302      ccc*)
9303        lt_prog_compiler_wl='-Wl,'
9304        # All Alpha code is PIC.
9305        lt_prog_compiler_static='-non_shared'
9306        ;;
9307      xl* | bgxl* | bgf* | mpixl*)
9308	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9309	lt_prog_compiler_wl='-Wl,'
9310	lt_prog_compiler_pic='-qpic'
9311	lt_prog_compiler_static='-qstaticlink'
9312	;;
9313      *)
9314	case `$CC -V 2>&1 | sed 5q` in
9315	*Sun\ F* | *Sun*Fortran*)
9316	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9317	  lt_prog_compiler_pic='-KPIC'
9318	  lt_prog_compiler_static='-Bstatic'
9319	  lt_prog_compiler_wl=''
9320	  ;;
9321	*Sun\ C*)
9322	  # Sun C 5.9
9323	  lt_prog_compiler_pic='-KPIC'
9324	  lt_prog_compiler_static='-Bstatic'
9325	  lt_prog_compiler_wl='-Wl,'
9326	  ;;
9327	esac
9328	;;
9329      esac
9330      ;;
9331
9332    newsos6)
9333      lt_prog_compiler_pic='-KPIC'
9334      lt_prog_compiler_static='-Bstatic'
9335      ;;
9336
9337    *nto* | *qnx*)
9338      # QNX uses GNU C++, but need to define -shared option too, otherwise
9339      # it will coredump.
9340      lt_prog_compiler_pic='-fPIC -shared'
9341      ;;
9342
9343    osf3* | osf4* | osf5*)
9344      lt_prog_compiler_wl='-Wl,'
9345      # All OSF/1 code is PIC.
9346      lt_prog_compiler_static='-non_shared'
9347      ;;
9348
9349    rdos*)
9350      lt_prog_compiler_static='-non_shared'
9351      ;;
9352
9353    solaris*)
9354      lt_prog_compiler_pic='-KPIC'
9355      lt_prog_compiler_static='-Bstatic'
9356      case $cc_basename in
9357      f77* | f90* | f95*)
9358	lt_prog_compiler_wl='-Qoption ld ';;
9359      *)
9360	lt_prog_compiler_wl='-Wl,';;
9361      esac
9362      ;;
9363
9364    sunos4*)
9365      lt_prog_compiler_wl='-Qoption ld '
9366      lt_prog_compiler_pic='-PIC'
9367      lt_prog_compiler_static='-Bstatic'
9368      ;;
9369
9370    sysv4 | sysv4.2uw2* | sysv4.3*)
9371      lt_prog_compiler_wl='-Wl,'
9372      lt_prog_compiler_pic='-KPIC'
9373      lt_prog_compiler_static='-Bstatic'
9374      ;;
9375
9376    sysv4*MP*)
9377      if test -d /usr/nec ;then
9378	lt_prog_compiler_pic='-Kconform_pic'
9379	lt_prog_compiler_static='-Bstatic'
9380      fi
9381      ;;
9382
9383    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9384      lt_prog_compiler_wl='-Wl,'
9385      lt_prog_compiler_pic='-KPIC'
9386      lt_prog_compiler_static='-Bstatic'
9387      ;;
9388
9389    unicos*)
9390      lt_prog_compiler_wl='-Wl,'
9391      lt_prog_compiler_can_build_shared=no
9392      ;;
9393
9394    uts4*)
9395      lt_prog_compiler_pic='-pic'
9396      lt_prog_compiler_static='-Bstatic'
9397      ;;
9398
9399    *)
9400      lt_prog_compiler_can_build_shared=no
9401      ;;
9402    esac
9403  fi
9404
9405case $host_os in
9406  # For platforms which do not support PIC, -DPIC is meaningless:
9407  *djgpp*)
9408    lt_prog_compiler_pic=
9409    ;;
9410  *)
9411    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9412    ;;
9413esac
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9415$as_echo "$lt_prog_compiler_pic" >&6; }
9416
9417
9418
9419
9420
9421
9422#
9423# Check to make sure the PIC flag actually works.
9424#
9425if test -n "$lt_prog_compiler_pic"; then
9426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9427$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9428if ${lt_cv_prog_compiler_pic_works+:} false; then :
9429  $as_echo_n "(cached) " >&6
9430else
9431  lt_cv_prog_compiler_pic_works=no
9432   ac_outfile=conftest.$ac_objext
9433   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9434   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9435   # Insert the option either (1) after the last *FLAGS variable, or
9436   # (2) before a word containing "conftest.", or (3) at the end.
9437   # Note that $ac_compile itself does not contain backslashes and begins
9438   # with a dollar sign (not a hyphen), so the echo should work correctly.
9439   # The option is referenced via a variable to avoid confusing sed.
9440   lt_compile=`echo "$ac_compile" | $SED \
9441   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9442   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9443   -e 's:$: $lt_compiler_flag:'`
9444   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9445   (eval "$lt_compile" 2>conftest.err)
9446   ac_status=$?
9447   cat conftest.err >&5
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   if (exit $ac_status) && test -s "$ac_outfile"; then
9450     # The compiler can only warn and ignore the option if not recognized
9451     # So say no if there are warnings other than the usual output.
9452     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9453     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9454     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9455       lt_cv_prog_compiler_pic_works=yes
9456     fi
9457   fi
9458   $RM conftest*
9459
9460fi
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9462$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9463
9464if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9465    case $lt_prog_compiler_pic in
9466     "" | " "*) ;;
9467     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9468     esac
9469else
9470    lt_prog_compiler_pic=
9471     lt_prog_compiler_can_build_shared=no
9472fi
9473
9474fi
9475
9476
9477
9478
9479
9480
9481#
9482# Check to make sure the static flag actually works.
9483#
9484wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9486$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9487if ${lt_cv_prog_compiler_static_works+:} false; then :
9488  $as_echo_n "(cached) " >&6
9489else
9490  lt_cv_prog_compiler_static_works=no
9491   save_LDFLAGS="$LDFLAGS"
9492   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9493   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9494   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9495     # The linker can only warn and ignore the option if not recognized
9496     # So say no if there are warnings
9497     if test -s conftest.err; then
9498       # Append any errors to the config.log.
9499       cat conftest.err 1>&5
9500       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9501       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9502       if diff conftest.exp conftest.er2 >/dev/null; then
9503         lt_cv_prog_compiler_static_works=yes
9504       fi
9505     else
9506       lt_cv_prog_compiler_static_works=yes
9507     fi
9508   fi
9509   $RM -r conftest*
9510   LDFLAGS="$save_LDFLAGS"
9511
9512fi
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9514$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9515
9516if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9517    :
9518else
9519    lt_prog_compiler_static=
9520fi
9521
9522
9523
9524
9525
9526
9527
9528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9529$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9530if ${lt_cv_prog_compiler_c_o+:} false; then :
9531  $as_echo_n "(cached) " >&6
9532else
9533  lt_cv_prog_compiler_c_o=no
9534   $RM -r conftest 2>/dev/null
9535   mkdir conftest
9536   cd conftest
9537   mkdir out
9538   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9539
9540   lt_compiler_flag="-o out/conftest2.$ac_objext"
9541   # Insert the option either (1) after the last *FLAGS variable, or
9542   # (2) before a word containing "conftest.", or (3) at the end.
9543   # Note that $ac_compile itself does not contain backslashes and begins
9544   # with a dollar sign (not a hyphen), so the echo should work correctly.
9545   lt_compile=`echo "$ac_compile" | $SED \
9546   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9547   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9548   -e 's:$: $lt_compiler_flag:'`
9549   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9550   (eval "$lt_compile" 2>out/conftest.err)
9551   ac_status=$?
9552   cat out/conftest.err >&5
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9555   then
9556     # The compiler can only warn and ignore the option if not recognized
9557     # So say no if there are warnings
9558     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9559     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9560     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9561       lt_cv_prog_compiler_c_o=yes
9562     fi
9563   fi
9564   chmod u+w . 2>&5
9565   $RM conftest*
9566   # SGI C++ compiler will create directory out/ii_files/ for
9567   # template instantiation
9568   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9569   $RM out/* && rmdir out
9570   cd ..
9571   $RM -r conftest
9572   $RM conftest*
9573
9574fi
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9576$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9577
9578
9579
9580
9581
9582
9583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9584$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9585if ${lt_cv_prog_compiler_c_o+:} false; then :
9586  $as_echo_n "(cached) " >&6
9587else
9588  lt_cv_prog_compiler_c_o=no
9589   $RM -r conftest 2>/dev/null
9590   mkdir conftest
9591   cd conftest
9592   mkdir out
9593   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9594
9595   lt_compiler_flag="-o out/conftest2.$ac_objext"
9596   # Insert the option either (1) after the last *FLAGS variable, or
9597   # (2) before a word containing "conftest.", or (3) at the end.
9598   # Note that $ac_compile itself does not contain backslashes and begins
9599   # with a dollar sign (not a hyphen), so the echo should work correctly.
9600   lt_compile=`echo "$ac_compile" | $SED \
9601   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9602   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9603   -e 's:$: $lt_compiler_flag:'`
9604   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9605   (eval "$lt_compile" 2>out/conftest.err)
9606   ac_status=$?
9607   cat out/conftest.err >&5
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9610   then
9611     # The compiler can only warn and ignore the option if not recognized
9612     # So say no if there are warnings
9613     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9614     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9615     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9616       lt_cv_prog_compiler_c_o=yes
9617     fi
9618   fi
9619   chmod u+w . 2>&5
9620   $RM conftest*
9621   # SGI C++ compiler will create directory out/ii_files/ for
9622   # template instantiation
9623   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9624   $RM out/* && rmdir out
9625   cd ..
9626   $RM -r conftest
9627   $RM conftest*
9628
9629fi
9630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9631$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9632
9633
9634
9635
9636hard_links="nottested"
9637if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9638  # do not overwrite the value of need_locks provided by the user
9639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9640$as_echo_n "checking if we can lock with hard links... " >&6; }
9641  hard_links=yes
9642  $RM conftest*
9643  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9644  touch conftest.a
9645  ln conftest.a conftest.b 2>&5 || hard_links=no
9646  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9648$as_echo "$hard_links" >&6; }
9649  if test "$hard_links" = no; then
9650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9651$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9652    need_locks=warn
9653  fi
9654else
9655  need_locks=no
9656fi
9657
9658
9659
9660
9661
9662
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9664$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9665
9666  runpath_var=
9667  allow_undefined_flag=
9668  always_export_symbols=no
9669  archive_cmds=
9670  archive_expsym_cmds=
9671  compiler_needs_object=no
9672  enable_shared_with_static_runtimes=no
9673  export_dynamic_flag_spec=
9674  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9675  hardcode_automatic=no
9676  hardcode_direct=no
9677  hardcode_direct_absolute=no
9678  hardcode_libdir_flag_spec=
9679  hardcode_libdir_flag_spec_ld=
9680  hardcode_libdir_separator=
9681  hardcode_minus_L=no
9682  hardcode_shlibpath_var=unsupported
9683  inherit_rpath=no
9684  link_all_deplibs=unknown
9685  module_cmds=
9686  module_expsym_cmds=
9687  old_archive_from_new_cmds=
9688  old_archive_from_expsyms_cmds=
9689  thread_safe_flag_spec=
9690  whole_archive_flag_spec=
9691  # include_expsyms should be a list of space-separated symbols to be *always*
9692  # included in the symbol list
9693  include_expsyms=
9694  # exclude_expsyms can be an extended regexp of symbols to exclude
9695  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9696  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9697  # as well as any symbol that contains `d'.
9698  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9699  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9700  # platforms (ab)use it in PIC code, but their linkers get confused if
9701  # the symbol is explicitly referenced.  Since portable code cannot
9702  # rely on this symbol name, it's probably fine to never include it in
9703  # preloaded symbol tables.
9704  # Exclude shared library initialization/finalization symbols.
9705  extract_expsyms_cmds=
9706
9707  case $host_os in
9708  cygwin* | mingw* | pw32* | cegcc*)
9709    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9710    # When not using gcc, we currently assume that we are using
9711    # Microsoft Visual C++.
9712    if test "$GCC" != yes; then
9713      with_gnu_ld=no
9714    fi
9715    ;;
9716  interix*)
9717    # we just hope/assume this is gcc and not c89 (= MSVC++)
9718    with_gnu_ld=yes
9719    ;;
9720  openbsd*)
9721    with_gnu_ld=no
9722    ;;
9723  esac
9724
9725  ld_shlibs=yes
9726
9727  # On some targets, GNU ld is compatible enough with the native linker
9728  # that we're better off using the native interface for both.
9729  lt_use_gnu_ld_interface=no
9730  if test "$with_gnu_ld" = yes; then
9731    case $host_os in
9732      aix*)
9733	# The AIX port of GNU ld has always aspired to compatibility
9734	# with the native linker.  However, as the warning in the GNU ld
9735	# block says, versions before 2.19.5* couldn't really create working
9736	# shared libraries, regardless of the interface used.
9737	case `$LD -v 2>&1` in
9738	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9739	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9740	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9741	  *)
9742	    lt_use_gnu_ld_interface=yes
9743	    ;;
9744	esac
9745	;;
9746      *)
9747	lt_use_gnu_ld_interface=yes
9748	;;
9749    esac
9750  fi
9751
9752  if test "$lt_use_gnu_ld_interface" = yes; then
9753    # If archive_cmds runs LD, not CC, wlarc should be empty
9754    wlarc='${wl}'
9755
9756    # Set some defaults for GNU ld with shared library support. These
9757    # are reset later if shared libraries are not supported. Putting them
9758    # here allows them to be overridden if necessary.
9759    runpath_var=LD_RUN_PATH
9760    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9761    export_dynamic_flag_spec='${wl}--export-dynamic'
9762    # ancient GNU ld didn't support --whole-archive et. al.
9763    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9764      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9765    else
9766      whole_archive_flag_spec=
9767    fi
9768    supports_anon_versioning=no
9769    case `$LD -v 2>&1` in
9770      *GNU\ gold*) supports_anon_versioning=yes ;;
9771      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9772      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9773      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9774      *\ 2.11.*) ;; # other 2.11 versions
9775      *) supports_anon_versioning=yes ;;
9776    esac
9777
9778    # See if GNU ld supports shared libraries.
9779    case $host_os in
9780    aix[3-9]*)
9781      # On AIX/PPC, the GNU linker is very broken
9782      if test "$host_cpu" != ia64; then
9783	ld_shlibs=no
9784	cat <<_LT_EOF 1>&2
9785
9786*** Warning: the GNU linker, at least up to release 2.19, is reported
9787*** to be unable to reliably create shared libraries on AIX.
9788*** Therefore, libtool is disabling shared libraries support.  If you
9789*** really care for shared libraries, you may want to install binutils
9790*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9791*** You will then need to restart the configuration process.
9792
9793_LT_EOF
9794      fi
9795      ;;
9796
9797    amigaos*)
9798      case $host_cpu in
9799      powerpc)
9800            # see comment about AmigaOS4 .so support
9801            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802            archive_expsym_cmds=''
9803        ;;
9804      m68k)
9805            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)'
9806            hardcode_libdir_flag_spec='-L$libdir'
9807            hardcode_minus_L=yes
9808        ;;
9809      esac
9810      ;;
9811
9812    beos*)
9813      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9814	allow_undefined_flag=unsupported
9815	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9816	# support --undefined.  This deserves some investigation.  FIXME
9817	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818      else
9819	ld_shlibs=no
9820      fi
9821      ;;
9822
9823    cygwin* | mingw* | pw32* | cegcc*)
9824      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9825      # as there is no search path for DLLs.
9826      hardcode_libdir_flag_spec='-L$libdir'
9827      export_dynamic_flag_spec='${wl}--export-all-symbols'
9828      allow_undefined_flag=unsupported
9829      always_export_symbols=no
9830      enable_shared_with_static_runtimes=yes
9831      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9832
9833      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9834        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9835	# If the export-symbols file already is a .def file (1st line
9836	# is EXPORTS), use it as is; otherwise, prepend...
9837	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9838	  cp $export_symbols $output_objdir/$soname.def;
9839	else
9840	  echo EXPORTS > $output_objdir/$soname.def;
9841	  cat $export_symbols >> $output_objdir/$soname.def;
9842	fi~
9843	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9844      else
9845	ld_shlibs=no
9846      fi
9847      ;;
9848
9849    haiku*)
9850      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851      link_all_deplibs=yes
9852      ;;
9853
9854    interix[3-9]*)
9855      hardcode_direct=no
9856      hardcode_shlibpath_var=no
9857      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9858      export_dynamic_flag_spec='${wl}-E'
9859      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9860      # Instead, shared libraries are loaded at an image base (0x10000000 by
9861      # default) and relocated if they conflict, which is a slow very memory
9862      # consuming and fragmenting process.  To avoid this, we pick a random,
9863      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9864      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9865      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9866      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'
9867      ;;
9868
9869    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9870      tmp_diet=no
9871      if test "$host_os" = linux-dietlibc; then
9872	case $cc_basename in
9873	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9874	esac
9875      fi
9876      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9877	 && test "$tmp_diet" = no
9878      then
9879	tmp_addflag=' $pic_flag'
9880	tmp_sharedflag='-shared'
9881	case $cc_basename,$host_cpu in
9882        pgcc*)				# Portland Group C compiler
9883	  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'
9884	  tmp_addflag=' $pic_flag'
9885	  ;;
9886	pgf77* | pgf90* | pgf95* | pgfortran*)
9887					# Portland Group f77 and f90 compilers
9888	  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'
9889	  tmp_addflag=' $pic_flag -Mnomain' ;;
9890	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9891	  tmp_addflag=' -i_dynamic' ;;
9892	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9893	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9894	ifc* | ifort*)			# Intel Fortran compiler
9895	  tmp_addflag=' -nofor_main' ;;
9896	lf95*)				# Lahey Fortran 8.1
9897	  whole_archive_flag_spec=
9898	  tmp_sharedflag='--shared' ;;
9899	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9900	  tmp_sharedflag='-qmkshrobj'
9901	  tmp_addflag= ;;
9902	nvcc*)	# Cuda Compiler Driver 2.2
9903	  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'
9904	  compiler_needs_object=yes
9905	  ;;
9906	esac
9907	case `$CC -V 2>&1 | sed 5q` in
9908	*Sun\ C*)			# Sun C 5.9
9909	  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'
9910	  compiler_needs_object=yes
9911	  tmp_sharedflag='-G' ;;
9912	*Sun\ F*)			# Sun Fortran 8.3
9913	  tmp_sharedflag='-G' ;;
9914	esac
9915	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9916
9917        if test "x$supports_anon_versioning" = xyes; then
9918          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9919	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9920	    echo "local: *; };" >> $output_objdir/$libname.ver~
9921	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9922        fi
9923
9924	case $cc_basename in
9925	xlf* | bgf* | bgxlf* | mpixlf*)
9926	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9927	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9928	  hardcode_libdir_flag_spec=
9929	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9930	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9931	  if test "x$supports_anon_versioning" = xyes; then
9932	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9933	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9934	      echo "local: *; };" >> $output_objdir/$libname.ver~
9935	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9936	  fi
9937	  ;;
9938	esac
9939      else
9940        ld_shlibs=no
9941      fi
9942      ;;
9943
9944    netbsd*)
9945      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9946	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9947	wlarc=
9948      else
9949	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9950	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9951      fi
9952      ;;
9953
9954    solaris*)
9955      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9956	ld_shlibs=no
9957	cat <<_LT_EOF 1>&2
9958
9959*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9960*** create shared libraries on Solaris systems.  Therefore, libtool
9961*** is disabling shared libraries support.  We urge you to upgrade GNU
9962*** binutils to release 2.9.1 or newer.  Another option is to modify
9963*** your PATH or compiler configuration so that the native linker is
9964*** used, and then restart.
9965
9966_LT_EOF
9967      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9969	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9970      else
9971	ld_shlibs=no
9972      fi
9973      ;;
9974
9975    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9976      case `$LD -v 2>&1` in
9977        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9978	ld_shlibs=no
9979	cat <<_LT_EOF 1>&2
9980
9981*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9982*** reliably create shared libraries on SCO systems.  Therefore, libtool
9983*** is disabling shared libraries support.  We urge you to upgrade GNU
9984*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9985*** your PATH or compiler configuration so that the native linker is
9986*** used, and then restart.
9987
9988_LT_EOF
9989	;;
9990	*)
9991	  # For security reasons, it is highly recommended that you always
9992	  # use absolute paths for naming shared libraries, and exclude the
9993	  # DT_RUNPATH tag from executables and libraries.  But doing so
9994	  # requires that you compile everything twice, which is a pain.
9995	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9996	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9999	  else
10000	    ld_shlibs=no
10001	  fi
10002	;;
10003      esac
10004      ;;
10005
10006    sunos4*)
10007      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10008      wlarc=
10009      hardcode_direct=yes
10010      hardcode_shlibpath_var=no
10011      ;;
10012
10013    *)
10014      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10015	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10017      else
10018	ld_shlibs=no
10019      fi
10020      ;;
10021    esac
10022
10023    if test "$ld_shlibs" = no; then
10024      runpath_var=
10025      hardcode_libdir_flag_spec=
10026      export_dynamic_flag_spec=
10027      whole_archive_flag_spec=
10028    fi
10029  else
10030    # PORTME fill in a description of your system's linker (not GNU ld)
10031    case $host_os in
10032    aix3*)
10033      allow_undefined_flag=unsupported
10034      always_export_symbols=yes
10035      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'
10036      # Note: this linker hardcodes the directories in LIBPATH if there
10037      # are no directories specified by -L.
10038      hardcode_minus_L=yes
10039      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10040	# Neither direct hardcoding nor static linking is supported with a
10041	# broken collect2.
10042	hardcode_direct=unsupported
10043      fi
10044      ;;
10045
10046    aix[4-9]*)
10047      if test "$host_cpu" = ia64; then
10048	# On IA64, the linker does run time linking by default, so we don't
10049	# have to do anything special.
10050	aix_use_runtimelinking=no
10051	exp_sym_flag='-Bexport'
10052	no_entry_flag=""
10053      else
10054	# If we're using GNU nm, then we don't want the "-C" option.
10055	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10056	# Also, AIX nm treats weak defined symbols like other global
10057	# defined symbols, whereas GNU nm marks them as "W".
10058	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10059	  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'
10060	else
10061	  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'
10062	fi
10063	aix_use_runtimelinking=no
10064
10065	# Test if we are trying to use run time linking or normal
10066	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10067	# need to do runtime linking.
10068	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10069	  for ld_flag in $LDFLAGS; do
10070	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10071	    aix_use_runtimelinking=yes
10072	    break
10073	  fi
10074	  done
10075	  ;;
10076	esac
10077
10078	exp_sym_flag='-bexport'
10079	no_entry_flag='-bnoentry'
10080      fi
10081
10082      # When large executables or shared objects are built, AIX ld can
10083      # have problems creating the table of contents.  If linking a library
10084      # or program results in "error TOC overflow" add -mminimal-toc to
10085      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10086      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10087
10088      archive_cmds=''
10089      hardcode_direct=yes
10090      hardcode_direct_absolute=yes
10091      hardcode_libdir_separator=':'
10092      link_all_deplibs=yes
10093      file_list_spec='${wl}-f,'
10094
10095      if test "$GCC" = yes; then
10096	case $host_os in aix4.[012]|aix4.[012].*)
10097	# We only want to do this on AIX 4.2 and lower, the check
10098	# below for broken collect2 doesn't work under 4.3+
10099	  collect2name=`${CC} -print-prog-name=collect2`
10100	  if test -f "$collect2name" &&
10101	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10102	  then
10103	  # We have reworked collect2
10104	  :
10105	  else
10106	  # We have old collect2
10107	  hardcode_direct=unsupported
10108	  # It fails to find uninstalled libraries when the uninstalled
10109	  # path is not listed in the libpath.  Setting hardcode_minus_L
10110	  # to unsupported forces relinking
10111	  hardcode_minus_L=yes
10112	  hardcode_libdir_flag_spec='-L$libdir'
10113	  hardcode_libdir_separator=
10114	  fi
10115	  ;;
10116	esac
10117	shared_flag='-shared'
10118	if test "$aix_use_runtimelinking" = yes; then
10119	  shared_flag="$shared_flag "'${wl}-G'
10120	fi
10121      else
10122	# not using gcc
10123	if test "$host_cpu" = ia64; then
10124	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10125	# chokes on -Wl,-G. The following line is correct:
10126	  shared_flag='-G'
10127	else
10128	  if test "$aix_use_runtimelinking" = yes; then
10129	    shared_flag='${wl}-G'
10130	  else
10131	    shared_flag='${wl}-bM:SRE'
10132	  fi
10133	fi
10134      fi
10135
10136      export_dynamic_flag_spec='${wl}-bexpall'
10137      # It seems that -bexpall does not export symbols beginning with
10138      # underscore (_), so it is better to generate a list of symbols to export.
10139      always_export_symbols=yes
10140      if test "$aix_use_runtimelinking" = yes; then
10141	# Warning - without using the other runtime loading flags (-brtl),
10142	# -berok will link without error, but may produce a broken library.
10143	allow_undefined_flag='-berok'
10144        # Determine the default libpath from the value encoded in an
10145        # empty executable.
10146        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h.  */
10148
10149int
10150main ()
10151{
10152
10153  ;
10154  return 0;
10155}
10156_ACEOF
10157if ac_fn_c_try_link "$LINENO"; then :
10158
10159lt_aix_libpath_sed='
10160    /Import File Strings/,/^$/ {
10161	/^0/ {
10162	    s/^0  *\(.*\)$/\1/
10163	    p
10164	}
10165    }'
10166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10167# Check for a 64-bit object if we didn't find anything.
10168if test -z "$aix_libpath"; then
10169  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10170fi
10171fi
10172rm -f core conftest.err conftest.$ac_objext \
10173    conftest$ac_exeext conftest.$ac_ext
10174if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10175
10176        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10177        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"
10178      else
10179	if test "$host_cpu" = ia64; then
10180	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10181	  allow_undefined_flag="-z nodefs"
10182	  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"
10183	else
10184	 # Determine the default libpath from the value encoded in an
10185	 # empty executable.
10186	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187/* end confdefs.h.  */
10188
10189int
10190main ()
10191{
10192
10193  ;
10194  return 0;
10195}
10196_ACEOF
10197if ac_fn_c_try_link "$LINENO"; then :
10198
10199lt_aix_libpath_sed='
10200    /Import File Strings/,/^$/ {
10201	/^0/ {
10202	    s/^0  *\(.*\)$/\1/
10203	    p
10204	}
10205    }'
10206aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10207# Check for a 64-bit object if we didn't find anything.
10208if test -z "$aix_libpath"; then
10209  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10210fi
10211fi
10212rm -f core conftest.err conftest.$ac_objext \
10213    conftest$ac_exeext conftest.$ac_ext
10214if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10215
10216	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10217	  # Warning - without using the other run time loading flags,
10218	  # -berok will link without error, but may produce a broken library.
10219	  no_undefined_flag=' ${wl}-bernotok'
10220	  allow_undefined_flag=' ${wl}-berok'
10221	  if test "$with_gnu_ld" = yes; then
10222	    # We only use this code for GNU lds that support --whole-archive.
10223	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10224	  else
10225	    # Exported symbols can be pulled into shared objects from archives
10226	    whole_archive_flag_spec='$convenience'
10227	  fi
10228	  archive_cmds_need_lc=yes
10229	  # This is similar to how AIX traditionally builds its shared libraries.
10230	  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'
10231	fi
10232      fi
10233      ;;
10234
10235    amigaos*)
10236      case $host_cpu in
10237      powerpc)
10238            # see comment about AmigaOS4 .so support
10239            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240            archive_expsym_cmds=''
10241        ;;
10242      m68k)
10243            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)'
10244            hardcode_libdir_flag_spec='-L$libdir'
10245            hardcode_minus_L=yes
10246        ;;
10247      esac
10248      ;;
10249
10250    bsdi[45]*)
10251      export_dynamic_flag_spec=-rdynamic
10252      ;;
10253
10254    cygwin* | mingw* | pw32* | cegcc*)
10255      # When not using gcc, we currently assume that we are using
10256      # Microsoft Visual C++.
10257      # hardcode_libdir_flag_spec is actually meaningless, as there is
10258      # no search path for DLLs.
10259      hardcode_libdir_flag_spec=' '
10260      allow_undefined_flag=unsupported
10261      # Tell ltmain to make .lib files, not .a files.
10262      libext=lib
10263      # Tell ltmain to make .dll files, not .so files.
10264      shrext_cmds=".dll"
10265      # FIXME: Setting linknames here is a bad hack.
10266      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10267      # The linker will automatically build a .lib file if we build a DLL.
10268      old_archive_from_new_cmds='true'
10269      # FIXME: Should let the user specify the lib program.
10270      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10271      fix_srcfile_path='`cygpath -w "$srcfile"`'
10272      enable_shared_with_static_runtimes=yes
10273      ;;
10274
10275    darwin* | rhapsody*)
10276
10277
10278  archive_cmds_need_lc=no
10279  hardcode_direct=no
10280  hardcode_automatic=yes
10281  hardcode_shlibpath_var=unsupported
10282  if test "$lt_cv_ld_force_load" = "yes"; then
10283    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\"`'
10284  else
10285    whole_archive_flag_spec=''
10286  fi
10287  link_all_deplibs=yes
10288  allow_undefined_flag="$_lt_dar_allow_undefined"
10289  case $cc_basename in
10290     ifort*) _lt_dar_can_shared=yes ;;
10291     *) _lt_dar_can_shared=$GCC ;;
10292  esac
10293  if test "$_lt_dar_can_shared" = "yes"; then
10294    output_verbose_link_cmd=func_echo_all
10295    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10296    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10297    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}"
10298    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}"
10299
10300  else
10301  ld_shlibs=no
10302  fi
10303
10304      ;;
10305
10306    dgux*)
10307      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10308      hardcode_libdir_flag_spec='-L$libdir'
10309      hardcode_shlibpath_var=no
10310      ;;
10311
10312    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10313    # support.  Future versions do this automatically, but an explicit c++rt0.o
10314    # does not break anything, and helps significantly (at the cost of a little
10315    # extra space).
10316    freebsd2.2*)
10317      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10318      hardcode_libdir_flag_spec='-R$libdir'
10319      hardcode_direct=yes
10320      hardcode_shlibpath_var=no
10321      ;;
10322
10323    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10324    freebsd2.*)
10325      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10326      hardcode_direct=yes
10327      hardcode_minus_L=yes
10328      hardcode_shlibpath_var=no
10329      ;;
10330
10331    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10332    freebsd* | dragonfly*)
10333      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10334      hardcode_libdir_flag_spec='-R$libdir'
10335      hardcode_direct=yes
10336      hardcode_shlibpath_var=no
10337      ;;
10338
10339    hpux9*)
10340      if test "$GCC" = yes; then
10341	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'
10342      else
10343	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'
10344      fi
10345      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10346      hardcode_libdir_separator=:
10347      hardcode_direct=yes
10348
10349      # hardcode_minus_L: Not really in the search PATH,
10350      # but as the default location of the library.
10351      hardcode_minus_L=yes
10352      export_dynamic_flag_spec='${wl}-E'
10353      ;;
10354
10355    hpux10*)
10356      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10357	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10358      else
10359	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10360      fi
10361      if test "$with_gnu_ld" = no; then
10362	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10363	hardcode_libdir_flag_spec_ld='+b $libdir'
10364	hardcode_libdir_separator=:
10365	hardcode_direct=yes
10366	hardcode_direct_absolute=yes
10367	export_dynamic_flag_spec='${wl}-E'
10368	# hardcode_minus_L: Not really in the search PATH,
10369	# but as the default location of the library.
10370	hardcode_minus_L=yes
10371      fi
10372      ;;
10373
10374    hpux11*)
10375      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10376	case $host_cpu in
10377	hppa*64*)
10378	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10379	  ;;
10380	ia64*)
10381	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10382	  ;;
10383	*)
10384	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10385	  ;;
10386	esac
10387      else
10388	case $host_cpu in
10389	hppa*64*)
10390	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10391	  ;;
10392	ia64*)
10393	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10394	  ;;
10395	*)
10396
10397	  # Older versions of the 11.00 compiler do not understand -b yet
10398	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10399	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10400$as_echo_n "checking if $CC understands -b... " >&6; }
10401if ${lt_cv_prog_compiler__b+:} false; then :
10402  $as_echo_n "(cached) " >&6
10403else
10404  lt_cv_prog_compiler__b=no
10405   save_LDFLAGS="$LDFLAGS"
10406   LDFLAGS="$LDFLAGS -b"
10407   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10408   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10409     # The linker can only warn and ignore the option if not recognized
10410     # So say no if there are warnings
10411     if test -s conftest.err; then
10412       # Append any errors to the config.log.
10413       cat conftest.err 1>&5
10414       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10415       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10416       if diff conftest.exp conftest.er2 >/dev/null; then
10417         lt_cv_prog_compiler__b=yes
10418       fi
10419     else
10420       lt_cv_prog_compiler__b=yes
10421     fi
10422   fi
10423   $RM -r conftest*
10424   LDFLAGS="$save_LDFLAGS"
10425
10426fi
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10428$as_echo "$lt_cv_prog_compiler__b" >&6; }
10429
10430if test x"$lt_cv_prog_compiler__b" = xyes; then
10431    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10432else
10433    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10434fi
10435
10436	  ;;
10437	esac
10438      fi
10439      if test "$with_gnu_ld" = no; then
10440	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10441	hardcode_libdir_separator=:
10442
10443	case $host_cpu in
10444	hppa*64*|ia64*)
10445	  hardcode_direct=no
10446	  hardcode_shlibpath_var=no
10447	  ;;
10448	*)
10449	  hardcode_direct=yes
10450	  hardcode_direct_absolute=yes
10451	  export_dynamic_flag_spec='${wl}-E'
10452
10453	  # hardcode_minus_L: Not really in the search PATH,
10454	  # but as the default location of the library.
10455	  hardcode_minus_L=yes
10456	  ;;
10457	esac
10458      fi
10459      ;;
10460
10461    irix5* | irix6* | nonstopux*)
10462      if test "$GCC" = yes; then
10463	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'
10464	# Try to use the -exported_symbol ld option, if it does not
10465	# work, assume that -exports_file does not work either and
10466	# implicitly export all symbols.
10467        save_LDFLAGS="$LDFLAGS"
10468        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10469        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470/* end confdefs.h.  */
10471int foo(void) {}
10472_ACEOF
10473if ac_fn_c_try_link "$LINENO"; then :
10474  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'
10475
10476fi
10477rm -f core conftest.err conftest.$ac_objext \
10478    conftest$ac_exeext conftest.$ac_ext
10479        LDFLAGS="$save_LDFLAGS"
10480      else
10481	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'
10482	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'
10483      fi
10484      archive_cmds_need_lc='no'
10485      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10486      hardcode_libdir_separator=:
10487      inherit_rpath=yes
10488      link_all_deplibs=yes
10489      ;;
10490
10491    netbsd*)
10492      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10493	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10494      else
10495	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10496      fi
10497      hardcode_libdir_flag_spec='-R$libdir'
10498      hardcode_direct=yes
10499      hardcode_shlibpath_var=no
10500      ;;
10501
10502    newsos6)
10503      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10504      hardcode_direct=yes
10505      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10506      hardcode_libdir_separator=:
10507      hardcode_shlibpath_var=no
10508      ;;
10509
10510    *nto* | *qnx*)
10511      ;;
10512
10513    openbsd*)
10514      if test -f /usr/libexec/ld.so; then
10515	hardcode_direct=yes
10516	hardcode_shlibpath_var=no
10517	hardcode_direct_absolute=yes
10518	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10519	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10520	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10521	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10522	  export_dynamic_flag_spec='${wl}-E'
10523	else
10524	  case $host_os in
10525	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10526	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10527	     hardcode_libdir_flag_spec='-R$libdir'
10528	     ;;
10529	   *)
10530	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10531	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10532	     ;;
10533	  esac
10534	fi
10535      else
10536	ld_shlibs=no
10537      fi
10538      ;;
10539
10540    os2*)
10541      hardcode_libdir_flag_spec='-L$libdir'
10542      hardcode_minus_L=yes
10543      allow_undefined_flag=unsupported
10544      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'
10545      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10546      ;;
10547
10548    osf3*)
10549      if test "$GCC" = yes; then
10550	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10551	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'
10552      else
10553	allow_undefined_flag=' -expect_unresolved \*'
10554	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'
10555      fi
10556      archive_cmds_need_lc='no'
10557      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558      hardcode_libdir_separator=:
10559      ;;
10560
10561    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10562      if test "$GCC" = yes; then
10563	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10564	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'
10565	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10566      else
10567	allow_undefined_flag=' -expect_unresolved \*'
10568	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'
10569	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~
10570	$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'
10571
10572	# Both c and cxx compiler support -rpath directly
10573	hardcode_libdir_flag_spec='-rpath $libdir'
10574      fi
10575      archive_cmds_need_lc='no'
10576      hardcode_libdir_separator=:
10577      ;;
10578
10579    solaris*)
10580      no_undefined_flag=' -z defs'
10581      if test "$GCC" = yes; then
10582	wlarc='${wl}'
10583	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10584	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10585	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10586      else
10587	case `$CC -V 2>&1` in
10588	*"Compilers 5.0"*)
10589	  wlarc=''
10590	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10591	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10592	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10593	  ;;
10594	*)
10595	  wlarc='${wl}'
10596	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10597	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10598	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10599	  ;;
10600	esac
10601      fi
10602      hardcode_libdir_flag_spec='-R$libdir'
10603      hardcode_shlibpath_var=no
10604      case $host_os in
10605      solaris2.[0-5] | solaris2.[0-5].*) ;;
10606      *)
10607	# The compiler driver will combine and reorder linker options,
10608	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10609	# but is careful enough not to reorder.
10610	# Supported since Solaris 2.6 (maybe 2.5.1?)
10611	if test "$GCC" = yes; then
10612	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10613	else
10614	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10615	fi
10616	;;
10617      esac
10618      link_all_deplibs=yes
10619      ;;
10620
10621    sunos4*)
10622      if test "x$host_vendor" = xsequent; then
10623	# Use $CC to link under sequent, because it throws in some extra .o
10624	# files that make .init and .fini sections work.
10625	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10626      else
10627	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10628      fi
10629      hardcode_libdir_flag_spec='-L$libdir'
10630      hardcode_direct=yes
10631      hardcode_minus_L=yes
10632      hardcode_shlibpath_var=no
10633      ;;
10634
10635    sysv4)
10636      case $host_vendor in
10637	sni)
10638	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639	  hardcode_direct=yes # is this really true???
10640	;;
10641	siemens)
10642	  ## LD is ld it makes a PLAMLIB
10643	  ## CC just makes a GrossModule.
10644	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10645	  reload_cmds='$CC -r -o $output$reload_objs'
10646	  hardcode_direct=no
10647        ;;
10648	motorola)
10649	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10651	;;
10652      esac
10653      runpath_var='LD_RUN_PATH'
10654      hardcode_shlibpath_var=no
10655      ;;
10656
10657    sysv4.3*)
10658      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10659      hardcode_shlibpath_var=no
10660      export_dynamic_flag_spec='-Bexport'
10661      ;;
10662
10663    sysv4*MP*)
10664      if test -d /usr/nec; then
10665	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666	hardcode_shlibpath_var=no
10667	runpath_var=LD_RUN_PATH
10668	hardcode_runpath_var=yes
10669	ld_shlibs=yes
10670      fi
10671      ;;
10672
10673    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10674      no_undefined_flag='${wl}-z,text'
10675      archive_cmds_need_lc=no
10676      hardcode_shlibpath_var=no
10677      runpath_var='LD_RUN_PATH'
10678
10679      if test "$GCC" = yes; then
10680	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10681	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682      else
10683	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10684	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685      fi
10686      ;;
10687
10688    sysv5* | sco3.2v5* | sco5v6*)
10689      # Note: We can NOT use -z defs as we might desire, because we do not
10690      # link with -lc, and that would cause any symbols used from libc to
10691      # always be unresolved, which means just about no library would
10692      # ever link correctly.  If we're not using GNU ld we use -z text
10693      # though, which does catch some bad symbols but isn't as heavy-handed
10694      # as -z defs.
10695      no_undefined_flag='${wl}-z,text'
10696      allow_undefined_flag='${wl}-z,nodefs'
10697      archive_cmds_need_lc=no
10698      hardcode_shlibpath_var=no
10699      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10700      hardcode_libdir_separator=':'
10701      link_all_deplibs=yes
10702      export_dynamic_flag_spec='${wl}-Bexport'
10703      runpath_var='LD_RUN_PATH'
10704
10705      if test "$GCC" = yes; then
10706	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10707	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708      else
10709	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10710	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711      fi
10712      ;;
10713
10714    uts4*)
10715      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716      hardcode_libdir_flag_spec='-L$libdir'
10717      hardcode_shlibpath_var=no
10718      ;;
10719
10720    *)
10721      ld_shlibs=no
10722      ;;
10723    esac
10724
10725    if test x$host_vendor = xsni; then
10726      case $host in
10727      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10728	export_dynamic_flag_spec='${wl}-Blargedynsym'
10729	;;
10730      esac
10731    fi
10732  fi
10733
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10735$as_echo "$ld_shlibs" >&6; }
10736test "$ld_shlibs" = no && can_build_shared=no
10737
10738with_gnu_ld=$with_gnu_ld
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754#
10755# Do we need to explicitly link libc?
10756#
10757case "x$archive_cmds_need_lc" in
10758x|xyes)
10759  # Assume -lc should be added
10760  archive_cmds_need_lc=yes
10761
10762  if test "$enable_shared" = yes && test "$GCC" = yes; then
10763    case $archive_cmds in
10764    *'~'*)
10765      # FIXME: we may have to deal with multi-command sequences.
10766      ;;
10767    '$CC '*)
10768      # Test whether the compiler implicitly links with -lc since on some
10769      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10770      # to ld, don't add -lc before -lgcc.
10771      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10772$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10773if ${lt_cv_archive_cmds_need_lc+:} false; then :
10774  $as_echo_n "(cached) " >&6
10775else
10776  $RM conftest*
10777	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10778
10779	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10780  (eval $ac_compile) 2>&5
10781  ac_status=$?
10782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10783  test $ac_status = 0; } 2>conftest.err; then
10784	  soname=conftest
10785	  lib=conftest
10786	  libobjs=conftest.$ac_objext
10787	  deplibs=
10788	  wl=$lt_prog_compiler_wl
10789	  pic_flag=$lt_prog_compiler_pic
10790	  compiler_flags=-v
10791	  linker_flags=-v
10792	  verstring=
10793	  output_objdir=.
10794	  libname=conftest
10795	  lt_save_allow_undefined_flag=$allow_undefined_flag
10796	  allow_undefined_flag=
10797	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10798  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10799  ac_status=$?
10800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10801  test $ac_status = 0; }
10802	  then
10803	    lt_cv_archive_cmds_need_lc=no
10804	  else
10805	    lt_cv_archive_cmds_need_lc=yes
10806	  fi
10807	  allow_undefined_flag=$lt_save_allow_undefined_flag
10808	else
10809	  cat conftest.err 1>&5
10810	fi
10811	$RM conftest*
10812
10813fi
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10815$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10816      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10817      ;;
10818    esac
10819  fi
10820  ;;
10821esac
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10980$as_echo_n "checking dynamic linker characteristics... " >&6; }
10981
10982if test "$GCC" = yes; then
10983  case $host_os in
10984    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10985    *) lt_awk_arg="/^libraries:/" ;;
10986  esac
10987  case $host_os in
10988    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10989    *) lt_sed_strip_eq="s,=/,/,g" ;;
10990  esac
10991  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10992  case $lt_search_path_spec in
10993  *\;*)
10994    # if the path contains ";" then we assume it to be the separator
10995    # otherwise default to the standard path separator (i.e. ":") - it is
10996    # assumed that no part of a normal pathname contains ";" but that should
10997    # okay in the real world where ";" in dirpaths is itself problematic.
10998    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10999    ;;
11000  *)
11001    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11002    ;;
11003  esac
11004  # Ok, now we have the path, separated by spaces, we can step through it
11005  # and add multilib dir if necessary.
11006  lt_tmp_lt_search_path_spec=
11007  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11008  for lt_sys_path in $lt_search_path_spec; do
11009    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11010      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11011    else
11012      test -d "$lt_sys_path" && \
11013	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11014    fi
11015  done
11016  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11017BEGIN {RS=" "; FS="/|\n";} {
11018  lt_foo="";
11019  lt_count=0;
11020  for (lt_i = NF; lt_i > 0; lt_i--) {
11021    if ($lt_i != "" && $lt_i != ".") {
11022      if ($lt_i == "..") {
11023        lt_count++;
11024      } else {
11025        if (lt_count == 0) {
11026          lt_foo="/" $lt_i lt_foo;
11027        } else {
11028          lt_count--;
11029        }
11030      }
11031    }
11032  }
11033  if (lt_foo != "") { lt_freq[lt_foo]++; }
11034  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11035}'`
11036  # AWK program above erroneously prepends '/' to C:/dos/paths
11037  # for these hosts.
11038  case $host_os in
11039    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11040      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11041  esac
11042  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11043else
11044  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11045fi
11046library_names_spec=
11047libname_spec='lib$name'
11048soname_spec=
11049shrext_cmds=".so"
11050postinstall_cmds=
11051postuninstall_cmds=
11052finish_cmds=
11053finish_eval=
11054shlibpath_var=
11055shlibpath_overrides_runpath=unknown
11056version_type=none
11057dynamic_linker="$host_os ld.so"
11058sys_lib_dlsearch_path_spec="/lib /usr/lib"
11059need_lib_prefix=unknown
11060hardcode_into_libs=no
11061
11062# when you set need_version to no, make sure it does not cause -set_version
11063# flags to be left without arguments
11064need_version=unknown
11065
11066case $host_os in
11067aix3*)
11068  version_type=linux
11069  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11070  shlibpath_var=LIBPATH
11071
11072  # AIX 3 has no versioning support, so we append a major version to the name.
11073  soname_spec='${libname}${release}${shared_ext}$major'
11074  ;;
11075
11076aix[4-9]*)
11077  version_type=linux
11078  need_lib_prefix=no
11079  need_version=no
11080  hardcode_into_libs=yes
11081  if test "$host_cpu" = ia64; then
11082    # AIX 5 supports IA64
11083    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11084    shlibpath_var=LD_LIBRARY_PATH
11085  else
11086    # With GCC up to 2.95.x, collect2 would create an import file
11087    # for dependence libraries.  The import file would start with
11088    # the line `#! .'.  This would cause the generated library to
11089    # depend on `.', always an invalid library.  This was fixed in
11090    # development snapshots of GCC prior to 3.0.
11091    case $host_os in
11092      aix4 | aix4.[01] | aix4.[01].*)
11093      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11094	   echo ' yes '
11095	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11096	:
11097      else
11098	can_build_shared=no
11099      fi
11100      ;;
11101    esac
11102    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11103    # soname into executable. Probably we can add versioning support to
11104    # collect2, so additional links can be useful in future.
11105    if test "$aix_use_runtimelinking" = yes; then
11106      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11107      # instead of lib<name>.a to let people know that these are not
11108      # typical AIX shared libraries.
11109      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110    else
11111      # We preserve .a as extension for shared libraries through AIX4.2
11112      # and later when we are not doing run time linking.
11113      library_names_spec='${libname}${release}.a $libname.a'
11114      soname_spec='${libname}${release}${shared_ext}$major'
11115    fi
11116    shlibpath_var=LIBPATH
11117  fi
11118  ;;
11119
11120amigaos*)
11121  case $host_cpu in
11122  powerpc)
11123    # Since July 2007 AmigaOS4 officially supports .so libraries.
11124    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11125    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11126    ;;
11127  m68k)
11128    library_names_spec='$libname.ixlibrary $libname.a'
11129    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11130    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'
11131    ;;
11132  esac
11133  ;;
11134
11135beos*)
11136  library_names_spec='${libname}${shared_ext}'
11137  dynamic_linker="$host_os ld.so"
11138  shlibpath_var=LIBRARY_PATH
11139  ;;
11140
11141bsdi[45]*)
11142  version_type=linux
11143  need_version=no
11144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145  soname_spec='${libname}${release}${shared_ext}$major'
11146  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11147  shlibpath_var=LD_LIBRARY_PATH
11148  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11149  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11150  # the default ld.so.conf also contains /usr/contrib/lib and
11151  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11152  # libtool to hard-code these into programs
11153  ;;
11154
11155cygwin* | mingw* | pw32* | cegcc*)
11156  version_type=windows
11157  shrext_cmds=".dll"
11158  need_version=no
11159  need_lib_prefix=no
11160
11161  case $GCC,$host_os in
11162  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11163    library_names_spec='$libname.dll.a'
11164    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11165    postinstall_cmds='base_file=`basename \${file}`~
11166      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11167      dldir=$destdir/`dirname \$dlpath`~
11168      test -d \$dldir || mkdir -p \$dldir~
11169      $install_prog $dir/$dlname \$dldir/$dlname~
11170      chmod a+x \$dldir/$dlname~
11171      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11172        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11173      fi'
11174    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11175      dlpath=$dir/\$dldll~
11176       $RM \$dlpath'
11177    shlibpath_overrides_runpath=yes
11178
11179    case $host_os in
11180    cygwin*)
11181      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11182      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11183
11184      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11185      ;;
11186    mingw* | cegcc*)
11187      # MinGW DLLs use traditional 'lib' prefix
11188      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11189      ;;
11190    pw32*)
11191      # pw32 DLLs use 'pw' prefix rather than 'lib'
11192      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11193      ;;
11194    esac
11195    ;;
11196
11197  *)
11198    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11199    ;;
11200  esac
11201  dynamic_linker='Win32 ld.exe'
11202  # FIXME: first we should search . and the directory the executable is in
11203  shlibpath_var=PATH
11204  ;;
11205
11206darwin* | rhapsody*)
11207  dynamic_linker="$host_os dyld"
11208  version_type=darwin
11209  need_lib_prefix=no
11210  need_version=no
11211  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11212  soname_spec='${libname}${release}${major}$shared_ext'
11213  shlibpath_overrides_runpath=yes
11214  shlibpath_var=DYLD_LIBRARY_PATH
11215  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11216
11217  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11218  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11219  ;;
11220
11221dgux*)
11222  version_type=linux
11223  need_lib_prefix=no
11224  need_version=no
11225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11226  soname_spec='${libname}${release}${shared_ext}$major'
11227  shlibpath_var=LD_LIBRARY_PATH
11228  ;;
11229
11230freebsd* | dragonfly*)
11231  # DragonFly does not have aout.  When/if they implement a new
11232  # versioning mechanism, adjust this.
11233  if test -x /usr/bin/objformat; then
11234    objformat=`/usr/bin/objformat`
11235  else
11236    case $host_os in
11237    freebsd[23].*) objformat=aout ;;
11238    *) objformat=elf ;;
11239    esac
11240  fi
11241  version_type=freebsd-$objformat
11242  case $version_type in
11243    freebsd-elf*)
11244      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11245      need_version=no
11246      need_lib_prefix=no
11247      ;;
11248    freebsd-*)
11249      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11250      need_version=yes
11251      ;;
11252  esac
11253  shlibpath_var=LD_LIBRARY_PATH
11254  case $host_os in
11255  freebsd2.*)
11256    shlibpath_overrides_runpath=yes
11257    ;;
11258  freebsd3.[01]* | freebsdelf3.[01]*)
11259    shlibpath_overrides_runpath=yes
11260    hardcode_into_libs=yes
11261    ;;
11262  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11263  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11264    shlibpath_overrides_runpath=no
11265    hardcode_into_libs=yes
11266    ;;
11267  *) # from 4.6 on, and DragonFly
11268    shlibpath_overrides_runpath=yes
11269    hardcode_into_libs=yes
11270    ;;
11271  esac
11272  ;;
11273
11274haiku*)
11275  version_type=linux
11276  need_lib_prefix=no
11277  need_version=no
11278  dynamic_linker="$host_os runtime_loader"
11279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11280  soname_spec='${libname}${release}${shared_ext}$major'
11281  shlibpath_var=LIBRARY_PATH
11282  shlibpath_overrides_runpath=yes
11283  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11284  hardcode_into_libs=yes
11285  ;;
11286
11287hpux9* | hpux10* | hpux11*)
11288  # Give a soname corresponding to the major version so that dld.sl refuses to
11289  # link against other versions.
11290  version_type=sunos
11291  need_lib_prefix=no
11292  need_version=no
11293  case $host_cpu in
11294  ia64*)
11295    shrext_cmds='.so'
11296    hardcode_into_libs=yes
11297    dynamic_linker="$host_os dld.so"
11298    shlibpath_var=LD_LIBRARY_PATH
11299    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11300    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301    soname_spec='${libname}${release}${shared_ext}$major'
11302    if test "X$HPUX_IA64_MODE" = X32; then
11303      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11304    else
11305      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11306    fi
11307    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11308    ;;
11309  hppa*64*)
11310    shrext_cmds='.sl'
11311    hardcode_into_libs=yes
11312    dynamic_linker="$host_os dld.sl"
11313    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11314    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316    soname_spec='${libname}${release}${shared_ext}$major'
11317    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11318    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11319    ;;
11320  *)
11321    shrext_cmds='.sl'
11322    dynamic_linker="$host_os dld.sl"
11323    shlibpath_var=SHLIB_PATH
11324    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11325    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326    soname_spec='${libname}${release}${shared_ext}$major'
11327    ;;
11328  esac
11329  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11330  postinstall_cmds='chmod 555 $lib'
11331  # or fails outright, so override atomically:
11332  install_override_mode=555
11333  ;;
11334
11335interix[3-9]*)
11336  version_type=linux
11337  need_lib_prefix=no
11338  need_version=no
11339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11340  soname_spec='${libname}${release}${shared_ext}$major'
11341  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11342  shlibpath_var=LD_LIBRARY_PATH
11343  shlibpath_overrides_runpath=no
11344  hardcode_into_libs=yes
11345  ;;
11346
11347irix5* | irix6* | nonstopux*)
11348  case $host_os in
11349    nonstopux*) version_type=nonstopux ;;
11350    *)
11351	if test "$lt_cv_prog_gnu_ld" = yes; then
11352		version_type=linux
11353	else
11354		version_type=irix
11355	fi ;;
11356  esac
11357  need_lib_prefix=no
11358  need_version=no
11359  soname_spec='${libname}${release}${shared_ext}$major'
11360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11361  case $host_os in
11362  irix5* | nonstopux*)
11363    libsuff= shlibsuff=
11364    ;;
11365  *)
11366    case $LD in # libtool.m4 will add one of these switches to LD
11367    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11368      libsuff= shlibsuff= libmagic=32-bit;;
11369    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11370      libsuff=32 shlibsuff=N32 libmagic=N32;;
11371    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11372      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11373    *) libsuff= shlibsuff= libmagic=never-match;;
11374    esac
11375    ;;
11376  esac
11377  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11378  shlibpath_overrides_runpath=no
11379  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11380  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11381  hardcode_into_libs=yes
11382  ;;
11383
11384# No shared lib support for Linux oldld, aout, or coff.
11385linux*oldld* | linux*aout* | linux*coff*)
11386  dynamic_linker=no
11387  ;;
11388
11389# This must be Linux ELF.
11390
11391# uclinux* changes (here and below) have been submitted to the libtool
11392# project, but have not yet been accepted: they are GCC-local changes
11393# for the time being.  (See
11394# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11395linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11396  version_type=linux
11397  need_lib_prefix=no
11398  need_version=no
11399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11400  soname_spec='${libname}${release}${shared_ext}$major'
11401  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11402  shlibpath_var=LD_LIBRARY_PATH
11403  shlibpath_overrides_runpath=no
11404
11405  # Some binutils ld are patched to set DT_RUNPATH
11406  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11407  $as_echo_n "(cached) " >&6
11408else
11409  lt_cv_shlibpath_overrides_runpath=no
11410    save_LDFLAGS=$LDFLAGS
11411    save_libdir=$libdir
11412    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11413	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11414    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415/* end confdefs.h.  */
11416
11417int
11418main ()
11419{
11420
11421  ;
11422  return 0;
11423}
11424_ACEOF
11425if ac_fn_c_try_link "$LINENO"; then :
11426  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11427  lt_cv_shlibpath_overrides_runpath=yes
11428fi
11429fi
11430rm -f core conftest.err conftest.$ac_objext \
11431    conftest$ac_exeext conftest.$ac_ext
11432    LDFLAGS=$save_LDFLAGS
11433    libdir=$save_libdir
11434
11435fi
11436
11437  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11438
11439  # This implies no fast_install, which is unacceptable.
11440  # Some rework will be needed to allow for fast_install
11441  # before this can be enabled.
11442  hardcode_into_libs=yes
11443
11444  # Append ld.so.conf contents to the search path
11445  if test -f /etc/ld.so.conf; then
11446    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' ' '`
11447    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11448  fi
11449
11450  # We used to test for /lib/ld.so.1 and disable shared libraries on
11451  # powerpc, because MkLinux only supported shared libraries with the
11452  # GNU dynamic linker.  Since this was broken with cross compilers,
11453  # most powerpc-linux boxes support dynamic linking these days and
11454  # people can always --disable-shared, the test was removed, and we
11455  # assume the GNU/Linux dynamic linker is in use.
11456  dynamic_linker='GNU/Linux ld.so'
11457  ;;
11458
11459netbsd*)
11460  version_type=sunos
11461  need_lib_prefix=no
11462  need_version=no
11463  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11464    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11465    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11466    dynamic_linker='NetBSD (a.out) ld.so'
11467  else
11468    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11469    soname_spec='${libname}${release}${shared_ext}$major'
11470    dynamic_linker='NetBSD ld.elf_so'
11471  fi
11472  shlibpath_var=LD_LIBRARY_PATH
11473  shlibpath_overrides_runpath=yes
11474  hardcode_into_libs=yes
11475  ;;
11476
11477newsos6)
11478  version_type=linux
11479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480  shlibpath_var=LD_LIBRARY_PATH
11481  shlibpath_overrides_runpath=yes
11482  ;;
11483
11484*nto* | *qnx*)
11485  version_type=qnx
11486  need_lib_prefix=no
11487  need_version=no
11488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489  soname_spec='${libname}${release}${shared_ext}$major'
11490  shlibpath_var=LD_LIBRARY_PATH
11491  shlibpath_overrides_runpath=no
11492  hardcode_into_libs=yes
11493  dynamic_linker='ldqnx.so'
11494  ;;
11495
11496openbsd*)
11497  version_type=sunos
11498  sys_lib_dlsearch_path_spec="/usr/lib"
11499  need_lib_prefix=no
11500  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11501  case $host_os in
11502    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11503    *)				need_version=no  ;;
11504  esac
11505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11506  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11507  shlibpath_var=LD_LIBRARY_PATH
11508  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11509    case $host_os in
11510      openbsd2.[89] | openbsd2.[89].*)
11511	shlibpath_overrides_runpath=no
11512	;;
11513      *)
11514	shlibpath_overrides_runpath=yes
11515	;;
11516      esac
11517  else
11518    shlibpath_overrides_runpath=yes
11519  fi
11520  ;;
11521
11522os2*)
11523  libname_spec='$name'
11524  shrext_cmds=".dll"
11525  need_lib_prefix=no
11526  library_names_spec='$libname${shared_ext} $libname.a'
11527  dynamic_linker='OS/2 ld.exe'
11528  shlibpath_var=LIBPATH
11529  ;;
11530
11531osf3* | osf4* | osf5*)
11532  version_type=osf
11533  need_lib_prefix=no
11534  need_version=no
11535  soname_spec='${libname}${release}${shared_ext}$major'
11536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537  shlibpath_var=LD_LIBRARY_PATH
11538  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11539  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11540  ;;
11541
11542rdos*)
11543  dynamic_linker=no
11544  ;;
11545
11546solaris*)
11547  version_type=linux
11548  need_lib_prefix=no
11549  need_version=no
11550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551  soname_spec='${libname}${release}${shared_ext}$major'
11552  shlibpath_var=LD_LIBRARY_PATH
11553  shlibpath_overrides_runpath=yes
11554  hardcode_into_libs=yes
11555  # ldd complains unless libraries are executable
11556  postinstall_cmds='chmod +x $lib'
11557  ;;
11558
11559sunos4*)
11560  version_type=sunos
11561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11562  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11563  shlibpath_var=LD_LIBRARY_PATH
11564  shlibpath_overrides_runpath=yes
11565  if test "$with_gnu_ld" = yes; then
11566    need_lib_prefix=no
11567  fi
11568  need_version=yes
11569  ;;
11570
11571sysv4 | sysv4.3*)
11572  version_type=linux
11573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574  soname_spec='${libname}${release}${shared_ext}$major'
11575  shlibpath_var=LD_LIBRARY_PATH
11576  case $host_vendor in
11577    sni)
11578      shlibpath_overrides_runpath=no
11579      need_lib_prefix=no
11580      runpath_var=LD_RUN_PATH
11581      ;;
11582    siemens)
11583      need_lib_prefix=no
11584      ;;
11585    motorola)
11586      need_lib_prefix=no
11587      need_version=no
11588      shlibpath_overrides_runpath=no
11589      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11590      ;;
11591  esac
11592  ;;
11593
11594sysv4*MP*)
11595  if test -d /usr/nec ;then
11596    version_type=linux
11597    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11598    soname_spec='$libname${shared_ext}.$major'
11599    shlibpath_var=LD_LIBRARY_PATH
11600  fi
11601  ;;
11602
11603sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11604  version_type=freebsd-elf
11605  need_lib_prefix=no
11606  need_version=no
11607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11608  soname_spec='${libname}${release}${shared_ext}$major'
11609  shlibpath_var=LD_LIBRARY_PATH
11610  shlibpath_overrides_runpath=yes
11611  hardcode_into_libs=yes
11612  if test "$with_gnu_ld" = yes; then
11613    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11614  else
11615    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11616    case $host_os in
11617      sco3.2v5*)
11618        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11619	;;
11620    esac
11621  fi
11622  sys_lib_dlsearch_path_spec='/usr/lib'
11623  ;;
11624
11625tpf*)
11626  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11627  version_type=linux
11628  need_lib_prefix=no
11629  need_version=no
11630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631  shlibpath_var=LD_LIBRARY_PATH
11632  shlibpath_overrides_runpath=no
11633  hardcode_into_libs=yes
11634  ;;
11635
11636uts4*)
11637  version_type=linux
11638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639  soname_spec='${libname}${release}${shared_ext}$major'
11640  shlibpath_var=LD_LIBRARY_PATH
11641  ;;
11642
11643*)
11644  dynamic_linker=no
11645  ;;
11646esac
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11648$as_echo "$dynamic_linker" >&6; }
11649test "$dynamic_linker" = no && can_build_shared=no
11650
11651variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11652if test "$GCC" = yes; then
11653  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11654fi
11655
11656if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11657  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11658fi
11659if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11660  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11661fi
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11755$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11756hardcode_action=
11757if test -n "$hardcode_libdir_flag_spec" ||
11758   test -n "$runpath_var" ||
11759   test "X$hardcode_automatic" = "Xyes" ; then
11760
11761  # We can hardcode non-existent directories.
11762  if test "$hardcode_direct" != no &&
11763     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11764     # have to relink, otherwise we might link with an installed library
11765     # when we should be linking with a yet-to-be-installed one
11766     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11767     test "$hardcode_minus_L" != no; then
11768    # Linking always hardcodes the temporary library directory.
11769    hardcode_action=relink
11770  else
11771    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11772    hardcode_action=immediate
11773  fi
11774else
11775  # We cannot hardcode anything, or else we can only hardcode existing
11776  # directories.
11777  hardcode_action=unsupported
11778fi
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11780$as_echo "$hardcode_action" >&6; }
11781
11782if test "$hardcode_action" = relink ||
11783   test "$inherit_rpath" = yes; then
11784  # Fast installation is not supported
11785  enable_fast_install=no
11786elif test "$shlibpath_overrides_runpath" = yes ||
11787     test "$enable_shared" = no; then
11788  # Fast installation is not necessary
11789  enable_fast_install=needless
11790fi
11791
11792
11793
11794
11795
11796
11797  if test "x$enable_dlopen" != xyes; then
11798  enable_dlopen=unknown
11799  enable_dlopen_self=unknown
11800  enable_dlopen_self_static=unknown
11801else
11802  lt_cv_dlopen=no
11803  lt_cv_dlopen_libs=
11804
11805  case $host_os in
11806  beos*)
11807    lt_cv_dlopen="load_add_on"
11808    lt_cv_dlopen_libs=
11809    lt_cv_dlopen_self=yes
11810    ;;
11811
11812  mingw* | pw32* | cegcc*)
11813    lt_cv_dlopen="LoadLibrary"
11814    lt_cv_dlopen_libs=
11815    ;;
11816
11817  cygwin*)
11818    lt_cv_dlopen="dlopen"
11819    lt_cv_dlopen_libs=
11820    ;;
11821
11822  darwin*)
11823  # if libdl is installed we need to link against it
11824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11825$as_echo_n "checking for dlopen in -ldl... " >&6; }
11826if ${ac_cv_lib_dl_dlopen+:} false; then :
11827  $as_echo_n "(cached) " >&6
11828else
11829  ac_check_lib_save_LIBS=$LIBS
11830LIBS="-ldl  $LIBS"
11831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832/* end confdefs.h.  */
11833
11834/* Override any GCC internal prototype to avoid an error.
11835   Use char because int might match the return type of a GCC
11836   builtin and then its argument prototype would still apply.  */
11837#ifdef __cplusplus
11838extern "C"
11839#endif
11840char dlopen ();
11841int
11842main ()
11843{
11844return dlopen ();
11845  ;
11846  return 0;
11847}
11848_ACEOF
11849if ac_fn_c_try_link "$LINENO"; then :
11850  ac_cv_lib_dl_dlopen=yes
11851else
11852  ac_cv_lib_dl_dlopen=no
11853fi
11854rm -f core conftest.err conftest.$ac_objext \
11855    conftest$ac_exeext conftest.$ac_ext
11856LIBS=$ac_check_lib_save_LIBS
11857fi
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11859$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11860if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11861  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11862else
11863
11864    lt_cv_dlopen="dyld"
11865    lt_cv_dlopen_libs=
11866    lt_cv_dlopen_self=yes
11867
11868fi
11869
11870    ;;
11871
11872  *)
11873    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11874if test "x$ac_cv_func_shl_load" = xyes; then :
11875  lt_cv_dlopen="shl_load"
11876else
11877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11878$as_echo_n "checking for shl_load in -ldld... " >&6; }
11879if ${ac_cv_lib_dld_shl_load+:} false; then :
11880  $as_echo_n "(cached) " >&6
11881else
11882  ac_check_lib_save_LIBS=$LIBS
11883LIBS="-ldld  $LIBS"
11884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885/* end confdefs.h.  */
11886
11887/* Override any GCC internal prototype to avoid an error.
11888   Use char because int might match the return type of a GCC
11889   builtin and then its argument prototype would still apply.  */
11890#ifdef __cplusplus
11891extern "C"
11892#endif
11893char shl_load ();
11894int
11895main ()
11896{
11897return shl_load ();
11898  ;
11899  return 0;
11900}
11901_ACEOF
11902if ac_fn_c_try_link "$LINENO"; then :
11903  ac_cv_lib_dld_shl_load=yes
11904else
11905  ac_cv_lib_dld_shl_load=no
11906fi
11907rm -f core conftest.err conftest.$ac_objext \
11908    conftest$ac_exeext conftest.$ac_ext
11909LIBS=$ac_check_lib_save_LIBS
11910fi
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11912$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11913if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11914  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11915else
11916  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11917if test "x$ac_cv_func_dlopen" = xyes; then :
11918  lt_cv_dlopen="dlopen"
11919else
11920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11921$as_echo_n "checking for dlopen in -ldl... " >&6; }
11922if ${ac_cv_lib_dl_dlopen+:} false; then :
11923  $as_echo_n "(cached) " >&6
11924else
11925  ac_check_lib_save_LIBS=$LIBS
11926LIBS="-ldl  $LIBS"
11927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928/* end confdefs.h.  */
11929
11930/* Override any GCC internal prototype to avoid an error.
11931   Use char because int might match the return type of a GCC
11932   builtin and then its argument prototype would still apply.  */
11933#ifdef __cplusplus
11934extern "C"
11935#endif
11936char dlopen ();
11937int
11938main ()
11939{
11940return dlopen ();
11941  ;
11942  return 0;
11943}
11944_ACEOF
11945if ac_fn_c_try_link "$LINENO"; then :
11946  ac_cv_lib_dl_dlopen=yes
11947else
11948  ac_cv_lib_dl_dlopen=no
11949fi
11950rm -f core conftest.err conftest.$ac_objext \
11951    conftest$ac_exeext conftest.$ac_ext
11952LIBS=$ac_check_lib_save_LIBS
11953fi
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11955$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11956if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11957  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11958else
11959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11960$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11961if ${ac_cv_lib_svld_dlopen+:} false; then :
11962  $as_echo_n "(cached) " >&6
11963else
11964  ac_check_lib_save_LIBS=$LIBS
11965LIBS="-lsvld  $LIBS"
11966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967/* end confdefs.h.  */
11968
11969/* Override any GCC internal prototype to avoid an error.
11970   Use char because int might match the return type of a GCC
11971   builtin and then its argument prototype would still apply.  */
11972#ifdef __cplusplus
11973extern "C"
11974#endif
11975char dlopen ();
11976int
11977main ()
11978{
11979return dlopen ();
11980  ;
11981  return 0;
11982}
11983_ACEOF
11984if ac_fn_c_try_link "$LINENO"; then :
11985  ac_cv_lib_svld_dlopen=yes
11986else
11987  ac_cv_lib_svld_dlopen=no
11988fi
11989rm -f core conftest.err conftest.$ac_objext \
11990    conftest$ac_exeext conftest.$ac_ext
11991LIBS=$ac_check_lib_save_LIBS
11992fi
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11994$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11995if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11996  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11997else
11998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11999$as_echo_n "checking for dld_link in -ldld... " >&6; }
12000if ${ac_cv_lib_dld_dld_link+:} false; then :
12001  $as_echo_n "(cached) " >&6
12002else
12003  ac_check_lib_save_LIBS=$LIBS
12004LIBS="-ldld  $LIBS"
12005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006/* end confdefs.h.  */
12007
12008/* Override any GCC internal prototype to avoid an error.
12009   Use char because int might match the return type of a GCC
12010   builtin and then its argument prototype would still apply.  */
12011#ifdef __cplusplus
12012extern "C"
12013#endif
12014char dld_link ();
12015int
12016main ()
12017{
12018return dld_link ();
12019  ;
12020  return 0;
12021}
12022_ACEOF
12023if ac_fn_c_try_link "$LINENO"; then :
12024  ac_cv_lib_dld_dld_link=yes
12025else
12026  ac_cv_lib_dld_dld_link=no
12027fi
12028rm -f core conftest.err conftest.$ac_objext \
12029    conftest$ac_exeext conftest.$ac_ext
12030LIBS=$ac_check_lib_save_LIBS
12031fi
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12033$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12034if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12035  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12036fi
12037
12038
12039fi
12040
12041
12042fi
12043
12044
12045fi
12046
12047
12048fi
12049
12050
12051fi
12052
12053    ;;
12054  esac
12055
12056  if test "x$lt_cv_dlopen" != xno; then
12057    enable_dlopen=yes
12058  else
12059    enable_dlopen=no
12060  fi
12061
12062  case $lt_cv_dlopen in
12063  dlopen)
12064    save_CPPFLAGS="$CPPFLAGS"
12065    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12066
12067    save_LDFLAGS="$LDFLAGS"
12068    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12069
12070    save_LIBS="$LIBS"
12071    LIBS="$lt_cv_dlopen_libs $LIBS"
12072
12073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12074$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12075if ${lt_cv_dlopen_self+:} false; then :
12076  $as_echo_n "(cached) " >&6
12077else
12078  	  if test "$cross_compiling" = yes; then :
12079  lt_cv_dlopen_self=cross
12080else
12081  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12082  lt_status=$lt_dlunknown
12083  cat > conftest.$ac_ext <<_LT_EOF
12084#line 12084 "configure"
12085#include "confdefs.h"
12086
12087#if HAVE_DLFCN_H
12088#include <dlfcn.h>
12089#endif
12090
12091#include <stdio.h>
12092
12093#ifdef RTLD_GLOBAL
12094#  define LT_DLGLOBAL		RTLD_GLOBAL
12095#else
12096#  ifdef DL_GLOBAL
12097#    define LT_DLGLOBAL		DL_GLOBAL
12098#  else
12099#    define LT_DLGLOBAL		0
12100#  endif
12101#endif
12102
12103/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12104   find out it does not work in some platform. */
12105#ifndef LT_DLLAZY_OR_NOW
12106#  ifdef RTLD_LAZY
12107#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12108#  else
12109#    ifdef DL_LAZY
12110#      define LT_DLLAZY_OR_NOW		DL_LAZY
12111#    else
12112#      ifdef RTLD_NOW
12113#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12114#      else
12115#        ifdef DL_NOW
12116#          define LT_DLLAZY_OR_NOW	DL_NOW
12117#        else
12118#          define LT_DLLAZY_OR_NOW	0
12119#        endif
12120#      endif
12121#    endif
12122#  endif
12123#endif
12124
12125/* When -fvisbility=hidden is used, assume the code has been annotated
12126   correspondingly for the symbols needed.  */
12127#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12128void fnord () __attribute__((visibility("default")));
12129#endif
12130
12131void fnord () { int i=42; }
12132int main ()
12133{
12134  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12135  int status = $lt_dlunknown;
12136
12137  if (self)
12138    {
12139      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12140      else
12141        {
12142	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12143          else puts (dlerror ());
12144	}
12145      /* dlclose (self); */
12146    }
12147  else
12148    puts (dlerror ());
12149
12150  return status;
12151}
12152_LT_EOF
12153  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12154  (eval $ac_link) 2>&5
12155  ac_status=$?
12156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12157  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12158    (./conftest; exit; ) >&5 2>/dev/null
12159    lt_status=$?
12160    case x$lt_status in
12161      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12162      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12163      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12164    esac
12165  else :
12166    # compilation failed
12167    lt_cv_dlopen_self=no
12168  fi
12169fi
12170rm -fr conftest*
12171
12172
12173fi
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12175$as_echo "$lt_cv_dlopen_self" >&6; }
12176
12177    if test "x$lt_cv_dlopen_self" = xyes; then
12178      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12179      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12180$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12181if ${lt_cv_dlopen_self_static+:} false; then :
12182  $as_echo_n "(cached) " >&6
12183else
12184  	  if test "$cross_compiling" = yes; then :
12185  lt_cv_dlopen_self_static=cross
12186else
12187  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12188  lt_status=$lt_dlunknown
12189  cat > conftest.$ac_ext <<_LT_EOF
12190#line 12190 "configure"
12191#include "confdefs.h"
12192
12193#if HAVE_DLFCN_H
12194#include <dlfcn.h>
12195#endif
12196
12197#include <stdio.h>
12198
12199#ifdef RTLD_GLOBAL
12200#  define LT_DLGLOBAL		RTLD_GLOBAL
12201#else
12202#  ifdef DL_GLOBAL
12203#    define LT_DLGLOBAL		DL_GLOBAL
12204#  else
12205#    define LT_DLGLOBAL		0
12206#  endif
12207#endif
12208
12209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12210   find out it does not work in some platform. */
12211#ifndef LT_DLLAZY_OR_NOW
12212#  ifdef RTLD_LAZY
12213#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12214#  else
12215#    ifdef DL_LAZY
12216#      define LT_DLLAZY_OR_NOW		DL_LAZY
12217#    else
12218#      ifdef RTLD_NOW
12219#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12220#      else
12221#        ifdef DL_NOW
12222#          define LT_DLLAZY_OR_NOW	DL_NOW
12223#        else
12224#          define LT_DLLAZY_OR_NOW	0
12225#        endif
12226#      endif
12227#    endif
12228#  endif
12229#endif
12230
12231/* When -fvisbility=hidden is used, assume the code has been annotated
12232   correspondingly for the symbols needed.  */
12233#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12234void fnord () __attribute__((visibility("default")));
12235#endif
12236
12237void fnord () { int i=42; }
12238int main ()
12239{
12240  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12241  int status = $lt_dlunknown;
12242
12243  if (self)
12244    {
12245      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12246      else
12247        {
12248	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12249          else puts (dlerror ());
12250	}
12251      /* dlclose (self); */
12252    }
12253  else
12254    puts (dlerror ());
12255
12256  return status;
12257}
12258_LT_EOF
12259  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12260  (eval $ac_link) 2>&5
12261  ac_status=$?
12262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12263  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12264    (./conftest; exit; ) >&5 2>/dev/null
12265    lt_status=$?
12266    case x$lt_status in
12267      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12268      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12269      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12270    esac
12271  else :
12272    # compilation failed
12273    lt_cv_dlopen_self_static=no
12274  fi
12275fi
12276rm -fr conftest*
12277
12278
12279fi
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12281$as_echo "$lt_cv_dlopen_self_static" >&6; }
12282    fi
12283
12284    CPPFLAGS="$save_CPPFLAGS"
12285    LDFLAGS="$save_LDFLAGS"
12286    LIBS="$save_LIBS"
12287    ;;
12288  esac
12289
12290  case $lt_cv_dlopen_self in
12291  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12292  *) enable_dlopen_self=unknown ;;
12293  esac
12294
12295  case $lt_cv_dlopen_self_static in
12296  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12297  *) enable_dlopen_self_static=unknown ;;
12298  esac
12299fi
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317striplib=
12318old_striplib=
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12320$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12321if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12322  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12323  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12325$as_echo "yes" >&6; }
12326else
12327# FIXME - insert some real tests, host_os isn't really good enough
12328  case $host_os in
12329  darwin*)
12330    if test -n "$STRIP" ; then
12331      striplib="$STRIP -x"
12332      old_striplib="$STRIP -S"
12333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12334$as_echo "yes" >&6; }
12335    else
12336      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338    fi
12339    ;;
12340  *)
12341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342$as_echo "no" >&6; }
12343    ;;
12344  esac
12345fi
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358  # Report which library types will actually be built
12359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12360$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12362$as_echo "$can_build_shared" >&6; }
12363
12364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12365$as_echo_n "checking whether to build shared libraries... " >&6; }
12366  test "$can_build_shared" = "no" && enable_shared=no
12367
12368  # On AIX, shared libraries and static libraries use the same namespace, and
12369  # are all built from PIC.
12370  case $host_os in
12371  aix3*)
12372    test "$enable_shared" = yes && enable_static=no
12373    if test -n "$RANLIB"; then
12374      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12375      postinstall_cmds='$RANLIB $lib'
12376    fi
12377    ;;
12378
12379  aix[4-9]*)
12380    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12381      test "$enable_shared" = yes && enable_static=no
12382    fi
12383    ;;
12384  esac
12385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12386$as_echo "$enable_shared" >&6; }
12387
12388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12389$as_echo_n "checking whether to build static libraries... " >&6; }
12390  # Make sure either enable_shared or enable_static is yes.
12391  test "$enable_shared" = yes || enable_static=yes
12392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12393$as_echo "$enable_static" >&6; }
12394
12395
12396
12397
12398fi
12399ac_ext=c
12400ac_cpp='$CPP $CPPFLAGS'
12401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12403ac_compiler_gnu=$ac_cv_c_compiler_gnu
12404
12405CC="$lt_save_CC"
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419        ac_config_commands="$ac_config_commands libtool"
12420
12421
12422
12423
12424# Only expand once:
12425
12426
12427
12428
12429
12430case $host in
12431  *-cygwin* | *-mingw*)
12432    # 'host' will be top-level target in the case of a target lib,
12433    # we must compare to with_cross_host to decide if this is a native
12434    # or cross-compiler and select where to install dlls appropriately.
12435    if test -n "$with_cross_host" &&
12436	test x"$with_cross_host" != x"no"; then
12437      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12438    else
12439      lt_host_flags='-no-undefined -bindir "$(bindir)"';
12440    fi
12441    ;;
12442  *)
12443    lt_host_flags=
12444    ;;
12445esac
12446
12447
12448
12449
12450ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12451case $ac_cv_c_int64_t in #(
12452  no|yes) ;; #(
12453  *)
12454
12455cat >>confdefs.h <<_ACEOF
12456#define int64_t $ac_cv_c_int64_t
12457_ACEOF
12458;;
12459esac
12460
12461ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12462case $ac_cv_c_uint64_t in #(
12463  no|yes) ;; #(
12464  *)
12465
12466$as_echo "#define _UINT64_T 1" >>confdefs.h
12467
12468
12469cat >>confdefs.h <<_ACEOF
12470#define uint64_t $ac_cv_c_uint64_t
12471_ACEOF
12472;;
12473  esac
12474
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12476$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12477if ${ac_cv_header_sys_wait_h+:} false; then :
12478  $as_echo_n "(cached) " >&6
12479else
12480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481/* end confdefs.h.  */
12482#include <sys/types.h>
12483#include <sys/wait.h>
12484#ifndef WEXITSTATUS
12485# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12486#endif
12487#ifndef WIFEXITED
12488# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12489#endif
12490
12491int
12492main ()
12493{
12494  int s;
12495  wait (&s);
12496  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12497  ;
12498  return 0;
12499}
12500_ACEOF
12501if ac_fn_c_try_compile "$LINENO"; then :
12502  ac_cv_header_sys_wait_h=yes
12503else
12504  ac_cv_header_sys_wait_h=no
12505fi
12506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507fi
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12509$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12510if test $ac_cv_header_sys_wait_h = yes; then
12511
12512$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12513
12514fi
12515
12516ac_config_files="$ac_config_files Makefile"
12517
12518ac_config_headers="$ac_config_headers config.h"
12519
12520cat >confcache <<\_ACEOF
12521# This file is a shell script that caches the results of configure
12522# tests run on this system so they can be shared between configure
12523# scripts and configure runs, see configure's option --config-cache.
12524# It is not useful on other systems.  If it contains results you don't
12525# want to keep, you may remove or edit it.
12526#
12527# config.status only pays attention to the cache file if you give it
12528# the --recheck option to rerun configure.
12529#
12530# `ac_cv_env_foo' variables (set or unset) will be overridden when
12531# loading this file, other *unset* `ac_cv_foo' will be assigned the
12532# following values.
12533
12534_ACEOF
12535
12536# The following way of writing the cache mishandles newlines in values,
12537# but we know of no workaround that is simple, portable, and efficient.
12538# So, we kill variables containing newlines.
12539# Ultrix sh set writes to stderr and can't be redirected directly,
12540# and sets the high bit in the cache file unless we assign to the vars.
12541(
12542  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12543    eval ac_val=\$$ac_var
12544    case $ac_val in #(
12545    *${as_nl}*)
12546      case $ac_var in #(
12547      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12548$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12549      esac
12550      case $ac_var in #(
12551      _ | IFS | as_nl) ;; #(
12552      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12553      *) { eval $ac_var=; unset $ac_var;} ;;
12554      esac ;;
12555    esac
12556  done
12557
12558  (set) 2>&1 |
12559    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12560    *${as_nl}ac_space=\ *)
12561      # `set' does not quote correctly, so add quotes: double-quote
12562      # substitution turns \\\\ into \\, and sed turns \\ into \.
12563      sed -n \
12564	"s/'/'\\\\''/g;
12565	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12566      ;; #(
12567    *)
12568      # `set' quotes correctly as required by POSIX, so do not add quotes.
12569      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12570      ;;
12571    esac |
12572    sort
12573) |
12574  sed '
12575     /^ac_cv_env_/b end
12576     t clear
12577     :clear
12578     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12579     t end
12580     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12581     :end' >>confcache
12582if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12583  if test -w "$cache_file"; then
12584    if test "x$cache_file" != "x/dev/null"; then
12585      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12586$as_echo "$as_me: updating cache $cache_file" >&6;}
12587      if test ! -f "$cache_file" || test -h "$cache_file"; then
12588	cat confcache >"$cache_file"
12589      else
12590        case $cache_file in #(
12591        */* | ?:*)
12592	  mv -f confcache "$cache_file"$$ &&
12593	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12594        *)
12595	  mv -f confcache "$cache_file" ;;
12596	esac
12597      fi
12598    fi
12599  else
12600    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12601$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12602  fi
12603fi
12604rm -f confcache
12605
12606test "x$prefix" = xNONE && prefix=$ac_default_prefix
12607# Let make expand exec_prefix.
12608test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12609
12610DEFS=-DHAVE_CONFIG_H
12611
12612ac_libobjs=
12613ac_ltlibobjs=
12614U=
12615for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12616  # 1. Remove the extension, and $U if already installed.
12617  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12618  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12619  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12620  #    will be set to the directory where LIBOBJS objects are built.
12621  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12622  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12623done
12624LIBOBJS=$ac_libobjs
12625
12626LTLIBOBJS=$ac_ltlibobjs
12627
12628
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12630$as_echo_n "checking that generated files are newer than configure... " >&6; }
12631   if test -n "$am_sleep_pid"; then
12632     # Hide warnings about reused PIDs.
12633     wait $am_sleep_pid 2>/dev/null
12634   fi
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12636$as_echo "done" >&6; }
12637 if test -n "$EXEEXT"; then
12638  am__EXEEXT_TRUE=
12639  am__EXEEXT_FALSE='#'
12640else
12641  am__EXEEXT_TRUE='#'
12642  am__EXEEXT_FALSE=
12643fi
12644
12645if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12646  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12647Usually this means the macro was only invoked conditionally." "$LINENO" 5
12648fi
12649if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12650  as_fn_error $? "conditional \"AMDEP\" was never defined.
12651Usually this means the macro was only invoked conditionally." "$LINENO" 5
12652fi
12653if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12654  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12655Usually this means the macro was only invoked conditionally." "$LINENO" 5
12656fi
12657if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12658  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12659Usually this means the macro was only invoked conditionally." "$LINENO" 5
12660fi
12661if test -z "${LTO_PLUGIN_USE_SYMVER_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_FALSE}"; then
12662  as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER\" was never defined.
12663Usually this means the macro was only invoked conditionally." "$LINENO" 5
12664fi
12665if test -z "${LTO_PLUGIN_USE_SYMVER_GNU_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_GNU_FALSE}"; then
12666  as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_GNU\" was never defined.
12667Usually this means the macro was only invoked conditionally." "$LINENO" 5
12668fi
12669if test -z "${LTO_PLUGIN_USE_SYMVER_SUN_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_SUN_FALSE}"; then
12670  as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_SUN\" was never defined.
12671Usually this means the macro was only invoked conditionally." "$LINENO" 5
12672fi
12673
12674: "${CONFIG_STATUS=./config.status}"
12675ac_write_fail=0
12676ac_clean_files_save=$ac_clean_files
12677ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12679$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12680as_write_fail=0
12681cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12682#! $SHELL
12683# Generated by $as_me.
12684# Run this file to recreate the current configuration.
12685# Compiler output produced by configure, useful for debugging
12686# configure, is in config.log if it exists.
12687
12688debug=false
12689ac_cs_recheck=false
12690ac_cs_silent=false
12691
12692SHELL=\${CONFIG_SHELL-$SHELL}
12693export SHELL
12694_ASEOF
12695cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12696## -------------------- ##
12697## M4sh Initialization. ##
12698## -------------------- ##
12699
12700# Be more Bourne compatible
12701DUALCASE=1; export DUALCASE # for MKS sh
12702if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12703  emulate sh
12704  NULLCMD=:
12705  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12706  # is contrary to our usage.  Disable this feature.
12707  alias -g '${1+"$@"}'='"$@"'
12708  setopt NO_GLOB_SUBST
12709else
12710  case `(set -o) 2>/dev/null` in #(
12711  *posix*) :
12712    set -o posix ;; #(
12713  *) :
12714     ;;
12715esac
12716fi
12717
12718
12719as_nl='
12720'
12721export as_nl
12722# Printing a long string crashes Solaris 7 /usr/bin/printf.
12723as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12724as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12725as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12726# Prefer a ksh shell builtin over an external printf program on Solaris,
12727# but without wasting forks for bash or zsh.
12728if test -z "$BASH_VERSION$ZSH_VERSION" \
12729    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12730  as_echo='print -r --'
12731  as_echo_n='print -rn --'
12732elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12733  as_echo='printf %s\n'
12734  as_echo_n='printf %s'
12735else
12736  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12737    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12738    as_echo_n='/usr/ucb/echo -n'
12739  else
12740    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12741    as_echo_n_body='eval
12742      arg=$1;
12743      case $arg in #(
12744      *"$as_nl"*)
12745	expr "X$arg" : "X\\(.*\\)$as_nl";
12746	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12747      esac;
12748      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12749    '
12750    export as_echo_n_body
12751    as_echo_n='sh -c $as_echo_n_body as_echo'
12752  fi
12753  export as_echo_body
12754  as_echo='sh -c $as_echo_body as_echo'
12755fi
12756
12757# The user is always right.
12758if test "${PATH_SEPARATOR+set}" != set; then
12759  PATH_SEPARATOR=:
12760  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12761    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12762      PATH_SEPARATOR=';'
12763  }
12764fi
12765
12766
12767# IFS
12768# We need space, tab and new line, in precisely that order.  Quoting is
12769# there to prevent editors from complaining about space-tab.
12770# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12771# splitting by setting IFS to empty value.)
12772IFS=" ""	$as_nl"
12773
12774# Find who we are.  Look in the path if we contain no directory separator.
12775as_myself=
12776case $0 in #((
12777  *[\\/]* ) as_myself=$0 ;;
12778  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779for as_dir in $PATH
12780do
12781  IFS=$as_save_IFS
12782  test -z "$as_dir" && as_dir=.
12783    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12784  done
12785IFS=$as_save_IFS
12786
12787     ;;
12788esac
12789# We did not find ourselves, most probably we were run as `sh COMMAND'
12790# in which case we are not to be found in the path.
12791if test "x$as_myself" = x; then
12792  as_myself=$0
12793fi
12794if test ! -f "$as_myself"; then
12795  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12796  exit 1
12797fi
12798
12799# Unset variables that we do not need and which cause bugs (e.g. in
12800# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12801# suppresses any "Segmentation fault" message there.  '((' could
12802# trigger a bug in pdksh 5.2.14.
12803for as_var in BASH_ENV ENV MAIL MAILPATH
12804do eval test x\${$as_var+set} = xset \
12805  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12806done
12807PS1='$ '
12808PS2='> '
12809PS4='+ '
12810
12811# NLS nuisances.
12812LC_ALL=C
12813export LC_ALL
12814LANGUAGE=C
12815export LANGUAGE
12816
12817# CDPATH.
12818(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12819
12820
12821# as_fn_error STATUS ERROR [LINENO LOG_FD]
12822# ----------------------------------------
12823# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12824# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12825# script with STATUS, using 1 if that was 0.
12826as_fn_error ()
12827{
12828  as_status=$1; test $as_status -eq 0 && as_status=1
12829  if test "$4"; then
12830    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12831    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12832  fi
12833  $as_echo "$as_me: error: $2" >&2
12834  as_fn_exit $as_status
12835} # as_fn_error
12836
12837
12838# as_fn_set_status STATUS
12839# -----------------------
12840# Set $? to STATUS, without forking.
12841as_fn_set_status ()
12842{
12843  return $1
12844} # as_fn_set_status
12845
12846# as_fn_exit STATUS
12847# -----------------
12848# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12849as_fn_exit ()
12850{
12851  set +e
12852  as_fn_set_status $1
12853  exit $1
12854} # as_fn_exit
12855
12856# as_fn_unset VAR
12857# ---------------
12858# Portably unset VAR.
12859as_fn_unset ()
12860{
12861  { eval $1=; unset $1;}
12862}
12863as_unset=as_fn_unset
12864# as_fn_append VAR VALUE
12865# ----------------------
12866# Append the text in VALUE to the end of the definition contained in VAR. Take
12867# advantage of any shell optimizations that allow amortized linear growth over
12868# repeated appends, instead of the typical quadratic growth present in naive
12869# implementations.
12870if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12871  eval 'as_fn_append ()
12872  {
12873    eval $1+=\$2
12874  }'
12875else
12876  as_fn_append ()
12877  {
12878    eval $1=\$$1\$2
12879  }
12880fi # as_fn_append
12881
12882# as_fn_arith ARG...
12883# ------------------
12884# Perform arithmetic evaluation on the ARGs, and store the result in the
12885# global $as_val. Take advantage of shells that can avoid forks. The arguments
12886# must be portable across $(()) and expr.
12887if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12888  eval 'as_fn_arith ()
12889  {
12890    as_val=$(( $* ))
12891  }'
12892else
12893  as_fn_arith ()
12894  {
12895    as_val=`expr "$@" || test $? -eq 1`
12896  }
12897fi # as_fn_arith
12898
12899
12900if expr a : '\(a\)' >/dev/null 2>&1 &&
12901   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12902  as_expr=expr
12903else
12904  as_expr=false
12905fi
12906
12907if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12908  as_basename=basename
12909else
12910  as_basename=false
12911fi
12912
12913if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12914  as_dirname=dirname
12915else
12916  as_dirname=false
12917fi
12918
12919as_me=`$as_basename -- "$0" ||
12920$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12921	 X"$0" : 'X\(//\)$' \| \
12922	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12923$as_echo X/"$0" |
12924    sed '/^.*\/\([^/][^/]*\)\/*$/{
12925	    s//\1/
12926	    q
12927	  }
12928	  /^X\/\(\/\/\)$/{
12929	    s//\1/
12930	    q
12931	  }
12932	  /^X\/\(\/\).*/{
12933	    s//\1/
12934	    q
12935	  }
12936	  s/.*/./; q'`
12937
12938# Avoid depending upon Character Ranges.
12939as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12940as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12941as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12942as_cr_digits='0123456789'
12943as_cr_alnum=$as_cr_Letters$as_cr_digits
12944
12945ECHO_C= ECHO_N= ECHO_T=
12946case `echo -n x` in #(((((
12947-n*)
12948  case `echo 'xy\c'` in
12949  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12950  xy)  ECHO_C='\c';;
12951  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12952       ECHO_T='	';;
12953  esac;;
12954*)
12955  ECHO_N='-n';;
12956esac
12957
12958rm -f conf$$ conf$$.exe conf$$.file
12959if test -d conf$$.dir; then
12960  rm -f conf$$.dir/conf$$.file
12961else
12962  rm -f conf$$.dir
12963  mkdir conf$$.dir 2>/dev/null
12964fi
12965if (echo >conf$$.file) 2>/dev/null; then
12966  if ln -s conf$$.file conf$$ 2>/dev/null; then
12967    as_ln_s='ln -s'
12968    # ... but there are two gotchas:
12969    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12970    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12971    # In both cases, we have to default to `cp -pR'.
12972    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12973      as_ln_s='cp -pR'
12974  elif ln conf$$.file conf$$ 2>/dev/null; then
12975    as_ln_s=ln
12976  else
12977    as_ln_s='cp -pR'
12978  fi
12979else
12980  as_ln_s='cp -pR'
12981fi
12982rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12983rmdir conf$$.dir 2>/dev/null
12984
12985
12986# as_fn_mkdir_p
12987# -------------
12988# Create "$as_dir" as a directory, including parents if necessary.
12989as_fn_mkdir_p ()
12990{
12991
12992  case $as_dir in #(
12993  -*) as_dir=./$as_dir;;
12994  esac
12995  test -d "$as_dir" || eval $as_mkdir_p || {
12996    as_dirs=
12997    while :; do
12998      case $as_dir in #(
12999      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13000      *) as_qdir=$as_dir;;
13001      esac
13002      as_dirs="'$as_qdir' $as_dirs"
13003      as_dir=`$as_dirname -- "$as_dir" ||
13004$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13005	 X"$as_dir" : 'X\(//\)[^/]' \| \
13006	 X"$as_dir" : 'X\(//\)$' \| \
13007	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13008$as_echo X"$as_dir" |
13009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13010	    s//\1/
13011	    q
13012	  }
13013	  /^X\(\/\/\)[^/].*/{
13014	    s//\1/
13015	    q
13016	  }
13017	  /^X\(\/\/\)$/{
13018	    s//\1/
13019	    q
13020	  }
13021	  /^X\(\/\).*/{
13022	    s//\1/
13023	    q
13024	  }
13025	  s/.*/./; q'`
13026      test -d "$as_dir" && break
13027    done
13028    test -z "$as_dirs" || eval "mkdir $as_dirs"
13029  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13030
13031
13032} # as_fn_mkdir_p
13033if mkdir -p . 2>/dev/null; then
13034  as_mkdir_p='mkdir -p "$as_dir"'
13035else
13036  test -d ./-p && rmdir ./-p
13037  as_mkdir_p=false
13038fi
13039
13040
13041# as_fn_executable_p FILE
13042# -----------------------
13043# Test if FILE is an executable regular file.
13044as_fn_executable_p ()
13045{
13046  test -f "$1" && test -x "$1"
13047} # as_fn_executable_p
13048as_test_x='test -x'
13049as_executable_p=as_fn_executable_p
13050
13051# Sed expression to map a string onto a valid CPP name.
13052as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13053
13054# Sed expression to map a string onto a valid variable name.
13055as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13056
13057
13058exec 6>&1
13059## ----------------------------------- ##
13060## Main body of $CONFIG_STATUS script. ##
13061## ----------------------------------- ##
13062_ASEOF
13063test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13064
13065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13066# Save the log message, to keep $0 and so on meaningful, and to
13067# report actual input values of CONFIG_FILES etc. instead of their
13068# values after options handling.
13069ac_log="
13070This file was extended by LTO plugin for ld $as_me 0.1, which was
13071generated by GNU Autoconf 2.69.  Invocation command line was
13072
13073  CONFIG_FILES    = $CONFIG_FILES
13074  CONFIG_HEADERS  = $CONFIG_HEADERS
13075  CONFIG_LINKS    = $CONFIG_LINKS
13076  CONFIG_COMMANDS = $CONFIG_COMMANDS
13077  $ $0 $@
13078
13079on `(hostname || uname -n) 2>/dev/null | sed 1q`
13080"
13081
13082_ACEOF
13083
13084case $ac_config_files in *"
13085"*) set x $ac_config_files; shift; ac_config_files=$*;;
13086esac
13087
13088case $ac_config_headers in *"
13089"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13090esac
13091
13092
13093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13094# Files that config.status was made for.
13095config_files="$ac_config_files"
13096config_headers="$ac_config_headers"
13097config_commands="$ac_config_commands"
13098
13099_ACEOF
13100
13101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13102ac_cs_usage="\
13103\`$as_me' instantiates files and other configuration actions
13104from templates according to the current configuration.  Unless the files
13105and actions are specified as TAGs, all are instantiated by default.
13106
13107Usage: $0 [OPTION]... [TAG]...
13108
13109  -h, --help       print this help, then exit
13110  -V, --version    print version number and configuration settings, then exit
13111      --config     print configuration, then exit
13112  -q, --quiet, --silent
13113                   do not print progress messages
13114  -d, --debug      don't remove temporary files
13115      --recheck    update $as_me by reconfiguring in the same conditions
13116      --file=FILE[:TEMPLATE]
13117                   instantiate the configuration file FILE
13118      --header=FILE[:TEMPLATE]
13119                   instantiate the configuration header FILE
13120
13121Configuration files:
13122$config_files
13123
13124Configuration headers:
13125$config_headers
13126
13127Configuration commands:
13128$config_commands
13129
13130Report bugs to the package provider."
13131
13132_ACEOF
13133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13134ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13135ac_cs_version="\\
13136LTO plugin for ld config.status 0.1
13137configured by $0, generated by GNU Autoconf 2.69,
13138  with options \\"\$ac_cs_config\\"
13139
13140Copyright (C) 2012 Free Software Foundation, Inc.
13141This config.status script is free software; the Free Software Foundation
13142gives unlimited permission to copy, distribute and modify it."
13143
13144ac_pwd='$ac_pwd'
13145srcdir='$srcdir'
13146INSTALL='$INSTALL'
13147MKDIR_P='$MKDIR_P'
13148AWK='$AWK'
13149test -n "\$AWK" || AWK=awk
13150_ACEOF
13151
13152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13153# The default lists apply if the user does not specify any file.
13154ac_need_defaults=:
13155while test $# != 0
13156do
13157  case $1 in
13158  --*=?*)
13159    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13160    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13161    ac_shift=:
13162    ;;
13163  --*=)
13164    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13165    ac_optarg=
13166    ac_shift=:
13167    ;;
13168  *)
13169    ac_option=$1
13170    ac_optarg=$2
13171    ac_shift=shift
13172    ;;
13173  esac
13174
13175  case $ac_option in
13176  # Handling of the options.
13177  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13178    ac_cs_recheck=: ;;
13179  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13180    $as_echo "$ac_cs_version"; exit ;;
13181  --config | --confi | --conf | --con | --co | --c )
13182    $as_echo "$ac_cs_config"; exit ;;
13183  --debug | --debu | --deb | --de | --d | -d )
13184    debug=: ;;
13185  --file | --fil | --fi | --f )
13186    $ac_shift
13187    case $ac_optarg in
13188    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13189    '') as_fn_error $? "missing file argument" ;;
13190    esac
13191    as_fn_append CONFIG_FILES " '$ac_optarg'"
13192    ac_need_defaults=false;;
13193  --header | --heade | --head | --hea )
13194    $ac_shift
13195    case $ac_optarg in
13196    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13197    esac
13198    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13199    ac_need_defaults=false;;
13200  --he | --h)
13201    # Conflict between --help and --header
13202    as_fn_error $? "ambiguous option: \`$1'
13203Try \`$0 --help' for more information.";;
13204  --help | --hel | -h )
13205    $as_echo "$ac_cs_usage"; exit ;;
13206  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13207  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13208    ac_cs_silent=: ;;
13209
13210  # This is an error.
13211  -*) as_fn_error $? "unrecognized option: \`$1'
13212Try \`$0 --help' for more information." ;;
13213
13214  *) as_fn_append ac_config_targets " $1"
13215     ac_need_defaults=false ;;
13216
13217  esac
13218  shift
13219done
13220
13221ac_configure_extra_args=
13222
13223if $ac_cs_silent; then
13224  exec 6>/dev/null
13225  ac_configure_extra_args="$ac_configure_extra_args --silent"
13226fi
13227
13228_ACEOF
13229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13230if \$ac_cs_recheck; then
13231  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13232  shift
13233  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13234  CONFIG_SHELL='$SHELL'
13235  export CONFIG_SHELL
13236  exec "\$@"
13237fi
13238
13239_ACEOF
13240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13241exec 5>>config.log
13242{
13243  echo
13244  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13245## Running $as_me. ##
13246_ASBOX
13247  $as_echo "$ac_log"
13248} >&5
13249
13250_ACEOF
13251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13252#
13253# INIT-COMMANDS
13254#
13255AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13256
13257
13258# The HP-UX ksh and POSIX shell print the target directory to stdout
13259# if CDPATH is set.
13260(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13261
13262sed_quote_subst='$sed_quote_subst'
13263double_quote_subst='$double_quote_subst'
13264delay_variable_subst='$delay_variable_subst'
13265macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13266macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13267enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13268enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13269pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13270enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13271SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13272ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13273host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13274host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13275host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13276build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13277build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13278build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13279SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13280Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13281GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13282EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13283FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13284LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13285NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13286LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13287max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13288ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13289exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13290lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13291lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13292lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13293reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13294reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13295OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13296deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13297file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13298AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13299AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13300STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13301RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13302old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13303old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13304old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13305lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13306CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13307CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13308compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13309GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13310lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13311lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13312lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13313lt_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"`'
13314objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13315MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13316lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13317lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13318lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13319lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13320lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13321need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13322DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13323NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13324LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13325OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13326OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13327libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13328shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13329extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13330archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13331enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13332export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13333whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13334compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13335old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13336old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13337archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13338archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13339module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13340module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13341with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13342allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13343no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13344hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13345hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13346hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13347hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13348hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13349hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13350hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13351hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13352inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13353link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13354fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13355always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13356export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13357exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13358include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13359prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13360file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13361variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13362need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13363need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13364version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13365runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13366shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13367shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13368libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13369library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13370soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13371install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13372postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13373postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13374finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13375finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13376hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13377sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13378sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13379hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13380enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13381enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13382enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13383old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13384striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13385
13386LTCC='$LTCC'
13387LTCFLAGS='$LTCFLAGS'
13388compiler='$compiler_DEFAULT'
13389
13390# A function that is used when there is no print builtin or printf.
13391func_fallback_echo ()
13392{
13393  eval 'cat <<_LTECHO_EOF
13394\$1
13395_LTECHO_EOF'
13396}
13397
13398# Quote evaled strings.
13399for var in SHELL \
13400ECHO \
13401SED \
13402GREP \
13403EGREP \
13404FGREP \
13405LD \
13406NM \
13407LN_S \
13408lt_SP2NL \
13409lt_NL2SP \
13410reload_flag \
13411OBJDUMP \
13412deplibs_check_method \
13413file_magic_cmd \
13414AR \
13415AR_FLAGS \
13416STRIP \
13417RANLIB \
13418CC \
13419CFLAGS \
13420compiler \
13421lt_cv_sys_global_symbol_pipe \
13422lt_cv_sys_global_symbol_to_cdecl \
13423lt_cv_sys_global_symbol_to_c_name_address \
13424lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13425lt_prog_compiler_no_builtin_flag \
13426lt_prog_compiler_wl \
13427lt_prog_compiler_pic \
13428lt_prog_compiler_static \
13429lt_cv_prog_compiler_c_o \
13430need_locks \
13431DSYMUTIL \
13432NMEDIT \
13433LIPO \
13434OTOOL \
13435OTOOL64 \
13436shrext_cmds \
13437export_dynamic_flag_spec \
13438whole_archive_flag_spec \
13439compiler_needs_object \
13440with_gnu_ld \
13441allow_undefined_flag \
13442no_undefined_flag \
13443hardcode_libdir_flag_spec \
13444hardcode_libdir_flag_spec_ld \
13445hardcode_libdir_separator \
13446fix_srcfile_path \
13447exclude_expsyms \
13448include_expsyms \
13449file_list_spec \
13450variables_saved_for_relink \
13451libname_spec \
13452library_names_spec \
13453soname_spec \
13454install_override_mode \
13455finish_eval \
13456old_striplib \
13457striplib; do
13458    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13459    *[\\\\\\\`\\"\\\$]*)
13460      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13461      ;;
13462    *)
13463      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13464      ;;
13465    esac
13466done
13467
13468# Double-quote double-evaled strings.
13469for var in reload_cmds \
13470old_postinstall_cmds \
13471old_postuninstall_cmds \
13472old_archive_cmds \
13473extract_expsyms_cmds \
13474old_archive_from_new_cmds \
13475old_archive_from_expsyms_cmds \
13476archive_cmds \
13477archive_expsym_cmds \
13478module_cmds \
13479module_expsym_cmds \
13480export_symbols_cmds \
13481prelink_cmds \
13482postinstall_cmds \
13483postuninstall_cmds \
13484finish_cmds \
13485sys_lib_search_path_spec \
13486sys_lib_dlsearch_path_spec; do
13487    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13488    *[\\\\\\\`\\"\\\$]*)
13489      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13490      ;;
13491    *)
13492      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13493      ;;
13494    esac
13495done
13496
13497ac_aux_dir='$ac_aux_dir'
13498xsi_shell='$xsi_shell'
13499lt_shell_append='$lt_shell_append'
13500
13501# See if we are running on zsh, and set the options which allow our
13502# commands through without removal of \ escapes INIT.
13503if test -n "\${ZSH_VERSION+set}" ; then
13504   setopt NO_GLOB_SUBST
13505fi
13506
13507
13508    PACKAGE='$PACKAGE'
13509    VERSION='$VERSION'
13510    TIMESTAMP='$TIMESTAMP'
13511    RM='$RM'
13512    ofile='$ofile'
13513
13514
13515
13516
13517_ACEOF
13518
13519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13520
13521# Handling of arguments.
13522for ac_config_target in $ac_config_targets
13523do
13524  case $ac_config_target in
13525    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13526    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13527    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13528    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13529
13530  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13531  esac
13532done
13533
13534
13535# If the user did not use the arguments to specify the items to instantiate,
13536# then the envvar interface is used.  Set only those that are not.
13537# We use the long form for the default assignment because of an extremely
13538# bizarre bug on SunOS 4.1.3.
13539if $ac_need_defaults; then
13540  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13541  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13542  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13543fi
13544
13545# Have a temporary directory for convenience.  Make it in the build tree
13546# simply because there is no reason against having it here, and in addition,
13547# creating and moving files from /tmp can sometimes cause problems.
13548# Hook for its removal unless debugging.
13549# Note that there is a small window in which the directory will not be cleaned:
13550# after its creation but before its name has been assigned to `$tmp'.
13551$debug ||
13552{
13553  tmp= ac_tmp=
13554  trap 'exit_status=$?
13555  : "${ac_tmp:=$tmp}"
13556  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13557' 0
13558  trap 'as_fn_exit 1' 1 2 13 15
13559}
13560# Create a (secure) tmp directory for tmp files.
13561
13562{
13563  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13564  test -d "$tmp"
13565}  ||
13566{
13567  tmp=./conf$$-$RANDOM
13568  (umask 077 && mkdir "$tmp")
13569} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13570ac_tmp=$tmp
13571
13572# Set up the scripts for CONFIG_FILES section.
13573# No need to generate them if there are no CONFIG_FILES.
13574# This happens for instance with `./config.status config.h'.
13575if test -n "$CONFIG_FILES"; then
13576
13577
13578ac_cr=`echo X | tr X '\015'`
13579# On cygwin, bash can eat \r inside `` if the user requested igncr.
13580# But we know of no other shell where ac_cr would be empty at this
13581# point, so we can use a bashism as a fallback.
13582if test "x$ac_cr" = x; then
13583  eval ac_cr=\$\'\\r\'
13584fi
13585ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13586if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13587  ac_cs_awk_cr='\\r'
13588else
13589  ac_cs_awk_cr=$ac_cr
13590fi
13591
13592echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13593_ACEOF
13594
13595
13596{
13597  echo "cat >conf$$subs.awk <<_ACEOF" &&
13598  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13599  echo "_ACEOF"
13600} >conf$$subs.sh ||
13601  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13602ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13603ac_delim='%!_!# '
13604for ac_last_try in false false false false false :; do
13605  . ./conf$$subs.sh ||
13606    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13607
13608  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13609  if test $ac_delim_n = $ac_delim_num; then
13610    break
13611  elif $ac_last_try; then
13612    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13613  else
13614    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13615  fi
13616done
13617rm -f conf$$subs.sh
13618
13619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13620cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13621_ACEOF
13622sed -n '
13623h
13624s/^/S["/; s/!.*/"]=/
13625p
13626g
13627s/^[^!]*!//
13628:repl
13629t repl
13630s/'"$ac_delim"'$//
13631t delim
13632:nl
13633h
13634s/\(.\{148\}\)..*/\1/
13635t more1
13636s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13637p
13638n
13639b repl
13640:more1
13641s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13642p
13643g
13644s/.\{148\}//
13645t nl
13646:delim
13647h
13648s/\(.\{148\}\)..*/\1/
13649t more2
13650s/["\\]/\\&/g; s/^/"/; s/$/"/
13651p
13652b
13653:more2
13654s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13655p
13656g
13657s/.\{148\}//
13658t delim
13659' <conf$$subs.awk | sed '
13660/^[^""]/{
13661  N
13662  s/\n//
13663}
13664' >>$CONFIG_STATUS || ac_write_fail=1
13665rm -f conf$$subs.awk
13666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13667_ACAWK
13668cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13669  for (key in S) S_is_set[key] = 1
13670  FS = ""
13671
13672}
13673{
13674  line = $ 0
13675  nfields = split(line, field, "@")
13676  substed = 0
13677  len = length(field[1])
13678  for (i = 2; i < nfields; i++) {
13679    key = field[i]
13680    keylen = length(key)
13681    if (S_is_set[key]) {
13682      value = S[key]
13683      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13684      len += length(value) + length(field[++i])
13685      substed = 1
13686    } else
13687      len += 1 + keylen
13688  }
13689
13690  print line
13691}
13692
13693_ACAWK
13694_ACEOF
13695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13696if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13697  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13698else
13699  cat
13700fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13701  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13702_ACEOF
13703
13704# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13705# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13706# trailing colons and then remove the whole line if VPATH becomes empty
13707# (actually we leave an empty line to preserve line numbers).
13708if test "x$srcdir" = x.; then
13709  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13710h
13711s///
13712s/^/:/
13713s/[	 ]*$/:/
13714s/:\$(srcdir):/:/g
13715s/:\${srcdir}:/:/g
13716s/:@srcdir@:/:/g
13717s/^:*//
13718s/:*$//
13719x
13720s/\(=[	 ]*\).*/\1/
13721G
13722s/\n//
13723s/^[^=]*=[	 ]*$//
13724}'
13725fi
13726
13727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13728fi # test -n "$CONFIG_FILES"
13729
13730# Set up the scripts for CONFIG_HEADERS section.
13731# No need to generate them if there are no CONFIG_HEADERS.
13732# This happens for instance with `./config.status Makefile'.
13733if test -n "$CONFIG_HEADERS"; then
13734cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13735BEGIN {
13736_ACEOF
13737
13738# Transform confdefs.h into an awk script `defines.awk', embedded as
13739# here-document in config.status, that substitutes the proper values into
13740# config.h.in to produce config.h.
13741
13742# Create a delimiter string that does not exist in confdefs.h, to ease
13743# handling of long lines.
13744ac_delim='%!_!# '
13745for ac_last_try in false false :; do
13746  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13747  if test -z "$ac_tt"; then
13748    break
13749  elif $ac_last_try; then
13750    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13751  else
13752    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13753  fi
13754done
13755
13756# For the awk script, D is an array of macro values keyed by name,
13757# likewise P contains macro parameters if any.  Preserve backslash
13758# newline sequences.
13759
13760ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13761sed -n '
13762s/.\{148\}/&'"$ac_delim"'/g
13763t rset
13764:rset
13765s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13766t def
13767d
13768:def
13769s/\\$//
13770t bsnl
13771s/["\\]/\\&/g
13772s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13773D["\1"]=" \3"/p
13774s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13775d
13776:bsnl
13777s/["\\]/\\&/g
13778s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13779D["\1"]=" \3\\\\\\n"\\/p
13780t cont
13781s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13782t cont
13783d
13784:cont
13785n
13786s/.\{148\}/&'"$ac_delim"'/g
13787t clear
13788:clear
13789s/\\$//
13790t bsnlc
13791s/["\\]/\\&/g; s/^/"/; s/$/"/p
13792d
13793:bsnlc
13794s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13795b cont
13796' <confdefs.h | sed '
13797s/'"$ac_delim"'/"\\\
13798"/g' >>$CONFIG_STATUS || ac_write_fail=1
13799
13800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13801  for (key in D) D_is_set[key] = 1
13802  FS = ""
13803}
13804/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13805  line = \$ 0
13806  split(line, arg, " ")
13807  if (arg[1] == "#") {
13808    defundef = arg[2]
13809    mac1 = arg[3]
13810  } else {
13811    defundef = substr(arg[1], 2)
13812    mac1 = arg[2]
13813  }
13814  split(mac1, mac2, "(") #)
13815  macro = mac2[1]
13816  prefix = substr(line, 1, index(line, defundef) - 1)
13817  if (D_is_set[macro]) {
13818    # Preserve the white space surrounding the "#".
13819    print prefix "define", macro P[macro] D[macro]
13820    next
13821  } else {
13822    # Replace #undef with comments.  This is necessary, for example,
13823    # in the case of _POSIX_SOURCE, which is predefined and required
13824    # on some systems where configure will not decide to define it.
13825    if (defundef == "undef") {
13826      print "/*", prefix defundef, macro, "*/"
13827      next
13828    }
13829  }
13830}
13831{ print }
13832_ACAWK
13833_ACEOF
13834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13835  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13836fi # test -n "$CONFIG_HEADERS"
13837
13838
13839eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13840shift
13841for ac_tag
13842do
13843  case $ac_tag in
13844  :[FHLC]) ac_mode=$ac_tag; continue;;
13845  esac
13846  case $ac_mode$ac_tag in
13847  :[FHL]*:*);;
13848  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13849  :[FH]-) ac_tag=-:-;;
13850  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13851  esac
13852  ac_save_IFS=$IFS
13853  IFS=:
13854  set x $ac_tag
13855  IFS=$ac_save_IFS
13856  shift
13857  ac_file=$1
13858  shift
13859
13860  case $ac_mode in
13861  :L) ac_source=$1;;
13862  :[FH])
13863    ac_file_inputs=
13864    for ac_f
13865    do
13866      case $ac_f in
13867      -) ac_f="$ac_tmp/stdin";;
13868      *) # Look for the file first in the build tree, then in the source tree
13869	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13870	 # because $ac_f cannot contain `:'.
13871	 test -f "$ac_f" ||
13872	   case $ac_f in
13873	   [\\/$]*) false;;
13874	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13875	   esac ||
13876	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13877      esac
13878      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13879      as_fn_append ac_file_inputs " '$ac_f'"
13880    done
13881
13882    # Let's still pretend it is `configure' which instantiates (i.e., don't
13883    # use $as_me), people would be surprised to read:
13884    #    /* config.h.  Generated by config.status.  */
13885    configure_input='Generated from '`
13886	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13887	`' by configure.'
13888    if test x"$ac_file" != x-; then
13889      configure_input="$ac_file.  $configure_input"
13890      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13891$as_echo "$as_me: creating $ac_file" >&6;}
13892    fi
13893    # Neutralize special characters interpreted by sed in replacement strings.
13894    case $configure_input in #(
13895    *\&* | *\|* | *\\* )
13896       ac_sed_conf_input=`$as_echo "$configure_input" |
13897       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13898    *) ac_sed_conf_input=$configure_input;;
13899    esac
13900
13901    case $ac_tag in
13902    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13903      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13904    esac
13905    ;;
13906  esac
13907
13908  ac_dir=`$as_dirname -- "$ac_file" ||
13909$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13910	 X"$ac_file" : 'X\(//\)[^/]' \| \
13911	 X"$ac_file" : 'X\(//\)$' \| \
13912	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13913$as_echo X"$ac_file" |
13914    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13915	    s//\1/
13916	    q
13917	  }
13918	  /^X\(\/\/\)[^/].*/{
13919	    s//\1/
13920	    q
13921	  }
13922	  /^X\(\/\/\)$/{
13923	    s//\1/
13924	    q
13925	  }
13926	  /^X\(\/\).*/{
13927	    s//\1/
13928	    q
13929	  }
13930	  s/.*/./; q'`
13931  as_dir="$ac_dir"; as_fn_mkdir_p
13932  ac_builddir=.
13933
13934case "$ac_dir" in
13935.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13936*)
13937  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13938  # A ".." for each directory in $ac_dir_suffix.
13939  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13940  case $ac_top_builddir_sub in
13941  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13942  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13943  esac ;;
13944esac
13945ac_abs_top_builddir=$ac_pwd
13946ac_abs_builddir=$ac_pwd$ac_dir_suffix
13947# for backward compatibility:
13948ac_top_builddir=$ac_top_build_prefix
13949
13950case $srcdir in
13951  .)  # We are building in place.
13952    ac_srcdir=.
13953    ac_top_srcdir=$ac_top_builddir_sub
13954    ac_abs_top_srcdir=$ac_pwd ;;
13955  [\\/]* | ?:[\\/]* )  # Absolute name.
13956    ac_srcdir=$srcdir$ac_dir_suffix;
13957    ac_top_srcdir=$srcdir
13958    ac_abs_top_srcdir=$srcdir ;;
13959  *) # Relative name.
13960    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13961    ac_top_srcdir=$ac_top_build_prefix$srcdir
13962    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13963esac
13964ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13965
13966
13967  case $ac_mode in
13968  :F)
13969  #
13970  # CONFIG_FILE
13971  #
13972
13973  case $INSTALL in
13974  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13975  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13976  esac
13977  ac_MKDIR_P=$MKDIR_P
13978  case $MKDIR_P in
13979  [\\/$]* | ?:[\\/]* ) ;;
13980  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13981  esac
13982_ACEOF
13983
13984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13985# If the template does not know about datarootdir, expand it.
13986# FIXME: This hack should be removed a few years after 2.60.
13987ac_datarootdir_hack=; ac_datarootdir_seen=
13988ac_sed_dataroot='
13989/datarootdir/ {
13990  p
13991  q
13992}
13993/@datadir@/p
13994/@docdir@/p
13995/@infodir@/p
13996/@localedir@/p
13997/@mandir@/p'
13998case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13999*datarootdir*) ac_datarootdir_seen=yes;;
14000*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14001  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14002$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14003_ACEOF
14004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14005  ac_datarootdir_hack='
14006  s&@datadir@&$datadir&g
14007  s&@docdir@&$docdir&g
14008  s&@infodir@&$infodir&g
14009  s&@localedir@&$localedir&g
14010  s&@mandir@&$mandir&g
14011  s&\\\${datarootdir}&$datarootdir&g' ;;
14012esac
14013_ACEOF
14014
14015# Neutralize VPATH when `$srcdir' = `.'.
14016# Shell code in configure.ac might set extrasub.
14017# FIXME: do we really want to maintain this feature?
14018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14019ac_sed_extra="$ac_vpsub
14020$extrasub
14021_ACEOF
14022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023:t
14024/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14025s|@configure_input@|$ac_sed_conf_input|;t t
14026s&@top_builddir@&$ac_top_builddir_sub&;t t
14027s&@top_build_prefix@&$ac_top_build_prefix&;t t
14028s&@srcdir@&$ac_srcdir&;t t
14029s&@abs_srcdir@&$ac_abs_srcdir&;t t
14030s&@top_srcdir@&$ac_top_srcdir&;t t
14031s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14032s&@builddir@&$ac_builddir&;t t
14033s&@abs_builddir@&$ac_abs_builddir&;t t
14034s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14035s&@INSTALL@&$ac_INSTALL&;t t
14036s&@MKDIR_P@&$ac_MKDIR_P&;t t
14037$ac_datarootdir_hack
14038"
14039eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14040  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14041
14042test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14043  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14044  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14045      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14046  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14047which seems to be undefined.  Please make sure it is defined" >&5
14048$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14049which seems to be undefined.  Please make sure it is defined" >&2;}
14050
14051  rm -f "$ac_tmp/stdin"
14052  case $ac_file in
14053  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14054  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14055  esac \
14056  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14057 ;;
14058  :H)
14059  #
14060  # CONFIG_HEADER
14061  #
14062  if test x"$ac_file" != x-; then
14063    {
14064      $as_echo "/* $configure_input  */" \
14065      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14066    } >"$ac_tmp/config.h" \
14067      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14068    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14069      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14070$as_echo "$as_me: $ac_file is unchanged" >&6;}
14071    else
14072      rm -f "$ac_file"
14073      mv "$ac_tmp/config.h" "$ac_file" \
14074	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14075    fi
14076  else
14077    $as_echo "/* $configure_input  */" \
14078      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14079      || as_fn_error $? "could not create -" "$LINENO" 5
14080  fi
14081# Compute "$ac_file"'s index in $config_headers.
14082_am_arg="$ac_file"
14083_am_stamp_count=1
14084for _am_header in $config_headers :; do
14085  case $_am_header in
14086    $_am_arg | $_am_arg:* )
14087      break ;;
14088    * )
14089      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14090  esac
14091done
14092echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14093$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14094	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14095	 X"$_am_arg" : 'X\(//\)$' \| \
14096	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14097$as_echo X"$_am_arg" |
14098    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14099	    s//\1/
14100	    q
14101	  }
14102	  /^X\(\/\/\)[^/].*/{
14103	    s//\1/
14104	    q
14105	  }
14106	  /^X\(\/\/\)$/{
14107	    s//\1/
14108	    q
14109	  }
14110	  /^X\(\/\).*/{
14111	    s//\1/
14112	    q
14113	  }
14114	  s/.*/./; q'`/stamp-h$_am_stamp_count
14115 ;;
14116
14117  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14118$as_echo "$as_me: executing $ac_file commands" >&6;}
14119 ;;
14120  esac
14121
14122
14123  case $ac_file$ac_mode in
14124    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14125  # Older Autoconf quotes --file arguments for eval, but not when files
14126  # are listed without --file.  Let's play safe and only enable the eval
14127  # if we detect the quoting.
14128  case $CONFIG_FILES in
14129  *\'*) eval set x "$CONFIG_FILES" ;;
14130  *)   set x $CONFIG_FILES ;;
14131  esac
14132  shift
14133  for mf
14134  do
14135    # Strip MF so we end up with the name of the file.
14136    mf=`echo "$mf" | sed -e 's/:.*$//'`
14137    # Check whether this is an Automake generated Makefile or not.
14138    # We used to match only the files named 'Makefile.in', but
14139    # some people rename them; so instead we look at the file content.
14140    # Grep'ing the first line is not enough: some people post-process
14141    # each Makefile.in and add a new line on top of each file to say so.
14142    # Grep'ing the whole file is not good either: AIX grep has a line
14143    # limit of 2048, but all sed's we know have understand at least 4000.
14144    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14145      dirpart=`$as_dirname -- "$mf" ||
14146$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14147	 X"$mf" : 'X\(//\)[^/]' \| \
14148	 X"$mf" : 'X\(//\)$' \| \
14149	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14150$as_echo X"$mf" |
14151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14152	    s//\1/
14153	    q
14154	  }
14155	  /^X\(\/\/\)[^/].*/{
14156	    s//\1/
14157	    q
14158	  }
14159	  /^X\(\/\/\)$/{
14160	    s//\1/
14161	    q
14162	  }
14163	  /^X\(\/\).*/{
14164	    s//\1/
14165	    q
14166	  }
14167	  s/.*/./; q'`
14168    else
14169      continue
14170    fi
14171    # Extract the definition of DEPDIR, am__include, and am__quote
14172    # from the Makefile without running 'make'.
14173    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14174    test -z "$DEPDIR" && continue
14175    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14176    test -z "$am__include" && continue
14177    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14178    # Find all dependency output files, they are included files with
14179    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14180    # simplest approach to changing $(DEPDIR) to its actual value in the
14181    # expansion.
14182    for file in `sed -n "
14183      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14184	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14185      # Make sure the directory exists.
14186      test -f "$dirpart/$file" && continue
14187      fdir=`$as_dirname -- "$file" ||
14188$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14189	 X"$file" : 'X\(//\)[^/]' \| \
14190	 X"$file" : 'X\(//\)$' \| \
14191	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14192$as_echo X"$file" |
14193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14194	    s//\1/
14195	    q
14196	  }
14197	  /^X\(\/\/\)[^/].*/{
14198	    s//\1/
14199	    q
14200	  }
14201	  /^X\(\/\/\)$/{
14202	    s//\1/
14203	    q
14204	  }
14205	  /^X\(\/\).*/{
14206	    s//\1/
14207	    q
14208	  }
14209	  s/.*/./; q'`
14210      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14211      # echo "creating $dirpart/$file"
14212      echo '# dummy' > "$dirpart/$file"
14213    done
14214  done
14215}
14216 ;;
14217    "libtool":C)
14218
14219    # See if we are running on zsh, and set the options which allow our
14220    # commands through without removal of \ escapes.
14221    if test -n "${ZSH_VERSION+set}" ; then
14222      setopt NO_GLOB_SUBST
14223    fi
14224
14225    cfgfile="${ofile}T"
14226    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14227    $RM "$cfgfile"
14228
14229    cat <<_LT_EOF >> "$cfgfile"
14230#! $SHELL
14231
14232# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14233# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14234# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14235# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14236#
14237#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14238#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14239#   Written by Gordon Matzigkeit, 1996
14240#
14241#   This file is part of GNU Libtool.
14242#
14243# GNU Libtool is free software; you can redistribute it and/or
14244# modify it under the terms of the GNU General Public License as
14245# published by the Free Software Foundation; either version 2 of
14246# the License, or (at your option) any later version.
14247#
14248# As a special exception to the GNU General Public License,
14249# if you distribute this file as part of a program or library that
14250# is built using GNU Libtool, you may include this file under the
14251# same distribution terms that you use for the rest of that program.
14252#
14253# GNU Libtool is distributed in the hope that it will be useful,
14254# but WITHOUT ANY WARRANTY; without even the implied warranty of
14255# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14256# GNU General Public License for more details.
14257#
14258# You should have received a copy of the GNU General Public License
14259# along with GNU Libtool; see the file COPYING.  If not, a copy
14260# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14261# obtained by writing to the Free Software Foundation, Inc.,
14262# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14263
14264
14265# The names of the tagged configurations supported by this script.
14266available_tags=""
14267
14268# ### BEGIN LIBTOOL CONFIG
14269
14270# Which release of libtool.m4 was used?
14271macro_version=$macro_version
14272macro_revision=$macro_revision
14273
14274# Whether or not to build shared libraries.
14275build_libtool_libs=$enable_shared
14276
14277# Whether or not to build static libraries.
14278build_old_libs=$enable_static
14279
14280# What type of objects to build.
14281pic_mode=$pic_mode
14282
14283# Whether or not to optimize for fast installation.
14284fast_install=$enable_fast_install
14285
14286# Shell to use when invoking shell scripts.
14287SHELL=$lt_SHELL
14288
14289# An echo program that protects backslashes.
14290ECHO=$lt_ECHO
14291
14292# The host system.
14293host_alias=$host_alias
14294host=$host
14295host_os=$host_os
14296
14297# The build system.
14298build_alias=$build_alias
14299build=$build
14300build_os=$build_os
14301
14302# A sed program that does not truncate output.
14303SED=$lt_SED
14304
14305# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14306Xsed="\$SED -e 1s/^X//"
14307
14308# A grep program that handles long lines.
14309GREP=$lt_GREP
14310
14311# An ERE matcher.
14312EGREP=$lt_EGREP
14313
14314# A literal string matcher.
14315FGREP=$lt_FGREP
14316
14317# A BSD- or MS-compatible name lister.
14318NM=$lt_NM
14319
14320# Whether we need soft or hard links.
14321LN_S=$lt_LN_S
14322
14323# What is the maximum length of a command?
14324max_cmd_len=$max_cmd_len
14325
14326# Object file suffix (normally "o").
14327objext=$ac_objext
14328
14329# Executable file suffix (normally "").
14330exeext=$exeext
14331
14332# whether the shell understands "unset".
14333lt_unset=$lt_unset
14334
14335# turn spaces into newlines.
14336SP2NL=$lt_lt_SP2NL
14337
14338# turn newlines into spaces.
14339NL2SP=$lt_lt_NL2SP
14340
14341# An object symbol dumper.
14342OBJDUMP=$lt_OBJDUMP
14343
14344# Method to check whether dependent libraries are shared objects.
14345deplibs_check_method=$lt_deplibs_check_method
14346
14347# Command to use when deplibs_check_method == "file_magic".
14348file_magic_cmd=$lt_file_magic_cmd
14349
14350# The archiver.
14351AR=$lt_AR
14352AR_FLAGS=$lt_AR_FLAGS
14353
14354# A symbol stripping program.
14355STRIP=$lt_STRIP
14356
14357# Commands used to install an old-style archive.
14358RANLIB=$lt_RANLIB
14359old_postinstall_cmds=$lt_old_postinstall_cmds
14360old_postuninstall_cmds=$lt_old_postuninstall_cmds
14361
14362# Whether to use a lock for old archive extraction.
14363lock_old_archive_extraction=$lock_old_archive_extraction
14364
14365# A C compiler.
14366LTCC=$lt_CC
14367
14368# LTCC compiler flags.
14369LTCFLAGS=$lt_CFLAGS
14370
14371# Take the output of nm and produce a listing of raw symbols and C names.
14372global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14373
14374# Transform the output of nm in a proper C declaration.
14375global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14376
14377# Transform the output of nm in a C name address pair.
14378global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14379
14380# Transform the output of nm in a C name address pair when lib prefix is needed.
14381global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14382
14383# The name of the directory that contains temporary libtool files.
14384objdir=$objdir
14385
14386# Used to examine libraries when file_magic_cmd begins with "file".
14387MAGIC_CMD=$MAGIC_CMD
14388
14389# Must we lock files when doing compilation?
14390need_locks=$lt_need_locks
14391
14392# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14393DSYMUTIL=$lt_DSYMUTIL
14394
14395# Tool to change global to local symbols on Mac OS X.
14396NMEDIT=$lt_NMEDIT
14397
14398# Tool to manipulate fat objects and archives on Mac OS X.
14399LIPO=$lt_LIPO
14400
14401# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14402OTOOL=$lt_OTOOL
14403
14404# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14405OTOOL64=$lt_OTOOL64
14406
14407# Old archive suffix (normally "a").
14408libext=$libext
14409
14410# Shared library suffix (normally ".so").
14411shrext_cmds=$lt_shrext_cmds
14412
14413# The commands to extract the exported symbol list from a shared archive.
14414extract_expsyms_cmds=$lt_extract_expsyms_cmds
14415
14416# Variables whose values should be saved in libtool wrapper scripts and
14417# restored at link time.
14418variables_saved_for_relink=$lt_variables_saved_for_relink
14419
14420# Do we need the "lib" prefix for modules?
14421need_lib_prefix=$need_lib_prefix
14422
14423# Do we need a version for libraries?
14424need_version=$need_version
14425
14426# Library versioning type.
14427version_type=$version_type
14428
14429# Shared library runtime path variable.
14430runpath_var=$runpath_var
14431
14432# Shared library path variable.
14433shlibpath_var=$shlibpath_var
14434
14435# Is shlibpath searched before the hard-coded library search path?
14436shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14437
14438# Format of library name prefix.
14439libname_spec=$lt_libname_spec
14440
14441# List of archive names.  First name is the real one, the rest are links.
14442# The last name is the one that the linker finds with -lNAME
14443library_names_spec=$lt_library_names_spec
14444
14445# The coded name of the library, if different from the real name.
14446soname_spec=$lt_soname_spec
14447
14448# Permission mode override for installation of shared libraries.
14449install_override_mode=$lt_install_override_mode
14450
14451# Command to use after installation of a shared archive.
14452postinstall_cmds=$lt_postinstall_cmds
14453
14454# Command to use after uninstallation of a shared archive.
14455postuninstall_cmds=$lt_postuninstall_cmds
14456
14457# Commands used to finish a libtool library installation in a directory.
14458finish_cmds=$lt_finish_cmds
14459
14460# As "finish_cmds", except a single script fragment to be evaled but
14461# not shown.
14462finish_eval=$lt_finish_eval
14463
14464# Whether we should hardcode library paths into libraries.
14465hardcode_into_libs=$hardcode_into_libs
14466
14467# Compile-time system search path for libraries.
14468sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14469
14470# Run-time system search path for libraries.
14471sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14472
14473# Whether dlopen is supported.
14474dlopen_support=$enable_dlopen
14475
14476# Whether dlopen of programs is supported.
14477dlopen_self=$enable_dlopen_self
14478
14479# Whether dlopen of statically linked programs is supported.
14480dlopen_self_static=$enable_dlopen_self_static
14481
14482# Commands to strip libraries.
14483old_striplib=$lt_old_striplib
14484striplib=$lt_striplib
14485
14486
14487# The linker used to build libraries.
14488LD=$lt_LD
14489
14490# How to create reloadable object files.
14491reload_flag=$lt_reload_flag
14492reload_cmds=$lt_reload_cmds
14493
14494# Commands used to build an old-style archive.
14495old_archive_cmds=$lt_old_archive_cmds
14496
14497# A language specific compiler.
14498CC=$lt_compiler
14499
14500# Is the compiler the GNU compiler?
14501with_gcc=$GCC
14502
14503# Compiler flag to turn off builtin functions.
14504no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14505
14506# How to pass a linker flag through the compiler.
14507wl=$lt_lt_prog_compiler_wl
14508
14509# Additional compiler flags for building library objects.
14510pic_flag=$lt_lt_prog_compiler_pic
14511
14512# Compiler flag to prevent dynamic linking.
14513link_static_flag=$lt_lt_prog_compiler_static
14514
14515# Does compiler simultaneously support -c and -o options?
14516compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14517
14518# Whether or not to add -lc for building shared libraries.
14519build_libtool_need_lc=$archive_cmds_need_lc
14520
14521# Whether or not to disallow shared libs when runtime libs are static.
14522allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14523
14524# Compiler flag to allow reflexive dlopens.
14525export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14526
14527# Compiler flag to generate shared objects directly from archives.
14528whole_archive_flag_spec=$lt_whole_archive_flag_spec
14529
14530# Whether the compiler copes with passing no objects directly.
14531compiler_needs_object=$lt_compiler_needs_object
14532
14533# Create an old-style archive from a shared archive.
14534old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14535
14536# Create a temporary old-style archive to link instead of a shared archive.
14537old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14538
14539# Commands used to build a shared archive.
14540archive_cmds=$lt_archive_cmds
14541archive_expsym_cmds=$lt_archive_expsym_cmds
14542
14543# Commands used to build a loadable module if different from building
14544# a shared archive.
14545module_cmds=$lt_module_cmds
14546module_expsym_cmds=$lt_module_expsym_cmds
14547
14548# Whether we are building with GNU ld or not.
14549with_gnu_ld=$lt_with_gnu_ld
14550
14551# Flag that allows shared libraries with undefined symbols to be built.
14552allow_undefined_flag=$lt_allow_undefined_flag
14553
14554# Flag that enforces no undefined symbols.
14555no_undefined_flag=$lt_no_undefined_flag
14556
14557# Flag to hardcode \$libdir into a binary during linking.
14558# This must work even if \$libdir does not exist
14559hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14560
14561# If ld is used when linking, flag to hardcode \$libdir into a binary
14562# during linking.  This must work even if \$libdir does not exist.
14563hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14564
14565# Whether we need a single "-rpath" flag with a separated argument.
14566hardcode_libdir_separator=$lt_hardcode_libdir_separator
14567
14568# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14569# DIR into the resulting binary.
14570hardcode_direct=$hardcode_direct
14571
14572# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14573# DIR into the resulting binary and the resulting library dependency is
14574# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14575# library is relocated.
14576hardcode_direct_absolute=$hardcode_direct_absolute
14577
14578# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14579# into the resulting binary.
14580hardcode_minus_L=$hardcode_minus_L
14581
14582# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14583# into the resulting binary.
14584hardcode_shlibpath_var=$hardcode_shlibpath_var
14585
14586# Set to "yes" if building a shared library automatically hardcodes DIR
14587# into the library and all subsequent libraries and executables linked
14588# against it.
14589hardcode_automatic=$hardcode_automatic
14590
14591# Set to yes if linker adds runtime paths of dependent libraries
14592# to runtime path list.
14593inherit_rpath=$inherit_rpath
14594
14595# Whether libtool must link a program against all its dependency libraries.
14596link_all_deplibs=$link_all_deplibs
14597
14598# Fix the shell variable \$srcfile for the compiler.
14599fix_srcfile_path=$lt_fix_srcfile_path
14600
14601# Set to "yes" if exported symbols are required.
14602always_export_symbols=$always_export_symbols
14603
14604# The commands to list exported symbols.
14605export_symbols_cmds=$lt_export_symbols_cmds
14606
14607# Symbols that should not be listed in the preloaded symbols.
14608exclude_expsyms=$lt_exclude_expsyms
14609
14610# Symbols that must always be exported.
14611include_expsyms=$lt_include_expsyms
14612
14613# Commands necessary for linking programs (against libraries) with templates.
14614prelink_cmds=$lt_prelink_cmds
14615
14616# Specify filename containing input files.
14617file_list_spec=$lt_file_list_spec
14618
14619# How to hardcode a shared library path into an executable.
14620hardcode_action=$hardcode_action
14621
14622# ### END LIBTOOL CONFIG
14623
14624_LT_EOF
14625
14626  case $host_os in
14627  aix3*)
14628    cat <<\_LT_EOF >> "$cfgfile"
14629# AIX sometimes has problems with the GCC collect2 program.  For some
14630# reason, if we set the COLLECT_NAMES environment variable, the problems
14631# vanish in a puff of smoke.
14632if test "X${COLLECT_NAMES+set}" != Xset; then
14633  COLLECT_NAMES=
14634  export COLLECT_NAMES
14635fi
14636_LT_EOF
14637    ;;
14638  esac
14639
14640
14641ltmain="$ac_aux_dir/ltmain.sh"
14642
14643
14644  # We use sed instead of cat because bash on DJGPP gets confused if
14645  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14646  # text mode, it properly converts lines to CR/LF.  This bash problem
14647  # is reportedly fixed, but why not run on old versions too?
14648  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14649    || (rm -f "$cfgfile"; exit 1)
14650
14651  case $xsi_shell in
14652  yes)
14653    cat << \_LT_EOF >> "$cfgfile"
14654
14655# func_dirname file append nondir_replacement
14656# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14657# otherwise set result to NONDIR_REPLACEMENT.
14658func_dirname ()
14659{
14660  case ${1} in
14661    */*) func_dirname_result="${1%/*}${2}" ;;
14662    *  ) func_dirname_result="${3}" ;;
14663  esac
14664}
14665
14666# func_basename file
14667func_basename ()
14668{
14669  func_basename_result="${1##*/}"
14670}
14671
14672# func_dirname_and_basename file append nondir_replacement
14673# perform func_basename and func_dirname in a single function
14674# call:
14675#   dirname:  Compute the dirname of FILE.  If nonempty,
14676#             add APPEND to the result, otherwise set result
14677#             to NONDIR_REPLACEMENT.
14678#             value returned in "$func_dirname_result"
14679#   basename: Compute filename of FILE.
14680#             value retuned in "$func_basename_result"
14681# Implementation must be kept synchronized with func_dirname
14682# and func_basename. For efficiency, we do not delegate to
14683# those functions but instead duplicate the functionality here.
14684func_dirname_and_basename ()
14685{
14686  case ${1} in
14687    */*) func_dirname_result="${1%/*}${2}" ;;
14688    *  ) func_dirname_result="${3}" ;;
14689  esac
14690  func_basename_result="${1##*/}"
14691}
14692
14693# func_stripname prefix suffix name
14694# strip PREFIX and SUFFIX off of NAME.
14695# PREFIX and SUFFIX must not contain globbing or regex special
14696# characters, hashes, percent signs, but SUFFIX may contain a leading
14697# dot (in which case that matches only a dot).
14698func_stripname ()
14699{
14700  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14701  # positional parameters, so assign one to ordinary parameter first.
14702  func_stripname_result=${3}
14703  func_stripname_result=${func_stripname_result#"${1}"}
14704  func_stripname_result=${func_stripname_result%"${2}"}
14705}
14706
14707# func_opt_split
14708func_opt_split ()
14709{
14710  func_opt_split_opt=${1%%=*}
14711  func_opt_split_arg=${1#*=}
14712}
14713
14714# func_lo2o object
14715func_lo2o ()
14716{
14717  case ${1} in
14718    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14719    *)    func_lo2o_result=${1} ;;
14720  esac
14721}
14722
14723# func_xform libobj-or-source
14724func_xform ()
14725{
14726  func_xform_result=${1%.*}.lo
14727}
14728
14729# func_arith arithmetic-term...
14730func_arith ()
14731{
14732  func_arith_result=$(( $* ))
14733}
14734
14735# func_len string
14736# STRING may not start with a hyphen.
14737func_len ()
14738{
14739  func_len_result=${#1}
14740}
14741
14742_LT_EOF
14743    ;;
14744  *) # Bourne compatible functions.
14745    cat << \_LT_EOF >> "$cfgfile"
14746
14747# func_dirname file append nondir_replacement
14748# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14749# otherwise set result to NONDIR_REPLACEMENT.
14750func_dirname ()
14751{
14752  # Extract subdirectory from the argument.
14753  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14754  if test "X$func_dirname_result" = "X${1}"; then
14755    func_dirname_result="${3}"
14756  else
14757    func_dirname_result="$func_dirname_result${2}"
14758  fi
14759}
14760
14761# func_basename file
14762func_basename ()
14763{
14764  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14765}
14766
14767
14768# func_stripname prefix suffix name
14769# strip PREFIX and SUFFIX off of NAME.
14770# PREFIX and SUFFIX must not contain globbing or regex special
14771# characters, hashes, percent signs, but SUFFIX may contain a leading
14772# dot (in which case that matches only a dot).
14773# func_strip_suffix prefix name
14774func_stripname ()
14775{
14776  case ${2} in
14777    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14778    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14779  esac
14780}
14781
14782# sed scripts:
14783my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14784my_sed_long_arg='1s/^-[^=]*=//'
14785
14786# func_opt_split
14787func_opt_split ()
14788{
14789  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14790  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14791}
14792
14793# func_lo2o object
14794func_lo2o ()
14795{
14796  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14797}
14798
14799# func_xform libobj-or-source
14800func_xform ()
14801{
14802  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14803}
14804
14805# func_arith arithmetic-term...
14806func_arith ()
14807{
14808  func_arith_result=`expr "$@"`
14809}
14810
14811# func_len string
14812# STRING may not start with a hyphen.
14813func_len ()
14814{
14815  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14816}
14817
14818_LT_EOF
14819esac
14820
14821case $lt_shell_append in
14822  yes)
14823    cat << \_LT_EOF >> "$cfgfile"
14824
14825# func_append var value
14826# Append VALUE to the end of shell variable VAR.
14827func_append ()
14828{
14829  eval "$1+=\$2"
14830}
14831_LT_EOF
14832    ;;
14833  *)
14834    cat << \_LT_EOF >> "$cfgfile"
14835
14836# func_append var value
14837# Append VALUE to the end of shell variable VAR.
14838func_append ()
14839{
14840  eval "$1=\$$1\$2"
14841}
14842
14843_LT_EOF
14844    ;;
14845  esac
14846
14847
14848  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14849    || (rm -f "$cfgfile"; exit 1)
14850
14851  mv -f "$cfgfile" "$ofile" ||
14852    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14853  chmod +x "$ofile"
14854
14855 ;;
14856
14857  esac
14858done # for ac_tag
14859
14860
14861as_fn_exit 0
14862_ACEOF
14863ac_clean_files=$ac_clean_files_save
14864
14865test $ac_write_fail = 0 ||
14866  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14867
14868
14869# configure is writing to config.log, and then calls config.status.
14870# config.status does its own redirection, appending to config.log.
14871# Unfortunately, on DOS this fails, as config.log is still kept open
14872# by configure, so config.status won't be able to write to it; its
14873# output is simply discarded.  So we exec the FD to /dev/null,
14874# effectively closing config.log, so it can be properly (re)opened and
14875# appended to by config.status.  When coming back to configure, we
14876# need to make the FD available again.
14877if test "$no_create" != yes; then
14878  ac_cs_success=:
14879  ac_config_status_args=
14880  test "$silent" = yes &&
14881    ac_config_status_args="$ac_config_status_args --quiet"
14882  exec 5>/dev/null
14883  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14884  exec 5>>config.log
14885  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14886  # would make configure fail if this is the last instruction.
14887  $ac_cs_success || as_fn_exit 1
14888fi
14889if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14890  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14891$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14892fi
14893
14894