source: stable/2.7/configure @ 796

Last change on this file since 796 was 796, checked in by kulshres, 2 years ago

Revert "prepare to release version 2.7.2"

File size: 685.4 KB
Line 
1#! /bin/sh
2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for adolc 2.7.2-stable.
5#
6# Report bugs to <adol-c@list.coin-or.org>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63        expr "X$arg" : "X\\(.*\\)$as_nl";
64        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""        $as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210test \$(( 1 + 1 )) = 2 || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227         /*)
228           for as_base in sh bash ksh sh5; do
229             # Try only shells that exist, to save several forks.
230             as_shell=$as_dir/$as_base
231             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238           done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and
279$0: adol-c@list.coin-or.org about your system, including
280$0: any error possibly output before this message. Then
281$0: install a modern shell, or manually run the script
282$0: under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343         X"$as_dir" : 'X\(//\)[^/]' \| \
344         X"$as_dir" : 'X\(//\)$' \| \
345         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348            s//\1/
349            q
350          }
351          /^X\(\/\/\)[^/].*/{
352            s//\1/
353            q
354          }
355          /^X\(\/\/\)$/{
356            s//\1/
357            q
358          }
359          /^X\(\/\).*/{
360            s//\1/
361            q
362          }
363          s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452         X"$0" : 'X\(//\)$' \| \
453         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456            s//\1/
457            q
458          }
459          /^X\/\(\/\/\)$/{
460            s//\1/
461            q
462          }
463          /^X\/\(\/\).*/{
464            s//\1/
465            q
466          }
467          s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T=' ';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='adolc'
593PACKAGE_TARNAME='adolc'
594PACKAGE_VERSION='2.7.2-stable'
595PACKAGE_STRING='adolc 2.7.2-stable'
596PACKAGE_BUGREPORT='adol-c@list.coin-or.org'
597PACKAGE_URL=''
598
599ac_unique_file="ADOL-C/src/adouble.cpp"
600ac_default_prefix=${HOME}/adolc_base
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615#  include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620#  include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640PYTHONFOUND_FALSE
641PYTHONFOUND_TRUE
642SWIG
643pkgpyexecdir
644pyexecdir
645pkgpythondir
646pythondir
647PYTHON_PLATFORM
648PYTHON_EXEC_PREFIX
649PYTHON_PREFIX
650PYTHON_VERSION
651PYTHON
652adolclib
653ac_adolc_cxxflags
654ac_adolc_cflags
655PAREXA_FALSE
656PAREXA_TRUE
657ADDEXA_FALSE
658ADDEXA_TRUE
659DOCEXA_FALSE
660DOCEXA_TRUE
661SPARSE_DRIVERS
662SPARSE_FALSE
663SPARSE_TRUE
664HAVE_LIBCOLPACK_FALSE
665HAVE_LIBCOLPACK_TRUE
666USE_BOOST_POOL
667BOOST_SYSTEM_LIB
668BOOST_LDFLAGS
669BOOST_CPPFLAGS
670ADTL_REFCNT
671ADVBRANCH
672REAL_TYPE
673UINT_TYPE
674ATRIG_ERF
675LIBOBJS
676ADOLC_PATCHLEVEL
677ADOLC_SUBVERSION
678ADOLC_VERSION
679ac_aux_dir
680_lib
681saveCXX
682saveCC
683CXXCPP
684LT_SYS_LIBRARY_PATH
685OTOOL64
686OTOOL
687LIPO
688NMEDIT
689DSYMUTIL
690MANIFEST_TOOL
691RANLIB
692ac_ct_AR
693AR
694NM
695ac_ct_DUMPBIN
696DUMPBIN
697LD
698FGREP
699EGREP
700GREP
701SED
702host_os
703host_vendor
704host_cpu
705host
706build_os
707build_vendor
708build_cpu
709build
710LIBTOOL
711OBJDUMP
712DLLTOOL
713AS
714LN_S
715CPP
716am__fastdepCC_FALSE
717am__fastdepCC_TRUE
718CCDEPMODE
719ac_ct_CC
720CFLAGS
721CC
722HAVE_CXX11
723am__fastdepCXX_FALSE
724am__fastdepCXX_TRUE
725CXXDEPMODE
726am__nodep
727AMDEPBACKSLASH
728AMDEP_FALSE
729AMDEP_TRUE
730am__quote
731am__include
732DEPDIR
733OBJEXT
734EXEEXT
735ac_ct_CXX
736CPPFLAGS
737LDFLAGS
738CXXFLAGS
739CXX
740BUILD_ADOLC_MEDIPACK_SUPPORT_FALSE
741BUILD_ADOLC_MEDIPACK_SUPPORT_TRUE
742BUILD_ADOLC_AMPI_SUPPORT_FALSE
743BUILD_ADOLC_AMPI_SUPPORT_TRUE
744DARWIN_FALSE
745DARWIN_TRUE
746MAINT
747MAINTAINER_MODE_FALSE
748MAINTAINER_MODE_TRUE
749AM_BACKSLASH
750AM_DEFAULT_VERBOSITY
751AM_DEFAULT_V
752AM_V
753am__untar
754am__tar
755AMTAR
756am__leading_dot
757SET_MAKE
758AWK
759mkdir_p
760MKDIR_P
761INSTALL_STRIP_PROGRAM
762STRIP
763install_sh
764MAKEINFO
765AUTOHEADER
766AUTOMAKE
767AUTOCONF
768ACLOCAL
769VERSION
770PACKAGE
771CYGPATH_W
772am__isrc
773INSTALL_DATA
774INSTALL_SCRIPT
775INSTALL_PROGRAM
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795runstatedir
796localstatedir
797sharedstatedir
798sysconfdir
799datadir
800datarootdir
801libexecdir
802sbindir
803bindir
804program_transform_name
805prefix
806exec_prefix
807PACKAGE_URL
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
814SHELL'
815ac_subst_files=''
816ac_user_opts='
817enable_option_checking
818enable_silent_rules
819enable_maintainer_mode
820enable_ampi
821enable_medipack
822enable_dependency_tracking
823enable_static
824enable_shared
825with_pic
826enable_fast_install
827with_aix_soname
828with_gnu_ld
829with_sysroot
830enable_libtool_lock
831with_mpi_root
832with_mpicc
833with_mpicxx
834enable_use_calloc
835enable_atrig_erf
836enable_ulong
837enable_double
838enable_advanced_branching
839enable_traceless_refcounting
840enable_activity_tracking
841enable_debug
842enable_harddebug
843enable_stdczero
844enable_lateinit
845enable_tserrno
846with_openmp_flag
847with_boost
848with_boost_libdir
849with_boost_system
850enable_sparse
851with_colpack
852enable_docexa
853enable_addexa
854enable_parexa
855with_cflags
856with_cxxflags
857with_ampi
858with_medipack
859with_soname
860enable_tapedoc_values
861'
862      ac_precious_vars='build_alias
863host_alias
864target_alias
865CXX
866CXXFLAGS
867LDFLAGS
868LIBS
869CPPFLAGS
870CCC
871CC
872CFLAGS
873CPP
874LT_SYS_LIBRARY_PATH
875CXXCPP
876PYTHON'
877
878
879# Initialize some variables set by options.
880ac_init_help=
881ac_init_version=false
882ac_unrecognized_opts=
883ac_unrecognized_sep=
884# The variables have the same names as the options, with
885# dashes changed to underlines.
886cache_file=/dev/null
887exec_prefix=NONE
888no_create=
889no_recursion=
890prefix=NONE
891program_prefix=NONE
892program_suffix=NONE
893program_transform_name=s,x,x,
894silent=
895site=
896srcdir=
897verbose=
898x_includes=NONE
899x_libraries=NONE
900
901# Installation directory options.
902# These are left unexpanded so users can "make install exec_prefix=/foo"
903# and all the variables that are supposed to be based on exec_prefix
904# by default will actually change.
905# Use braces instead of parens because sh, perl, etc. also accept them.
906# (The list follows the same order as the GNU Coding Standards.)
907bindir='${exec_prefix}/bin'
908sbindir='${exec_prefix}/sbin'
909libexecdir='${exec_prefix}/libexec'
910datarootdir='${prefix}/share'
911datadir='${datarootdir}'
912sysconfdir='${prefix}/etc'
913sharedstatedir='${prefix}/com'
914localstatedir='${prefix}/var'
915runstatedir='${localstatedir}/run'
916includedir='${prefix}/include'
917oldincludedir='/usr/include'
918docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919infodir='${datarootdir}/info'
920htmldir='${docdir}'
921dvidir='${docdir}'
922pdfdir='${docdir}'
923psdir='${docdir}'
924libdir='${exec_prefix}/lib'
925localedir='${datarootdir}/locale'
926mandir='${datarootdir}/man'
927
928ac_prev=
929ac_dashdash=
930for ac_option
931do
932  # If the previous option needs an argument, assign it.
933  if test -n "$ac_prev"; then
934    eval $ac_prev=\$ac_option
935    ac_prev=
936    continue
937  fi
938
939  case $ac_option in
940  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941  *=)   ac_optarg= ;;
942  *)    ac_optarg=yes ;;
943  esac
944
945  # Accept the important Cygnus configure options, so we can diagnose typos.
946
947  case $ac_dashdash$ac_option in
948  --)
949    ac_dashdash=yes ;;
950
951  -bindir | --bindir | --bindi | --bind | --bin | --bi)
952    ac_prev=bindir ;;
953  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954    bindir=$ac_optarg ;;
955
956  -build | --build | --buil | --bui | --bu)
957    ac_prev=build_alias ;;
958  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959    build_alias=$ac_optarg ;;
960
961  -cache-file | --cache-file | --cache-fil | --cache-fi \
962  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963    ac_prev=cache_file ;;
964  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966    cache_file=$ac_optarg ;;
967
968  --config-cache | -C)
969    cache_file=config.cache ;;
970
971  -datadir | --datadir | --datadi | --datad)
972    ac_prev=datadir ;;
973  -datadir=* | --datadir=* | --datadi=* | --datad=*)
974    datadir=$ac_optarg ;;
975
976  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977  | --dataroo | --dataro | --datar)
978    ac_prev=datarootdir ;;
979  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981    datarootdir=$ac_optarg ;;
982
983  -disable-* | --disable-*)
984    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985    # Reject names that are not valid shell variable names.
986    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987      as_fn_error $? "invalid feature name: $ac_useropt"
988    ac_useropt_orig=$ac_useropt
989    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990    case $ac_user_opts in
991      *"
992"enable_$ac_useropt"
993"*) ;;
994      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995         ac_unrecognized_sep=', ';;
996    esac
997    eval enable_$ac_useropt=no ;;
998
999  -docdir | --docdir | --docdi | --doc | --do)
1000    ac_prev=docdir ;;
1001  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002    docdir=$ac_optarg ;;
1003
1004  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005    ac_prev=dvidir ;;
1006  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007    dvidir=$ac_optarg ;;
1008
1009  -enable-* | --enable-*)
1010    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011    # Reject names that are not valid shell variable names.
1012    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013      as_fn_error $? "invalid feature name: $ac_useropt"
1014    ac_useropt_orig=$ac_useropt
1015    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016    case $ac_user_opts in
1017      *"
1018"enable_$ac_useropt"
1019"*) ;;
1020      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021         ac_unrecognized_sep=', ';;
1022    esac
1023    eval enable_$ac_useropt=\$ac_optarg ;;
1024
1025  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027  | --exec | --exe | --ex)
1028    ac_prev=exec_prefix ;;
1029  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031  | --exec=* | --exe=* | --ex=*)
1032    exec_prefix=$ac_optarg ;;
1033
1034  -gas | --gas | --ga | --g)
1035    # Obsolete; use --with-gas.
1036    with_gas=yes ;;
1037
1038  -help | --help | --hel | --he | -h)
1039    ac_init_help=long ;;
1040  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041    ac_init_help=recursive ;;
1042  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043    ac_init_help=short ;;
1044
1045  -host | --host | --hos | --ho)
1046    ac_prev=host_alias ;;
1047  -host=* | --host=* | --hos=* | --ho=*)
1048    host_alias=$ac_optarg ;;
1049
1050  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051    ac_prev=htmldir ;;
1052  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053  | --ht=*)
1054    htmldir=$ac_optarg ;;
1055
1056  -includedir | --includedir | --includedi | --included | --include \
1057  | --includ | --inclu | --incl | --inc)
1058    ac_prev=includedir ;;
1059  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060  | --includ=* | --inclu=* | --incl=* | --inc=*)
1061    includedir=$ac_optarg ;;
1062
1063  -infodir | --infodir | --infodi | --infod | --info | --inf)
1064    ac_prev=infodir ;;
1065  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066    infodir=$ac_optarg ;;
1067
1068  -libdir | --libdir | --libdi | --libd)
1069    ac_prev=libdir ;;
1070  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071    libdir=$ac_optarg ;;
1072
1073  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074  | --libexe | --libex | --libe)
1075    ac_prev=libexecdir ;;
1076  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077  | --libexe=* | --libex=* | --libe=*)
1078    libexecdir=$ac_optarg ;;
1079
1080  -localedir | --localedir | --localedi | --localed | --locale)
1081    ac_prev=localedir ;;
1082  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083    localedir=$ac_optarg ;;
1084
1085  -localstatedir | --localstatedir | --localstatedi | --localstated \
1086  | --localstate | --localstat | --localsta | --localst | --locals)
1087    ac_prev=localstatedir ;;
1088  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090    localstatedir=$ac_optarg ;;
1091
1092  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093    ac_prev=mandir ;;
1094  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095    mandir=$ac_optarg ;;
1096
1097  -nfp | --nfp | --nf)
1098    # Obsolete; use --without-fp.
1099    with_fp=no ;;
1100
1101  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102  | --no-cr | --no-c | -n)
1103    no_create=yes ;;
1104
1105  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107    no_recursion=yes ;;
1108
1109  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111  | --oldin | --oldi | --old | --ol | --o)
1112    ac_prev=oldincludedir ;;
1113  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116    oldincludedir=$ac_optarg ;;
1117
1118  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119    ac_prev=prefix ;;
1120  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121    prefix=$ac_optarg ;;
1122
1123  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124  | --program-pre | --program-pr | --program-p)
1125    ac_prev=program_prefix ;;
1126  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128    program_prefix=$ac_optarg ;;
1129
1130  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131  | --program-suf | --program-su | --program-s)
1132    ac_prev=program_suffix ;;
1133  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135    program_suffix=$ac_optarg ;;
1136
1137  -program-transform-name | --program-transform-name \
1138  | --program-transform-nam | --program-transform-na \
1139  | --program-transform-n | --program-transform- \
1140  | --program-transform | --program-transfor \
1141  | --program-transfo | --program-transf \
1142  | --program-trans | --program-tran \
1143  | --progr-tra | --program-tr | --program-t)
1144    ac_prev=program_transform_name ;;
1145  -program-transform-name=* | --program-transform-name=* \
1146  | --program-transform-nam=* | --program-transform-na=* \
1147  | --program-transform-n=* | --program-transform-=* \
1148  | --program-transform=* | --program-transfor=* \
1149  | --program-transfo=* | --program-transf=* \
1150  | --program-trans=* | --program-tran=* \
1151  | --progr-tra=* | --program-tr=* | --program-t=*)
1152    program_transform_name=$ac_optarg ;;
1153
1154  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155    ac_prev=pdfdir ;;
1156  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157    pdfdir=$ac_optarg ;;
1158
1159  -psdir | --psdir | --psdi | --psd | --ps)
1160    ac_prev=psdir ;;
1161  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162    psdir=$ac_optarg ;;
1163
1164  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165  | -silent | --silent | --silen | --sile | --sil)
1166    silent=yes ;;
1167
1168  -runstatedir | --runstatedir | --runstatedi | --runstated \
1169  | --runstate | --runstat | --runsta | --runst | --runs \
1170  | --run | --ru | --r)
1171    ac_prev=runstatedir ;;
1172  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1173  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1174  | --run=* | --ru=* | --r=*)
1175    runstatedir=$ac_optarg ;;
1176
1177  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178    ac_prev=sbindir ;;
1179  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180  | --sbi=* | --sb=*)
1181    sbindir=$ac_optarg ;;
1182
1183  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185  | --sharedst | --shareds | --shared | --share | --shar \
1186  | --sha | --sh)
1187    ac_prev=sharedstatedir ;;
1188  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191  | --sha=* | --sh=*)
1192    sharedstatedir=$ac_optarg ;;
1193
1194  -site | --site | --sit)
1195    ac_prev=site ;;
1196  -site=* | --site=* | --sit=*)
1197    site=$ac_optarg ;;
1198
1199  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200    ac_prev=srcdir ;;
1201  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202    srcdir=$ac_optarg ;;
1203
1204  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205  | --syscon | --sysco | --sysc | --sys | --sy)
1206    ac_prev=sysconfdir ;;
1207  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209    sysconfdir=$ac_optarg ;;
1210
1211  -target | --target | --targe | --targ | --tar | --ta | --t)
1212    ac_prev=target_alias ;;
1213  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214    target_alias=$ac_optarg ;;
1215
1216  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217    verbose=yes ;;
1218
1219  -version | --version | --versio | --versi | --vers | -V)
1220    ac_init_version=: ;;
1221
1222  -with-* | --with-*)
1223    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224    # Reject names that are not valid shell variable names.
1225    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226      as_fn_error $? "invalid package name: $ac_useropt"
1227    ac_useropt_orig=$ac_useropt
1228    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229    case $ac_user_opts in
1230      *"
1231"with_$ac_useropt"
1232"*) ;;
1233      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234         ac_unrecognized_sep=', ';;
1235    esac
1236    eval with_$ac_useropt=\$ac_optarg ;;
1237
1238  -without-* | --without-*)
1239    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240    # Reject names that are not valid shell variable names.
1241    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242      as_fn_error $? "invalid package name: $ac_useropt"
1243    ac_useropt_orig=$ac_useropt
1244    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245    case $ac_user_opts in
1246      *"
1247"with_$ac_useropt"
1248"*) ;;
1249      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250         ac_unrecognized_sep=', ';;
1251    esac
1252    eval with_$ac_useropt=no ;;
1253
1254  --x)
1255    # Obsolete; use --with-x.
1256    with_x=yes ;;
1257
1258  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259  | --x-incl | --x-inc | --x-in | --x-i)
1260    ac_prev=x_includes ;;
1261  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263    x_includes=$ac_optarg ;;
1264
1265  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267    ac_prev=x_libraries ;;
1268  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270    x_libraries=$ac_optarg ;;
1271
1272  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273Try \`$0 --help' for more information"
1274    ;;
1275
1276  *=*)
1277    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278    # Reject names that are not valid shell variable names.
1279    case $ac_envvar in #(
1280      '' | [0-9]* | *[!_$as_cr_alnum]* )
1281      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282    esac
1283    eval $ac_envvar=\$ac_optarg
1284    export $ac_envvar ;;
1285
1286  *)
1287    # FIXME: should be removed in autoconf 3.0.
1288    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292    ;;
1293
1294  esac
1295done
1296
1297if test -n "$ac_prev"; then
1298  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299  as_fn_error $? "missing argument to $ac_option"
1300fi
1301
1302if test -n "$ac_unrecognized_opts"; then
1303  case $enable_option_checking in
1304    no) ;;
1305    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307  esac
1308fi
1309
1310# Check all directory arguments for consistency.
1311for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312                datadir sysconfdir sharedstatedir localstatedir includedir \
1313                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314                libdir localedir mandir runstatedir
1315do
1316  eval ac_val=\$$ac_var
1317  # Remove trailing slashes.
1318  case $ac_val in
1319    */ )
1320      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321      eval $ac_var=\$ac_val;;
1322  esac
1323  # Be sure to have absolute directory names.
1324  case $ac_val in
1325    [\\/$]* | ?:[\\/]* )  continue;;
1326    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327  esac
1328  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329done
1330
1331# There might be people who depend on the old broken behavior: `$host'
1332# used to hold the argument of --host etc.
1333# FIXME: To remove some day.
1334build=$build_alias
1335host=$host_alias
1336target=$target_alias
1337
1338# FIXME: To remove some day.
1339if test "x$host_alias" != x; then
1340  if test "x$build_alias" = x; then
1341    cross_compiling=maybe
1342  elif test "x$build_alias" != "x$host_alias"; then
1343    cross_compiling=yes
1344  fi
1345fi
1346
1347ac_tool_prefix=
1348test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350test "$silent" = yes && exec 6>/dev/null
1351
1352
1353ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354ac_ls_di=`ls -di .` &&
1355ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356  as_fn_error $? "working directory cannot be determined"
1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358  as_fn_error $? "pwd does not report name of working directory"
1359
1360
1361# Find the source files, if location was not specified.
1362if test -z "$srcdir"; then
1363  ac_srcdir_defaulted=yes
1364  # Try the directory containing this script, then the parent directory.
1365  ac_confdir=`$as_dirname -- "$as_myself" ||
1366$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367         X"$as_myself" : 'X\(//\)[^/]' \| \
1368         X"$as_myself" : 'X\(//\)$' \| \
1369         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370$as_echo X"$as_myself" |
1371    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372            s//\1/
1373            q
1374          }
1375          /^X\(\/\/\)[^/].*/{
1376            s//\1/
1377            q
1378          }
1379          /^X\(\/\/\)$/{
1380            s//\1/
1381            q
1382          }
1383          /^X\(\/\).*/{
1384            s//\1/
1385            q
1386          }
1387          s/.*/./; q'`
1388  srcdir=$ac_confdir
1389  if test ! -r "$srcdir/$ac_unique_file"; then
1390    srcdir=..
1391  fi
1392else
1393  ac_srcdir_defaulted=no
1394fi
1395if test ! -r "$srcdir/$ac_unique_file"; then
1396  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398fi
1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400ac_abs_confdir=`(
1401        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402        pwd)`
1403# When building in place, set srcdir=.
1404if test "$ac_abs_confdir" = "$ac_pwd"; then
1405  srcdir=.
1406fi
1407# Remove unnecessary trailing slashes from srcdir.
1408# Double slashes in file names in object file debugging info
1409# mess up M-x gdb in Emacs.
1410case $srcdir in
1411*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412esac
1413for ac_var in $ac_precious_vars; do
1414  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415  eval ac_env_${ac_var}_value=\$${ac_var}
1416  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418done
1419
1420#
1421# Report the --help message.
1422#
1423if test "$ac_init_help" = "long"; then
1424  # Omit some internal or obsolete options to make the list less imposing.
1425  # This message is too long to be a string in the A/UX 3.1 sh.
1426  cat <<_ACEOF
1427\`configure' configures adolc 2.7.2-stable to adapt to many kinds of systems.
1428
1429Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432VAR=VALUE.  See below for descriptions of some of the useful variables.
1433
1434Defaults for the options are specified in brackets.
1435
1436Configuration:
1437  -h, --help              display this help and exit
1438      --help=short        display options specific to this package
1439      --help=recursive    display the short help of all the included packages
1440  -V, --version           display version information and exit
1441  -q, --quiet, --silent   do not print \`checking ...' messages
1442      --cache-file=FILE   cache test results in FILE [disabled]
1443  -C, --config-cache      alias for \`--cache-file=config.cache'
1444  -n, --no-create         do not create output files
1445      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1446
1447Installation directories:
1448  --prefix=PREFIX         install architecture-independent files in PREFIX
1449                          [$ac_default_prefix]
1450  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1451                          [PREFIX]
1452
1453By default, \`make install' will install all the files in
1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1455an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456for instance \`--prefix=\$HOME'.
1457
1458For better control, use the options below.
1459
1460Fine tuning of the installation directories:
1461  --bindir=DIR            user executables [EPREFIX/bin]
1462  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1463  --libexecdir=DIR        program executables [EPREFIX/libexec]
1464  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1465  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1466  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1467  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1468  --libdir=DIR            object code libraries [EPREFIX/lib]
1469  --includedir=DIR        C header files [PREFIX/include]
1470  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1471  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1472  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1473  --infodir=DIR           info documentation [DATAROOTDIR/info]
1474  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1475  --mandir=DIR            man documentation [DATAROOTDIR/man]
1476  --docdir=DIR            documentation root [DATAROOTDIR/doc/adolc]
1477  --htmldir=DIR           html documentation [DOCDIR]
1478  --dvidir=DIR            dvi documentation [DOCDIR]
1479  --pdfdir=DIR            pdf documentation [DOCDIR]
1480  --psdir=DIR             ps documentation [DOCDIR]
1481_ACEOF
1482
1483  cat <<\_ACEOF
1484
1485Program names:
1486  --program-prefix=PREFIX            prepend PREFIX to installed program names
1487  --program-suffix=SUFFIX            append SUFFIX to installed program names
1488  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1489
1490System types:
1491  --build=BUILD     configure for building on BUILD [guessed]
1492  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493_ACEOF
1494fi
1495
1496if test -n "$ac_init_help"; then
1497  case $ac_init_help in
1498     short | recursive ) echo "Configuration of adolc 2.7.2-stable:";;
1499   esac
1500  cat <<\_ACEOF
1501
1502Optional Features:
1503  --disable-option-checking  ignore unrecognized --enable/--with options
1504  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1505  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1506  --enable-silent-rules   less verbose build output (undo: "make V=1")
1507  --disable-silent-rules  verbose build output (undo: "make V=0")
1508  --enable-maintainer-mode
1509                          enable make rules and dependencies not useful (and
1510                          sometimes confusing) to the casual installer
1511  --enable-ampi           build ADOL-C with adjoinable MPI (AMPI) support
1512                          [default=disabled]
1513  --enable-medipack       build ADOL-C with MeDiPack (MPI) support
1514                          [default=disabled]
1515  --enable-dependency-tracking
1516                          do not reject slow dependency extractors
1517  --disable-dependency-tracking
1518                          speeds up one-time build
1519  --enable-static[=PKGS]  build static libraries [default=no]
1520  --enable-shared[=PKGS]  build shared libraries [default=yes]
1521  --enable-fast-install[=PKGS]
1522                          optimize for fast installation [default=yes]
1523  --disable-libtool-lock  avoid locking (might break parallel builds)
1524  --disable-use-calloc    disable use of calloc and use malloc instead for
1525                          memory allocation [default=calloc is used]
1526  --enable-atrig-erf      enable atrig and erf functions in ADOL-C
1527                          [default=no]
1528  --enable-ulong          enable 64-bit locations (only available on 64-bit
1529                          systems) [default=32-bit]
1530  --disable-double        disable double precision arithmetic [untested,
1531                          default=double is enabled]
1532  --enable-advanced-branching
1533                          enable advanced branching operations to reduce
1534                          retaping [default=no]. The boolean valued comparison
1535                          operators with two adouble arguments will not return
1536                          boolean results but the active results may be used
1537                          to automatically switch branches in conjunction with
1538                          condassign or advector (see manual).
1539  --enable-traceless-refcounting
1540                          enable reference counting for tapeless numbers
1541                          [default=no]. With this enabled some additional
1542                          checks will be conducted when setting the number of
1543                          directional derivatives for tapeless numbers using
1544                          the SetNumDir() function.
1545  --enable-activity-tracking
1546                          enable activity tracking to reduce trace size but
1547                          increased tracing time [default=no]. Only the
1548                          operations involving actual dependency relationships
1549                          from the independent variables will be recorded on
1550                          the trace, this however requires more checks to be
1551                          performed during the tracing and increases tracing
1552                          time. Useful only if memory is a constraint and
1553                          tracing is done fewer times than derivative
1554                          computations.
1555
1556  --enable-debug          enable ADOL-C debug mode [default=no]
1557
1558  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1559
1560  --disable-stdczero      adouble default constructor does not initialize the
1561                          value to zero (improves performance but yields
1562                          incorrect results for implicit array
1563                          initializations, see manual) [default=enabled]
1564
1565  --enable-lateinit       adouble constructors need to be called. With malloc
1566                          or realloc that is not the case. With this option
1567                          the adouble can do a late initialization.)
1568                          [default=disabled]
1569
1570  --enable-tserrno        use errno as thread number cache [default=no]
1571
1572  --enable-sparse         build sparse drivers [default=disabled]
1573
1574  --enable-docexa         build documented examples [default=disabled]
1575  --enable-addexa         build additional examples [default=disabled]
1576  --enable-parexa         build parallel example [default=disabled], if
1577                          enabled -with-openmp-flag=FLAG required
1578
1579                  --disable-tapedoc-values
1580                          should the tape_doc routine compute the values as it
1581                          interprets and prints the tape contents
1582                          [default=enabled]
1583
1584Optional Packages:
1585  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1586  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1587  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1588                          both]
1589  --with-aix-soname=aix|svr4|both
1590                          shared library versioning (aka "SONAME") variant to
1591                          provide on AIX, [default=aix].
1592  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1593  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1594                          compiler's sysroot if not specified).
1595  --with-mpi-root=MPIROOT absolute path to the MPI root directory
1596  --with-mpicc=MPICC      name of the MPI C++ compiler to use (default mpicc)
1597  --with-mpicxx=MPICXX    name of the MPI C++ compiler to use (default mpicxx)
1598  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1599                          [default=none]
1600  --with-boost[=ARG]      use Boost library from a standard location
1601                          (ARG=yes), from the specified location (ARG=<path>),
1602                          or disable it (ARG=no) [ARG=yes]
1603  --with-boost-libdir=LIB_DIR
1604                          Force given directory for boost libraries. Note that
1605                          this will override library path detection, so use
1606                          this parameter only if default library detection
1607                          fails and you know exactly where your boost
1608                          libraries are located.
1609  --with-boost-system[=special-lib]
1610                          use the System library from boost - it is possible
1611                          to specify a certain library for the linker e.g.
1612                          --with-boost-system=boost_system-gcc-mt
1613
1614  --with-colpack=DIR      path to the colpack library and headers
1615                          [default=system libraries]
1616  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O2)
1617  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
1618  --with-ampi=AMPI_DIR    full path to the installation of adjoinable MPI
1619                          (AMPI)
1620  --with-medipack=MEDIPACK_DIR
1621                          full path to the installation of MeDiPack
1622  --with-soname=NAME      user can choose what to call his library here
1623                          [default: if ampi enabled then adolc_ampi otherwise
1624                          adolc]
1625
1626Some influential environment variables:
1627  CXX         C++ compiler command
1628  CXXFLAGS    C++ compiler flags
1629  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1630              nonstandard directory <lib dir>
1631  LIBS        libraries to pass to the linker, e.g. -l<library>
1632  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633              you have headers in a nonstandard directory <include dir>
1634  CC          C compiler command
1635  CFLAGS      C compiler flags
1636  CPP         C preprocessor
1637  LT_SYS_LIBRARY_PATH
1638              User-defined run-time library search path.
1639  CXXCPP      C++ preprocessor
1640  PYTHON      the Python interpreter
1641
1642Use these variables to override the choices made by `configure' or to help
1643it to find libraries and programs with nonstandard names/locations.
1644
1645Report bugs to <adol-c@list.coin-or.org>.
1646_ACEOF
1647ac_status=$?
1648fi
1649
1650if test "$ac_init_help" = "recursive"; then
1651  # If there are subdirs, report their specific --help.
1652  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653    test -d "$ac_dir" ||
1654      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655      continue
1656    ac_builddir=.
1657
1658case "$ac_dir" in
1659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660*)
1661  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662  # A ".." for each directory in $ac_dir_suffix.
1663  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664  case $ac_top_builddir_sub in
1665  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667  esac ;;
1668esac
1669ac_abs_top_builddir=$ac_pwd
1670ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671# for backward compatibility:
1672ac_top_builddir=$ac_top_build_prefix
1673
1674case $srcdir in
1675  .)  # We are building in place.
1676    ac_srcdir=.
1677    ac_top_srcdir=$ac_top_builddir_sub
1678    ac_abs_top_srcdir=$ac_pwd ;;
1679  [\\/]* | ?:[\\/]* )  # Absolute name.
1680    ac_srcdir=$srcdir$ac_dir_suffix;
1681    ac_top_srcdir=$srcdir
1682    ac_abs_top_srcdir=$srcdir ;;
1683  *) # Relative name.
1684    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685    ac_top_srcdir=$ac_top_build_prefix$srcdir
1686    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687esac
1688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
1690    cd "$ac_dir" || { ac_status=$?; continue; }
1691    # Check for guested configure.
1692    if test -f "$ac_srcdir/configure.gnu"; then
1693      echo &&
1694      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695    elif test -f "$ac_srcdir/configure"; then
1696      echo &&
1697      $SHELL "$ac_srcdir/configure" --help=recursive
1698    else
1699      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700    fi || ac_status=$?
1701    cd "$ac_pwd" || { ac_status=$?; break; }
1702  done
1703fi
1704
1705test -n "$ac_init_help" && exit $ac_status
1706if $ac_init_version; then
1707  cat <<\_ACEOF
1708adolc configure 2.7.2-stable
1709generated by GNU Autoconf 2.69
1710
1711Copyright (C) 2012 Free Software Foundation, Inc.
1712This configure script is free software; the Free Software Foundation
1713gives unlimited permission to copy, distribute and modify it.
1714_ACEOF
1715  exit
1716fi
1717
1718## ------------------------ ##
1719## Autoconf initialization. ##
1720## ------------------------ ##
1721
1722# ac_fn_cxx_try_compile LINENO
1723# ----------------------------
1724# Try to compile conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_cxx_try_compile ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  rm -f conftest.$ac_objext
1729  if { { ac_try="$ac_compile"
1730case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_compile") 2>conftest.err
1737  ac_status=$?
1738  if test -s conftest.err; then
1739    grep -v '^ *+' conftest.err >conftest.er1
1740    cat conftest.er1 >&5
1741    mv -f conftest.er1 conftest.err
1742  fi
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } && {
1745         test -z "$ac_cxx_werror_flag" ||
1746         test ! -s conftest.err
1747       } && test -s conftest.$ac_objext; then :
1748  ac_retval=0
1749else
1750  $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753        ac_retval=1
1754fi
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756  as_fn_set_status $ac_retval
1757
1758} # ac_fn_cxx_try_compile
1759
1760# ac_fn_c_try_compile LINENO
1761# --------------------------
1762# Try to compile conftest.$ac_ext, and return whether this succeeded.
1763ac_fn_c_try_compile ()
1764{
1765  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766  rm -f conftest.$ac_objext
1767  if { { ac_try="$ac_compile"
1768case "(($ac_try" in
1769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770  *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774  (eval "$ac_compile") 2>conftest.err
1775  ac_status=$?
1776  if test -s conftest.err; then
1777    grep -v '^ *+' conftest.err >conftest.er1
1778    cat conftest.er1 >&5
1779    mv -f conftest.er1 conftest.err
1780  fi
1781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782  test $ac_status = 0; } && {
1783         test -z "$ac_c_werror_flag" ||
1784         test ! -s conftest.err
1785       } && test -s conftest.$ac_objext; then :
1786  ac_retval=0
1787else
1788  $as_echo "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
1790
1791        ac_retval=1
1792fi
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794  as_fn_set_status $ac_retval
1795
1796} # ac_fn_c_try_compile
1797
1798# ac_fn_c_try_cpp LINENO
1799# ----------------------
1800# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_c_try_cpp ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  if { { ac_try="$ac_cpp conftest.$ac_ext"
1805case "(($ac_try" in
1806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807  *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1812  ac_status=$?
1813  if test -s conftest.err; then
1814    grep -v '^ *+' conftest.err >conftest.er1
1815    cat conftest.er1 >&5
1816    mv -f conftest.er1 conftest.err
1817  fi
1818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819  test $ac_status = 0; } > conftest.i && {
1820         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1821         test ! -s conftest.err
1822       }; then :
1823  ac_retval=0
1824else
1825  $as_echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828    ac_retval=1
1829fi
1830  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831  as_fn_set_status $ac_retval
1832
1833} # ac_fn_c_try_cpp
1834
1835# ac_fn_c_try_link LINENO
1836# -----------------------
1837# Try to link conftest.$ac_ext, and return whether this succeeded.
1838ac_fn_c_try_link ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  rm -f conftest.$ac_objext conftest$ac_exeext
1842  if { { ac_try="$ac_link"
1843case "(($ac_try" in
1844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845  *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848$as_echo "$ac_try_echo"; } >&5
1849  (eval "$ac_link") 2>conftest.err
1850  ac_status=$?
1851  if test -s conftest.err; then
1852    grep -v '^ *+' conftest.err >conftest.er1
1853    cat conftest.er1 >&5
1854    mv -f conftest.er1 conftest.err
1855  fi
1856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857  test $ac_status = 0; } && {
1858         test -z "$ac_c_werror_flag" ||
1859         test ! -s conftest.err
1860       } && test -s conftest$ac_exeext && {
1861         test "$cross_compiling" = yes ||
1862         test -x conftest$ac_exeext
1863       }; then :
1864  ac_retval=0
1865else
1866  $as_echo "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869        ac_retval=1
1870fi
1871  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873  # interfere with the next link command; also delete a directory that is
1874  # left behind by Apple's compiler.  We do this before executing the actions.
1875  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877  as_fn_set_status $ac_retval
1878
1879} # ac_fn_c_try_link
1880
1881# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1882# -------------------------------------------------------
1883# Tests whether HEADER exists and can be compiled using the include files in
1884# INCLUDES, setting the cache variable VAR accordingly.
1885ac_fn_c_check_header_compile ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if eval \${$3+:} false; then :
1891  $as_echo_n "(cached) " >&6
1892else
1893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h.  */
1895$4
1896#include <$2>
1897_ACEOF
1898if ac_fn_c_try_compile "$LINENO"; then :
1899  eval "$3=yes"
1900else
1901  eval "$3=no"
1902fi
1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910} # ac_fn_c_check_header_compile
1911
1912# ac_fn_c_try_run LINENO
1913# ----------------------
1914# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1915# that executables *can* be run.
1916ac_fn_c_try_run ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  if { { ac_try="$ac_link"
1920case "(($ac_try" in
1921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922  *) ac_try_echo=$ac_try;;
1923esac
1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925$as_echo "$ac_try_echo"; } >&5
1926  (eval "$ac_link") 2>&5
1927  ac_status=$?
1928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930  { { case "(($ac_try" in
1931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932  *) ac_try_echo=$ac_try;;
1933esac
1934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935$as_echo "$ac_try_echo"; } >&5
1936  (eval "$ac_try") 2>&5
1937  ac_status=$?
1938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939  test $ac_status = 0; }; }; then :
1940  ac_retval=0
1941else
1942  $as_echo "$as_me: program exited with status $ac_status" >&5
1943       $as_echo "$as_me: failed program was:" >&5
1944sed 's/^/| /' conftest.$ac_ext >&5
1945
1946       ac_retval=$ac_status
1947fi
1948  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950  as_fn_set_status $ac_retval
1951
1952} # ac_fn_c_try_run
1953
1954# ac_fn_c_check_func LINENO FUNC VAR
1955# ----------------------------------
1956# Tests whether FUNC exists, setting the cache variable VAR accordingly
1957ac_fn_c_check_func ()
1958{
1959  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961$as_echo_n "checking for $2... " >&6; }
1962if eval \${$3+:} false; then :
1963  $as_echo_n "(cached) " >&6
1964else
1965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h.  */
1967/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1969#define $2 innocuous_$2
1970
1971/* System header to define __stub macros and hopefully few prototypes,
1972    which can conflict with char $2 (); below.
1973    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974    <limits.h> exists even on freestanding compilers.  */
1975
1976#ifdef __STDC__
1977# include <limits.h>
1978#else
1979# include <assert.h>
1980#endif
1981
1982#undef $2
1983
1984/* Override any GCC internal prototype to avoid an error.
1985   Use char because int might match the return type of a GCC
1986   builtin and then its argument prototype would still apply.  */
1987#ifdef __cplusplus
1988extern "C"
1989#endif
1990char $2 ();
1991/* The GNU C library defines this for functions which it implements
1992    to always fail with ENOSYS.  Some functions are actually named
1993    something starting with __ and the normal name is an alias.  */
1994#if defined __stub_$2 || defined __stub___$2
1995choke me
1996#endif
1997
1998int
1999main ()
2000{
2001return $2 ();
2002  ;
2003  return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_link "$LINENO"; then :
2007  eval "$3=yes"
2008else
2009  eval "$3=no"
2010fi
2011rm -f core conftest.err conftest.$ac_objext \
2012    conftest$ac_exeext conftest.$ac_ext
2013fi
2014eval ac_res=\$$3
2015               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019} # ac_fn_c_check_func
2020
2021# ac_fn_cxx_try_cpp LINENO
2022# ------------------------
2023# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2024ac_fn_cxx_try_cpp ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  if { { ac_try="$ac_cpp conftest.$ac_ext"
2028case "(($ac_try" in
2029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030  *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2035  ac_status=$?
2036  if test -s conftest.err; then
2037    grep -v '^ *+' conftest.err >conftest.er1
2038    cat conftest.er1 >&5
2039    mv -f conftest.er1 conftest.err
2040  fi
2041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042  test $ac_status = 0; } > conftest.i && {
2043         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2044         test ! -s conftest.err
2045       }; then :
2046  ac_retval=0
2047else
2048  $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051    ac_retval=1
2052fi
2053  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054  as_fn_set_status $ac_retval
2055
2056} # ac_fn_cxx_try_cpp
2057
2058# ac_fn_cxx_try_link LINENO
2059# -------------------------
2060# Try to link conftest.$ac_ext, and return whether this succeeded.
2061ac_fn_cxx_try_link ()
2062{
2063  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064  rm -f conftest.$ac_objext conftest$ac_exeext
2065  if { { ac_try="$ac_link"
2066case "(($ac_try" in
2067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068  *) ac_try_echo=$ac_try;;
2069esac
2070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071$as_echo "$ac_try_echo"; } >&5
2072  (eval "$ac_link") 2>conftest.err
2073  ac_status=$?
2074  if test -s conftest.err; then
2075    grep -v '^ *+' conftest.err >conftest.er1
2076    cat conftest.er1 >&5
2077    mv -f conftest.er1 conftest.err
2078  fi
2079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080  test $ac_status = 0; } && {
2081         test -z "$ac_cxx_werror_flag" ||
2082         test ! -s conftest.err
2083       } && test -s conftest$ac_exeext && {
2084         test "$cross_compiling" = yes ||
2085         test -x conftest$ac_exeext
2086       }; then :
2087  ac_retval=0
2088else
2089  $as_echo "$as_me: failed program was:" >&5
2090sed 's/^/| /' conftest.$ac_ext >&5
2091
2092        ac_retval=1
2093fi
2094  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2095  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2096  # interfere with the next link command; also delete a directory that is
2097  # left behind by Apple's compiler.  We do this before executing the actions.
2098  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100  as_fn_set_status $ac_retval
2101
2102} # ac_fn_cxx_try_link
2103
2104# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2105# --------------------------------------------
2106# Tries to find the compile-time value of EXPR in a program that includes
2107# INCLUDES, setting VAR accordingly. Returns whether the value could be
2108# computed
2109ac_fn_c_compute_int ()
2110{
2111  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112  if test "$cross_compiling" = yes; then
2113    # Depending upon the size, compute the lo and hi bounds.
2114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h.  */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) >= 0)];
2121test_array [0] = 0;
2122return test_array [0];
2123
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129  ac_lo=0 ac_mid=0
2130  while :; do
2131    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h.  */
2133$4
2134int
2135main ()
2136{
2137static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2138test_array [0] = 0;
2139return test_array [0];
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146  ac_hi=$ac_mid; break
2147else
2148  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2149                        if test $ac_lo -le $ac_mid; then
2150                          ac_lo= ac_hi=
2151                          break
2152                        fi
2153                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2154fi
2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156  done
2157else
2158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$4
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !(($2) < 0)];
2165test_array [0] = 0;
2166return test_array [0];
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173  ac_hi=-1 ac_mid=-1
2174  while :; do
2175    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h.  */
2177$4
2178int
2179main ()
2180{
2181static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2182test_array [0] = 0;
2183return test_array [0];
2184
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189if ac_fn_c_try_compile "$LINENO"; then :
2190  ac_lo=$ac_mid; break
2191else
2192  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2193                        if test $ac_mid -le $ac_hi; then
2194                          ac_lo= ac_hi=
2195                          break
2196                        fi
2197                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200  done
2201else
2202  ac_lo= ac_hi=
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207# Binary search between lo and hi bounds.
2208while test "x$ac_lo" != "x$ac_hi"; do
2209  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h.  */
2212$4
2213int
2214main ()
2215{
2216static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2217test_array [0] = 0;
2218return test_array [0];
2219
2220  ;
2221  return 0;
2222}
2223_ACEOF
2224if ac_fn_c_try_compile "$LINENO"; then :
2225  ac_hi=$ac_mid
2226else
2227  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230done
2231case $ac_lo in #((
2232?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2233'') ac_retval=1 ;;
2234esac
2235  else
2236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h.  */
2238$4
2239static long int longval () { return $2; }
2240static unsigned long int ulongval () { return $2; }
2241#include <stdio.h>
2242#include <stdlib.h>
2243int
2244main ()
2245{
2246
2247  FILE *f = fopen ("conftest.val", "w");
2248  if (! f)
2249    return 1;
2250  if (($2) < 0)
2251    {
2252      long int i = longval ();
2253      if (i != ($2))
2254        return 1;
2255      fprintf (f, "%ld", i);
2256    }
2257  else
2258    {
2259      unsigned long int i = ulongval ();
2260      if (i != ($2))
2261        return 1;
2262      fprintf (f, "%lu", i);
2263    }
2264  /* Do not output a trailing newline, as this causes \r\n confusion
2265     on some platforms.  */
2266  return ferror (f) || fclose (f) != 0;
2267
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_run "$LINENO"; then :
2273  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2274else
2275  ac_retval=1
2276fi
2277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2278  conftest.$ac_objext conftest.beam conftest.$ac_ext
2279rm -f conftest.val
2280
2281  fi
2282  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283  as_fn_set_status $ac_retval
2284
2285} # ac_fn_c_compute_int
2286
2287# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2288# -------------------------------------------
2289# Tests whether TYPE exists after having included INCLUDES, setting cache
2290# variable VAR accordingly.
2291ac_fn_c_check_type ()
2292{
2293  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295$as_echo_n "checking for $2... " >&6; }
2296if eval \${$3+:} false; then :
2297  $as_echo_n "(cached) " >&6
2298else
2299  eval "$3=no"
2300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h.  */
2302$4
2303int
2304main ()
2305{
2306if (sizeof ($2))
2307         return 0;
2308  ;
2309  return 0;
2310}
2311_ACEOF
2312if ac_fn_c_try_compile "$LINENO"; then :
2313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314/* end confdefs.h.  */
2315$4
2316int
2317main ()
2318{
2319if (sizeof (($2)))
2320            return 0;
2321  ;
2322  return 0;
2323}
2324_ACEOF
2325if ac_fn_c_try_compile "$LINENO"; then :
2326
2327else
2328  eval "$3=yes"
2329fi
2330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331fi
2332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333fi
2334eval ac_res=\$$3
2335               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336$as_echo "$ac_res" >&6; }
2337  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338
2339} # ac_fn_c_check_type
2340
2341# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2342# -------------------------------------------------------
2343# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2344# the include files in INCLUDES and setting the cache variable VAR
2345# accordingly.
2346ac_fn_c_check_header_mongrel ()
2347{
2348  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349  if eval \${$3+:} false; then :
2350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2351$as_echo_n "checking for $2... " >&6; }
2352if eval \${$3+:} false; then :
2353  $as_echo_n "(cached) " >&6
2354fi
2355eval ac_res=\$$3
2356               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357$as_echo "$ac_res" >&6; }
2358else
2359  # Is the header compilable?
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2361$as_echo_n "checking $2 usability... " >&6; }
2362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363/* end confdefs.h.  */
2364$4
2365#include <$2>
2366_ACEOF
2367if ac_fn_c_try_compile "$LINENO"; then :
2368  ac_header_compiler=yes
2369else
2370  ac_header_compiler=no
2371fi
2372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2374$as_echo "$ac_header_compiler" >&6; }
2375
2376# Is the header present?
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2378$as_echo_n "checking $2 presence... " >&6; }
2379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380/* end confdefs.h.  */
2381#include <$2>
2382_ACEOF
2383if ac_fn_c_try_cpp "$LINENO"; then :
2384  ac_header_preproc=yes
2385else
2386  ac_header_preproc=no
2387fi
2388rm -f conftest.err conftest.i conftest.$ac_ext
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2390$as_echo "$ac_header_preproc" >&6; }
2391
2392# So?  What about this header?
2393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2394  yes:no: )
2395    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2396$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2397    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2398$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2399    ;;
2400  no:yes:* )
2401    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2402$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2403    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2404$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2405    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2406$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2407    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2408$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2409    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2410$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2411( $as_echo "## -------------------------------------- ##
2412## Report this to adol-c@list.coin-or.org ##
2413## -------------------------------------- ##"
2414     ) | sed "s/^/$as_me: WARNING:     /" >&2
2415    ;;
2416esac
2417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418$as_echo_n "checking for $2... " >&6; }
2419if eval \${$3+:} false; then :
2420  $as_echo_n "(cached) " >&6
2421else
2422  eval "$3=\$ac_header_compiler"
2423fi
2424eval ac_res=\$$3
2425               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2426$as_echo "$ac_res" >&6; }
2427fi
2428  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2429
2430} # ac_fn_c_check_header_mongrel
2431
2432# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2433# ---------------------------------------------------------
2434# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2435# the include files in INCLUDES and setting the cache variable VAR
2436# accordingly.
2437ac_fn_cxx_check_header_mongrel ()
2438{
2439  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440  if eval \${$3+:} false; then :
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2442$as_echo_n "checking for $2... " >&6; }
2443if eval \${$3+:} false; then :
2444  $as_echo_n "(cached) " >&6
2445fi
2446eval ac_res=\$$3
2447               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448$as_echo "$ac_res" >&6; }
2449else
2450  # Is the header compilable?
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2452$as_echo_n "checking $2 usability... " >&6; }
2453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454/* end confdefs.h.  */
2455$4
2456#include <$2>
2457_ACEOF
2458if ac_fn_cxx_try_compile "$LINENO"; then :
2459  ac_header_compiler=yes
2460else
2461  ac_header_compiler=no
2462fi
2463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2465$as_echo "$ac_header_compiler" >&6; }
2466
2467# Is the header present?
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2469$as_echo_n "checking $2 presence... " >&6; }
2470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471/* end confdefs.h.  */
2472#include <$2>
2473_ACEOF
2474if ac_fn_cxx_try_cpp "$LINENO"; then :
2475  ac_header_preproc=yes
2476else
2477  ac_header_preproc=no
2478fi
2479rm -f conftest.err conftest.i conftest.$ac_ext
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2481$as_echo "$ac_header_preproc" >&6; }
2482
2483# So?  What about this header?
2484case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2485  yes:no: )
2486    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2487$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2488    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2489$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2490    ;;
2491  no:yes:* )
2492    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2493$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2494    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2495$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2496    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2497$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2498    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2499$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2500    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2501$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2502( $as_echo "## -------------------------------------- ##
2503## Report this to adol-c@list.coin-or.org ##
2504## -------------------------------------- ##"
2505     ) | sed "s/^/$as_me: WARNING:     /" >&2
2506    ;;
2507esac
2508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509$as_echo_n "checking for $2... " >&6; }
2510if eval \${$3+:} false; then :
2511  $as_echo_n "(cached) " >&6
2512else
2513  eval "$3=\$ac_header_compiler"
2514fi
2515eval ac_res=\$$3
2516               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517$as_echo "$ac_res" >&6; }
2518fi
2519  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520
2521} # ac_fn_cxx_check_header_mongrel
2522cat >config.log <<_ACEOF
2523This file contains any messages produced by compilers while
2524running configure, to aid debugging if configure makes a mistake.
2525
2526It was created by adolc $as_me 2.7.2-stable, which was
2527generated by GNU Autoconf 2.69.  Invocation command line was
2528
2529  $ $0 $@
2530
2531_ACEOF
2532exec 5>>config.log
2533{
2534cat <<_ASUNAME
2535## --------- ##
2536## Platform. ##
2537## --------- ##
2538
2539hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2540uname -m = `(uname -m) 2>/dev/null || echo unknown`
2541uname -r = `(uname -r) 2>/dev/null || echo unknown`
2542uname -s = `(uname -s) 2>/dev/null || echo unknown`
2543uname -v = `(uname -v) 2>/dev/null || echo unknown`
2544
2545/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2546/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2547
2548/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2549/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2550/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2551/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2552/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2553/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2554/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2555
2556_ASUNAME
2557
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561  IFS=$as_save_IFS
2562  test -z "$as_dir" && as_dir=.
2563    $as_echo "PATH: $as_dir"
2564  done
2565IFS=$as_save_IFS
2566
2567} >&5
2568
2569cat >&5 <<_ACEOF
2570
2571
2572## ----------- ##
2573## Core tests. ##
2574## ----------- ##
2575
2576_ACEOF
2577
2578
2579# Keep a trace of the command line.
2580# Strip out --no-create and --no-recursion so they do not pile up.
2581# Strip out --silent because we don't want to record it for future runs.
2582# Also quote any args containing shell meta-characters.
2583# Make two passes to allow for proper duplicate-argument suppression.
2584ac_configure_args=
2585ac_configure_args0=
2586ac_configure_args1=
2587ac_must_keep_next=false
2588for ac_pass in 1 2
2589do
2590  for ac_arg
2591  do
2592    case $ac_arg in
2593    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2594    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2595    | -silent | --silent | --silen | --sile | --sil)
2596      continue ;;
2597    *\'*)
2598      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2599    esac
2600    case $ac_pass in
2601    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2602    2)
2603      as_fn_append ac_configure_args1 " '$ac_arg'"
2604      if test $ac_must_keep_next = true; then
2605        ac_must_keep_next=false # Got value, back to normal.
2606      else
2607        case $ac_arg in
2608          *=* | --config-cache | -C | -disable-* | --disable-* \
2609          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2610          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2611          | -with-* | --with-* | -without-* | --without-* | --x)
2612            case "$ac_configure_args0 " in
2613              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2614            esac
2615            ;;
2616          -* ) ac_must_keep_next=true ;;
2617        esac
2618      fi
2619      as_fn_append ac_configure_args " '$ac_arg'"
2620      ;;
2621    esac
2622  done
2623done
2624{ ac_configure_args0=; unset ac_configure_args0;}
2625{ ac_configure_args1=; unset ac_configure_args1;}
2626
2627# When interrupted or exit'd, cleanup temporary files, and complete
2628# config.log.  We remove comments because anyway the quotes in there
2629# would cause problems or look ugly.
2630# WARNING: Use '\'' to represent an apostrophe within the trap.
2631# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2632trap 'exit_status=$?
2633  # Save into config.log some information that might help in debugging.
2634  {
2635    echo
2636
2637    $as_echo "## ---------------- ##
2638## Cache variables. ##
2639## ---------------- ##"
2640    echo
2641    # The following way of writing the cache mishandles newlines in values,
2642(
2643  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2644    eval ac_val=\$$ac_var
2645    case $ac_val in #(
2646    *${as_nl}*)
2647      case $ac_var in #(
2648      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2649$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2650      esac
2651      case $ac_var in #(
2652      _ | IFS | as_nl) ;; #(
2653      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2654      *) { eval $ac_var=; unset $ac_var;} ;;
2655      esac ;;
2656    esac
2657  done
2658  (set) 2>&1 |
2659    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2660    *${as_nl}ac_space=\ *)
2661      sed -n \
2662        "s/'\''/'\''\\\\'\'''\''/g;
2663          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2664      ;; #(
2665    *)
2666      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2667      ;;
2668    esac |
2669    sort
2670)
2671    echo
2672
2673    $as_echo "## ----------------- ##
2674## Output variables. ##
2675## ----------------- ##"
2676    echo
2677    for ac_var in $ac_subst_vars
2678    do
2679      eval ac_val=\$$ac_var
2680      case $ac_val in
2681      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2682      esac
2683      $as_echo "$ac_var='\''$ac_val'\''"
2684    done | sort
2685    echo
2686
2687    if test -n "$ac_subst_files"; then
2688      $as_echo "## ------------------- ##
2689## File substitutions. ##
2690## ------------------- ##"
2691      echo
2692      for ac_var in $ac_subst_files
2693      do
2694        eval ac_val=\$$ac_var
2695        case $ac_val in
2696        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2697        esac
2698        $as_echo "$ac_var='\''$ac_val'\''"
2699      done | sort
2700      echo
2701    fi
2702
2703    if test -s confdefs.h; then
2704      $as_echo "## ----------- ##
2705## confdefs.h. ##
2706## ----------- ##"
2707      echo
2708      cat confdefs.h
2709      echo
2710    fi
2711    test "$ac_signal" != 0 &&
2712      $as_echo "$as_me: caught signal $ac_signal"
2713    $as_echo "$as_me: exit $exit_status"
2714  } >&5
2715  rm -f core *.core core.conftest.* &&
2716    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2717    exit $exit_status
2718' 0
2719for ac_signal in 1 2 13 15; do
2720  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2721done
2722ac_signal=0
2723
2724# confdefs.h avoids OS command line length limits that DEFS can exceed.
2725rm -f -r conftest* confdefs.h
2726
2727$as_echo "/* confdefs.h */" > confdefs.h
2728
2729# Predefined preprocessor variables.
2730
2731cat >>confdefs.h <<_ACEOF
2732#define PACKAGE_NAME "$PACKAGE_NAME"
2733_ACEOF
2734
2735cat >>confdefs.h <<_ACEOF
2736#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2737_ACEOF
2738
2739cat >>confdefs.h <<_ACEOF
2740#define PACKAGE_VERSION "$PACKAGE_VERSION"
2741_ACEOF
2742
2743cat >>confdefs.h <<_ACEOF
2744#define PACKAGE_STRING "$PACKAGE_STRING"
2745_ACEOF
2746
2747cat >>confdefs.h <<_ACEOF
2748#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2749_ACEOF
2750
2751cat >>confdefs.h <<_ACEOF
2752#define PACKAGE_URL "$PACKAGE_URL"
2753_ACEOF
2754
2755
2756# Let the site file select an alternate cache file if it wants to.
2757# Prefer an explicitly selected file to automatically selected ones.
2758ac_site_file1=NONE
2759ac_site_file2=NONE
2760if test -n "$CONFIG_SITE"; then
2761  # We do not want a PATH search for config.site.
2762  case $CONFIG_SITE in #((
2763    -*)  ac_site_file1=./$CONFIG_SITE;;
2764    */*) ac_site_file1=$CONFIG_SITE;;
2765    *)   ac_site_file1=./$CONFIG_SITE;;
2766  esac
2767elif test "x$prefix" != xNONE; then
2768  ac_site_file1=$prefix/share/config.site
2769  ac_site_file2=$prefix/etc/config.site
2770else
2771  ac_site_file1=$ac_default_prefix/share/config.site
2772  ac_site_file2=$ac_default_prefix/etc/config.site
2773fi
2774for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2775do
2776  test "x$ac_site_file" = xNONE && continue
2777  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2778    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2779$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2780    sed 's/^/| /' "$ac_site_file" >&5
2781    . "$ac_site_file" \
2782      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2784as_fn_error $? "failed to load site script $ac_site_file
2785See \`config.log' for more details" "$LINENO" 5; }
2786  fi
2787done
2788
2789if test -r "$cache_file"; then
2790  # Some versions of bash will fail to source /dev/null (special files
2791  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2792  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2793    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2794$as_echo "$as_me: loading cache $cache_file" >&6;}
2795    case $cache_file in
2796      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2797      *)                      . "./$cache_file";;
2798    esac
2799  fi
2800else
2801  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2802$as_echo "$as_me: creating cache $cache_file" >&6;}
2803  >$cache_file
2804fi
2805
2806# Check that the precious variables saved in the cache have kept the same
2807# value.
2808ac_cache_corrupted=false
2809for ac_var in $ac_precious_vars; do
2810  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2811  eval ac_new_set=\$ac_env_${ac_var}_set
2812  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2813  eval ac_new_val=\$ac_env_${ac_var}_value
2814  case $ac_old_set,$ac_new_set in
2815    set,)
2816      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2817$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2818      ac_cache_corrupted=: ;;
2819    ,set)
2820      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2821$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2822      ac_cache_corrupted=: ;;
2823    ,);;
2824    *)
2825      if test "x$ac_old_val" != "x$ac_new_val"; then
2826        # differences in whitespace do not lead to failure.
2827        ac_old_val_w=`echo x $ac_old_val`
2828        ac_new_val_w=`echo x $ac_new_val`
2829        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2830          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2831$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2832          ac_cache_corrupted=:
2833        else
2834          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2835$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2836          eval $ac_var=\$ac_old_val
2837        fi
2838        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2839$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2840        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2841$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2842      fi;;
2843  esac
2844  # Pass precious variables to config.status.
2845  if test "$ac_new_set" = set; then
2846    case $ac_new_val in
2847    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2848    *) ac_arg=$ac_var=$ac_new_val ;;
2849    esac
2850    case " $ac_configure_args " in
2851      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2852      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2853    esac
2854  fi
2855done
2856if $ac_cache_corrupted; then
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2860$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2861  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2862fi
2863## -------------------- ##
2864## Main body of script. ##
2865## -------------------- ##
2866
2867ac_ext=c
2868ac_cpp='$CPP $CPPFLAGS'
2869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872
2873
2874config_flags="$*"
2875
2876
2877ac_aux_dir=
2878for ac_dir in autoconf "$srcdir"/autoconf; do
2879  if test -f "$ac_dir/install-sh"; then
2880    ac_aux_dir=$ac_dir
2881    ac_install_sh="$ac_aux_dir/install-sh -c"
2882    break
2883  elif test -f "$ac_dir/install.sh"; then
2884    ac_aux_dir=$ac_dir
2885    ac_install_sh="$ac_aux_dir/install.sh -c"
2886    break
2887  elif test -f "$ac_dir/shtool"; then
2888    ac_aux_dir=$ac_dir
2889    ac_install_sh="$ac_aux_dir/shtool install -c"
2890    break
2891  fi
2892done
2893if test -z "$ac_aux_dir"; then
2894  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2895fi
2896
2897# These three variables are undocumented and unsupported,
2898# and are intended to be withdrawn in a future Autoconf release.
2899# They can cause serious problems if a builder's source tree is in a directory
2900# whose full name contains unusual characters.
2901ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2902ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2903ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2904
2905
2906
2907ac_config_headers="$ac_config_headers ADOL-C/src/config.h"
2908
2909
2910am__api_version='1.15'
2911
2912# Find a good install program.  We prefer a C program (faster),
2913# so one script is as good as another.  But avoid the broken or
2914# incompatible versions:
2915# SysV /etc/install, /usr/sbin/install
2916# SunOS /usr/etc/install
2917# IRIX /sbin/install
2918# AIX /bin/install
2919# AmigaOS /C/install, which installs bootblocks on floppy discs
2920# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2921# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2922# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2923# OS/2's system install, which has a completely different semantic
2924# ./install, which can be erroneously created by make from ./install.sh.
2925# Reject install programs that cannot install multiple files.
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2927$as_echo_n "checking for a BSD-compatible install... " >&6; }
2928if test -z "$INSTALL"; then
2929if ${ac_cv_path_install+:} false; then :
2930  $as_echo_n "(cached) " >&6
2931else
2932  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935  IFS=$as_save_IFS
2936  test -z "$as_dir" && as_dir=.
2937    # Account for people who put trailing slashes in PATH elements.
2938case $as_dir/ in #((
2939  ./ | .// | /[cC]/* | \
2940  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2941  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2942  /usr/ucb/* ) ;;
2943  *)
2944    # OSF1 and SCO ODT 3.0 have their own names for install.
2945    # Don't use installbsd from OSF since it installs stuff as root
2946    # by default.
2947    for ac_prog in ginstall scoinst install; do
2948      for ac_exec_ext in '' $ac_executable_extensions; do
2949        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2950          if test $ac_prog = install &&
2951            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2952            # AIX install.  It has an incompatible calling convention.
2953            :
2954          elif test $ac_prog = install &&
2955            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2956            # program-specific install script used by HP pwplus--don't use.
2957            :
2958          else
2959            rm -rf conftest.one conftest.two conftest.dir
2960            echo one > conftest.one
2961            echo two > conftest.two
2962            mkdir conftest.dir
2963            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2964              test -s conftest.one && test -s conftest.two &&
2965              test -s conftest.dir/conftest.one &&
2966              test -s conftest.dir/conftest.two
2967            then
2968              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2969              break 3
2970            fi
2971          fi
2972        fi
2973      done
2974    done
2975    ;;
2976esac
2977
2978  done
2979IFS=$as_save_IFS
2980
2981rm -rf conftest.one conftest.two conftest.dir
2982
2983fi
2984  if test "${ac_cv_path_install+set}" = set; then
2985    INSTALL=$ac_cv_path_install
2986  else
2987    # As a last resort, use the slow shell script.  Don't cache a
2988    # value for INSTALL within a source directory, because that will
2989    # break other packages using the cache if that directory is
2990    # removed, or if the value is a relative name.
2991    INSTALL=$ac_install_sh
2992  fi
2993fi
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2995$as_echo "$INSTALL" >&6; }
2996
2997# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2998# It thinks the first close brace ends the variable substitution.
2999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3000
3001test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3002
3003test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3006$as_echo_n "checking whether build environment is sane... " >&6; }
3007# Reject unsafe characters in $srcdir or the absolute working directory
3008# name.  Accept space and tab only in the latter.
3009am_lf='
3010'
3011case `pwd` in
3012  *[\\\"\#\$\&\'\`$am_lf]*)
3013    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3014esac
3015case $srcdir in
3016  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3017    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3018esac
3019
3020# Do 'set' in a subshell so we don't clobber the current shell's
3021# arguments.  Must try -L first in case configure is actually a
3022# symlink; some systems play weird games with the mod time of symlinks
3023# (eg FreeBSD returns the mod time of the symlink's containing
3024# directory).
3025if (
3026   am_has_slept=no
3027   for am_try in 1 2; do
3028     echo "timestamp, slept: $am_has_slept" > conftest.file
3029     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3030     if test "$*" = "X"; then
3031        # -L didn't work.
3032        set X `ls -t "$srcdir/configure" conftest.file`
3033     fi
3034     if test "$*" != "X $srcdir/configure conftest.file" \
3035        && test "$*" != "X conftest.file $srcdir/configure"; then
3036
3037        # If neither matched, then we have a broken ls.  This can happen
3038        # if, for instance, CONFIG_SHELL is bash and it inherits a
3039        # broken ls alias from the environment.  This has actually
3040        # happened.  Such a system could not be considered "sane".
3041        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3042  alias in your environment" "$LINENO" 5
3043     fi
3044     if test "$2" = conftest.file || test $am_try -eq 2; then
3045       break
3046     fi
3047     # Just in case.
3048     sleep 1
3049     am_has_slept=yes
3050   done
3051   test "$2" = conftest.file
3052   )
3053then
3054   # Ok.
3055   :
3056else
3057   as_fn_error $? "newly created file is older than distributed files!
3058Check your system clock" "$LINENO" 5
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3061$as_echo "yes" >&6; }
3062# If we didn't sleep, we still need to ensure time stamps of config.status and
3063# generated files are strictly newer.
3064am_sleep_pid=
3065if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3066  ( sleep 1 ) &
3067  am_sleep_pid=$!
3068fi
3069
3070rm -f conftest.file
3071
3072test "$program_prefix" != NONE &&
3073  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3074# Use a double $ so make ignores it.
3075test "$program_suffix" != NONE &&
3076  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3077# Double any \ or $.
3078# By default was `s,x,x', remove it if useless.
3079ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3080program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3081
3082# Expand $ac_aux_dir to an absolute path.
3083am_aux_dir=`cd "$ac_aux_dir" && pwd`
3084
3085if test x"${MISSING+set}" != xset; then
3086  case $am_aux_dir in
3087  *\ * | *\     *)
3088    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3089  *)
3090    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3091  esac
3092fi
3093# Use eval to expand $SHELL
3094if eval "$MISSING --is-lightweight"; then
3095  am_missing_run="$MISSING "
3096else
3097  am_missing_run=
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3099$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3100fi
3101
3102if test x"${install_sh+set}" != xset; then
3103  case $am_aux_dir in
3104  *\ * | *\     *)
3105    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3106  *)
3107    install_sh="\${SHELL} $am_aux_dir/install-sh"
3108  esac
3109fi
3110
3111# Installed binaries are usually stripped using 'strip' when the user
3112# run "make install-strip".  However 'strip' might not be the right
3113# tool to use in cross-compilation environments, therefore Automake
3114# will honor the 'STRIP' environment variable to overrule this program.
3115if test "$cross_compiling" != no; then
3116  if test -n "$ac_tool_prefix"; then
3117  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3118set dummy ${ac_tool_prefix}strip; ac_word=$2
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120$as_echo_n "checking for $ac_word... " >&6; }
3121if ${ac_cv_prog_STRIP+:} false; then :
3122  $as_echo_n "(cached) " >&6
3123else
3124  if test -n "$STRIP"; then
3125  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130  IFS=$as_save_IFS
3131  test -z "$as_dir" && as_dir=.
3132    for ac_exec_ext in '' $ac_executable_extensions; do
3133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136    break 2
3137  fi
3138done
3139  done
3140IFS=$as_save_IFS
3141
3142fi
3143fi
3144STRIP=$ac_cv_prog_STRIP
3145if test -n "$STRIP"; then
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3147$as_echo "$STRIP" >&6; }
3148else
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
3151fi
3152
3153
3154fi
3155if test -z "$ac_cv_prog_STRIP"; then
3156  ac_ct_STRIP=$STRIP
3157  # Extract the first word of "strip", so it can be a program name with args.
3158set dummy strip; ac_word=$2
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160$as_echo_n "checking for $ac_word... " >&6; }
3161if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3162  $as_echo_n "(cached) " >&6
3163else
3164  if test -n "$ac_ct_STRIP"; then
3165  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3166else
3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170  IFS=$as_save_IFS
3171  test -z "$as_dir" && as_dir=.
3172    for ac_exec_ext in '' $ac_executable_extensions; do
3173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174    ac_cv_prog_ac_ct_STRIP="strip"
3175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176    break 2
3177  fi
3178done
3179  done
3180IFS=$as_save_IFS
3181
3182fi
3183fi
3184ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3185if test -n "$ac_ct_STRIP"; then
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3187$as_echo "$ac_ct_STRIP" >&6; }
3188else
3189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191fi
3192
3193  if test "x$ac_ct_STRIP" = x; then
3194    STRIP=":"
3195  else
3196    case $cross_compiling:$ac_tool_warned in
3197yes:)
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200ac_tool_warned=yes ;;
3201esac
3202    STRIP=$ac_ct_STRIP
3203  fi
3204else
3205  STRIP="$ac_cv_prog_STRIP"
3206fi
3207
3208fi
3209INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3210
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3212$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3213if test -z "$MKDIR_P"; then
3214  if ${ac_cv_path_mkdir+:} false; then :
3215  $as_echo_n "(cached) " >&6
3216else
3217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3219do
3220  IFS=$as_save_IFS
3221  test -z "$as_dir" && as_dir=.
3222    for ac_prog in mkdir gmkdir; do
3223         for ac_exec_ext in '' $ac_executable_extensions; do
3224           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3225           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3226             'mkdir (GNU coreutils) '* | \
3227             'mkdir (coreutils) '* | \
3228             'mkdir (fileutils) '4.1*)
3229               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3230               break 3;;
3231           esac
3232         done
3233       done
3234  done
3235IFS=$as_save_IFS
3236
3237fi
3238
3239  test -d ./--version && rmdir ./--version
3240  if test "${ac_cv_path_mkdir+set}" = set; then
3241    MKDIR_P="$ac_cv_path_mkdir -p"
3242  else
3243    # As a last resort, use the slow shell script.  Don't cache a
3244    # value for MKDIR_P within a source directory, because that will
3245    # break other packages using the cache if that directory is
3246    # removed, or if the value is a relative name.
3247    MKDIR_P="$ac_install_sh -d"
3248  fi
3249fi
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3251$as_echo "$MKDIR_P" >&6; }
3252
3253for ac_prog in gawk mawk nawk awk
3254do
3255  # Extract the first word of "$ac_prog", so it can be a program name with args.
3256set dummy $ac_prog; ac_word=$2
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258$as_echo_n "checking for $ac_word... " >&6; }
3259if ${ac_cv_prog_AWK+:} false; then :
3260  $as_echo_n "(cached) " >&6
3261else
3262  if test -n "$AWK"; then
3263  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3264else
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268  IFS=$as_save_IFS
3269  test -z "$as_dir" && as_dir=.
3270    for ac_exec_ext in '' $ac_executable_extensions; do
3271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272    ac_cv_prog_AWK="$ac_prog"
3273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274    break 2
3275  fi
3276done
3277  done
3278IFS=$as_save_IFS
3279
3280fi
3281fi
3282AWK=$ac_cv_prog_AWK
3283if test -n "$AWK"; then
3284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3285$as_echo "$AWK" >&6; }
3286else
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289fi
3290
3291
3292  test -n "$AWK" && break
3293done
3294
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3296$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3297set x ${MAKE-make}
3298ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3299if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3300  $as_echo_n "(cached) " >&6
3301else
3302  cat >conftest.make <<\_ACEOF
3303SHELL = /bin/sh
3304all:
3305        @echo '@@@%%%=$(MAKE)=@@@%%%'
3306_ACEOF
3307# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3308case `${MAKE-make} -f conftest.make 2>/dev/null` in
3309  *@@@%%%=?*=@@@%%%*)
3310    eval ac_cv_prog_make_${ac_make}_set=yes;;
3311  *)
3312    eval ac_cv_prog_make_${ac_make}_set=no;;
3313esac
3314rm -f conftest.make
3315fi
3316if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318$as_echo "yes" >&6; }
3319  SET_MAKE=
3320else
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323  SET_MAKE="MAKE=${MAKE-make}"
3324fi
3325
3326rm -rf .tst 2>/dev/null
3327mkdir .tst 2>/dev/null
3328if test -d .tst; then
3329  am__leading_dot=.
3330else
3331  am__leading_dot=_
3332fi
3333rmdir .tst 2>/dev/null
3334
3335# Check whether --enable-silent-rules was given.
3336if test "${enable_silent_rules+set}" = set; then :
3337  enableval=$enable_silent_rules;
3338fi
3339
3340case $enable_silent_rules in # (((
3341  yes) AM_DEFAULT_VERBOSITY=0;;
3342   no) AM_DEFAULT_VERBOSITY=1;;
3343    *) AM_DEFAULT_VERBOSITY=1;;
3344esac
3345am_make=${MAKE-make}
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3347$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3348if ${am_cv_make_support_nested_variables+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  if $as_echo 'TRUE=$(BAR$(V))
3352BAR0=false
3353BAR1=true
3354V=1
3355am__doit:
3356        @$(TRUE)
3357.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3358  am_cv_make_support_nested_variables=yes
3359else
3360  am_cv_make_support_nested_variables=no
3361fi
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3364$as_echo "$am_cv_make_support_nested_variables" >&6; }
3365if test $am_cv_make_support_nested_variables = yes; then
3366    AM_V='$(V)'
3367  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3368else
3369  AM_V=$AM_DEFAULT_VERBOSITY
3370  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3371fi
3372AM_BACKSLASH='\'
3373
3374if test "`cd $srcdir && pwd`" != "`pwd`"; then
3375  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3376  # is not polluted with repeated "-I."
3377  am__isrc=' -I$(srcdir)'
3378  # test to see if srcdir already configured
3379  if test -f $srcdir/config.status; then
3380    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3381  fi
3382fi
3383
3384# test whether we have cygpath
3385if test -z "$CYGPATH_W"; then
3386  if (cygpath --version) >/dev/null 2>/dev/null; then
3387    CYGPATH_W='cygpath -w'
3388  else
3389    CYGPATH_W=echo
3390  fi
3391fi
3392
3393
3394# Define the identity of the package.
3395 PACKAGE='adolc'
3396 VERSION='2.7.2-stable'
3397
3398
3399cat >>confdefs.h <<_ACEOF
3400#define PACKAGE "$PACKAGE"
3401_ACEOF
3402
3403
3404cat >>confdefs.h <<_ACEOF
3405#define VERSION "$VERSION"
3406_ACEOF
3407
3408# Some tools Automake needs.
3409
3410ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3411
3412
3413AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3414
3415
3416AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3417
3418
3419AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3420
3421
3422MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3423
3424# For better backward compatibility.  To be removed once Automake 1.9.x
3425# dies out for good.  For more background, see:
3426# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3427# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3428mkdir_p='$(MKDIR_P)'
3429
3430# We need awk for the "check" target (and possibly the TAP driver).  The
3431# system "awk" is bad on some platforms.
3432# Always define AMTAR for backward compatibility.  Yes, it's still used
3433# in the wild :-(  We should find a proper way to deprecate it ...
3434AMTAR='$${TAR-tar}'
3435
3436
3437# We'll loop over all known methods to create a tar archive until one works.
3438_am_tools='gnutar  pax cpio none'
3439
3440am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3441
3442
3443
3444
3445
3446
3447# POSIX will say in a future version that running "rm -f" with no argument
3448# is OK; and we want to be able to make that assumption in our Makefile
3449# recipes.  So use an aggressive probe to check that the usage we want is
3450# actually supported "in the wild" to an acceptable degree.
3451# See automake bug#10828.
3452# To make any issue more visible, cause the running configure to be aborted
3453# by default if the 'rm' program in use doesn't match our expectations; the
3454# user can still override this though.
3455if rm -f && rm -fr && rm -rf; then : OK; else
3456  cat >&2 <<'END'
3457Oops!
3458
3459Your 'rm' program seems unable to run without file operands specified
3460on the command line, even when the '-f' option is present.  This is contrary
3461to the behaviour of most rm programs out there, and not conforming with
3462the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3463
3464Please tell bug-automake@gnu.org about your system, including the value
3465of your $PATH and any error possibly output before this message.  This
3466can help us improve future automake versions.
3467
3468END
3469  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3470    echo 'Configuration will proceed anyway, since you have set the' >&2
3471    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3472    echo >&2
3473  else
3474    cat >&2 <<'END'
3475Aborting the configuration process, to ensure you take notice of the issue.
3476
3477You can download and install GNU coreutils to get an 'rm' implementation
3478that behaves properly: <http://www.gnu.org/software/coreutils/>.
3479
3480If you want to complete the configuration process using your problematic
3481'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3482to "yes", and re-run configure.
3483
3484END
3485    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3486  fi
3487fi
3488
3489# Check whether --enable-silent-rules was given.
3490if test "${enable_silent_rules+set}" = set; then :
3491  enableval=$enable_silent_rules;
3492fi
3493
3494case $enable_silent_rules in # (((
3495  yes) AM_DEFAULT_VERBOSITY=0;;
3496   no) AM_DEFAULT_VERBOSITY=1;;
3497    *) AM_DEFAULT_VERBOSITY=0;;
3498esac
3499am_make=${MAKE-make}
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3501$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3502if ${am_cv_make_support_nested_variables+:} false; then :
3503  $as_echo_n "(cached) " >&6
3504else
3505  if $as_echo 'TRUE=$(BAR$(V))
3506BAR0=false
3507BAR1=true
3508V=1
3509am__doit:
3510        @$(TRUE)
3511.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3512  am_cv_make_support_nested_variables=yes
3513else
3514  am_cv_make_support_nested_variables=no
3515fi
3516fi
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3518$as_echo "$am_cv_make_support_nested_variables" >&6; }
3519if test $am_cv_make_support_nested_variables = yes; then
3520    AM_V='$(V)'
3521  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3522else
3523  AM_V=$AM_DEFAULT_VERBOSITY
3524  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3525fi
3526AM_BACKSLASH='\'
3527
3528
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3530$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3531    # Check whether --enable-maintainer-mode was given.
3532if test "${enable_maintainer_mode+set}" = set; then :
3533  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3534else
3535  USE_MAINTAINER_MODE=no
3536fi
3537
3538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3539$as_echo "$USE_MAINTAINER_MODE" >&6; }
3540   if test $USE_MAINTAINER_MODE = yes; then
3541  MAINTAINER_MODE_TRUE=
3542  MAINTAINER_MODE_FALSE='#'
3543else
3544  MAINTAINER_MODE_TRUE='#'
3545  MAINTAINER_MODE_FALSE=
3546fi
3547
3548  MAINT=$MAINTAINER_MODE_TRUE
3549
3550
3551
3552
3553adolclib=adolc
3554
3555if test "x$CFLAGS" == x ; then
3556    ac_shell_cflags="not_set"
3557else
3558    ac_shell_cflags="$CFLAGS"
3559fi
3560if test "x$CXXFLAGS" == x ; then
3561    ac_shell_cxxflags="not_set"
3562else
3563    ac_shell_cxxflags="$CXXFLAGS"
3564fi
3565libdir_set_on_cmd="no"
3566for i in $config_flags ; do
3567    case $i in
3568    -libdir | --libdir | --libdi | --libd | -libdir=* | --libdir=* | --libdi=* | --libd=*)
3569            libdir_set_on_cmd="yes"
3570            break
3571            ;;
3572    esac
3573done
3574
3575 if test "x${host_os#darwin}" != "x${host_os}"; then
3576  DARWIN_TRUE=
3577  DARWIN_FALSE='#'
3578else
3579  DARWIN_TRUE='#'
3580  DARWIN_FALSE=
3581fi
3582
3583
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build ADOL-C with adjoinable MPI (AMPI) support" >&5
3585$as_echo_n "checking whether to build ADOL-C with adjoinable MPI (AMPI) support... " >&6; }
3586# Check whether --enable-ampi was given.
3587if test "${enable_ampi+set}" = set; then :
3588  enableval=$enable_ampi; adolc_ampi_support=$enableval
3589else
3590  adolc_ampi_support=no
3591fi
3592
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $adolc_ampi_support" >&5
3594$as_echo "$adolc_ampi_support" >&6; }
3595 if test x${adolc_ampi_support} = xyes; then
3596  BUILD_ADOLC_AMPI_SUPPORT_TRUE=
3597  BUILD_ADOLC_AMPI_SUPPORT_FALSE='#'
3598else
3599  BUILD_ADOLC_AMPI_SUPPORT_TRUE='#'
3600  BUILD_ADOLC_AMPI_SUPPORT_FALSE=
3601fi
3602
3603if test x"${adolc_ampi_support}" = xyes ; then
3604
3605$as_echo "#define ADOLC_AMPI_SUPPORT 1" >>confdefs.h
3606
3607fi
3608
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build ADOL-C with MeDiPack (MPI) support" >&5
3610$as_echo_n "checking whether to build ADOL-C with MeDiPack (MPI) support... " >&6; }
3611# Check whether --enable-medipack was given.
3612if test "${enable_medipack+set}" = set; then :
3613  enableval=$enable_medipack; adolc_medipack_support=$enableval
3614else
3615  adolc_medipack_support=no
3616fi
3617
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $adolc_medipack_support" >&5
3619$as_echo "$adolc_medipack_support" >&6; }
3620 if test x${adolc_medipack_support} = xyes; then
3621  BUILD_ADOLC_MEDIPACK_SUPPORT_TRUE=
3622  BUILD_ADOLC_MEDIPACK_SUPPORT_FALSE='#'
3623else
3624  BUILD_ADOLC_MEDIPACK_SUPPORT_TRUE='#'
3625  BUILD_ADOLC_MEDIPACK_SUPPORT_FALSE=
3626fi
3627
3628if test x"${adolc_medipack_support}" = xyes ; then
3629
3630$as_echo "#define ADOLC_MEDIPACK_SUPPORT 1" >>confdefs.h
3631
3632fi
3633
3634
3635# checks for programs
3636ac_ext=cpp
3637ac_cpp='$CXXCPP $CPPFLAGS'
3638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3641if test -z "$CXX"; then
3642  if test -n "$CCC"; then
3643    CXX=$CCC
3644  else
3645    if test -n "$ac_tool_prefix"; then
3646  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3647  do
3648    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3649set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651$as_echo_n "checking for $ac_word... " >&6; }
3652if ${ac_cv_prog_CXX+:} false; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  if test -n "$CXX"; then
3656  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3657else
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661  IFS=$as_save_IFS
3662  test -z "$as_dir" && as_dir=.
3663    for ac_exec_ext in '' $ac_executable_extensions; do
3664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667    break 2
3668  fi
3669done
3670  done
3671IFS=$as_save_IFS
3672
3673fi
3674fi
3675CXX=$ac_cv_prog_CXX
3676if test -n "$CXX"; then
3677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3678$as_echo "$CXX" >&6; }
3679else
3680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681$as_echo "no" >&6; }
3682fi
3683
3684
3685    test -n "$CXX" && break
3686  done
3687fi
3688if test -z "$CXX"; then
3689  ac_ct_CXX=$CXX
3690  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3691do
3692  # Extract the first word of "$ac_prog", so it can be a program name with args.
3693set dummy $ac_prog; ac_word=$2
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695$as_echo_n "checking for $ac_word... " >&6; }
3696if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3697  $as_echo_n "(cached) " >&6
3698else
3699  if test -n "$ac_ct_CXX"; then
3700  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3701else
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705  IFS=$as_save_IFS
3706  test -z "$as_dir" && as_dir=.
3707    for ac_exec_ext in '' $ac_executable_extensions; do
3708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3709    ac_cv_prog_ac_ct_CXX="$ac_prog"
3710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711    break 2
3712  fi
3713done
3714  done
3715IFS=$as_save_IFS
3716
3717fi
3718fi
3719ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3720if test -n "$ac_ct_CXX"; then
3721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3722$as_echo "$ac_ct_CXX" >&6; }
3723else
3724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725$as_echo "no" >&6; }
3726fi
3727
3728
3729  test -n "$ac_ct_CXX" && break
3730done
3731
3732  if test "x$ac_ct_CXX" = x; then
3733    CXX="g++"
3734  else
3735    case $cross_compiling:$ac_tool_warned in
3736yes:)
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739ac_tool_warned=yes ;;
3740esac
3741    CXX=$ac_ct_CXX
3742  fi
3743fi
3744
3745  fi
3746fi
3747# Provide some information about the compiler.
3748$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3749set X $ac_compile
3750ac_compiler=$2
3751for ac_option in --version -v -V -qversion; do
3752  { { ac_try="$ac_compiler $ac_option >&5"
3753case "(($ac_try" in
3754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755  *) ac_try_echo=$ac_try;;
3756esac
3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758$as_echo "$ac_try_echo"; } >&5
3759  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3760  ac_status=$?
3761  if test -s conftest.err; then
3762    sed '10a\
3763... rest of stderr output deleted ...
3764         10q' conftest.err >conftest.er1
3765    cat conftest.er1 >&5
3766  fi
3767  rm -f conftest.er1 conftest.err
3768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769  test $ac_status = 0; }
3770done
3771
3772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h.  */
3774
3775int
3776main ()
3777{
3778
3779  ;
3780  return 0;
3781}
3782_ACEOF
3783ac_clean_files_save=$ac_clean_files
3784ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3785# Try to create an executable without -o first, disregard a.out.
3786# It will help us diagnose broken compilers, and finding out an intuition
3787# of exeext.
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3789$as_echo_n "checking whether the C++ compiler works... " >&6; }
3790ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3791
3792# The possible output files:
3793ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3794
3795ac_rmfiles=
3796for ac_file in $ac_files
3797do
3798  case $ac_file in
3799    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3800    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3801  esac
3802done
3803rm -f $ac_rmfiles
3804
3805if { { ac_try="$ac_link_default"
3806case "(($ac_try" in
3807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808  *) ac_try_echo=$ac_try;;
3809esac
3810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811$as_echo "$ac_try_echo"; } >&5
3812  (eval "$ac_link_default") 2>&5
3813  ac_status=$?
3814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815  test $ac_status = 0; }; then :
3816  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3817# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3818# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3819# so that the user can short-circuit this test for compilers unknown to
3820# Autoconf.
3821for ac_file in $ac_files ''
3822do
3823  test -f "$ac_file" || continue
3824  case $ac_file in
3825    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3826        ;;
3827    [ab].out )
3828        # We found the default executable, but exeext='' is most
3829        # certainly right.
3830        break;;
3831    *.* )
3832        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3833        then :; else
3834           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3835        fi
3836        # We set ac_cv_exeext here because the later test for it is not
3837        # safe: cross compilers may not add the suffix if given an `-o'
3838        # argument, so we may need to know it at that point already.
3839        # Even if this section looks crufty: it has the advantage of
3840        # actually working.
3841        break;;
3842    * )
3843        break;;
3844  esac
3845done
3846test "$ac_cv_exeext" = no && ac_cv_exeext=
3847
3848else
3849  ac_file=''
3850fi
3851if test -z "$ac_file"; then :
3852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853$as_echo "no" >&6; }
3854$as_echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859as_fn_error 77 "C++ compiler cannot create executables
3860See \`config.log' for more details" "$LINENO" 5; }
3861else
3862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3863$as_echo "yes" >&6; }
3864fi
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3866$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3868$as_echo "$ac_file" >&6; }
3869ac_exeext=$ac_cv_exeext
3870
3871rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3872ac_clean_files=$ac_clean_files_save
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3874$as_echo_n "checking for suffix of executables... " >&6; }
3875if { { ac_try="$ac_link"
3876case "(($ac_try" in
3877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878  *) ac_try_echo=$ac_try;;
3879esac
3880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881$as_echo "$ac_try_echo"; } >&5
3882  (eval "$ac_link") 2>&5
3883  ac_status=$?
3884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885  test $ac_status = 0; }; then :
3886  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3887# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3888# work properly (i.e., refer to `conftest.exe'), while it won't with
3889# `rm'.
3890for ac_file in conftest.exe conftest conftest.*; do
3891  test -f "$ac_file" || continue
3892  case $ac_file in
3893    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3894    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3895          break;;
3896    * ) break;;
3897  esac
3898done
3899else
3900  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3903See \`config.log' for more details" "$LINENO" 5; }
3904fi
3905rm -f conftest conftest$ac_cv_exeext
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3907$as_echo "$ac_cv_exeext" >&6; }
3908
3909rm -f conftest.$ac_ext
3910EXEEXT=$ac_cv_exeext
3911ac_exeext=$EXEEXT
3912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h.  */
3914#include <stdio.h>
3915int
3916main ()
3917{
3918FILE *f = fopen ("conftest.out", "w");
3919 return ferror (f) || fclose (f) != 0;
3920
3921  ;
3922  return 0;
3923}
3924_ACEOF
3925ac_clean_files="$ac_clean_files conftest.out"
3926# Check that the compiler produces executables we can run.  If not, either
3927# the compiler is broken, or we cross compile.
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3929$as_echo_n "checking whether we are cross compiling... " >&6; }
3930if test "$cross_compiling" != yes; then
3931  { { ac_try="$ac_link"
3932case "(($ac_try" in
3933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934  *) ac_try_echo=$ac_try;;
3935esac
3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937$as_echo "$ac_try_echo"; } >&5
3938  (eval "$ac_link") 2>&5
3939  ac_status=$?
3940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941  test $ac_status = 0; }
3942  if { ac_try='./conftest$ac_cv_exeext'
3943  { { case "(($ac_try" in
3944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945  *) ac_try_echo=$ac_try;;
3946esac
3947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948$as_echo "$ac_try_echo"; } >&5
3949  (eval "$ac_try") 2>&5
3950  ac_status=$?
3951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952  test $ac_status = 0; }; }; then
3953    cross_compiling=no
3954  else
3955    if test "$cross_compiling" = maybe; then
3956        cross_compiling=yes
3957    else
3958        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960as_fn_error $? "cannot run C++ compiled programs.
3961If you meant to cross compile, use \`--host'.
3962See \`config.log' for more details" "$LINENO" 5; }
3963    fi
3964  fi
3965fi
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3967$as_echo "$cross_compiling" >&6; }
3968
3969rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3970ac_clean_files=$ac_clean_files_save
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3972$as_echo_n "checking for suffix of object files... " >&6; }
3973if ${ac_cv_objext+:} false; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h.  */
3978
3979int
3980main ()
3981{
3982
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987rm -f conftest.o conftest.obj
3988if { { ac_try="$ac_compile"
3989case "(($ac_try" in
3990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991  *) ac_try_echo=$ac_try;;
3992esac
3993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994$as_echo "$ac_try_echo"; } >&5
3995  (eval "$ac_compile") 2>&5
3996  ac_status=$?
3997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998  test $ac_status = 0; }; then :
3999  for ac_file in conftest.o conftest.obj conftest.*; do
4000  test -f "$ac_file" || continue;
4001  case $ac_file in
4002    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4003    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4004       break;;
4005  esac
4006done
4007else
4008  $as_echo "$as_me: failed program was:" >&5
4009sed 's/^/| /' conftest.$ac_ext >&5
4010
4011{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013as_fn_error $? "cannot compute suffix of object files: cannot compile
4014See \`config.log' for more details" "$LINENO" 5; }
4015fi
4016rm -f conftest.$ac_cv_objext conftest.$ac_ext
4017fi
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4019$as_echo "$ac_cv_objext" >&6; }
4020OBJEXT=$ac_cv_objext
4021ac_objext=$OBJEXT
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4023$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4024if ${ac_cv_cxx_compiler_gnu+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h.  */
4029
4030int
4031main ()
4032{
4033#ifndef __GNUC__
4034       choke me
4035#endif
4036
4037  ;
4038  return 0;
4039}
4040_ACEOF
4041if ac_fn_cxx_try_compile "$LINENO"; then :
4042  ac_compiler_gnu=yes
4043else
4044  ac_compiler_gnu=no
4045fi
4046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4048
4049fi
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4051$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4052if test $ac_compiler_gnu = yes; then
4053  GXX=yes
4054else
4055  GXX=
4056fi
4057ac_test_CXXFLAGS=${CXXFLAGS+set}
4058ac_save_CXXFLAGS=$CXXFLAGS
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4060$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4061if ${ac_cv_prog_cxx_g+:} false; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4065   ac_cxx_werror_flag=yes
4066   ac_cv_prog_cxx_g=no
4067   CXXFLAGS="-g"
4068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h.  */
4070
4071int
4072main ()
4073{
4074
4075  ;
4076  return 0;
4077}
4078_ACEOF
4079if ac_fn_cxx_try_compile "$LINENO"; then :
4080  ac_cv_prog_cxx_g=yes
4081else
4082  CXXFLAGS=""
4083      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h.  */
4085
4086int
4087main ()
4088{
4089
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094if ac_fn_cxx_try_compile "$LINENO"; then :
4095
4096else
4097  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4098         CXXFLAGS="-g"
4099         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h.  */
4101
4102int
4103main ()
4104{
4105
4106  ;
4107  return 0;
4108}
4109_ACEOF
4110if ac_fn_cxx_try_compile "$LINENO"; then :
4111  ac_cv_prog_cxx_g=yes
4112fi
4113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114fi
4115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116fi
4117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4119fi
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4121$as_echo "$ac_cv_prog_cxx_g" >&6; }
4122if test "$ac_test_CXXFLAGS" = set; then
4123  CXXFLAGS=$ac_save_CXXFLAGS
4124elif test $ac_cv_prog_cxx_g = yes; then
4125  if test "$GXX" = yes; then
4126    CXXFLAGS="-g -O2"
4127  else
4128    CXXFLAGS="-g"
4129  fi
4130else
4131  if test "$GXX" = yes; then
4132    CXXFLAGS="-O2"
4133  else
4134    CXXFLAGS=
4135  fi
4136fi
4137ac_ext=c
4138ac_cpp='$CPP $CPPFLAGS'
4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142DEPDIR="${am__leading_dot}deps"
4143
4144ac_config_commands="$ac_config_commands depfiles"
4145
4146
4147am_make=${MAKE-make}
4148cat > confinc << 'END'
4149am__doit:
4150        @echo this is the am__doit target
4151.PHONY: am__doit
4152END
4153# If we don't find an include directive, just comment out the code.
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4155$as_echo_n "checking for style of include used by $am_make... " >&6; }
4156am__include="#"
4157am__quote=
4158_am_result=none
4159# First try GNU make style include.
4160echo "include confinc" > confmf
4161# Ignore all kinds of additional output from 'make'.
4162case `$am_make -s -f confmf 2> /dev/null` in #(
4163*the\ am__doit\ target*)
4164  am__include=include
4165  am__quote=
4166  _am_result=GNU
4167  ;;
4168esac
4169# Now try BSD make style include.
4170if test "$am__include" = "#"; then
4171   echo '.include "confinc"' > confmf
4172   case `$am_make -s -f confmf 2> /dev/null` in #(
4173   *the\ am__doit\ target*)
4174     am__include=.include
4175     am__quote="\""
4176     _am_result=BSD
4177     ;;
4178   esac
4179fi
4180
4181
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4183$as_echo "$_am_result" >&6; }
4184rm -f confinc confmf
4185
4186# Check whether --enable-dependency-tracking was given.
4187if test "${enable_dependency_tracking+set}" = set; then :
4188  enableval=$enable_dependency_tracking;
4189fi
4190
4191if test "x$enable_dependency_tracking" != xno; then
4192  am_depcomp="$ac_aux_dir/depcomp"
4193  AMDEPBACKSLASH='\'
4194  am__nodep='_no'
4195fi
4196 if test "x$enable_dependency_tracking" != xno; then
4197  AMDEP_TRUE=
4198  AMDEP_FALSE='#'
4199else
4200  AMDEP_TRUE='#'
4201  AMDEP_FALSE=
4202fi
4203
4204
4205
4206depcc="$CXX"  am_compiler_list=
4207
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4209$as_echo_n "checking dependency style of $depcc... " >&6; }
4210if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4211  $as_echo_n "(cached) " >&6
4212else
4213  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4214  # We make a subdir and do the tests there.  Otherwise we can end up
4215  # making bogus files that we don't know about and never remove.  For
4216  # instance it was reported that on HP-UX the gcc test will end up
4217  # making a dummy file named 'D' -- because '-MD' means "put the output
4218  # in D".
4219  rm -rf conftest.dir
4220  mkdir conftest.dir
4221  # Copy depcomp to subdir because otherwise we won't find it if we're
4222  # using a relative directory.
4223  cp "$am_depcomp" conftest.dir
4224  cd conftest.dir
4225  # We will build objects and dependencies in a subdirectory because
4226  # it helps to detect inapplicable dependency modes.  For instance
4227  # both Tru64's cc and ICC support -MD to output dependencies as a
4228  # side effect of compilation, but ICC will put the dependencies in
4229  # the current directory while Tru64 will put them in the object
4230  # directory.
4231  mkdir sub
4232
4233  am_cv_CXX_dependencies_compiler_type=none
4234  if test "$am_compiler_list" = ""; then
4235     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4236  fi
4237  am__universal=false
4238  case " $depcc " in #(
4239     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4240     esac
4241
4242  for depmode in $am_compiler_list; do
4243    # Setup a source with many dependencies, because some compilers
4244    # like to wrap large dependency lists on column 80 (with \), and
4245    # we should not choose a depcomp mode which is confused by this.
4246    #
4247    # We need to recreate these files for each test, as the compiler may
4248    # overwrite some of them when testing with obscure command lines.
4249    # This happens at least with the AIX C compiler.
4250    : > sub/conftest.c
4251    for i in 1 2 3 4 5 6; do
4252      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4253      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4254      # Solaris 10 /bin/sh.
4255      echo '/* dummy */' > sub/conftst$i.h
4256    done
4257    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4258
4259    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4260    # mode.  It turns out that the SunPro C++ compiler does not properly
4261    # handle '-M -o', and we need to detect this.  Also, some Intel
4262    # versions had trouble with output in subdirs.
4263    am__obj=sub/conftest.${OBJEXT-o}
4264    am__minus_obj="-o $am__obj"
4265    case $depmode in
4266    gcc)
4267      # This depmode causes a compiler race in universal mode.
4268      test "$am__universal" = false || continue
4269      ;;
4270    nosideeffect)
4271      # After this tag, mechanisms are not by side-effect, so they'll
4272      # only be used when explicitly requested.
4273      if test "x$enable_dependency_tracking" = xyes; then
4274        continue
4275      else
4276        break
4277      fi
4278      ;;
4279    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4280      # This compiler won't grok '-c -o', but also, the minuso test has
4281      # not run yet.  These depmodes are late enough in the game, and
4282      # so weak that their functioning should not be impacted.
4283      am__obj=conftest.${OBJEXT-o}
4284      am__minus_obj=
4285      ;;
4286    none) break ;;
4287    esac
4288    if depmode=$depmode \
4289       source=sub/conftest.c object=$am__obj \
4290       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4291       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4292         >/dev/null 2>conftest.err &&
4293       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4294       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4295       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4296       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4297      # icc doesn't choke on unknown options, it will just issue warnings
4298      # or remarks (even with -Werror).  So we grep stderr for any message
4299      # that says an option was ignored or not supported.
4300      # When given -MP, icc 7.0 and 7.1 complain thusly:
4301      #   icc: Command line warning: ignoring option '-M'; no argument required
4302      # The diagnosis changed in icc 8.0:
4303      #   icc: Command line remark: option '-MP' not supported
4304      if (grep 'ignoring option' conftest.err ||
4305          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4306        am_cv_CXX_dependencies_compiler_type=$depmode
4307        break
4308      fi
4309    fi
4310  done
4311
4312  cd ..
4313  rm -rf conftest.dir
4314else
4315  am_cv_CXX_dependencies_compiler_type=none
4316fi
4317
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4320$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4321CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4322
4323 if
4324  test "x$enable_dependency_tracking" != xno \
4325  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4326  am__fastdepCXX_TRUE=
4327  am__fastdepCXX_FALSE='#'
4328else
4329  am__fastdepCXX_TRUE='#'
4330  am__fastdepCXX_FALSE=
4331fi
4332
4333
4334
4335    ax_cxx_compile_cxx11_required=truednl
4336  ac_ext=cpp
4337ac_cpp='$CXXCPP $CPPFLAGS'
4338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4341  ac_success=no
4342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4343$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4344if ${ax_cv_cxx_compile_cxx11+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349
4350  template <typename T>
4351    struct check
4352    {
4353      static_assert(sizeof(int) <= sizeof(T), "not big enough");
4354    };
4355
4356    typedef check<check<bool>> right_angle_brackets;
4357
4358    int a;
4359    decltype(a) b;
4360
4361    typedef check<int> check_type;
4362    check_type c;
4363    check_type&& cr = static_cast<check_type&&>(c);
4364
4365    auto d = a;
4366
4367_ACEOF
4368if ac_fn_cxx_try_compile "$LINENO"; then :
4369  ax_cv_cxx_compile_cxx11=yes
4370else
4371  ax_cv_cxx_compile_cxx11=no
4372fi
4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374fi
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
4376$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
4377  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
4378    ac_success=yes
4379  fi
4380
4381
4382
4383    if test x$ac_success = xno; then
4384    for switch in -std=c++11 -std=c++0x; do
4385      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
4386      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
4387$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
4388if eval \${$cachevar+:} false; then :
4389  $as_echo_n "(cached) " >&6
4390else
4391  ac_save_CXXFLAGS="$CXXFLAGS"
4392         CXXFLAGS="$CXXFLAGS $switch"
4393         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394/* end confdefs.h.  */
4395
4396  template <typename T>
4397    struct check
4398    {
4399      static_assert(sizeof(int) <= sizeof(T), "not big enough");
4400    };
4401
4402    typedef check<check<bool>> right_angle_brackets;
4403
4404    int a;
4405    decltype(a) b;
4406
4407    typedef check<int> check_type;
4408    check_type c;
4409    check_type&& cr = static_cast<check_type&&>(c);
4410
4411    auto d = a;
4412
4413_ACEOF
4414if ac_fn_cxx_try_compile "$LINENO"; then :
4415  eval $cachevar=yes
4416else
4417  eval $cachevar=no
4418fi
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420         CXXFLAGS="$ac_save_CXXFLAGS"
4421fi
4422eval ac_res=\$$cachevar
4423               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4424$as_echo "$ac_res" >&6; }
4425      if eval test x\$$cachevar = xyes; then
4426        CXXFLAGS="$CXXFLAGS $switch"
4427        ac_success=yes
4428        break
4429      fi
4430    done
4431  fi
4432  ac_ext=c
4433ac_cpp='$CPP $CPPFLAGS'
4434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437
4438  if test x$ax_cxx_compile_cxx11_required = xtrue; then
4439    if test x$ac_success = xno; then
4440      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
4441    fi
4442  else
4443    if test x$ac_success = xno; then
4444      HAVE_CXX11=0
4445      { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
4446$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
4447    else
4448      HAVE_CXX11=1
4449
4450$as_echo "#define HAVE_CXX11 1" >>confdefs.h
4451
4452    fi
4453
4454
4455  fi
4456
4457ac_ext=c
4458ac_cpp='$CPP $CPPFLAGS'
4459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462if test -n "$ac_tool_prefix"; then
4463  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4464set dummy ${ac_tool_prefix}gcc; ac_word=$2
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466$as_echo_n "checking for $ac_word... " >&6; }
4467if ${ac_cv_prog_CC+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470  if test -n "$CC"; then
4471  ac_cv_prog_CC="$CC" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476  IFS=$as_save_IFS
4477  test -z "$as_dir" && as_dir=.
4478    for ac_exec_ext in '' $ac_executable_extensions; do
4479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482    break 2
4483  fi
4484done
4485  done
4486IFS=$as_save_IFS
4487
4488fi
4489fi
4490CC=$ac_cv_prog_CC
4491if test -n "$CC"; then
4492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4493$as_echo "$CC" >&6; }
4494else
4495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496$as_echo "no" >&6; }
4497fi
4498
4499
4500fi
4501if test -z "$ac_cv_prog_CC"; then
4502  ac_ct_CC=$CC
4503  # Extract the first word of "gcc", so it can be a program name with args.
4504set dummy gcc; ac_word=$2
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506$as_echo_n "checking for $ac_word... " >&6; }
4507if ${ac_cv_prog_ac_ct_CC+:} false; then :
4508  $as_echo_n "(cached) " >&6
4509else
4510  if test -n "$ac_ct_CC"; then
4511  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516  IFS=$as_save_IFS
4517  test -z "$as_dir" && as_dir=.
4518    for ac_exec_ext in '' $ac_executable_extensions; do
4519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520    ac_cv_prog_ac_ct_CC="gcc"
4521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522    break 2
4523  fi
4524done
4525  done
4526IFS=$as_save_IFS
4527
4528fi
4529fi
4530ac_ct_CC=$ac_cv_prog_ac_ct_CC
4531if test -n "$ac_ct_CC"; then
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4533$as_echo "$ac_ct_CC" >&6; }
4534else
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536$as_echo "no" >&6; }
4537fi
4538
4539  if test "x$ac_ct_CC" = x; then
4540    CC=""
4541  else
4542    case $cross_compiling:$ac_tool_warned in
4543yes:)
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4546ac_tool_warned=yes ;;
4547esac
4548    CC=$ac_ct_CC
4549  fi
4550else
4551  CC="$ac_cv_prog_CC"
4552fi
4553
4554if test -z "$CC"; then
4555          if test -n "$ac_tool_prefix"; then
4556    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4557set dummy ${ac_tool_prefix}cc; ac_word=$2
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559$as_echo_n "checking for $ac_word... " >&6; }
4560if ${ac_cv_prog_CC+:} false; then :
4561  $as_echo_n "(cached) " >&6
4562else
4563  if test -n "$CC"; then
4564  ac_cv_prog_CC="$CC" # Let the user override the test.
4565else
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH
4568do
4569  IFS=$as_save_IFS
4570  test -z "$as_dir" && as_dir=.
4571    for ac_exec_ext in '' $ac_executable_extensions; do
4572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573    ac_cv_prog_CC="${ac_tool_prefix}cc"
4574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575    break 2
4576  fi
4577done
4578  done
4579IFS=$as_save_IFS
4580
4581fi
4582fi
4583CC=$ac_cv_prog_CC
4584if test -n "$CC"; then
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4586$as_echo "$CC" >&6; }
4587else
4588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589$as_echo "no" >&6; }
4590fi
4591
4592
4593  fi
4594fi
4595if test -z "$CC"; then
4596  # Extract the first word of "cc", so it can be a program name with args.
4597set dummy cc; ac_word=$2
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599$as_echo_n "checking for $ac_word... " >&6; }
4600if ${ac_cv_prog_CC+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  if test -n "$CC"; then
4604  ac_cv_prog_CC="$CC" # Let the user override the test.
4605else
4606  ac_prog_rejected=no
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610  IFS=$as_save_IFS
4611  test -z "$as_dir" && as_dir=.
4612    for ac_exec_ext in '' $ac_executable_extensions; do
4613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4615       ac_prog_rejected=yes
4616       continue
4617     fi
4618    ac_cv_prog_CC="cc"
4619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623  done
4624IFS=$as_save_IFS
4625
4626if test $ac_prog_rejected = yes; then
4627  # We found a bogon in the path, so make sure we never use it.
4628  set dummy $ac_cv_prog_CC
4629  shift
4630  if test $# != 0; then
4631    # We chose a different compiler from the bogus one.
4632    # However, it has the same basename, so the bogon will be chosen
4633    # first if we set CC to just the basename; use the full file name.
4634    shift
4635    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4636  fi
4637fi
4638fi
4639fi
4640CC=$ac_cv_prog_CC
4641if test -n "$CC"; then
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4643$as_echo "$CC" >&6; }
4644else
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
4647fi
4648
4649
4650fi
4651if test -z "$CC"; then
4652  if test -n "$ac_tool_prefix"; then
4653  for ac_prog in cl.exe
4654  do
4655    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658$as_echo_n "checking for $ac_word... " >&6; }
4659if ${ac_cv_prog_CC+:} false; then :
4660  $as_echo_n "(cached) " >&6
4661else
4662  if test -n "$CC"; then
4663  ac_cv_prog_CC="$CC" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668  IFS=$as_save_IFS
4669  test -z "$as_dir" && as_dir=.
4670    for ac_exec_ext in '' $ac_executable_extensions; do
4671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674    break 2
4675  fi
4676done
4677  done
4678IFS=$as_save_IFS
4679
4680fi
4681fi
4682CC=$ac_cv_prog_CC
4683if test -n "$CC"; then
4684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4685$as_echo "$CC" >&6; }
4686else
4687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688$as_echo "no" >&6; }
4689fi
4690
4691
4692    test -n "$CC" && break
4693  done
4694fi
4695if test -z "$CC"; then
4696  ac_ct_CC=$CC
4697  for ac_prog in cl.exe
4698do
4699  # Extract the first word of "$ac_prog", so it can be a program name with args.
4700set dummy $ac_prog; ac_word=$2
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702$as_echo_n "checking for $ac_word... " >&6; }
4703if ${ac_cv_prog_ac_ct_CC+:} false; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706  if test -n "$ac_ct_CC"; then
4707  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712  IFS=$as_save_IFS
4713  test -z "$as_dir" && as_dir=.
4714    for ac_exec_ext in '' $ac_executable_extensions; do
4715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716    ac_cv_prog_ac_ct_CC="$ac_prog"
4717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718    break 2
4719  fi
4720done
4721  done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726ac_ct_CC=$ac_cv_prog_ac_ct_CC
4727if test -n "$ac_ct_CC"; then
4728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4729$as_echo "$ac_ct_CC" >&6; }
4730else
4731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
4733fi
4734
4735
4736  test -n "$ac_ct_CC" && break
4737done
4738
4739  if test "x$ac_ct_CC" = x; then
4740    CC=""
4741  else
4742    case $cross_compiling:$ac_tool_warned in
4743yes:)
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4746ac_tool_warned=yes ;;
4747esac
4748    CC=$ac_ct_CC
4749  fi
4750fi
4751
4752fi
4753
4754
4755test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4757as_fn_error $? "no acceptable C compiler found in \$PATH
4758See \`config.log' for more details" "$LINENO" 5; }
4759
4760# Provide some information about the compiler.
4761$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4762set X $ac_compile
4763ac_compiler=$2
4764for ac_option in --version -v -V -qversion; do
4765  { { ac_try="$ac_compiler $ac_option >&5"
4766case "(($ac_try" in
4767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768  *) ac_try_echo=$ac_try;;
4769esac
4770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4771$as_echo "$ac_try_echo"; } >&5
4772  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4773  ac_status=$?
4774  if test -s conftest.err; then
4775    sed '10a\
4776... rest of stderr output deleted ...
4777         10q' conftest.err >conftest.er1
4778    cat conftest.er1 >&5
4779  fi
4780  rm -f conftest.er1 conftest.err
4781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4782  test $ac_status = 0; }
4783done
4784
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4786$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4787if ${ac_cv_c_compiler_gnu+:} false; then :
4788  $as_echo_n "(cached) " >&6
4789else
4790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h.  */
4792
4793int
4794main ()
4795{
4796#ifndef __GNUC__
4797       choke me
4798#endif
4799
4800  ;
4801  return 0;
4802}
4803_ACEOF
4804if ac_fn_c_try_compile "$LINENO"; then :
4805  ac_compiler_gnu=yes
4806else
4807  ac_compiler_gnu=no
4808fi
4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810ac_cv_c_compiler_gnu=$ac_compiler_gnu
4811
4812fi
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4814$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4815if test $ac_compiler_gnu = yes; then
4816  GCC=yes
4817else
4818  GCC=
4819fi
4820ac_test_CFLAGS=${CFLAGS+set}
4821ac_save_CFLAGS=$CFLAGS
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4823$as_echo_n "checking whether $CC accepts -g... " >&6; }
4824if ${ac_cv_prog_cc_g+:} false; then :
4825  $as_echo_n "(cached) " >&6
4826else
4827  ac_save_c_werror_flag=$ac_c_werror_flag
4828   ac_c_werror_flag=yes
4829   ac_cv_prog_cc_g=no
4830   CFLAGS="-g"
4831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832/* end confdefs.h.  */
4833
4834int
4835main ()
4836{
4837
4838  ;
4839  return 0;
4840}
4841_ACEOF
4842if ac_fn_c_try_compile "$LINENO"; then :
4843  ac_cv_prog_cc_g=yes
4844else
4845  CFLAGS=""
4846      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847/* end confdefs.h.  */
4848
4849int
4850main ()
4851{
4852
4853  ;
4854  return 0;
4855}
4856_ACEOF
4857if ac_fn_c_try_compile "$LINENO"; then :
4858
4859else
4860  ac_c_werror_flag=$ac_save_c_werror_flag
4861         CFLAGS="-g"
4862         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h.  */
4864
4865int
4866main ()
4867{
4868
4869  ;
4870  return 0;
4871}
4872_ACEOF
4873if ac_fn_c_try_compile "$LINENO"; then :
4874  ac_cv_prog_cc_g=yes
4875fi
4876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877fi
4878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879fi
4880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881   ac_c_werror_flag=$ac_save_c_werror_flag
4882fi
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4884$as_echo "$ac_cv_prog_cc_g" >&6; }
4885if test "$ac_test_CFLAGS" = set; then
4886  CFLAGS=$ac_save_CFLAGS
4887elif test $ac_cv_prog_cc_g = yes; then
4888  if test "$GCC" = yes; then
4889    CFLAGS="-g -O2"
4890  else
4891    CFLAGS="-g"
4892  fi
4893else
4894  if test "$GCC" = yes; then
4895    CFLAGS="-O2"
4896  else
4897    CFLAGS=
4898  fi
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4901$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4902if ${ac_cv_prog_cc_c89+:} false; then :
4903  $as_echo_n "(cached) " >&6
4904else
4905  ac_cv_prog_cc_c89=no
4906ac_save_CC=$CC
4907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908/* end confdefs.h.  */
4909#include <stdarg.h>
4910#include <stdio.h>
4911struct stat;
4912/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4913struct buf { int x; };
4914FILE * (*rcsopen) (struct buf *, struct stat *, int);
4915static char *e (p, i)
4916     char **p;
4917     int i;
4918{
4919  return p[i];
4920}
4921static char *f (char * (*g) (char **, int), char **p, ...)
4922{
4923  char *s;
4924  va_list v;
4925  va_start (v,p);
4926  s = g (p, va_arg (v,int));
4927  va_end (v);
4928  return s;
4929}
4930
4931/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4932   function prototypes and stuff, but not '\xHH' hex character constants.
4933   These don't provoke an error unfortunately, instead are silently treated
4934   as 'x'.  The following induces an error, until -std is added to get
4935   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4936   array size at least.  It's necessary to write '\x00'==0 to get something
4937   that's true only with -std.  */
4938int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4939
4940/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4941   inside strings and character constants.  */
4942#define FOO(x) 'x'
4943int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4944
4945int test (int i, double x);
4946struct s1 {int (*f) (int a);};
4947struct s2 {int (*f) (double a);};
4948int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4949int argc;
4950char **argv;
4951int
4952main ()
4953{
4954return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4955  ;
4956  return 0;
4957}
4958_ACEOF
4959for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4960        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4961do
4962  CC="$ac_save_CC $ac_arg"
4963  if ac_fn_c_try_compile "$LINENO"; then :
4964  ac_cv_prog_cc_c89=$ac_arg
4965fi
4966rm -f core conftest.err conftest.$ac_objext
4967  test "x$ac_cv_prog_cc_c89" != "xno" && break
4968done
4969rm -f conftest.$ac_ext
4970CC=$ac_save_CC
4971
4972fi
4973# AC_CACHE_VAL
4974case "x$ac_cv_prog_cc_c89" in
4975  x)
4976    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4977$as_echo "none needed" >&6; } ;;
4978  xno)
4979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4980$as_echo "unsupported" >&6; } ;;
4981  *)
4982    CC="$CC $ac_cv_prog_cc_c89"
4983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4984$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4985esac
4986if test "x$ac_cv_prog_cc_c89" != xno; then :
4987
4988fi
4989
4990ac_ext=c
4991ac_cpp='$CPP $CPPFLAGS'
4992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995
4996ac_ext=c
4997ac_cpp='$CPP $CPPFLAGS'
4998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5002$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5003if ${am_cv_prog_cc_c_o+:} false; then :
5004  $as_echo_n "(cached) " >&6
5005else
5006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h.  */
5008
5009int
5010main ()
5011{
5012
5013  ;
5014  return 0;
5015}
5016_ACEOF
5017  # Make sure it works both with $CC and with simple cc.
5018  # Following AC_PROG_CC_C_O, we do the test twice because some
5019  # compilers refuse to overwrite an existing .o file with -o,
5020  # though they will create one.
5021  am_cv_prog_cc_c_o=yes
5022  for am_i in 1 2; do
5023    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5024   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); } \
5028         && test -f conftest2.$ac_objext; then
5029      : OK
5030    else
5031      am_cv_prog_cc_c_o=no
5032      break
5033    fi
5034  done
5035  rm -f core conftest*
5036  unset am_i
5037fi
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5039$as_echo "$am_cv_prog_cc_c_o" >&6; }
5040if test "$am_cv_prog_cc_c_o" != yes; then
5041   # Losing compiler, so override with the script.
5042   # FIXME: It is wrong to rewrite CC.
5043   # But if we don't then we get into trouble of one sort or another.
5044   # A longer-term fix would be to have automake use am__CC in this case,
5045   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5046   CC="$am_aux_dir/compile $CC"
5047fi
5048ac_ext=c
5049ac_cpp='$CPP $CPPFLAGS'
5050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053
5054
5055depcc="$CC"   am_compiler_list=
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5058$as_echo_n "checking dependency style of $depcc... " >&6; }
5059if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5060  $as_echo_n "(cached) " >&6
5061else
5062  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5063  # We make a subdir and do the tests there.  Otherwise we can end up
5064  # making bogus files that we don't know about and never remove.  For
5065  # instance it was reported that on HP-UX the gcc test will end up
5066  # making a dummy file named 'D' -- because '-MD' means "put the output
5067  # in D".
5068  rm -rf conftest.dir
5069  mkdir conftest.dir
5070  # Copy depcomp to subdir because otherwise we won't find it if we're
5071  # using a relative directory.
5072  cp "$am_depcomp" conftest.dir
5073  cd conftest.dir
5074  # We will build objects and dependencies in a subdirectory because
5075  # it helps to detect inapplicable dependency modes.  For instance
5076  # both Tru64's cc and ICC support -MD to output dependencies as a
5077  # side effect of compilation, but ICC will put the dependencies in
5078  # the current directory while Tru64 will put them in the object
5079  # directory.
5080  mkdir sub
5081
5082  am_cv_CC_dependencies_compiler_type=none
5083  if test "$am_compiler_list" = ""; then
5084     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5085  fi
5086  am__universal=false
5087  case " $depcc " in #(
5088     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5089     esac
5090
5091  for depmode in $am_compiler_list; do
5092    # Setup a source with many dependencies, because some compilers
5093    # like to wrap large dependency lists on column 80 (with \), and
5094    # we should not choose a depcomp mode which is confused by this.
5095    #
5096    # We need to recreate these files for each test, as the compiler may
5097    # overwrite some of them when testing with obscure command lines.
5098    # This happens at least with the AIX C compiler.
5099    : > sub/conftest.c
5100    for i in 1 2 3 4 5 6; do
5101      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5102      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5103      # Solaris 10 /bin/sh.
5104      echo '/* dummy */' > sub/conftst$i.h
5105    done
5106    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5107
5108    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5109    # mode.  It turns out that the SunPro C++ compiler does not properly
5110    # handle '-M -o', and we need to detect this.  Also, some Intel
5111    # versions had trouble with output in subdirs.
5112    am__obj=sub/conftest.${OBJEXT-o}
5113    am__minus_obj="-o $am__obj"
5114    case $depmode in
5115    gcc)
5116      # This depmode causes a compiler race in universal mode.
5117      test "$am__universal" = false || continue
5118      ;;
5119    nosideeffect)
5120      # After this tag, mechanisms are not by side-effect, so they'll
5121      # only be used when explicitly requested.
5122      if test "x$enable_dependency_tracking" = xyes; then
5123        continue
5124      else
5125        break
5126      fi
5127      ;;
5128    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5129      # This compiler won't grok '-c -o', but also, the minuso test has
5130      # not run yet.  These depmodes are late enough in the game, and
5131      # so weak that their functioning should not be impacted.
5132      am__obj=conftest.${OBJEXT-o}
5133      am__minus_obj=
5134      ;;
5135    none) break ;;
5136    esac
5137    if depmode=$depmode \
5138       source=sub/conftest.c object=$am__obj \
5139       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5140       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5141         >/dev/null 2>conftest.err &&
5142       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5143       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5144       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5145       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5146      # icc doesn't choke on unknown options, it will just issue warnings
5147      # or remarks (even with -Werror).  So we grep stderr for any message
5148      # that says an option was ignored or not supported.
5149      # When given -MP, icc 7.0 and 7.1 complain thusly:
5150      #   icc: Command line warning: ignoring option '-M'; no argument required
5151      # The diagnosis changed in icc 8.0:
5152      #   icc: Command line remark: option '-MP' not supported
5153      if (grep 'ignoring option' conftest.err ||
5154          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5155        am_cv_CC_dependencies_compiler_type=$depmode
5156        break
5157      fi
5158    fi
5159  done
5160
5161  cd ..
5162  rm -rf conftest.dir
5163else
5164  am_cv_CC_dependencies_compiler_type=none
5165fi
5166
5167fi
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5169$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5170CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5171
5172 if
5173  test "x$enable_dependency_tracking" != xno \
5174  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5175  am__fastdepCC_TRUE=
5176  am__fastdepCC_FALSE='#'
5177else
5178  am__fastdepCC_TRUE='#'
5179  am__fastdepCC_FALSE=
5180fi
5181
5182
5183if test "x$CC" != xcc; then
5184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5185$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5186else
5187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5188$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5189fi
5190set dummy $CC; ac_cc=`$as_echo "$2" |
5191                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5192if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5193  $as_echo_n "(cached) " >&6
5194else
5195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h.  */
5197
5198int
5199main ()
5200{
5201
5202  ;
5203  return 0;
5204}
5205_ACEOF
5206# Make sure it works both with $CC and with simple cc.
5207# We do the test twice because some compilers refuse to overwrite an
5208# existing .o file with -o, though they will create one.
5209ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5210rm -f conftest2.*
5211if { { case "(($ac_try" in
5212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213  *) ac_try_echo=$ac_try;;
5214esac
5215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5216$as_echo "$ac_try_echo"; } >&5
5217  (eval "$ac_try") 2>&5
5218  ac_status=$?
5219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5220  test $ac_status = 0; } &&
5221   test -f conftest2.$ac_objext && { { case "(($ac_try" in
5222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223  *) ac_try_echo=$ac_try;;
5224esac
5225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5226$as_echo "$ac_try_echo"; } >&5
5227  (eval "$ac_try") 2>&5
5228  ac_status=$?
5229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5230  test $ac_status = 0; };
5231then
5232  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5233  if test "x$CC" != xcc; then
5234    # Test first that cc exists at all.
5235    if { ac_try='cc -c conftest.$ac_ext >&5'
5236  { { case "(($ac_try" in
5237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238  *) ac_try_echo=$ac_try;;
5239esac
5240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5241$as_echo "$ac_try_echo"; } >&5
5242  (eval "$ac_try") 2>&5
5243  ac_status=$?
5244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5245  test $ac_status = 0; }; }; then
5246      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5247      rm -f conftest2.*
5248      if { { case "(($ac_try" in
5249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250  *) ac_try_echo=$ac_try;;
5251esac
5252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5253$as_echo "$ac_try_echo"; } >&5
5254  (eval "$ac_try") 2>&5
5255  ac_status=$?
5256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5257  test $ac_status = 0; } &&
5258         test -f conftest2.$ac_objext && { { case "(($ac_try" in
5259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260  *) ac_try_echo=$ac_try;;
5261esac
5262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5263$as_echo "$ac_try_echo"; } >&5
5264  (eval "$ac_try") 2>&5
5265  ac_status=$?
5266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5267  test $ac_status = 0; };
5268      then
5269        # cc works too.
5270        :
5271      else
5272        # cc exists but doesn't like -o.
5273        eval ac_cv_prog_cc_${ac_cc}_c_o=no
5274      fi
5275    fi
5276  fi
5277else
5278  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5279fi
5280rm -f core conftest*
5281
5282fi
5283if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5285$as_echo "yes" >&6; }
5286else
5287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288$as_echo "no" >&6; }
5289
5290$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5291
5292fi
5293
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5295$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5296if ${ac_cv_prog_cc_c99+:} false; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  ac_cv_prog_cc_c99=no
5300ac_save_CC=$CC
5301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h.  */
5303#include <stdarg.h>
5304#include <stdbool.h>
5305#include <stdlib.h>
5306#include <wchar.h>
5307#include <stdio.h>
5308
5309// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5310#define debug(...) fprintf (stderr, __VA_ARGS__)
5311#define showlist(...) puts (#__VA_ARGS__)
5312#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5313static void
5314test_varargs_macros (void)
5315{
5316  int x = 1234;
5317  int y = 5678;
5318  debug ("Flag");
5319  debug ("X = %d\n", x);
5320  showlist (The first, second, and third items.);
5321  report (x>y, "x is %d but y is %d", x, y);
5322}
5323
5324// Check long long types.
5325#define BIG64 18446744073709551615ull
5326#define BIG32 4294967295ul
5327#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5328#if !BIG_OK
5329  your preprocessor is broken;
5330#endif
5331#if BIG_OK
5332#else
5333  your preprocessor is broken;
5334#endif
5335static long long int bignum = -9223372036854775807LL;
5336static unsigned long long int ubignum = BIG64;
5337
5338struct incomplete_array
5339{
5340  int datasize;
5341  double data[];
5342};
5343
5344struct named_init {
5345  int number;
5346  const wchar_t *name;
5347  double average;
5348};
5349
5350typedef const char *ccp;
5351
5352static inline int
5353test_restrict (ccp restrict text)
5354{
5355  // See if C++-style comments work.
5356  // Iterate through items via the restricted pointer.
5357  // Also check for declarations in for loops.
5358  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5359    continue;
5360  return 0;
5361}
5362
5363// Check varargs and va_copy.
5364static void
5365test_varargs (const char *format, ...)
5366{
5367  va_list args;
5368  va_start (args, format);
5369  va_list args_copy;
5370  va_copy (args_copy, args);
5371
5372  const char *str;
5373  int number;
5374  float fnumber;
5375
5376  while (*format)
5377    {
5378      switch (*format++)
5379        {
5380        case 's': // string
5381          str = va_arg (args_copy, const char *);
5382          break;
5383        case 'd': // int
5384          number = va_arg (args_copy, int);
5385          break;
5386        case 'f': // float
5387          fnumber = va_arg (args_copy, double);
5388          break;
5389        default:
5390          break;
5391        }
5392    }
5393  va_end (args_copy);
5394  va_end (args);
5395}
5396
5397int
5398main ()
5399{
5400
5401  // Check bool.
5402  _Bool success = false;
5403
5404  // Check restrict.
5405  if (test_restrict ("String literal") == 0)
5406    success = true;
5407  char *restrict newvar = "Another string";
5408
5409  // Check varargs.
5410  test_varargs ("s, d' f .", "string", 65, 34.234);
5411  test_varargs_macros ();
5412
5413  // Check flexible array members.
5414  struct incomplete_array *ia =
5415    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5416  ia->datasize = 10;
5417  for (int i = 0; i < ia->datasize; ++i)
5418    ia->data[i] = i * 1.234;
5419
5420  // Check named initializers.
5421  struct named_init ni = {
5422    .number = 34,
5423    .name = L"Test wide string",
5424    .average = 543.34343,
5425  };
5426
5427  ni.number = 58;
5428
5429  int dynamic_array[ni.number];
5430  dynamic_array[ni.number - 1] = 543;
5431
5432  // work around unused variable warnings
5433  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5434          || dynamic_array[ni.number - 1] != 543);
5435
5436  ;
5437  return 0;
5438}
5439_ACEOF
5440for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5441do
5442  CC="$ac_save_CC $ac_arg"
5443  if ac_fn_c_try_compile "$LINENO"; then :
5444  ac_cv_prog_cc_c99=$ac_arg
5445fi
5446rm -f core conftest.err conftest.$ac_objext
5447  test "x$ac_cv_prog_cc_c99" != "xno" && break
5448done
5449rm -f conftest.$ac_ext
5450CC=$ac_save_CC
5451
5452fi
5453# AC_CACHE_VAL
5454case "x$ac_cv_prog_cc_c99" in
5455  x)
5456    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5457$as_echo "none needed" >&6; } ;;
5458  xno)
5459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5460$as_echo "unsupported" >&6; } ;;
5461  *)
5462    CC="$CC $ac_cv_prog_cc_c99"
5463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5464$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5465esac
5466if test "x$ac_cv_prog_cc_c99" != xno; then :
5467
5468fi
5469
5470
5471ac_ext=c
5472ac_cpp='$CPP $CPPFLAGS'
5473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5477$as_echo_n "checking how to run the C preprocessor... " >&6; }
5478# On Suns, sometimes $CPP names a directory.
5479if test -n "$CPP" && test -d "$CPP"; then
5480  CPP=
5481fi
5482if test -z "$CPP"; then
5483  if ${ac_cv_prog_CPP+:} false; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486      # Double quotes because CPP needs to be expanded
5487    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5488    do
5489      ac_preproc_ok=false
5490for ac_c_preproc_warn_flag in '' yes
5491do
5492  # Use a header file that comes with gcc, so configuring glibc
5493  # with a fresh cross-compiler works.
5494  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495  # <limits.h> exists even on freestanding compilers.
5496  # On the NeXT, cc -E runs the code through the compiler's parser,
5497  # not just through cpp. "Syntax error" is here to catch this case.
5498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h.  */
5500#ifdef __STDC__
5501# include <limits.h>
5502#else
5503# include <assert.h>
5504#endif
5505                     Syntax error
5506_ACEOF
5507if ac_fn_c_try_cpp "$LINENO"; then :
5508
5509else
5510  # Broken: fails on valid input.
5511continue
5512fi
5513rm -f conftest.err conftest.i conftest.$ac_ext
5514
5515  # OK, works on sane cases.  Now check whether nonexistent headers
5516  # can be detected and how.
5517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h.  */
5519#include <ac_nonexistent.h>
5520_ACEOF
5521if ac_fn_c_try_cpp "$LINENO"; then :
5522  # Broken: success on invalid input.
5523continue
5524else
5525  # Passes both tests.
5526ac_preproc_ok=:
5527break
5528fi
5529rm -f conftest.err conftest.i conftest.$ac_ext
5530
5531done
5532# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5533rm -f conftest.i conftest.err conftest.$ac_ext
5534if $ac_preproc_ok; then :
5535  break
5536fi
5537
5538    done
5539    ac_cv_prog_CPP=$CPP
5540
5541fi
5542  CPP=$ac_cv_prog_CPP
5543else
5544  ac_cv_prog_CPP=$CPP
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5547$as_echo "$CPP" >&6; }
5548ac_preproc_ok=false
5549for ac_c_preproc_warn_flag in '' yes
5550do
5551  # Use a header file that comes with gcc, so configuring glibc
5552  # with a fresh cross-compiler works.
5553  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5554  # <limits.h> exists even on freestanding compilers.
5555  # On the NeXT, cc -E runs the code through the compiler's parser,
5556  # not just through cpp. "Syntax error" is here to catch this case.
5557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h.  */
5559#ifdef __STDC__
5560# include <limits.h>
5561#else
5562# include <assert.h>
5563#endif
5564                     Syntax error
5565_ACEOF
5566if ac_fn_c_try_cpp "$LINENO"; then :
5567
5568else
5569  # Broken: fails on valid input.
5570continue
5571fi
5572rm -f conftest.err conftest.i conftest.$ac_ext
5573
5574  # OK, works on sane cases.  Now check whether nonexistent headers
5575  # can be detected and how.
5576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h.  */
5578#include <ac_nonexistent.h>
5579_ACEOF
5580if ac_fn_c_try_cpp "$LINENO"; then :
5581  # Broken: success on invalid input.
5582continue
5583else
5584  # Passes both tests.
5585ac_preproc_ok=:
5586break
5587fi
5588rm -f conftest.err conftest.i conftest.$ac_ext
5589
5590done
5591# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5592rm -f conftest.i conftest.err conftest.$ac_ext
5593if $ac_preproc_ok; then :
5594
5595else
5596  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5598as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5599See \`config.log' for more details" "$LINENO" 5; }
5600fi
5601
5602ac_ext=c
5603ac_cpp='$CPP $CPPFLAGS'
5604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5606ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607
5608
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5610$as_echo_n "checking whether ln -s works... " >&6; }
5611LN_S=$as_ln_s
5612if test "$LN_S" = "ln -s"; then
5613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5614$as_echo "yes" >&6; }
5615else
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5617$as_echo "no, using $LN_S" >&6; }
5618fi
5619
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5621$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5622set x ${MAKE-make}
5623ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5624if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5625  $as_echo_n "(cached) " >&6
5626else
5627  cat >conftest.make <<\_ACEOF
5628SHELL = /bin/sh
5629all:
5630        @echo '@@@%%%=$(MAKE)=@@@%%%'
5631_ACEOF
5632# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5633case `${MAKE-make} -f conftest.make 2>/dev/null` in
5634  *@@@%%%=?*=@@@%%%*)
5635    eval ac_cv_prog_make_${ac_make}_set=yes;;
5636  *)
5637    eval ac_cv_prog_make_${ac_make}_set=no;;
5638esac
5639rm -f conftest.make
5640fi
5641if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643$as_echo "yes" >&6; }
5644  SET_MAKE=
5645else
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647$as_echo "no" >&6; }
5648  SET_MAKE="MAKE=${MAKE-make}"
5649fi
5650
5651case `pwd` in
5652  *\ * | *\     *)
5653    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5654$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5655esac
5656
5657
5658
5659macro_version='2.4.6'
5660macro_revision='2.4.6'
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674ltmain=$ac_aux_dir/ltmain.sh
5675
5676# Make sure we can run config.sub.
5677$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5678  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5679
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5681$as_echo_n "checking build system type... " >&6; }
5682if ${ac_cv_build+:} false; then :
5683  $as_echo_n "(cached) " >&6
5684else
5685  ac_build_alias=$build_alias
5686test "x$ac_build_alias" = x &&
5687  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5688test "x$ac_build_alias" = x &&
5689  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5690ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5691  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5692
5693fi
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5695$as_echo "$ac_cv_build" >&6; }
5696case $ac_cv_build in
5697*-*-*) ;;
5698*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5699esac
5700build=$ac_cv_build
5701ac_save_IFS=$IFS; IFS='-'
5702set x $ac_cv_build
5703shift
5704build_cpu=$1
5705build_vendor=$2
5706shift; shift
5707# Remember, the first character of IFS is used to create $*,
5708# except with old shells:
5709build_os=$*
5710IFS=$ac_save_IFS
5711case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5712
5713
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5715$as_echo_n "checking host system type... " >&6; }
5716if ${ac_cv_host+:} false; then :
5717  $as_echo_n "(cached) " >&6
5718else
5719  if test "x$host_alias" = x; then
5720  ac_cv_host=$ac_cv_build
5721else
5722  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5723    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5724fi
5725
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5728$as_echo "$ac_cv_host" >&6; }
5729case $ac_cv_host in
5730*-*-*) ;;
5731*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5732esac
5733host=$ac_cv_host
5734ac_save_IFS=$IFS; IFS='-'
5735set x $ac_cv_host
5736shift
5737host_cpu=$1
5738host_vendor=$2
5739shift; shift
5740# Remember, the first character of IFS is used to create $*,
5741# except with old shells:
5742host_os=$*
5743IFS=$ac_save_IFS
5744case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5745
5746
5747# Backslashify metacharacters that are still active within
5748# double-quoted strings.
5749sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5750
5751# Same as above, but do not quote variable references.
5752double_quote_subst='s/\(["`\\]\)/\\\1/g'
5753
5754# Sed substitution to delay expansion of an escaped shell variable in a
5755# double_quote_subst'ed string.
5756delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5757
5758# Sed substitution to delay expansion of an escaped single quote.
5759delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5760
5761# Sed substitution to avoid accidental globbing in evaled expressions
5762no_glob_subst='s/\*/\\\*/g'
5763
5764ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5765ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5766ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5767
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5769$as_echo_n "checking how to print strings... " >&6; }
5770# Test print first, because it will be a builtin if present.
5771if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5772   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5773  ECHO='print -r --'
5774elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5775  ECHO='printf %s\n'
5776else
5777  # Use this function as a fallback that always works.
5778  func_fallback_echo ()
5779  {
5780    eval 'cat <<_LTECHO_EOF
5781$1
5782_LTECHO_EOF'
5783  }
5784  ECHO='func_fallback_echo'
5785fi
5786
5787# func_echo_all arg...
5788# Invoke $ECHO with all args, space-separated.
5789func_echo_all ()
5790{
5791    $ECHO ""
5792}
5793
5794case $ECHO in
5795  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5796$as_echo "printf" >&6; } ;;
5797  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5798$as_echo "print -r" >&6; } ;;
5799  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5800$as_echo "cat" >&6; } ;;
5801esac
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5817$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5818if ${ac_cv_path_SED+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5822     for ac_i in 1 2 3 4 5 6 7; do
5823       ac_script="$ac_script$as_nl$ac_script"
5824     done
5825     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5826     { ac_script=; unset ac_script;}
5827     if test -z "$SED"; then
5828  ac_path_SED_found=false
5829  # Loop through the user's path and test for each of PROGNAME-LIST
5830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833  IFS=$as_save_IFS
5834  test -z "$as_dir" && as_dir=.
5835    for ac_prog in sed gsed; do
5836    for ac_exec_ext in '' $ac_executable_extensions; do
5837      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5838      as_fn_executable_p "$ac_path_SED" || continue
5839# Check for GNU ac_path_SED and select it if it is found.
5840  # Check for GNU $ac_path_SED
5841case `"$ac_path_SED" --version 2>&1` in
5842*GNU*)
5843  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5844*)
5845  ac_count=0
5846  $as_echo_n 0123456789 >"conftest.in"
5847  while :
5848  do
5849    cat "conftest.in" "conftest.in" >"conftest.tmp"
5850    mv "conftest.tmp" "conftest.in"
5851    cp "conftest.in" "conftest.nl"
5852    $as_echo '' >> "conftest.nl"
5853    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5854    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5855    as_fn_arith $ac_count + 1 && ac_count=$as_val
5856    if test $ac_count -gt ${ac_path_SED_max-0}; then
5857      # Best one so far, save it but keep looking for a better one
5858      ac_cv_path_SED="$ac_path_SED"
5859      ac_path_SED_max=$ac_count
5860    fi
5861    # 10*(2^10) chars as input seems more than enough
5862    test $ac_count -gt 10 && break
5863  done
5864  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5865esac
5866
5867      $ac_path_SED_found && break 3
5868    done
5869  done
5870  done
5871IFS=$as_save_IFS
5872  if test -z "$ac_cv_path_SED"; then
5873    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5874  fi
5875else
5876  ac_cv_path_SED=$SED
5877fi
5878
5879fi
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5881$as_echo "$ac_cv_path_SED" >&6; }
5882 SED="$ac_cv_path_SED"
5883  rm -f conftest.sed
5884
5885test -z "$SED" && SED=sed
5886Xsed="$SED -e 1s/^X//"
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5899$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5900if ${ac_cv_path_GREP+:} false; then :
5901  $as_echo_n "(cached) " >&6
5902else
5903  if test -z "$GREP"; then
5904  ac_path_GREP_found=false
5905  # Loop through the user's path and test for each of PROGNAME-LIST
5906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911    for ac_prog in grep ggrep; do
5912    for ac_exec_ext in '' $ac_executable_extensions; do
5913      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5914      as_fn_executable_p "$ac_path_GREP" || continue
5915# Check for GNU ac_path_GREP and select it if it is found.
5916  # Check for GNU $ac_path_GREP
5917case `"$ac_path_GREP" --version 2>&1` in
5918*GNU*)
5919  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5920*)
5921  ac_count=0
5922  $as_echo_n 0123456789 >"conftest.in"
5923  while :
5924  do
5925    cat "conftest.in" "conftest.in" >"conftest.tmp"
5926    mv "conftest.tmp" "conftest.in"
5927    cp "conftest.in" "conftest.nl"
5928    $as_echo 'GREP' >> "conftest.nl"
5929    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5930    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5931    as_fn_arith $ac_count + 1 && ac_count=$as_val
5932    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5933      # Best one so far, save it but keep looking for a better one
5934      ac_cv_path_GREP="$ac_path_GREP"
5935      ac_path_GREP_max=$ac_count
5936    fi
5937    # 10*(2^10) chars as input seems more than enough
5938    test $ac_count -gt 10 && break
5939  done
5940  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5941esac
5942
5943      $ac_path_GREP_found && break 3
5944    done
5945  done
5946  done
5947IFS=$as_save_IFS
5948  if test -z "$ac_cv_path_GREP"; then
5949    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5950  fi
5951else
5952  ac_cv_path_GREP=$GREP
5953fi
5954
5955fi
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5957$as_echo "$ac_cv_path_GREP" >&6; }
5958 GREP="$ac_cv_path_GREP"
5959
5960
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5962$as_echo_n "checking for egrep... " >&6; }
5963if ${ac_cv_path_EGREP+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5967   then ac_cv_path_EGREP="$GREP -E"
5968   else
5969     if test -z "$EGREP"; then
5970  ac_path_EGREP_found=false
5971  # Loop through the user's path and test for each of PROGNAME-LIST
5972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5974do
5975  IFS=$as_save_IFS
5976  test -z "$as_dir" && as_dir=.
5977    for ac_prog in egrep; do
5978    for ac_exec_ext in '' $ac_executable_extensions; do
5979      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5980      as_fn_executable_p "$ac_path_EGREP" || continue
5981# Check for GNU ac_path_EGREP and select it if it is found.
5982  # Check for GNU $ac_path_EGREP
5983case `"$ac_path_EGREP" --version 2>&1` in
5984*GNU*)
5985  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5986*)
5987  ac_count=0
5988  $as_echo_n 0123456789 >"conftest.in"
5989  while :
5990  do
5991    cat "conftest.in" "conftest.in" >"conftest.tmp"
5992    mv "conftest.tmp" "conftest.in"
5993    cp "conftest.in" "conftest.nl"
5994    $as_echo 'EGREP' >> "conftest.nl"
5995    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5996    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5997    as_fn_arith $ac_count + 1 && ac_count=$as_val
5998    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5999      # Best one so far, save it but keep looking for a better one
6000      ac_cv_path_EGREP="$ac_path_EGREP"
6001      ac_path_EGREP_max=$ac_count
6002    fi
6003    # 10*(2^10) chars as input seems more than enough
6004    test $ac_count -gt 10 && break
6005  done
6006  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6007esac
6008
6009      $ac_path_EGREP_found && break 3
6010    done
6011  done
6012  done
6013IFS=$as_save_IFS
6014  if test -z "$ac_cv_path_EGREP"; then
6015    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6016  fi
6017else
6018  ac_cv_path_EGREP=$EGREP
6019fi
6020
6021   fi
6022fi
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6024$as_echo "$ac_cv_path_EGREP" >&6; }
6025 EGREP="$ac_cv_path_EGREP"
6026
6027
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6029$as_echo_n "checking for fgrep... " >&6; }
6030if ${ac_cv_path_FGREP+:} false; then :
6031  $as_echo_n "(cached) " >&6
6032else
6033  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6034   then ac_cv_path_FGREP="$GREP -F"
6035   else
6036     if test -z "$FGREP"; then
6037  ac_path_FGREP_found=false
6038  # Loop through the user's path and test for each of PROGNAME-LIST
6039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6041do
6042  IFS=$as_save_IFS
6043  test -z "$as_dir" && as_dir=.
6044    for ac_prog in fgrep; do
6045    for ac_exec_ext in '' $ac_executable_extensions; do
6046      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6047      as_fn_executable_p "$ac_path_FGREP" || continue
6048# Check for GNU ac_path_FGREP and select it if it is found.
6049  # Check for GNU $ac_path_FGREP
6050case `"$ac_path_FGREP" --version 2>&1` in
6051*GNU*)
6052  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6053*)
6054  ac_count=0
6055  $as_echo_n 0123456789 >"conftest.in"
6056  while :
6057  do
6058    cat "conftest.in" "conftest.in" >"conftest.tmp"
6059    mv "conftest.tmp" "conftest.in"
6060    cp "conftest.in" "conftest.nl"
6061    $as_echo 'FGREP' >> "conftest.nl"
6062    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6063    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6064    as_fn_arith $ac_count + 1 && ac_count=$as_val
6065    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6066      # Best one so far, save it but keep looking for a better one
6067      ac_cv_path_FGREP="$ac_path_FGREP"
6068      ac_path_FGREP_max=$ac_count
6069    fi
6070    # 10*(2^10) chars as input seems more than enough
6071    test $ac_count -gt 10 && break
6072  done
6073  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6074esac
6075
6076      $ac_path_FGREP_found && break 3
6077    done
6078  done
6079  done
6080IFS=$as_save_IFS
6081  if test -z "$ac_cv_path_FGREP"; then
6082    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6083  fi
6084else
6085  ac_cv_path_FGREP=$FGREP
6086fi
6087
6088   fi
6089fi
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6091$as_echo "$ac_cv_path_FGREP" >&6; }
6092 FGREP="$ac_cv_path_FGREP"
6093
6094
6095test -z "$GREP" && GREP=grep
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115# Check whether --with-gnu-ld was given.
6116if test "${with_gnu_ld+set}" = set; then :
6117  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6118else
6119  with_gnu_ld=no
6120fi
6121
6122ac_prog=ld
6123if test yes = "$GCC"; then
6124  # Check if gcc -print-prog-name=ld gives a path.
6125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6126$as_echo_n "checking for ld used by $CC... " >&6; }
6127  case $host in
6128  *-*-mingw*)
6129    # gcc leaves a trailing carriage return, which upsets mingw
6130    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6131  *)
6132    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6133  esac
6134  case $ac_prog in
6135    # Accept absolute paths.
6136    [\\/]* | ?:[\\/]*)
6137      re_direlt='/[^/][^/]*/\.\./'
6138      # Canonicalize the pathname of ld
6139      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6140      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6141        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6142      done
6143      test -z "$LD" && LD=$ac_prog
6144      ;;
6145  "")
6146    # If it fails, then pretend we aren't using GCC.
6147    ac_prog=ld
6148    ;;
6149  *)
6150    # If it is relative, then search for the first ld in PATH.
6151    with_gnu_ld=unknown
6152    ;;
6153  esac
6154elif test yes = "$with_gnu_ld"; then
6155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6156$as_echo_n "checking for GNU ld... " >&6; }
6157else
6158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6159$as_echo_n "checking for non-GNU ld... " >&6; }
6160fi
6161if ${lt_cv_path_LD+:} false; then :
6162  $as_echo_n "(cached) " >&6
6163else
6164  if test -z "$LD"; then
6165  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6166  for ac_dir in $PATH; do
6167    IFS=$lt_save_ifs
6168    test -z "$ac_dir" && ac_dir=.
6169    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6170      lt_cv_path_LD=$ac_dir/$ac_prog
6171      # Check to see if the program is GNU ld.  I'd rather use --version,
6172      # but apparently some variants of GNU ld only accept -v.
6173      # Break only if it was the GNU/non-GNU ld that we prefer.
6174      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6175      *GNU* | *'with BFD'*)
6176        test no != "$with_gnu_ld" && break
6177        ;;
6178      *)
6179        test yes != "$with_gnu_ld" && break
6180        ;;
6181      esac
6182    fi
6183  done
6184  IFS=$lt_save_ifs
6185else
6186  lt_cv_path_LD=$LD # Let the user override the test with a path.
6187fi
6188fi
6189
6190LD=$lt_cv_path_LD
6191if test -n "$LD"; then
6192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6193$as_echo "$LD" >&6; }
6194else
6195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196$as_echo "no" >&6; }
6197fi
6198test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6200$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6201if ${lt_cv_prog_gnu_ld+:} false; then :
6202  $as_echo_n "(cached) " >&6
6203else
6204  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6205case `$LD -v 2>&1 </dev/null` in
6206*GNU* | *'with BFD'*)
6207  lt_cv_prog_gnu_ld=yes
6208  ;;
6209*)
6210  lt_cv_prog_gnu_ld=no
6211  ;;
6212esac
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6215$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6216with_gnu_ld=$lt_cv_prog_gnu_ld
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6227$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6228if ${lt_cv_path_NM+:} false; then :
6229  $as_echo_n "(cached) " >&6
6230else
6231  if test -n "$NM"; then
6232  # Let the user override the test.
6233  lt_cv_path_NM=$NM
6234else
6235  lt_nm_to_check=${ac_tool_prefix}nm
6236  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6237    lt_nm_to_check="$lt_nm_to_check nm"
6238  fi
6239  for lt_tmp_nm in $lt_nm_to_check; do
6240    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6241    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6242      IFS=$lt_save_ifs
6243      test -z "$ac_dir" && ac_dir=.
6244      tmp_nm=$ac_dir/$lt_tmp_nm
6245      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6246        # Check to see if the nm accepts a BSD-compat flag.
6247        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6248        #   nm: unknown option "B" ignored
6249        # Tru64's nm complains that /dev/null is an invalid object file
6250        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6251        case $build_os in
6252        mingw*) lt_bad_file=conftest.nm/nofile ;;
6253        *) lt_bad_file=/dev/null ;;
6254        esac
6255        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6256        *$lt_bad_file* | *'Invalid file or object type'*)
6257          lt_cv_path_NM="$tmp_nm -B"
6258          break 2
6259          ;;
6260        *)
6261          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6262          */dev/null*)
6263            lt_cv_path_NM="$tmp_nm -p"
6264            break 2
6265            ;;
6266          *)
6267            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6268            continue # so that we can try to find one that supports BSD flags
6269            ;;
6270          esac
6271          ;;
6272        esac
6273      fi
6274    done
6275    IFS=$lt_save_ifs
6276  done
6277  : ${lt_cv_path_NM=no}
6278fi
6279fi
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6281$as_echo "$lt_cv_path_NM" >&6; }
6282if test no != "$lt_cv_path_NM"; then
6283  NM=$lt_cv_path_NM
6284else
6285  # Didn't find any BSD compatible name lister, look for dumpbin.
6286  if test -n "$DUMPBIN"; then :
6287    # Let the user override the test.
6288  else
6289    if test -n "$ac_tool_prefix"; then
6290  for ac_prog in dumpbin "link -dump"
6291  do
6292    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295$as_echo_n "checking for $ac_word... " >&6; }
6296if ${ac_cv_prog_DUMPBIN+:} false; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  if test -n "$DUMPBIN"; then
6300  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6301else
6302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305  IFS=$as_save_IFS
6306  test -z "$as_dir" && as_dir=.
6307    for ac_exec_ext in '' $ac_executable_extensions; do
6308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311    break 2
6312  fi
6313done
6314  done
6315IFS=$as_save_IFS
6316
6317fi
6318fi
6319DUMPBIN=$ac_cv_prog_DUMPBIN
6320if test -n "$DUMPBIN"; then
6321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6322$as_echo "$DUMPBIN" >&6; }
6323else
6324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325$as_echo "no" >&6; }
6326fi
6327
6328
6329    test -n "$DUMPBIN" && break
6330  done
6331fi
6332if test -z "$DUMPBIN"; then
6333  ac_ct_DUMPBIN=$DUMPBIN
6334  for ac_prog in dumpbin "link -dump"
6335do
6336  # Extract the first word of "$ac_prog", so it can be a program name with args.
6337set dummy $ac_prog; ac_word=$2
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339$as_echo_n "checking for $ac_word... " >&6; }
6340if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6341  $as_echo_n "(cached) " >&6
6342else
6343  if test -n "$ac_ct_DUMPBIN"; then
6344  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6345else
6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347for as_dir in $PATH
6348do
6349  IFS=$as_save_IFS
6350  test -z "$as_dir" && as_dir=.
6351    for ac_exec_ext in '' $ac_executable_extensions; do
6352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355    break 2
6356  fi
6357done
6358  done
6359IFS=$as_save_IFS
6360
6361fi
6362fi
6363ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6364if test -n "$ac_ct_DUMPBIN"; then
6365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6366$as_echo "$ac_ct_DUMPBIN" >&6; }
6367else
6368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369$as_echo "no" >&6; }
6370fi
6371
6372
6373  test -n "$ac_ct_DUMPBIN" && break
6374done
6375
6376  if test "x$ac_ct_DUMPBIN" = x; then
6377    DUMPBIN=":"
6378  else
6379    case $cross_compiling:$ac_tool_warned in
6380yes:)
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383ac_tool_warned=yes ;;
6384esac
6385    DUMPBIN=$ac_ct_DUMPBIN
6386  fi
6387fi
6388
6389    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6390    *COFF*)
6391      DUMPBIN="$DUMPBIN -symbols -headers"
6392      ;;
6393    *)
6394      DUMPBIN=:
6395      ;;
6396    esac
6397  fi
6398
6399  if test : != "$DUMPBIN"; then
6400    NM=$DUMPBIN
6401  fi
6402fi
6403test -z "$NM" && NM=nm
6404
6405
6406
6407
6408
6409
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6411$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6412if ${lt_cv_nm_interface+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  lt_cv_nm_interface="BSD nm"
6416  echo "int some_variable = 0;" > conftest.$ac_ext
6417  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6418  (eval "$ac_compile" 2>conftest.err)
6419  cat conftest.err >&5
6420  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6421  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6422  cat conftest.err >&5
6423  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6424  cat conftest.out >&5
6425  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6426    lt_cv_nm_interface="MS dumpbin"
6427  fi
6428  rm -f conftest*
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6431$as_echo "$lt_cv_nm_interface" >&6; }
6432
6433# find the maximum length of command line arguments
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6435$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6436if ${lt_cv_sys_max_cmd_len+:} false; then :
6437  $as_echo_n "(cached) " >&6
6438else
6439    i=0
6440  teststring=ABCD
6441
6442  case $build_os in
6443  msdosdjgpp*)
6444    # On DJGPP, this test can blow up pretty badly due to problems in libc
6445    # (any single argument exceeding 2000 bytes causes a buffer overrun
6446    # during glob expansion).  Even if it were fixed, the result of this
6447    # check would be larger than it should be.
6448    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6449    ;;
6450
6451  gnu*)
6452    # Under GNU Hurd, this test is not required because there is
6453    # no limit to the length of command line arguments.
6454    # Libtool will interpret -1 as no limit whatsoever
6455    lt_cv_sys_max_cmd_len=-1;
6456    ;;
6457
6458  cygwin* | mingw* | cegcc*)
6459    # On Win9x/ME, this test blows up -- it succeeds, but takes
6460    # about 5 minutes as the teststring grows exponentially.
6461    # Worse, since 9x/ME are not pre-emptively multitasking,
6462    # you end up with a "frozen" computer, even though with patience
6463    # the test eventually succeeds (with a max line length of 256k).
6464    # Instead, let's just punt: use the minimum linelength reported by
6465    # all of the supported platforms: 8192 (on NT/2K/XP).
6466    lt_cv_sys_max_cmd_len=8192;
6467    ;;
6468
6469  mint*)
6470    # On MiNT this can take a long time and run out of memory.
6471    lt_cv_sys_max_cmd_len=8192;
6472    ;;
6473
6474  amigaos*)
6475    # On AmigaOS with pdksh, this test takes hours, literally.
6476    # So we just punt and use a minimum line length of 8192.
6477    lt_cv_sys_max_cmd_len=8192;
6478    ;;
6479
6480  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6481    # This has been around since 386BSD, at least.  Likely further.
6482    if test -x /sbin/sysctl; then
6483      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6484    elif test -x /usr/sbin/sysctl; then
6485      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6486    else
6487      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6488    fi
6489    # And add a safety zone
6490    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6491    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6492    ;;
6493
6494  interix*)
6495    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6496    lt_cv_sys_max_cmd_len=196608
6497    ;;
6498
6499  os2*)
6500    # The test takes a long time on OS/2.
6501    lt_cv_sys_max_cmd_len=8192
6502    ;;
6503
6504  osf*)
6505    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6506    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6507    # nice to cause kernel panics so lets avoid the loop below.
6508    # First set a reasonable default.
6509    lt_cv_sys_max_cmd_len=16384
6510    #
6511    if test -x /sbin/sysconfig; then
6512      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6513        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6514      esac
6515    fi
6516    ;;
6517  sco3.2v5*)
6518    lt_cv_sys_max_cmd_len=102400
6519    ;;
6520  sysv5* | sco5v6* | sysv4.2uw2*)
6521    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6522    if test -n "$kargmax"; then
6523      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6524    else
6525      lt_cv_sys_max_cmd_len=32768
6526    fi
6527    ;;
6528  *)
6529    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6530    if test -n "$lt_cv_sys_max_cmd_len" && \
6531       test undefined != "$lt_cv_sys_max_cmd_len"; then
6532      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6533      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6534    else
6535      # Make teststring a little bigger before we do anything with it.
6536      # a 1K string should be a reasonable start.
6537      for i in 1 2 3 4 5 6 7 8; do
6538        teststring=$teststring$teststring
6539      done
6540      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6541      # If test is not a shell built-in, we'll probably end up computing a
6542      # maximum length that is only half of the actual maximum length, but
6543      # we can't tell.
6544      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6545                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6546              test 17 != "$i" # 1/2 MB should be enough
6547      do
6548        i=`expr $i + 1`
6549        teststring=$teststring$teststring
6550      done
6551      # Only check the string length outside the loop.
6552      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6553      teststring=
6554      # Add a significant safety factor because C++ compilers can tack on
6555      # massive amounts of additional arguments before passing them to the
6556      # linker.  It appears as though 1/2 is a usable value.
6557      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6558    fi
6559    ;;
6560  esac
6561
6562fi
6563
6564if test -n "$lt_cv_sys_max_cmd_len"; then
6565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6566$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6567else
6568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6569$as_echo "none" >&6; }
6570fi
6571max_cmd_len=$lt_cv_sys_max_cmd_len
6572
6573
6574
6575
6576
6577
6578: ${CP="cp -f"}
6579: ${MV="mv -f"}
6580: ${RM="rm -f"}
6581
6582if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6583  lt_unset=unset
6584else
6585  lt_unset=false
6586fi
6587
6588
6589
6590
6591
6592# test EBCDIC or ASCII
6593case `echo X|tr X '\101'` in
6594 A) # ASCII based system
6595    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6596  lt_SP2NL='tr \040 \012'
6597  lt_NL2SP='tr \015\012 \040\040'
6598  ;;
6599 *) # EBCDIC based system
6600  lt_SP2NL='tr \100 \n'
6601  lt_NL2SP='tr \r\n \100\100'
6602  ;;
6603esac
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6614$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6615if ${lt_cv_to_host_file_cmd+:} false; then :
6616  $as_echo_n "(cached) " >&6
6617else
6618  case $host in
6619  *-*-mingw* )
6620    case $build in
6621      *-*-mingw* ) # actually msys
6622        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6623        ;;
6624      *-*-cygwin* )
6625        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6626        ;;
6627      * ) # otherwise, assume *nix
6628        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6629        ;;
6630    esac
6631    ;;
6632  *-*-cygwin* )
6633    case $build in
6634      *-*-mingw* ) # actually msys
6635        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6636        ;;
6637      *-*-cygwin* )
6638        lt_cv_to_host_file_cmd=func_convert_file_noop
6639        ;;
6640      * ) # otherwise, assume *nix
6641        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6642        ;;
6643    esac
6644    ;;
6645  * ) # unhandled hosts (and "normal" native builds)
6646    lt_cv_to_host_file_cmd=func_convert_file_noop
6647    ;;
6648esac
6649
6650fi
6651
6652to_host_file_cmd=$lt_cv_to_host_file_cmd
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6654$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6655
6656
6657
6658
6659
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6661$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6662if ${lt_cv_to_tool_file_cmd+:} false; then :
6663  $as_echo_n "(cached) " >&6
6664else
6665  #assume ordinary cross tools, or native build.
6666lt_cv_to_tool_file_cmd=func_convert_file_noop
6667case $host in
6668  *-*-mingw* )
6669    case $build in
6670      *-*-mingw* ) # actually msys
6671        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6672        ;;
6673    esac
6674    ;;
6675esac
6676
6677fi
6678
6679to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6681$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6682
6683
6684
6685
6686
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6688$as_echo_n "checking for $LD option to reload object files... " >&6; }
6689if ${lt_cv_ld_reload_flag+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692  lt_cv_ld_reload_flag='-r'
6693fi
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6695$as_echo "$lt_cv_ld_reload_flag" >&6; }
6696reload_flag=$lt_cv_ld_reload_flag
6697case $reload_flag in
6698"" | " "*) ;;
6699*) reload_flag=" $reload_flag" ;;
6700esac
6701reload_cmds='$LD$reload_flag -o $output$reload_objs'
6702case $host_os in
6703  cygwin* | mingw* | pw32* | cegcc*)
6704    if test yes != "$GCC"; then
6705      reload_cmds=false
6706    fi
6707    ;;
6708  darwin*)
6709    if test yes = "$GCC"; then
6710      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6711    else
6712      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6713    fi
6714    ;;
6715esac
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725if test -n "$ac_tool_prefix"; then
6726  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6727set dummy ${ac_tool_prefix}objdump; ac_word=$2
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729$as_echo_n "checking for $ac_word... " >&6; }
6730if ${ac_cv_prog_OBJDUMP+:} false; then :
6731  $as_echo_n "(cached) " >&6
6732else
6733  if test -n "$OBJDUMP"; then
6734  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739  IFS=$as_save_IFS
6740  test -z "$as_dir" && as_dir=.
6741    for ac_exec_ext in '' $ac_executable_extensions; do
6742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745    break 2
6746  fi
6747done
6748  done
6749IFS=$as_save_IFS
6750
6751fi
6752fi
6753OBJDUMP=$ac_cv_prog_OBJDUMP
6754if test -n "$OBJDUMP"; then
6755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6756$as_echo "$OBJDUMP" >&6; }
6757else
6758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759$as_echo "no" >&6; }
6760fi
6761
6762
6763fi
6764if test -z "$ac_cv_prog_OBJDUMP"; then
6765  ac_ct_OBJDUMP=$OBJDUMP
6766  # Extract the first word of "objdump", so it can be a program name with args.
6767set dummy objdump; ac_word=$2
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769$as_echo_n "checking for $ac_word... " >&6; }
6770if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6771  $as_echo_n "(cached) " >&6
6772else
6773  if test -n "$ac_ct_OBJDUMP"; then
6774  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779  IFS=$as_save_IFS
6780  test -z "$as_dir" && as_dir=.
6781    for ac_exec_ext in '' $ac_executable_extensions; do
6782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785    break 2
6786  fi
6787done
6788  done
6789IFS=$as_save_IFS
6790
6791fi
6792fi
6793ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6794if test -n "$ac_ct_OBJDUMP"; then
6795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6796$as_echo "$ac_ct_OBJDUMP" >&6; }
6797else
6798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799$as_echo "no" >&6; }
6800fi
6801
6802  if test "x$ac_ct_OBJDUMP" = x; then
6803    OBJDUMP="false"
6804  else
6805    case $cross_compiling:$ac_tool_warned in
6806yes:)
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809ac_tool_warned=yes ;;
6810esac
6811    OBJDUMP=$ac_ct_OBJDUMP
6812  fi
6813else
6814  OBJDUMP="$ac_cv_prog_OBJDUMP"
6815fi
6816
6817test -z "$OBJDUMP" && OBJDUMP=objdump
6818
6819
6820
6821
6822
6823
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6825$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6826if ${lt_cv_deplibs_check_method+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  lt_cv_file_magic_cmd='$MAGIC_CMD'
6830lt_cv_file_magic_test_file=
6831lt_cv_deplibs_check_method='unknown'
6832# Need to set the preceding variable on all platforms that support
6833# interlibrary dependencies.
6834# 'none' -- dependencies not supported.
6835# 'unknown' -- same as none, but documents that we really don't know.
6836# 'pass_all' -- all dependencies passed with no checks.
6837# 'test_compile' -- check by making test program.
6838# 'file_magic [[regex]]' -- check by looking for files in library path
6839# that responds to the $file_magic_cmd with a given extended regex.
6840# If you have 'file' or equivalent on your system and you're not sure
6841# whether 'pass_all' will *always* work, you probably want this one.
6842
6843case $host_os in
6844aix[4-9]*)
6845  lt_cv_deplibs_check_method=pass_all
6846  ;;
6847
6848beos*)
6849  lt_cv_deplibs_check_method=pass_all
6850  ;;
6851
6852bsdi[45]*)
6853  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6854  lt_cv_file_magic_cmd='/usr/bin/file -L'
6855  lt_cv_file_magic_test_file=/shlib/libc.so
6856  ;;
6857
6858cygwin*)
6859  # func_win32_libid is a shell function defined in ltmain.sh
6860  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6861  lt_cv_file_magic_cmd='func_win32_libid'
6862  ;;
6863
6864mingw* | pw32*)
6865  # Base MSYS/MinGW do not provide the 'file' command needed by
6866  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6867  # unless we find 'file', for example because we are cross-compiling.
6868  if ( file / ) >/dev/null 2>&1; then
6869    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6870    lt_cv_file_magic_cmd='func_win32_libid'
6871  else
6872    # Keep this pattern in sync with the one in func_win32_libid.
6873    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6874    lt_cv_file_magic_cmd='$OBJDUMP -f'
6875  fi
6876  ;;
6877
6878cegcc*)
6879  # use the weaker test based on 'objdump'. See mingw*.
6880  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6881  lt_cv_file_magic_cmd='$OBJDUMP -f'
6882  ;;
6883
6884darwin* | rhapsody*)
6885  lt_cv_deplibs_check_method=pass_all
6886  ;;
6887
6888freebsd* | dragonfly*)
6889  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6890    case $host_cpu in
6891    i*86 )
6892      # Not sure whether the presence of OpenBSD here was a mistake.
6893      # Let's accept both of them until this is cleared up.
6894      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6895      lt_cv_file_magic_cmd=/usr/bin/file
6896      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6897      ;;
6898    esac
6899  else
6900    lt_cv_deplibs_check_method=pass_all
6901  fi
6902  ;;
6903
6904haiku*)
6905  lt_cv_deplibs_check_method=pass_all
6906  ;;
6907
6908hpux10.20* | hpux11*)
6909  lt_cv_file_magic_cmd=/usr/bin/file
6910  case $host_cpu in
6911  ia64*)
6912    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6913    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6914    ;;
6915  hppa*64*)
6916    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]'
6917    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6918    ;;
6919  *)
6920    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6921    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6922    ;;
6923  esac
6924  ;;
6925
6926interix[3-9]*)
6927  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6928  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6929  ;;
6930
6931irix5* | irix6* | nonstopux*)
6932  case $LD in
6933  *-32|*"-32 ") libmagic=32-bit;;
6934  *-n32|*"-n32 ") libmagic=N32;;
6935  *-64|*"-64 ") libmagic=64-bit;;
6936  *) libmagic=never-match;;
6937  esac
6938  lt_cv_deplibs_check_method=pass_all
6939  ;;
6940
6941# This must be glibc/ELF.
6942linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6943  lt_cv_deplibs_check_method=pass_all
6944  ;;
6945
6946netbsd* | netbsdelf*-gnu)
6947  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6948    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6949  else
6950    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6951  fi
6952  ;;
6953
6954newos6*)
6955  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6956  lt_cv_file_magic_cmd=/usr/bin/file
6957  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6958  ;;
6959
6960*nto* | *qnx*)
6961  lt_cv_deplibs_check_method=pass_all
6962  ;;
6963
6964openbsd* | bitrig*)
6965  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6966    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6967  else
6968    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6969  fi
6970  ;;
6971
6972osf3* | osf4* | osf5*)
6973  lt_cv_deplibs_check_method=pass_all
6974  ;;
6975
6976rdos*)
6977  lt_cv_deplibs_check_method=pass_all
6978  ;;
6979
6980solaris*)
6981  lt_cv_deplibs_check_method=pass_all
6982  ;;
6983
6984sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6985  lt_cv_deplibs_check_method=pass_all
6986  ;;
6987
6988sysv4 | sysv4.3*)
6989  case $host_vendor in
6990  motorola)
6991    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]'
6992    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6993    ;;
6994  ncr)
6995    lt_cv_deplibs_check_method=pass_all
6996    ;;
6997  sequent)
6998    lt_cv_file_magic_cmd='/bin/file'
6999    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7000    ;;
7001  sni)
7002    lt_cv_file_magic_cmd='/bin/file'
7003    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7004    lt_cv_file_magic_test_file=/lib/libc.so
7005    ;;
7006  siemens)
7007    lt_cv_deplibs_check_method=pass_all
7008    ;;
7009  pc)
7010    lt_cv_deplibs_check_method=pass_all
7011    ;;
7012  esac
7013  ;;
7014
7015tpf*)
7016  lt_cv_deplibs_check_method=pass_all
7017  ;;
7018os2*)
7019  lt_cv_deplibs_check_method=pass_all
7020  ;;
7021esac
7022
7023fi
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7025$as_echo "$lt_cv_deplibs_check_method" >&6; }
7026
7027file_magic_glob=
7028want_nocaseglob=no
7029if test "$build" = "$host"; then
7030  case $host_os in
7031  mingw* | pw32*)
7032    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7033      want_nocaseglob=yes
7034    else
7035      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7036    fi
7037    ;;
7038  esac
7039fi
7040
7041file_magic_cmd=$lt_cv_file_magic_cmd
7042deplibs_check_method=$lt_cv_deplibs_check_method
7043test -z "$deplibs_check_method" && deplibs_check_method=unknown
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066if test -n "$ac_tool_prefix"; then
7067  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7068set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070$as_echo_n "checking for $ac_word... " >&6; }
7071if ${ac_cv_prog_DLLTOOL+:} false; then :
7072  $as_echo_n "(cached) " >&6
7073else
7074  if test -n "$DLLTOOL"; then
7075  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7076else
7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080  IFS=$as_save_IFS
7081  test -z "$as_dir" && as_dir=.
7082    for ac_exec_ext in '' $ac_executable_extensions; do
7083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086    break 2
7087  fi
7088done
7089  done
7090IFS=$as_save_IFS
7091
7092fi
7093fi
7094DLLTOOL=$ac_cv_prog_DLLTOOL
7095if test -n "$DLLTOOL"; then
7096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7097$as_echo "$DLLTOOL" >&6; }
7098else
7099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100$as_echo "no" >&6; }
7101fi
7102
7103
7104fi
7105if test -z "$ac_cv_prog_DLLTOOL"; then
7106  ac_ct_DLLTOOL=$DLLTOOL
7107  # Extract the first word of "dlltool", so it can be a program name with args.
7108set dummy dlltool; ac_word=$2
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110$as_echo_n "checking for $ac_word... " >&6; }
7111if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7112  $as_echo_n "(cached) " >&6
7113else
7114  if test -n "$ac_ct_DLLTOOL"; then
7115  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7116else
7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120  IFS=$as_save_IFS
7121  test -z "$as_dir" && as_dir=.
7122    for ac_exec_ext in '' $ac_executable_extensions; do
7123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126    break 2
7127  fi
7128done
7129  done
7130IFS=$as_save_IFS
7131
7132fi
7133fi
7134ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7135if test -n "$ac_ct_DLLTOOL"; then
7136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7137$as_echo "$ac_ct_DLLTOOL" >&6; }
7138else
7139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140$as_echo "no" >&6; }
7141fi
7142
7143  if test "x$ac_ct_DLLTOOL" = x; then
7144    DLLTOOL="false"
7145  else
7146    case $cross_compiling:$ac_tool_warned in
7147yes:)
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150ac_tool_warned=yes ;;
7151esac
7152    DLLTOOL=$ac_ct_DLLTOOL
7153  fi
7154else
7155  DLLTOOL="$ac_cv_prog_DLLTOOL"
7156fi
7157
7158test -z "$DLLTOOL" && DLLTOOL=dlltool
7159
7160
7161
7162
7163
7164
7165
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7167$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7168if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  lt_cv_sharedlib_from_linklib_cmd='unknown'
7172
7173case $host_os in
7174cygwin* | mingw* | pw32* | cegcc*)
7175  # two different shell functions defined in ltmain.sh;
7176  # decide which one to use based on capabilities of $DLLTOOL
7177  case `$DLLTOOL --help 2>&1` in
7178  *--identify-strict*)
7179    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7180    ;;
7181  *)
7182    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7183    ;;
7184  esac
7185  ;;
7186*)
7187  # fallback: assume linklib IS sharedlib
7188  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7189  ;;
7190esac
7191
7192fi
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7194$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7195sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7196test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7197
7198
7199
7200
7201
7202
7203
7204
7205if test -n "$ac_tool_prefix"; then
7206  for ac_prog in ar
7207  do
7208    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7209set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211$as_echo_n "checking for $ac_word... " >&6; }
7212if ${ac_cv_prog_AR+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215  if test -n "$AR"; then
7216  ac_cv_prog_AR="$AR" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221  IFS=$as_save_IFS
7222  test -z "$as_dir" && as_dir=.
7223    for ac_exec_ext in '' $ac_executable_extensions; do
7224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227    break 2
7228  fi
7229done
7230  done
7231IFS=$as_save_IFS
7232
7233fi
7234fi
7235AR=$ac_cv_prog_AR
7236if test -n "$AR"; then
7237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7238$as_echo "$AR" >&6; }
7239else
7240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241$as_echo "no" >&6; }
7242fi
7243
7244
7245    test -n "$AR" && break
7246  done
7247fi
7248if test -z "$AR"; then
7249  ac_ct_AR=$AR
7250  for ac_prog in ar
7251do
7252  # Extract the first word of "$ac_prog", so it can be a program name with args.
7253set dummy $ac_prog; ac_word=$2
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255$as_echo_n "checking for $ac_word... " >&6; }
7256if ${ac_cv_prog_ac_ct_AR+:} false; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  if test -n "$ac_ct_AR"; then
7260  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265  IFS=$as_save_IFS
7266  test -z "$as_dir" && as_dir=.
7267    for ac_exec_ext in '' $ac_executable_extensions; do
7268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269    ac_cv_prog_ac_ct_AR="$ac_prog"
7270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271    break 2
7272  fi
7273done
7274  done
7275IFS=$as_save_IFS
7276
7277fi
7278fi
7279ac_ct_AR=$ac_cv_prog_ac_ct_AR
7280if test -n "$ac_ct_AR"; then
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7282$as_echo "$ac_ct_AR" >&6; }
7283else
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285$as_echo "no" >&6; }
7286fi
7287
7288
7289  test -n "$ac_ct_AR" && break
7290done
7291
7292  if test "x$ac_ct_AR" = x; then
7293    AR="false"
7294  else
7295    case $cross_compiling:$ac_tool_warned in
7296yes:)
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7299ac_tool_warned=yes ;;
7300esac
7301    AR=$ac_ct_AR
7302  fi
7303fi
7304
7305: ${AR=ar}
7306: ${AR_FLAGS=cru}
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7319$as_echo_n "checking for archiver @FILE support... " >&6; }
7320if ${lt_cv_ar_at_file+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323  lt_cv_ar_at_file=no
7324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326
7327int
7328main ()
7329{
7330
7331  ;
7332  return 0;
7333}
7334_ACEOF
7335if ac_fn_c_try_compile "$LINENO"; then :
7336  echo conftest.$ac_objext > conftest.lst
7337      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7338      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7339  (eval $lt_ar_try) 2>&5
7340  ac_status=$?
7341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342  test $ac_status = 0; }
7343      if test 0 -eq "$ac_status"; then
7344        # Ensure the archiver fails upon bogus file names.
7345        rm -f conftest.$ac_objext libconftest.a
7346        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7347  (eval $lt_ar_try) 2>&5
7348  ac_status=$?
7349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350  test $ac_status = 0; }
7351        if test 0 -ne "$ac_status"; then
7352          lt_cv_ar_at_file=@
7353        fi
7354      fi
7355      rm -f conftest.* libconftest.a
7356
7357fi
7358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359
7360fi
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7362$as_echo "$lt_cv_ar_at_file" >&6; }
7363
7364if test no = "$lt_cv_ar_at_file"; then
7365  archiver_list_spec=
7366else
7367  archiver_list_spec=$lt_cv_ar_at_file
7368fi
7369
7370
7371
7372
7373
7374
7375
7376if test -n "$ac_tool_prefix"; then
7377  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7378set dummy ${ac_tool_prefix}strip; ac_word=$2
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380$as_echo_n "checking for $ac_word... " >&6; }
7381if ${ac_cv_prog_STRIP+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  if test -n "$STRIP"; then
7385  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7386else
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390  IFS=$as_save_IFS
7391  test -z "$as_dir" && as_dir=.
7392    for ac_exec_ext in '' $ac_executable_extensions; do
7393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396    break 2
7397  fi
7398done
7399  done
7400IFS=$as_save_IFS
7401
7402fi
7403fi
7404STRIP=$ac_cv_prog_STRIP
7405if test -n "$STRIP"; then
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7407$as_echo "$STRIP" >&6; }
7408else
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410$as_echo "no" >&6; }
7411fi
7412
7413
7414fi
7415if test -z "$ac_cv_prog_STRIP"; then
7416  ac_ct_STRIP=$STRIP
7417  # Extract the first word of "strip", so it can be a program name with args.
7418set dummy strip; ac_word=$2
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420$as_echo_n "checking for $ac_word... " >&6; }
7421if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  if test -n "$ac_ct_STRIP"; then
7425  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7426else
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432    for ac_exec_ext in '' $ac_executable_extensions; do
7433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434    ac_cv_prog_ac_ct_STRIP="strip"
7435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436    break 2
7437  fi
7438done
7439  done
7440IFS=$as_save_IFS
7441
7442fi
7443fi
7444ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7445if test -n "$ac_ct_STRIP"; then
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7447$as_echo "$ac_ct_STRIP" >&6; }
7448else
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451fi
7452
7453  if test "x$ac_ct_STRIP" = x; then
7454    STRIP=":"
7455  else
7456    case $cross_compiling:$ac_tool_warned in
7457yes:)
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7460ac_tool_warned=yes ;;
7461esac
7462    STRIP=$ac_ct_STRIP
7463  fi
7464else
7465  STRIP="$ac_cv_prog_STRIP"
7466fi
7467
7468test -z "$STRIP" && STRIP=:
7469
7470
7471
7472
7473
7474
7475if test -n "$ac_tool_prefix"; then
7476  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7477set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479$as_echo_n "checking for $ac_word... " >&6; }
7480if ${ac_cv_prog_RANLIB+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  if test -n "$RANLIB"; then
7484  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489  IFS=$as_save_IFS
7490  test -z "$as_dir" && as_dir=.
7491    for ac_exec_ext in '' $ac_executable_extensions; do
7492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495    break 2
7496  fi
7497done
7498  done
7499IFS=$as_save_IFS
7500
7501fi
7502fi
7503RANLIB=$ac_cv_prog_RANLIB
7504if test -n "$RANLIB"; then
7505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7506$as_echo "$RANLIB" >&6; }
7507else
7508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509$as_echo "no" >&6; }
7510fi
7511
7512
7513fi
7514if test -z "$ac_cv_prog_RANLIB"; then
7515  ac_ct_RANLIB=$RANLIB
7516  # Extract the first word of "ranlib", so it can be a program name with args.
7517set dummy ranlib; ac_word=$2
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519$as_echo_n "checking for $ac_word... " >&6; }
7520if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7521  $as_echo_n "(cached) " >&6
7522else
7523  if test -n "$ac_ct_RANLIB"; then
7524  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7525else
7526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529  IFS=$as_save_IFS
7530  test -z "$as_dir" && as_dir=.
7531    for ac_exec_ext in '' $ac_executable_extensions; do
7532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533    ac_cv_prog_ac_ct_RANLIB="ranlib"
7534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535    break 2
7536  fi
7537done
7538  done
7539IFS=$as_save_IFS
7540
7541fi
7542fi
7543ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7544if test -n "$ac_ct_RANLIB"; then
7545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7546$as_echo "$ac_ct_RANLIB" >&6; }
7547else
7548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549$as_echo "no" >&6; }
7550fi
7551
7552  if test "x$ac_ct_RANLIB" = x; then
7553    RANLIB=":"
7554  else
7555    case $cross_compiling:$ac_tool_warned in
7556yes:)
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559ac_tool_warned=yes ;;
7560esac
7561    RANLIB=$ac_ct_RANLIB
7562  fi
7563else
7564  RANLIB="$ac_cv_prog_RANLIB"
7565fi
7566
7567test -z "$RANLIB" && RANLIB=:
7568
7569
7570
7571
7572
7573
7574# Determine commands to create old-style static archives.
7575old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7576old_postinstall_cmds='chmod 644 $oldlib'
7577old_postuninstall_cmds=
7578
7579if test -n "$RANLIB"; then
7580  case $host_os in
7581  bitrig* | openbsd*)
7582    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7583    ;;
7584  *)
7585    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7586    ;;
7587  esac
7588  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7589fi
7590
7591case $host_os in
7592  darwin*)
7593    lock_old_archive_extraction=yes ;;
7594  *)
7595    lock_old_archive_extraction=no ;;
7596esac
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636# If no C compiler was specified, use CC.
7637LTCC=${LTCC-"$CC"}
7638
7639# If no C compiler flags were specified, use CFLAGS.
7640LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7641
7642# Allow CC to be a program name with arguments.
7643compiler=$CC
7644
7645
7646# Check for command to grab the raw symbol name followed by C symbol from nm.
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7648$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7649if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7650  $as_echo_n "(cached) " >&6
7651else
7652
7653# These are sane defaults that work on at least a few old systems.
7654# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7655
7656# Character class describing NM global symbol codes.
7657symcode='[BCDEGRST]'
7658
7659# Regexp to match symbols that can be accessed directly from C.
7660sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7661
7662# Define system-specific variables.
7663case $host_os in
7664aix*)
7665  symcode='[BCDT]'
7666  ;;
7667cygwin* | mingw* | pw32* | cegcc*)
7668  symcode='[ABCDGISTW]'
7669  ;;
7670hpux*)
7671  if test ia64 = "$host_cpu"; then
7672    symcode='[ABCDEGRST]'
7673  fi
7674  ;;
7675irix* | nonstopux*)
7676  symcode='[BCDEGRST]'
7677  ;;
7678osf*)
7679  symcode='[BCDEGQRST]'
7680  ;;
7681solaris*)
7682  symcode='[BDRT]'
7683  ;;
7684sco3.2v5*)
7685  symcode='[DT]'
7686  ;;
7687sysv4.2uw2*)
7688  symcode='[DT]'
7689  ;;
7690sysv5* | sco5v6* | unixware* | OpenUNIX*)
7691  symcode='[ABDT]'
7692  ;;
7693sysv4)
7694  symcode='[DFNSTU]'
7695  ;;
7696esac
7697
7698# If we're using GNU nm, then use its standard symbol codes.
7699case `$NM -V 2>&1` in
7700*GNU* | *'with BFD'*)
7701  symcode='[ABCDGIRSTW]' ;;
7702esac
7703
7704if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7705  # Gets list of data symbols to import.
7706  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7707  # Adjust the below global symbol transforms to fixup imported variables.
7708  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7709  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7710  lt_c_name_lib_hook="\
7711  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7712  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7713else
7714  # Disable hooks by default.
7715  lt_cv_sys_global_symbol_to_import=
7716  lt_cdecl_hook=
7717  lt_c_name_hook=
7718  lt_c_name_lib_hook=
7719fi
7720
7721# Transform an extracted symbol line into a proper C declaration.
7722# Some systems (esp. on ia64) link data and code symbols differently,
7723# so use this general approach.
7724lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7725$lt_cdecl_hook\
7726" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7727" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7728
7729# Transform an extracted symbol line into symbol name and symbol address
7730lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7731$lt_c_name_hook\
7732" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7733" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7734
7735# Transform an extracted symbol line into symbol name with lib prefix and
7736# symbol address.
7737lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7738$lt_c_name_lib_hook\
7739" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7740" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7741" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7742
7743# Handle CRLF in mingw tool chain
7744opt_cr=
7745case $build_os in
7746mingw*)
7747  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7748  ;;
7749esac
7750
7751# Try without a prefix underscore, then with it.
7752for ac_symprfx in "" "_"; do
7753
7754  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7755  symxfrm="\\1 $ac_symprfx\\2 \\2"
7756
7757  # Write the raw and C identifiers.
7758  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7759    # Fake it for dumpbin and say T for any non-static function,
7760    # D for any global variable and I for any imported variable.
7761    # Also find C++ and __fastcall symbols from MSVC++,
7762    # which start with @ or ?.
7763    lt_cv_sys_global_symbol_pipe="$AWK '"\
7764"     {last_section=section; section=\$ 3};"\
7765"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7766"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7767"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7768"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7769"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7770"     \$ 0!~/External *\|/{next};"\
7771"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7772"     {if(hide[section]) next};"\
7773"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7774"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7775"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7776"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7777"     ' prfx=^$ac_symprfx"
7778  else
7779    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7780  fi
7781  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7782
7783  # Check to see that the pipe works correctly.
7784  pipe_works=no
7785
7786  rm -f conftest*
7787  cat > conftest.$ac_ext <<_LT_EOF
7788#ifdef __cplusplus
7789extern "C" {
7790#endif
7791char nm_test_var;
7792void nm_test_func(void);
7793void nm_test_func(void){}
7794#ifdef __cplusplus
7795}
7796#endif
7797int main(){nm_test_var='a';nm_test_func();return(0);}
7798_LT_EOF
7799
7800  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7801  (eval $ac_compile) 2>&5
7802  ac_status=$?
7803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7804  test $ac_status = 0; }; then
7805    # Now try to grab the symbols.
7806    nlist=conftest.nm
7807    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7808  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7809  ac_status=$?
7810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7811  test $ac_status = 0; } && test -s "$nlist"; then
7812      # Try sorting and uniquifying the output.
7813      if sort "$nlist" | uniq > "$nlist"T; then
7814        mv -f "$nlist"T "$nlist"
7815      else
7816        rm -f "$nlist"T
7817      fi
7818
7819      # Make sure that we snagged all the symbols we need.
7820      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7821        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7822          cat <<_LT_EOF > conftest.$ac_ext
7823/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7824#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7825/* DATA imports from DLLs on WIN32 can't be const, because runtime
7826   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7827# define LT_DLSYM_CONST
7828#elif defined __osf__
7829/* This system does not cope well with relocations in const data.  */
7830# define LT_DLSYM_CONST
7831#else
7832# define LT_DLSYM_CONST const
7833#endif
7834
7835#ifdef __cplusplus
7836extern "C" {
7837#endif
7838
7839_LT_EOF
7840          # Now generate the symbol file.
7841          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7842
7843          cat <<_LT_EOF >> conftest.$ac_ext
7844
7845/* The mapping between symbol names and symbols.  */
7846LT_DLSYM_CONST struct {
7847  const char *name;
7848  void       *address;
7849}
7850lt__PROGRAM__LTX_preloaded_symbols[] =
7851{
7852  { "@PROGRAM@", (void *) 0 },
7853_LT_EOF
7854          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7855          cat <<\_LT_EOF >> conftest.$ac_ext
7856  {0, (void *) 0}
7857};
7858
7859/* This works around a problem in FreeBSD linker */
7860#ifdef FREEBSD_WORKAROUND
7861static const void *lt_preloaded_setup() {
7862  return lt__PROGRAM__LTX_preloaded_symbols;
7863}
7864#endif
7865
7866#ifdef __cplusplus
7867}
7868#endif
7869_LT_EOF
7870          # Now try linking the two files.
7871          mv conftest.$ac_objext conftstm.$ac_objext
7872          lt_globsym_save_LIBS=$LIBS
7873          lt_globsym_save_CFLAGS=$CFLAGS
7874          LIBS=conftstm.$ac_objext
7875          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7876          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7877  (eval $ac_link) 2>&5
7878  ac_status=$?
7879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7881            pipe_works=yes
7882          fi
7883          LIBS=$lt_globsym_save_LIBS
7884          CFLAGS=$lt_globsym_save_CFLAGS
7885        else
7886          echo "cannot find nm_test_func in $nlist" >&5
7887        fi
7888      else
7889        echo "cannot find nm_test_var in $nlist" >&5
7890      fi
7891    else
7892      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7893    fi
7894  else
7895    echo "$progname: failed program was:" >&5
7896    cat conftest.$ac_ext >&5
7897  fi
7898  rm -rf conftest* conftst*
7899
7900  # Do not use the global_symbol_pipe unless it works.
7901  if test yes = "$pipe_works"; then
7902    break
7903  else
7904    lt_cv_sys_global_symbol_pipe=
7905  fi
7906done
7907
7908fi
7909
7910if test -z "$lt_cv_sys_global_symbol_pipe"; then
7911  lt_cv_sys_global_symbol_to_cdecl=
7912fi
7913if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7915$as_echo "failed" >&6; }
7916else
7917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7918$as_echo "ok" >&6; }
7919fi
7920
7921# Response file support.
7922if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7923  nm_file_list_spec='@'
7924elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7925  nm_file_list_spec='@'
7926fi
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7965$as_echo_n "checking for sysroot... " >&6; }
7966
7967# Check whether --with-sysroot was given.
7968if test "${with_sysroot+set}" = set; then :
7969  withval=$with_sysroot;
7970else
7971  with_sysroot=no
7972fi
7973
7974
7975lt_sysroot=
7976case $with_sysroot in #(
7977 yes)
7978   if test yes = "$GCC"; then
7979     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7980   fi
7981   ;; #(
7982 /*)
7983   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7984   ;; #(
7985 no|'')
7986   ;; #(
7987 *)
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7989$as_echo "$with_sysroot" >&6; }
7990   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7991   ;;
7992esac
7993
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7995$as_echo "${lt_sysroot:-no}" >&6; }
7996
7997
7998
7999
8000
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8002$as_echo_n "checking for a working dd... " >&6; }
8003if ${ac_cv_path_lt_DD+:} false; then :
8004  $as_echo_n "(cached) " >&6
8005else
8006  printf 0123456789abcdef0123456789abcdef >conftest.i
8007cat conftest.i conftest.i >conftest2.i
8008: ${lt_DD:=$DD}
8009if test -z "$lt_DD"; then
8010  ac_path_lt_DD_found=false
8011  # Loop through the user's path and test for each of PROGNAME-LIST
8012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013for as_dir in $PATH
8014do
8015  IFS=$as_save_IFS
8016  test -z "$as_dir" && as_dir=.
8017    for ac_prog in dd; do
8018    for ac_exec_ext in '' $ac_executable_extensions; do
8019      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8020      as_fn_executable_p "$ac_path_lt_DD" || continue
8021if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8022  cmp -s conftest.i conftest.out \
8023  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8024fi
8025      $ac_path_lt_DD_found && break 3
8026    done
8027  done
8028  done
8029IFS=$as_save_IFS
8030  if test -z "$ac_cv_path_lt_DD"; then
8031    :
8032  fi
8033else
8034  ac_cv_path_lt_DD=$lt_DD
8035fi
8036
8037rm -f conftest.i conftest2.i conftest.out
8038fi
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8040$as_echo "$ac_cv_path_lt_DD" >&6; }
8041
8042
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8044$as_echo_n "checking how to truncate binary pipes... " >&6; }
8045if ${lt_cv_truncate_bin+:} false; then :
8046  $as_echo_n "(cached) " >&6
8047else
8048  printf 0123456789abcdef0123456789abcdef >conftest.i
8049cat conftest.i conftest.i >conftest2.i
8050lt_cv_truncate_bin=
8051if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8052  cmp -s conftest.i conftest.out \
8053  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8054fi
8055rm -f conftest.i conftest2.i conftest.out
8056test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8057fi
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8059$as_echo "$lt_cv_truncate_bin" >&6; }
8060
8061
8062
8063
8064
8065
8066
8067# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8068func_cc_basename ()
8069{
8070    for cc_temp in $*""; do
8071      case $cc_temp in
8072        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8073        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8074        \-*) ;;
8075        *) break;;
8076      esac
8077    done
8078    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8079}
8080
8081# Check whether --enable-libtool-lock was given.
8082if test "${enable_libtool_lock+set}" = set; then :
8083  enableval=$enable_libtool_lock;
8084fi
8085
8086test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8087
8088# Some flags need to be propagated to the compiler or linker for good
8089# libtool support.
8090case $host in
8091ia64-*-hpux*)
8092  # Find out what ABI is being produced by ac_compile, and set mode
8093  # options accordingly.
8094  echo 'int i;' > conftest.$ac_ext
8095  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8096  (eval $ac_compile) 2>&5
8097  ac_status=$?
8098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8099  test $ac_status = 0; }; then
8100    case `/usr/bin/file conftest.$ac_objext` in
8101      *ELF-32*)
8102        HPUX_IA64_MODE=32
8103        ;;
8104      *ELF-64*)
8105        HPUX_IA64_MODE=64
8106        ;;
8107    esac
8108  fi
8109  rm -rf conftest*
8110  ;;
8111*-*-irix6*)
8112  # Find out what ABI is being produced by ac_compile, and set linker
8113  # options accordingly.
8114  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8115  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8116  (eval $ac_compile) 2>&5
8117  ac_status=$?
8118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8119  test $ac_status = 0; }; then
8120    if test yes = "$lt_cv_prog_gnu_ld"; then
8121      case `/usr/bin/file conftest.$ac_objext` in
8122        *32-bit*)
8123          LD="${LD-ld} -melf32bsmip"
8124          ;;
8125        *N32*)
8126          LD="${LD-ld} -melf32bmipn32"
8127          ;;
8128        *64-bit*)
8129          LD="${LD-ld} -melf64bmip"
8130        ;;
8131      esac
8132    else
8133      case `/usr/bin/file conftest.$ac_objext` in
8134        *32-bit*)
8135          LD="${LD-ld} -32"
8136          ;;
8137        *N32*)
8138          LD="${LD-ld} -n32"
8139          ;;
8140        *64-bit*)
8141          LD="${LD-ld} -64"
8142          ;;
8143      esac
8144    fi
8145  fi
8146  rm -rf conftest*
8147  ;;
8148
8149mips64*-*linux*)
8150  # Find out what ABI is being produced by ac_compile, and set linker
8151  # options accordingly.
8152  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8153  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8154  (eval $ac_compile) 2>&5
8155  ac_status=$?
8156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8157  test $ac_status = 0; }; then
8158    emul=elf
8159    case `/usr/bin/file conftest.$ac_objext` in
8160      *32-bit*)
8161        emul="${emul}32"
8162        ;;
8163      *64-bit*)
8164        emul="${emul}64"
8165        ;;
8166    esac
8167    case `/usr/bin/file conftest.$ac_objext` in
8168      *MSB*)
8169        emul="${emul}btsmip"
8170        ;;
8171      *LSB*)
8172        emul="${emul}ltsmip"
8173        ;;
8174    esac
8175    case `/usr/bin/file conftest.$ac_objext` in
8176      *N32*)
8177        emul="${emul}n32"
8178        ;;
8179    esac
8180    LD="${LD-ld} -m $emul"
8181  fi
8182  rm -rf conftest*
8183  ;;
8184
8185x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8186s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8187  # Find out what ABI is being produced by ac_compile, and set linker
8188  # options accordingly.  Note that the listed cases only cover the
8189  # situations where additional linker options are needed (such as when
8190  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8191  # vice versa); the common cases where no linker options are needed do
8192  # not appear in the list.
8193  echo 'int i;' > conftest.$ac_ext
8194  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8195  (eval $ac_compile) 2>&5
8196  ac_status=$?
8197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198  test $ac_status = 0; }; then
8199    case `/usr/bin/file conftest.o` in
8200      *32-bit*)
8201        case $host in
8202          x86_64-*kfreebsd*-gnu)
8203            LD="${LD-ld} -m elf_i386_fbsd"
8204            ;;
8205          x86_64-*linux*)
8206            case `/usr/bin/file conftest.o` in
8207              *x86-64*)
8208                LD="${LD-ld} -m elf32_x86_64"
8209                ;;
8210              *)
8211                LD="${LD-ld} -m elf_i386"
8212                ;;
8213            esac
8214            ;;
8215          powerpc64le-*linux*)
8216            LD="${LD-ld} -m elf32lppclinux"
8217            ;;
8218          powerpc64-*linux*)
8219            LD="${LD-ld} -m elf32ppclinux"
8220            ;;
8221          s390x-*linux*)
8222            LD="${LD-ld} -m elf_s390"
8223            ;;
8224          sparc64-*linux*)
8225            LD="${LD-ld} -m elf32_sparc"
8226            ;;
8227        esac
8228        ;;
8229      *64-bit*)
8230        case $host in
8231          x86_64-*kfreebsd*-gnu)
8232            LD="${LD-ld} -m elf_x86_64_fbsd"
8233            ;;
8234          x86_64-*linux*)
8235            LD="${LD-ld} -m elf_x86_64"
8236            ;;
8237          powerpcle-*linux*)
8238            LD="${LD-ld} -m elf64lppc"
8239            ;;
8240          powerpc-*linux*)
8241            LD="${LD-ld} -m elf64ppc"
8242            ;;
8243          s390*-*linux*|s390*-*tpf*)
8244            LD="${LD-ld} -m elf64_s390"
8245            ;;
8246          sparc*-*linux*)
8247            LD="${LD-ld} -m elf64_sparc"
8248            ;;
8249        esac
8250        ;;
8251    esac
8252  fi
8253  rm -rf conftest*
8254  ;;
8255
8256*-*-sco3.2v5*)
8257  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8258  SAVE_CFLAGS=$CFLAGS
8259  CFLAGS="$CFLAGS -belf"
8260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8261$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8262if ${lt_cv_cc_needs_belf+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265  ac_ext=c
8266ac_cpp='$CPP $CPPFLAGS'
8267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270
8271     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273
8274int
8275main ()
8276{
8277
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_link "$LINENO"; then :
8283  lt_cv_cc_needs_belf=yes
8284else
8285  lt_cv_cc_needs_belf=no
8286fi
8287rm -f core conftest.err conftest.$ac_objext \
8288    conftest$ac_exeext conftest.$ac_ext
8289     ac_ext=c
8290ac_cpp='$CPP $CPPFLAGS'
8291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293ac_compiler_gnu=$ac_cv_c_compiler_gnu
8294
8295fi
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8297$as_echo "$lt_cv_cc_needs_belf" >&6; }
8298  if test yes != "$lt_cv_cc_needs_belf"; then
8299    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8300    CFLAGS=$SAVE_CFLAGS
8301  fi
8302  ;;
8303*-*solaris*)
8304  # Find out what ABI is being produced by ac_compile, and set linker
8305  # options accordingly.
8306  echo 'int i;' > conftest.$ac_ext
8307  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8308  (eval $ac_compile) 2>&5
8309  ac_status=$?
8310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8311  test $ac_status = 0; }; then
8312    case `/usr/bin/file conftest.o` in
8313    *64-bit*)
8314      case $lt_cv_prog_gnu_ld in
8315      yes*)
8316        case $host in
8317        i?86-*-solaris*|x86_64-*-solaris*)
8318          LD="${LD-ld} -m elf_x86_64"
8319          ;;
8320        sparc*-*-solaris*)
8321          LD="${LD-ld} -m elf64_sparc"
8322          ;;
8323        esac
8324        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8325        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8326          LD=${LD-ld}_sol2
8327        fi
8328        ;;
8329      *)
8330        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8331          LD="${LD-ld} -64"
8332        fi
8333        ;;
8334      esac
8335      ;;
8336    esac
8337  fi
8338  rm -rf conftest*
8339  ;;
8340esac
8341
8342need_locks=$enable_libtool_lock
8343
8344if test -n "$ac_tool_prefix"; then
8345  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8346set dummy ${ac_tool_prefix}mt; ac_word=$2
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348$as_echo_n "checking for $ac_word... " >&6; }
8349if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8350  $as_echo_n "(cached) " >&6
8351else
8352  if test -n "$MANIFEST_TOOL"; then
8353  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8354else
8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356for as_dir in $PATH
8357do
8358  IFS=$as_save_IFS
8359  test -z "$as_dir" && as_dir=.
8360    for ac_exec_ext in '' $ac_executable_extensions; do
8361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364    break 2
8365  fi
8366done
8367  done
8368IFS=$as_save_IFS
8369
8370fi
8371fi
8372MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8373if test -n "$MANIFEST_TOOL"; then
8374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8375$as_echo "$MANIFEST_TOOL" >&6; }
8376else
8377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378$as_echo "no" >&6; }
8379fi
8380
8381
8382fi
8383if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8384  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8385  # Extract the first word of "mt", so it can be a program name with args.
8386set dummy mt; ac_word=$2
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388$as_echo_n "checking for $ac_word... " >&6; }
8389if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8390  $as_echo_n "(cached) " >&6
8391else
8392  if test -n "$ac_ct_MANIFEST_TOOL"; then
8393  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8394else
8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396for as_dir in $PATH
8397do
8398  IFS=$as_save_IFS
8399  test -z "$as_dir" && as_dir=.
8400    for ac_exec_ext in '' $ac_executable_extensions; do
8401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404    break 2
8405  fi
8406done
8407  done
8408IFS=$as_save_IFS
8409
8410fi
8411fi
8412ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8413if test -n "$ac_ct_MANIFEST_TOOL"; then
8414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8415$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8416else
8417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418$as_echo "no" >&6; }
8419fi
8420
8421  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8422    MANIFEST_TOOL=":"
8423  else
8424    case $cross_compiling:$ac_tool_warned in
8425yes:)
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8428ac_tool_warned=yes ;;
8429esac
8430    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8431  fi
8432else
8433  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8434fi
8435
8436test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8438$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8439if ${lt_cv_path_mainfest_tool+:} false; then :
8440  $as_echo_n "(cached) " >&6
8441else
8442  lt_cv_path_mainfest_tool=no
8443  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8444  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8445  cat conftest.err >&5
8446  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8447    lt_cv_path_mainfest_tool=yes
8448  fi
8449  rm -f conftest*
8450fi
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8452$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8453if test yes != "$lt_cv_path_mainfest_tool"; then
8454  MANIFEST_TOOL=:
8455fi
8456
8457
8458
8459
8460
8461
8462  case $host_os in
8463    rhapsody* | darwin*)
8464    if test -n "$ac_tool_prefix"; then
8465  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8466set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468$as_echo_n "checking for $ac_word... " >&6; }
8469if ${ac_cv_prog_DSYMUTIL+:} false; then :
8470  $as_echo_n "(cached) " >&6
8471else
8472  if test -n "$DSYMUTIL"; then
8473  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8474else
8475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478  IFS=$as_save_IFS
8479  test -z "$as_dir" && as_dir=.
8480    for ac_exec_ext in '' $ac_executable_extensions; do
8481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484    break 2
8485  fi
8486done
8487  done
8488IFS=$as_save_IFS
8489
8490fi
8491fi
8492DSYMUTIL=$ac_cv_prog_DSYMUTIL
8493if test -n "$DSYMUTIL"; then
8494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8495$as_echo "$DSYMUTIL" >&6; }
8496else
8497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498$as_echo "no" >&6; }
8499fi
8500
8501
8502fi
8503if test -z "$ac_cv_prog_DSYMUTIL"; then
8504  ac_ct_DSYMUTIL=$DSYMUTIL
8505  # Extract the first word of "dsymutil", so it can be a program name with args.
8506set dummy dsymutil; ac_word=$2
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508$as_echo_n "checking for $ac_word... " >&6; }
8509if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  if test -n "$ac_ct_DSYMUTIL"; then
8513  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8514else
8515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516for as_dir in $PATH
8517do
8518  IFS=$as_save_IFS
8519  test -z "$as_dir" && as_dir=.
8520    for ac_exec_ext in '' $ac_executable_extensions; do
8521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8522    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8524    break 2
8525  fi
8526done
8527  done
8528IFS=$as_save_IFS
8529
8530fi
8531fi
8532ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8533if test -n "$ac_ct_DSYMUTIL"; then
8534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8535$as_echo "$ac_ct_DSYMUTIL" >&6; }
8536else
8537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538$as_echo "no" >&6; }
8539fi
8540
8541  if test "x$ac_ct_DSYMUTIL" = x; then
8542    DSYMUTIL=":"
8543  else
8544    case $cross_compiling:$ac_tool_warned in
8545yes:)
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8548ac_tool_warned=yes ;;
8549esac
8550    DSYMUTIL=$ac_ct_DSYMUTIL
8551  fi
8552else
8553  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8554fi
8555
8556    if test -n "$ac_tool_prefix"; then
8557  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8558set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560$as_echo_n "checking for $ac_word... " >&6; }
8561if ${ac_cv_prog_NMEDIT+:} false; then :
8562  $as_echo_n "(cached) " >&6
8563else
8564  if test -n "$NMEDIT"; then
8565  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8566else
8567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568for as_dir in $PATH
8569do
8570  IFS=$as_save_IFS
8571  test -z "$as_dir" && as_dir=.
8572    for ac_exec_ext in '' $ac_executable_extensions; do
8573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576    break 2
8577  fi
8578done
8579  done
8580IFS=$as_save_IFS
8581
8582fi
8583fi
8584NMEDIT=$ac_cv_prog_NMEDIT
8585if test -n "$NMEDIT"; then
8586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8587$as_echo "$NMEDIT" >&6; }
8588else
8589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590$as_echo "no" >&6; }
8591fi
8592
8593
8594fi
8595if test -z "$ac_cv_prog_NMEDIT"; then
8596  ac_ct_NMEDIT=$NMEDIT
8597  # Extract the first word of "nmedit", so it can be a program name with args.
8598set dummy nmedit; ac_word=$2
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600$as_echo_n "checking for $ac_word... " >&6; }
8601if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8602  $as_echo_n "(cached) " >&6
8603else
8604  if test -n "$ac_ct_NMEDIT"; then
8605  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8606else
8607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608for as_dir in $PATH
8609do
8610  IFS=$as_save_IFS
8611  test -z "$as_dir" && as_dir=.
8612    for ac_exec_ext in '' $ac_executable_extensions; do
8613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8614    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8616    break 2
8617  fi
8618done
8619  done
8620IFS=$as_save_IFS
8621
8622fi
8623fi
8624ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8625if test -n "$ac_ct_NMEDIT"; then
8626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8627$as_echo "$ac_ct_NMEDIT" >&6; }
8628else
8629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630$as_echo "no" >&6; }
8631fi
8632
8633  if test "x$ac_ct_NMEDIT" = x; then
8634    NMEDIT=":"
8635  else
8636    case $cross_compiling:$ac_tool_warned in
8637yes:)
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8640ac_tool_warned=yes ;;
8641esac
8642    NMEDIT=$ac_ct_NMEDIT
8643  fi
8644else
8645  NMEDIT="$ac_cv_prog_NMEDIT"
8646fi
8647
8648    if test -n "$ac_tool_prefix"; then
8649  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8650set dummy ${ac_tool_prefix}lipo; ac_word=$2
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652$as_echo_n "checking for $ac_word... " >&6; }
8653if ${ac_cv_prog_LIPO+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  if test -n "$LIPO"; then
8657  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8658else
8659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660for as_dir in $PATH
8661do
8662  IFS=$as_save_IFS
8663  test -z "$as_dir" && as_dir=.
8664    for ac_exec_ext in '' $ac_executable_extensions; do
8665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668    break 2
8669  fi
8670done
8671  done
8672IFS=$as_save_IFS
8673
8674fi
8675fi
8676LIPO=$ac_cv_prog_LIPO
8677if test -n "$LIPO"; then
8678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8679$as_echo "$LIPO" >&6; }
8680else
8681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682$as_echo "no" >&6; }
8683fi
8684
8685
8686fi
8687if test -z "$ac_cv_prog_LIPO"; then
8688  ac_ct_LIPO=$LIPO
8689  # Extract the first word of "lipo", so it can be a program name with args.
8690set dummy lipo; ac_word=$2
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692$as_echo_n "checking for $ac_word... " >&6; }
8693if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8694  $as_echo_n "(cached) " >&6
8695else
8696  if test -n "$ac_ct_LIPO"; then
8697  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8698else
8699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700for as_dir in $PATH
8701do
8702  IFS=$as_save_IFS
8703  test -z "$as_dir" && as_dir=.
8704    for ac_exec_ext in '' $ac_executable_extensions; do
8705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706    ac_cv_prog_ac_ct_LIPO="lipo"
8707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8708    break 2
8709  fi
8710done
8711  done
8712IFS=$as_save_IFS
8713
8714fi
8715fi
8716ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8717if test -n "$ac_ct_LIPO"; then
8718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8719$as_echo "$ac_ct_LIPO" >&6; }
8720else
8721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722$as_echo "no" >&6; }
8723fi
8724
8725  if test "x$ac_ct_LIPO" = x; then
8726    LIPO=":"
8727  else
8728    case $cross_compiling:$ac_tool_warned in
8729yes:)
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8732ac_tool_warned=yes ;;
8733esac
8734    LIPO=$ac_ct_LIPO
8735  fi
8736else
8737  LIPO="$ac_cv_prog_LIPO"
8738fi
8739
8740    if test -n "$ac_tool_prefix"; then
8741  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8742set dummy ${ac_tool_prefix}otool; ac_word=$2
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744$as_echo_n "checking for $ac_word... " >&6; }
8745if ${ac_cv_prog_OTOOL+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  if test -n "$OTOOL"; then
8749  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8750else
8751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752for as_dir in $PATH
8753do
8754  IFS=$as_save_IFS
8755  test -z "$as_dir" && as_dir=.
8756    for ac_exec_ext in '' $ac_executable_extensions; do
8757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760    break 2
8761  fi
8762done
8763  done
8764IFS=$as_save_IFS
8765
8766fi
8767fi
8768OTOOL=$ac_cv_prog_OTOOL
8769if test -n "$OTOOL"; then
8770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8771$as_echo "$OTOOL" >&6; }
8772else
8773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774$as_echo "no" >&6; }
8775fi
8776
8777
8778fi
8779if test -z "$ac_cv_prog_OTOOL"; then
8780  ac_ct_OTOOL=$OTOOL
8781  # Extract the first word of "otool", so it can be a program name with args.
8782set dummy otool; ac_word=$2
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784$as_echo_n "checking for $ac_word... " >&6; }
8785if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8786  $as_echo_n "(cached) " >&6
8787else
8788  if test -n "$ac_ct_OTOOL"; then
8789  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8790else
8791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792for as_dir in $PATH
8793do
8794  IFS=$as_save_IFS
8795  test -z "$as_dir" && as_dir=.
8796    for ac_exec_ext in '' $ac_executable_extensions; do
8797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8798    ac_cv_prog_ac_ct_OTOOL="otool"
8799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800    break 2
8801  fi
8802done
8803  done
8804IFS=$as_save_IFS
8805
8806fi
8807fi
8808ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8809if test -n "$ac_ct_OTOOL"; then
8810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8811$as_echo "$ac_ct_OTOOL" >&6; }
8812else
8813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814$as_echo "no" >&6; }
8815fi
8816
8817  if test "x$ac_ct_OTOOL" = x; then
8818    OTOOL=":"
8819  else
8820    case $cross_compiling:$ac_tool_warned in
8821yes:)
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8824ac_tool_warned=yes ;;
8825esac
8826    OTOOL=$ac_ct_OTOOL
8827  fi
8828else
8829  OTOOL="$ac_cv_prog_OTOOL"
8830fi
8831
8832    if test -n "$ac_tool_prefix"; then
8833  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8834set dummy ${ac_tool_prefix}otool64; ac_word=$2
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836$as_echo_n "checking for $ac_word... " >&6; }
8837if ${ac_cv_prog_OTOOL64+:} false; then :
8838  $as_echo_n "(cached) " >&6
8839else
8840  if test -n "$OTOOL64"; then
8841  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8842else
8843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844for as_dir in $PATH
8845do
8846  IFS=$as_save_IFS
8847  test -z "$as_dir" && as_dir=.
8848    for ac_exec_ext in '' $ac_executable_extensions; do
8849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8850    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852    break 2
8853  fi
8854done
8855  done
8856IFS=$as_save_IFS
8857
8858fi
8859fi
8860OTOOL64=$ac_cv_prog_OTOOL64
8861if test -n "$OTOOL64"; then
8862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8863$as_echo "$OTOOL64" >&6; }
8864else
8865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866$as_echo "no" >&6; }
8867fi
8868
8869
8870fi
8871if test -z "$ac_cv_prog_OTOOL64"; then
8872  ac_ct_OTOOL64=$OTOOL64
8873  # Extract the first word of "otool64", so it can be a program name with args.
8874set dummy otool64; ac_word=$2
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876$as_echo_n "checking for $ac_word... " >&6; }
8877if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8878  $as_echo_n "(cached) " >&6
8879else
8880  if test -n "$ac_ct_OTOOL64"; then
8881  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8882else
8883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884for as_dir in $PATH
8885do
8886  IFS=$as_save_IFS
8887  test -z "$as_dir" && as_dir=.
8888    for ac_exec_ext in '' $ac_executable_extensions; do
8889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8890    ac_cv_prog_ac_ct_OTOOL64="otool64"
8891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892    break 2
8893  fi
8894done
8895  done
8896IFS=$as_save_IFS
8897
8898fi
8899fi
8900ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8901if test -n "$ac_ct_OTOOL64"; then
8902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8903$as_echo "$ac_ct_OTOOL64" >&6; }
8904else
8905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
8907fi
8908
8909  if test "x$ac_ct_OTOOL64" = x; then
8910    OTOOL64=":"
8911  else
8912    case $cross_compiling:$ac_tool_warned in
8913yes:)
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8916ac_tool_warned=yes ;;
8917esac
8918    OTOOL64=$ac_ct_OTOOL64
8919  fi
8920else
8921  OTOOL64="$ac_cv_prog_OTOOL64"
8922fi
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8951$as_echo_n "checking for -single_module linker flag... " >&6; }
8952if ${lt_cv_apple_cc_single_mod+:} false; then :
8953  $as_echo_n "(cached) " >&6
8954else
8955  lt_cv_apple_cc_single_mod=no
8956      if test -z "$LT_MULTI_MODULE"; then
8957        # By default we will add the -single_module flag. You can override
8958        # by either setting the environment variable LT_MULTI_MODULE
8959        # non-empty at configure time, or by adding -multi_module to the
8960        # link flags.
8961        rm -rf libconftest.dylib*
8962        echo "int foo(void){return 1;}" > conftest.c
8963        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8964-dynamiclib -Wl,-single_module conftest.c" >&5
8965        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8966          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8967        _lt_result=$?
8968        # If there is a non-empty error log, and "single_module"
8969        # appears in it, assume the flag caused a linker warning
8970        if test -s conftest.err && $GREP single_module conftest.err; then
8971          cat conftest.err >&5
8972        # Otherwise, if the output was created with a 0 exit code from
8973        # the compiler, it worked.
8974        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8975          lt_cv_apple_cc_single_mod=yes
8976        else
8977          cat conftest.err >&5
8978        fi
8979        rm -rf libconftest.dylib*
8980        rm -f conftest.*
8981      fi
8982fi
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8984$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8985
8986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8987$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8988if ${lt_cv_ld_exported_symbols_list+:} false; then :
8989  $as_echo_n "(cached) " >&6
8990else
8991  lt_cv_ld_exported_symbols_list=no
8992      save_LDFLAGS=$LDFLAGS
8993      echo "_main" > conftest.sym
8994      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8995      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h.  */
8997
8998int
8999main ()
9000{
9001
9002  ;
9003  return 0;
9004}
9005_ACEOF
9006if ac_fn_c_try_link "$LINENO"; then :
9007  lt_cv_ld_exported_symbols_list=yes
9008else
9009  lt_cv_ld_exported_symbols_list=no
9010fi
9011rm -f core conftest.err conftest.$ac_objext \
9012    conftest$ac_exeext conftest.$ac_ext
9013        LDFLAGS=$save_LDFLAGS
9014
9015fi
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9017$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9018
9019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9020$as_echo_n "checking for -force_load linker flag... " >&6; }
9021if ${lt_cv_ld_force_load+:} false; then :
9022  $as_echo_n "(cached) " >&6
9023else
9024  lt_cv_ld_force_load=no
9025      cat > conftest.c << _LT_EOF
9026int forced_loaded() { return 2;}
9027_LT_EOF
9028      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9029      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9030      echo "$AR cru libconftest.a conftest.o" >&5
9031      $AR cru libconftest.a conftest.o 2>&5
9032      echo "$RANLIB libconftest.a" >&5
9033      $RANLIB libconftest.a 2>&5
9034      cat > conftest.c << _LT_EOF
9035int main() { return 0;}
9036_LT_EOF
9037      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9038      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9039      _lt_result=$?
9040      if test -s conftest.err && $GREP force_load conftest.err; then
9041        cat conftest.err >&5
9042      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9043        lt_cv_ld_force_load=yes
9044      else
9045        cat conftest.err >&5
9046      fi
9047        rm -f conftest.err libconftest.a conftest conftest.c
9048        rm -rf conftest.dSYM
9049
9050fi
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9052$as_echo "$lt_cv_ld_force_load" >&6; }
9053    case $host_os in
9054    rhapsody* | darwin1.[012])
9055      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9056    darwin1.*)
9057      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9058    darwin*) # darwin 5.x on
9059      # if running on 10.5 or later, the deployment target defaults
9060      # to the OS version, if on x86, and 10.4, the deployment
9061      # target defaults to 10.4. Don't you love it?
9062      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9063        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9064          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9065        10.[012][,.]*)
9066          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9067        10.*)
9068          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9069      esac
9070    ;;
9071  esac
9072    if test yes = "$lt_cv_apple_cc_single_mod"; then
9073      _lt_dar_single_mod='$single_module'
9074    fi
9075    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9076      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9077    else
9078      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9079    fi
9080    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9081      _lt_dsymutil='~$DSYMUTIL $lib || :'
9082    else
9083      _lt_dsymutil=
9084    fi
9085    ;;
9086  esac
9087
9088# func_munge_path_list VARIABLE PATH
9089# -----------------------------------
9090# VARIABLE is name of variable containing _space_ separated list of
9091# directories to be munged by the contents of PATH, which is string
9092# having a format:
9093# "DIR[:DIR]:"
9094#       string "DIR[ DIR]" will be prepended to VARIABLE
9095# ":DIR[:DIR]"
9096#       string "DIR[ DIR]" will be appended to VARIABLE
9097# "DIRP[:DIRP]::[DIRA:]DIRA"
9098#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9099#       "DIRA[ DIRA]" will be appended to VARIABLE
9100# "DIR[:DIR]"
9101#       VARIABLE will be replaced by "DIR[ DIR]"
9102func_munge_path_list ()
9103{
9104    case x$2 in
9105    x)
9106        ;;
9107    *:)
9108        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9109        ;;
9110    x:*)
9111        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9112        ;;
9113    *::*)
9114        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9115        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9116        ;;
9117    *)
9118        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9119        ;;
9120    esac
9121}
9122
9123
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9125$as_echo_n "checking for ANSI C header files... " >&6; }
9126if ${ac_cv_header_stdc+:} false; then :
9127  $as_echo_n "(cached) " >&6
9128else
9129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130/* end confdefs.h.  */
9131#include <stdlib.h>
9132#include <stdarg.h>
9133#include <string.h>
9134#include <float.h>
9135
9136int
9137main ()
9138{
9139
9140  ;
9141  return 0;
9142}
9143_ACEOF
9144if ac_fn_c_try_compile "$LINENO"; then :
9145  ac_cv_header_stdc=yes
9146else
9147  ac_cv_header_stdc=no
9148fi
9149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150
9151if test $ac_cv_header_stdc = yes; then
9152  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154/* end confdefs.h.  */
9155#include <string.h>
9156
9157_ACEOF
9158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9159  $EGREP "memchr" >/dev/null 2>&1; then :
9160
9161else
9162  ac_cv_header_stdc=no
9163fi
9164rm -f conftest*
9165
9166fi
9167
9168if test $ac_cv_header_stdc = yes; then
9169  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171/* end confdefs.h.  */
9172#include <stdlib.h>
9173
9174_ACEOF
9175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176  $EGREP "free" >/dev/null 2>&1; then :
9177
9178else
9179  ac_cv_header_stdc=no
9180fi
9181rm -f conftest*
9182
9183fi
9184
9185if test $ac_cv_header_stdc = yes; then
9186  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9187  if test "$cross_compiling" = yes; then :
9188  :
9189else
9190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h.  */
9192#include <ctype.h>
9193#include <stdlib.h>
9194#if ((' ' & 0x0FF) == 0x020)
9195# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9196# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9197#else
9198# define ISLOWER(c) \
9199                   (('a' <= (c) && (c) <= 'i') \
9200                     || ('j' <= (c) && (c) <= 'r') \
9201                     || ('s' <= (c) && (c) <= 'z'))
9202# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9203#endif
9204
9205#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9206int
9207main ()
9208{
9209  int i;
9210  for (i = 0; i < 256; i++)
9211    if (XOR (islower (i), ISLOWER (i))
9212        || toupper (i) != TOUPPER (i))
9213      return 2;
9214  return 0;
9215}
9216_ACEOF
9217if ac_fn_c_try_run "$LINENO"; then :
9218
9219else
9220  ac_cv_header_stdc=no
9221fi
9222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9223  conftest.$ac_objext conftest.beam conftest.$ac_ext
9224fi
9225
9226fi
9227fi
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9229$as_echo "$ac_cv_header_stdc" >&6; }
9230if test $ac_cv_header_stdc = yes; then
9231
9232$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9233
9234fi
9235
9236# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9237for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9238                  inttypes.h stdint.h unistd.h
9239do :
9240  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9242"
9243if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9244  cat >>confdefs.h <<_ACEOF
9245#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9246_ACEOF
9247
9248fi
9249
9250done
9251
9252
9253for ac_header in dlfcn.h
9254do :
9255  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9256"
9257if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9258  cat >>confdefs.h <<_ACEOF
9259#define HAVE_DLFCN_H 1
9260_ACEOF
9261
9262fi
9263
9264done
9265
9266
9267
9268func_stripname_cnf ()
9269{
9270  case $2 in
9271  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9272  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9273  esac
9274} # func_stripname_cnf
9275
9276
9277
9278
9279
9280# Set options
9281# Check whether --enable-static was given.
9282if test "${enable_static+set}" = set; then :
9283  enableval=$enable_static; p=${PACKAGE-default}
9284    case $enableval in
9285    yes) enable_static=yes ;;
9286    no) enable_static=no ;;
9287    *)
9288     enable_static=no
9289      # Look at the argument we got.  We use all the common list separators.
9290      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9291      for pkg in $enableval; do
9292        IFS=$lt_save_ifs
9293        if test "X$pkg" = "X$p"; then
9294          enable_static=yes
9295        fi
9296      done
9297      IFS=$lt_save_ifs
9298      ;;
9299    esac
9300else
9301  enable_static=no
9302fi
9303
9304
9305
9306
9307
9308
9309
9310enable_win32_dll=yes
9311
9312case $host in
9313*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9314  if test -n "$ac_tool_prefix"; then
9315  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9316set dummy ${ac_tool_prefix}as; ac_word=$2
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318$as_echo_n "checking for $ac_word... " >&6; }
9319if ${ac_cv_prog_AS+:} false; then :
9320  $as_echo_n "(cached) " >&6
9321else
9322  if test -n "$AS"; then
9323  ac_cv_prog_AS="$AS" # Let the user override the test.
9324else
9325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326for as_dir in $PATH
9327do
9328  IFS=$as_save_IFS
9329  test -z "$as_dir" && as_dir=.
9330    for ac_exec_ext in '' $ac_executable_extensions; do
9331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332    ac_cv_prog_AS="${ac_tool_prefix}as"
9333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334    break 2
9335  fi
9336done
9337  done
9338IFS=$as_save_IFS
9339
9340fi
9341fi
9342AS=$ac_cv_prog_AS
9343if test -n "$AS"; then
9344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9345$as_echo "$AS" >&6; }
9346else
9347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348$as_echo "no" >&6; }
9349fi
9350
9351
9352fi
9353if test -z "$ac_cv_prog_AS"; then
9354  ac_ct_AS=$AS
9355  # Extract the first word of "as", so it can be a program name with args.
9356set dummy as; ac_word=$2
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358$as_echo_n "checking for $ac_word... " >&6; }
9359if ${ac_cv_prog_ac_ct_AS+:} false; then :
9360  $as_echo_n "(cached) " >&6
9361else
9362  if test -n "$ac_ct_AS"; then
9363  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9364else
9365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366for as_dir in $PATH
9367do
9368  IFS=$as_save_IFS
9369  test -z "$as_dir" && as_dir=.
9370    for ac_exec_ext in '' $ac_executable_extensions; do
9371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9372    ac_cv_prog_ac_ct_AS="as"
9373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374    break 2
9375  fi
9376done
9377  done
9378IFS=$as_save_IFS
9379
9380fi
9381fi
9382ac_ct_AS=$ac_cv_prog_ac_ct_AS
9383if test -n "$ac_ct_AS"; then
9384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9385$as_echo "$ac_ct_AS" >&6; }
9386else
9387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388$as_echo "no" >&6; }
9389fi
9390
9391  if test "x$ac_ct_AS" = x; then
9392    AS="false"
9393  else
9394    case $cross_compiling:$ac_tool_warned in
9395yes:)
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9398ac_tool_warned=yes ;;
9399esac
9400    AS=$ac_ct_AS
9401  fi
9402else
9403  AS="$ac_cv_prog_AS"
9404fi
9405
9406  if test -n "$ac_tool_prefix"; then
9407  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9408set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410$as_echo_n "checking for $ac_word... " >&6; }
9411if ${ac_cv_prog_DLLTOOL+:} false; then :
9412  $as_echo_n "(cached) " >&6
9413else
9414  if test -n "$DLLTOOL"; then
9415  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9416else
9417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420  IFS=$as_save_IFS
9421  test -z "$as_dir" && as_dir=.
9422    for ac_exec_ext in '' $ac_executable_extensions; do
9423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9426    break 2
9427  fi
9428done
9429  done
9430IFS=$as_save_IFS
9431
9432fi
9433fi
9434DLLTOOL=$ac_cv_prog_DLLTOOL
9435if test -n "$DLLTOOL"; then
9436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9437$as_echo "$DLLTOOL" >&6; }
9438else
9439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440$as_echo "no" >&6; }
9441fi
9442
9443
9444fi
9445if test -z "$ac_cv_prog_DLLTOOL"; then
9446  ac_ct_DLLTOOL=$DLLTOOL
9447  # Extract the first word of "dlltool", so it can be a program name with args.
9448set dummy dlltool; ac_word=$2
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450$as_echo_n "checking for $ac_word... " >&6; }
9451if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9452  $as_echo_n "(cached) " >&6
9453else
9454  if test -n "$ac_ct_DLLTOOL"; then
9455  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9456else
9457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458for as_dir in $PATH
9459do
9460  IFS=$as_save_IFS
9461  test -z "$as_dir" && as_dir=.
9462    for ac_exec_ext in '' $ac_executable_extensions; do
9463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466    break 2
9467  fi
9468done
9469  done
9470IFS=$as_save_IFS
9471
9472fi
9473fi
9474ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9475if test -n "$ac_ct_DLLTOOL"; then
9476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9477$as_echo "$ac_ct_DLLTOOL" >&6; }
9478else
9479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480$as_echo "no" >&6; }
9481fi
9482
9483  if test "x$ac_ct_DLLTOOL" = x; then
9484    DLLTOOL="false"
9485  else
9486    case $cross_compiling:$ac_tool_warned in
9487yes:)
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9490ac_tool_warned=yes ;;
9491esac
9492    DLLTOOL=$ac_ct_DLLTOOL
9493  fi
9494else
9495  DLLTOOL="$ac_cv_prog_DLLTOOL"
9496fi
9497
9498  if test -n "$ac_tool_prefix"; then
9499  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9500set dummy ${ac_tool_prefix}objdump; ac_word=$2
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9502$as_echo_n "checking for $ac_word... " >&6; }
9503if ${ac_cv_prog_OBJDUMP+:} false; then :
9504  $as_echo_n "(cached) " >&6
9505else
9506  if test -n "$OBJDUMP"; then
9507  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9508else
9509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510for as_dir in $PATH
9511do
9512  IFS=$as_save_IFS
9513  test -z "$as_dir" && as_dir=.
9514    for ac_exec_ext in '' $ac_executable_extensions; do
9515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9516    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9518    break 2
9519  fi
9520done
9521  done
9522IFS=$as_save_IFS
9523
9524fi
9525fi
9526OBJDUMP=$ac_cv_prog_OBJDUMP
9527if test -n "$OBJDUMP"; then
9528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9529$as_echo "$OBJDUMP" >&6; }
9530else
9531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532$as_echo "no" >&6; }
9533fi
9534
9535
9536fi
9537if test -z "$ac_cv_prog_OBJDUMP"; then
9538  ac_ct_OBJDUMP=$OBJDUMP
9539  # Extract the first word of "objdump", so it can be a program name with args.
9540set dummy objdump; ac_word=$2
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542$as_echo_n "checking for $ac_word... " >&6; }
9543if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9544  $as_echo_n "(cached) " >&6
9545else
9546  if test -n "$ac_ct_OBJDUMP"; then
9547  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9548else
9549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550for as_dir in $PATH
9551do
9552  IFS=$as_save_IFS
9553  test -z "$as_dir" && as_dir=.
9554    for ac_exec_ext in '' $ac_executable_extensions; do
9555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9556    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558    break 2
9559  fi
9560done
9561  done
9562IFS=$as_save_IFS
9563
9564fi
9565fi
9566ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9567if test -n "$ac_ct_OBJDUMP"; then
9568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9569$as_echo "$ac_ct_OBJDUMP" >&6; }
9570else
9571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572$as_echo "no" >&6; }
9573fi
9574
9575  if test "x$ac_ct_OBJDUMP" = x; then
9576    OBJDUMP="false"
9577  else
9578    case $cross_compiling:$ac_tool_warned in
9579yes:)
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9582ac_tool_warned=yes ;;
9583esac
9584    OBJDUMP=$ac_ct_OBJDUMP
9585  fi
9586else
9587  OBJDUMP="$ac_cv_prog_OBJDUMP"
9588fi
9589
9590  ;;
9591esac
9592
9593test -z "$AS" && AS=as
9594
9595
9596
9597
9598
9599test -z "$DLLTOOL" && DLLTOOL=dlltool
9600
9601
9602
9603
9604
9605test -z "$OBJDUMP" && OBJDUMP=objdump
9606
9607
9608
9609
9610enable_dlopen=yes
9611
9612
9613
9614
9615
9616            # Check whether --enable-shared was given.
9617if test "${enable_shared+set}" = set; then :
9618  enableval=$enable_shared; p=${PACKAGE-default}
9619    case $enableval in
9620    yes) enable_shared=yes ;;
9621    no) enable_shared=no ;;
9622    *)
9623      enable_shared=no
9624      # Look at the argument we got.  We use all the common list separators.
9625      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9626      for pkg in $enableval; do
9627        IFS=$lt_save_ifs
9628        if test "X$pkg" = "X$p"; then
9629          enable_shared=yes
9630        fi
9631      done
9632      IFS=$lt_save_ifs
9633      ;;
9634    esac
9635else
9636  enable_shared=yes
9637fi
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649# Check whether --with-pic was given.
9650if test "${with_pic+set}" = set; then :
9651  withval=$with_pic; lt_p=${PACKAGE-default}
9652    case $withval in
9653    yes|no) pic_mode=$withval ;;
9654    *)
9655      pic_mode=default
9656      # Look at the argument we got.  We use all the common list separators.
9657      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9658      for lt_pkg in $withval; do
9659        IFS=$lt_save_ifs
9660        if test "X$lt_pkg" = "X$lt_p"; then
9661          pic_mode=yes
9662        fi
9663      done
9664      IFS=$lt_save_ifs
9665      ;;
9666    esac
9667else
9668  pic_mode=default
9669fi
9670
9671
9672
9673
9674
9675
9676
9677
9678  # Check whether --enable-fast-install was given.
9679if test "${enable_fast_install+set}" = set; then :
9680  enableval=$enable_fast_install; p=${PACKAGE-default}
9681    case $enableval in
9682    yes) enable_fast_install=yes ;;
9683    no) enable_fast_install=no ;;
9684    *)
9685      enable_fast_install=no
9686      # Look at the argument we got.  We use all the common list separators.
9687      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9688      for pkg in $enableval; do
9689        IFS=$lt_save_ifs
9690        if test "X$pkg" = "X$p"; then
9691          enable_fast_install=yes
9692        fi
9693      done
9694      IFS=$lt_save_ifs
9695      ;;
9696    esac
9697else
9698  enable_fast_install=yes
9699fi
9700
9701
9702
9703
9704
9705
9706
9707
9708  shared_archive_member_spec=
9709case $host,$enable_shared in
9710power*-*-aix[5-9]*,yes)
9711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9712$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9713
9714# Check whether --with-aix-soname was given.
9715if test "${with_aix_soname+set}" = set; then :
9716  withval=$with_aix_soname; case $withval in
9717    aix|svr4|both)
9718      ;;
9719    *)
9720      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9721      ;;
9722    esac
9723    lt_cv_with_aix_soname=$with_aix_soname
9724else
9725  if ${lt_cv_with_aix_soname+:} false; then :
9726  $as_echo_n "(cached) " >&6
9727else
9728  lt_cv_with_aix_soname=aix
9729fi
9730
9731    with_aix_soname=$lt_cv_with_aix_soname
9732fi
9733
9734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9735$as_echo "$with_aix_soname" >&6; }
9736  if test aix != "$with_aix_soname"; then
9737    # For the AIX way of multilib, we name the shared archive member
9738    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9739    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9740    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9741    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9742    if test 64 = "${OBJECT_MODE-32}"; then
9743      shared_archive_member_spec=shr_64
9744    else
9745      shared_archive_member_spec=shr
9746    fi
9747  fi
9748  ;;
9749*)
9750  with_aix_soname=aix
9751  ;;
9752esac
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763# This can be used to rebuild libtool when needed
9764LIBTOOL_DEPS=$ltmain
9765
9766# Always use our own libtool.
9767LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798test -z "$LN_S" && LN_S="ln -s"
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813if test -n "${ZSH_VERSION+set}"; then
9814   setopt NO_GLOB_SUBST
9815fi
9816
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9818$as_echo_n "checking for objdir... " >&6; }
9819if ${lt_cv_objdir+:} false; then :
9820  $as_echo_n "(cached) " >&6
9821else
9822  rm -f .libs 2>/dev/null
9823mkdir .libs 2>/dev/null
9824if test -d .libs; then
9825  lt_cv_objdir=.libs
9826else
9827  # MS-DOS does not allow filenames that begin with a dot.
9828  lt_cv_objdir=_libs
9829fi
9830rmdir .libs 2>/dev/null
9831fi
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9833$as_echo "$lt_cv_objdir" >&6; }
9834objdir=$lt_cv_objdir
9835
9836
9837
9838
9839
9840cat >>confdefs.h <<_ACEOF
9841#define LT_OBJDIR "$lt_cv_objdir/"
9842_ACEOF
9843
9844
9845
9846
9847case $host_os in
9848aix3*)
9849  # AIX sometimes has problems with the GCC collect2 program.  For some
9850  # reason, if we set the COLLECT_NAMES environment variable, the problems
9851  # vanish in a puff of smoke.
9852  if test set != "${COLLECT_NAMES+set}"; then
9853    COLLECT_NAMES=
9854    export COLLECT_NAMES
9855  fi
9856  ;;
9857esac
9858
9859# Global variables:
9860ofile=libtool
9861can_build_shared=yes
9862
9863# All known linkers require a '.a' archive for static linking (except MSVC,
9864# which needs '.lib').
9865libext=a
9866
9867with_gnu_ld=$lt_cv_prog_gnu_ld
9868
9869old_CC=$CC
9870old_CFLAGS=$CFLAGS
9871
9872# Set sane defaults for various variables
9873test -z "$CC" && CC=cc
9874test -z "$LTCC" && LTCC=$CC
9875test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9876test -z "$LD" && LD=ld
9877test -z "$ac_objext" && ac_objext=o
9878
9879func_cc_basename $compiler
9880cc_basename=$func_cc_basename_result
9881
9882
9883# Only perform the check for file, if the check method requires it
9884test -z "$MAGIC_CMD" && MAGIC_CMD=file
9885case $deplibs_check_method in
9886file_magic*)
9887  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9888    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9889$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9890if ${lt_cv_path_MAGIC_CMD+:} false; then :
9891  $as_echo_n "(cached) " >&6
9892else
9893  case $MAGIC_CMD in
9894[\\/*] |  ?:[\\/]*)
9895  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9896  ;;
9897*)
9898  lt_save_MAGIC_CMD=$MAGIC_CMD
9899  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9900  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9901  for ac_dir in $ac_dummy; do
9902    IFS=$lt_save_ifs
9903    test -z "$ac_dir" && ac_dir=.
9904    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9905      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9906      if test -n "$file_magic_test_file"; then
9907        case $deplibs_check_method in
9908        "file_magic "*)
9909          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9910          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9911          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9912            $EGREP "$file_magic_regex" > /dev/null; then
9913            :
9914          else
9915            cat <<_LT_EOF 1>&2
9916
9917*** Warning: the command libtool uses to detect shared libraries,
9918*** $file_magic_cmd, produces output that libtool cannot recognize.
9919*** The result is that libtool may fail to recognize shared libraries
9920*** as such.  This will affect the creation of libtool libraries that
9921*** depend on shared libraries, but programs linked with such libtool
9922*** libraries will work regardless of this problem.  Nevertheless, you
9923*** may want to report the problem to your system manager and/or to
9924*** bug-libtool@gnu.org
9925
9926_LT_EOF
9927          fi ;;
9928        esac
9929      fi
9930      break
9931    fi
9932  done
9933  IFS=$lt_save_ifs
9934  MAGIC_CMD=$lt_save_MAGIC_CMD
9935  ;;
9936esac
9937fi
9938
9939MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9940if test -n "$MAGIC_CMD"; then
9941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9942$as_echo "$MAGIC_CMD" >&6; }
9943else
9944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945$as_echo "no" >&6; }
9946fi
9947
9948
9949
9950
9951
9952if test -z "$lt_cv_path_MAGIC_CMD"; then
9953  if test -n "$ac_tool_prefix"; then
9954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9955$as_echo_n "checking for file... " >&6; }
9956if ${lt_cv_path_MAGIC_CMD+:} false; then :
9957  $as_echo_n "(cached) " >&6
9958else
9959  case $MAGIC_CMD in
9960[\\/*] |  ?:[\\/]*)
9961  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9962  ;;
9963*)
9964  lt_save_MAGIC_CMD=$MAGIC_CMD
9965  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9966  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9967  for ac_dir in $ac_dummy; do
9968    IFS=$lt_save_ifs
9969    test -z "$ac_dir" && ac_dir=.
9970    if test -f "$ac_dir/file"; then
9971      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9972      if test -n "$file_magic_test_file"; then
9973        case $deplibs_check_method in
9974        "file_magic "*)
9975          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9976          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9977          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9978            $EGREP "$file_magic_regex" > /dev/null; then
9979            :
9980          else
9981            cat <<_LT_EOF 1>&2
9982
9983*** Warning: the command libtool uses to detect shared libraries,
9984*** $file_magic_cmd, produces output that libtool cannot recognize.
9985*** The result is that libtool may fail to recognize shared libraries
9986*** as such.  This will affect the creation of libtool libraries that
9987*** depend on shared libraries, but programs linked with such libtool
9988*** libraries will work regardless of this problem.  Nevertheless, you
9989*** may want to report the problem to your system manager and/or to
9990*** bug-libtool@gnu.org
9991
9992_LT_EOF
9993          fi ;;
9994        esac
9995      fi
9996      break
9997    fi
9998  done
9999  IFS=$lt_save_ifs
10000  MAGIC_CMD=$lt_save_MAGIC_CMD
10001  ;;
10002esac
10003fi
10004
10005MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10006if test -n "$MAGIC_CMD"; then
10007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10008$as_echo "$MAGIC_CMD" >&6; }
10009else
10010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011$as_echo "no" >&6; }
10012fi
10013
10014
10015  else
10016    MAGIC_CMD=:
10017  fi
10018fi
10019
10020  fi
10021  ;;
10022esac
10023
10024# Use C for the default configuration in the libtool script
10025
10026lt_save_CC=$CC
10027ac_ext=c
10028ac_cpp='$CPP $CPPFLAGS'
10029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10031ac_compiler_gnu=$ac_cv_c_compiler_gnu
10032
10033
10034# Source file extension for C test sources.
10035ac_ext=c
10036
10037# Object file extension for compiled C test sources.
10038objext=o
10039objext=$objext
10040
10041# Code to be used in simple compile tests
10042lt_simple_compile_test_code="int some_variable = 0;"
10043
10044# Code to be used in simple link tests
10045lt_simple_link_test_code='int main(){return(0);}'
10046
10047
10048
10049
10050
10051
10052
10053# If no C compiler was specified, use CC.
10054LTCC=${LTCC-"$CC"}
10055
10056# If no C compiler flags were specified, use CFLAGS.
10057LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10058
10059# Allow CC to be a program name with arguments.
10060compiler=$CC
10061
10062# Save the default compiler, since it gets overwritten when the other
10063# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10064compiler_DEFAULT=$CC
10065
10066# save warnings/boilerplate of simple test code
10067ac_outfile=conftest.$ac_objext
10068echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10070_lt_compiler_boilerplate=`cat conftest.err`
10071$RM conftest*
10072
10073ac_outfile=conftest.$ac_objext
10074echo "$lt_simple_link_test_code" >conftest.$ac_ext
10075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10076_lt_linker_boilerplate=`cat conftest.err`
10077$RM -r conftest*
10078
10079
10080## CAVEAT EMPTOR:
10081## There is no encapsulation within the following macros, do not change
10082## the running order or otherwise move them around unless you know exactly
10083## what you are doing...
10084if test -n "$compiler"; then
10085
10086lt_prog_compiler_no_builtin_flag=
10087
10088if test yes = "$GCC"; then
10089  case $cc_basename in
10090  nvcc*)
10091    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10092  *)
10093    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10094  esac
10095
10096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10097$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10098if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10099  $as_echo_n "(cached) " >&6
10100else
10101  lt_cv_prog_compiler_rtti_exceptions=no
10102   ac_outfile=conftest.$ac_objext
10103   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10104   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10105   # Insert the option either (1) after the last *FLAGS variable, or
10106   # (2) before a word containing "conftest.", or (3) at the end.
10107   # Note that $ac_compile itself does not contain backslashes and begins
10108   # with a dollar sign (not a hyphen), so the echo should work correctly.
10109   # The option is referenced via a variable to avoid confusing sed.
10110   lt_compile=`echo "$ac_compile" | $SED \
10111   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10112   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10113   -e 's:$: $lt_compiler_flag:'`
10114   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10115   (eval "$lt_compile" 2>conftest.err)
10116   ac_status=$?
10117   cat conftest.err >&5
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   if (exit $ac_status) && test -s "$ac_outfile"; then
10120     # The compiler can only warn and ignore the option if not recognized
10121     # So say no if there are warnings other than the usual output.
10122     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10123     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10124     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10125       lt_cv_prog_compiler_rtti_exceptions=yes
10126     fi
10127   fi
10128   $RM conftest*
10129
10130fi
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10132$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10133
10134if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10135    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10136else
10137    :
10138fi
10139
10140fi
10141
10142
10143
10144
10145
10146
10147  lt_prog_compiler_wl=
10148lt_prog_compiler_pic=
10149lt_prog_compiler_static=
10150
10151
10152  if test yes = "$GCC"; then
10153    lt_prog_compiler_wl='-Wl,'
10154    lt_prog_compiler_static='-static'
10155
10156    case $host_os in
10157      aix*)
10158      # All AIX code is PIC.
10159      if test ia64 = "$host_cpu"; then
10160        # AIX 5 now supports IA64 processor
10161        lt_prog_compiler_static='-Bstatic'
10162      fi
10163      lt_prog_compiler_pic='-fPIC'
10164      ;;
10165
10166    amigaos*)
10167      case $host_cpu in
10168      powerpc)
10169            # see comment about AmigaOS4 .so support
10170            lt_prog_compiler_pic='-fPIC'
10171        ;;
10172      m68k)
10173            # FIXME: we need at least 68020 code to build shared libraries, but
10174            # adding the '-m68020' flag to GCC prevents building anything better,
10175            # like '-m68040'.
10176            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10177        ;;
10178      esac
10179      ;;
10180
10181    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10182      # PIC is the default for these OSes.
10183      ;;
10184
10185    mingw* | cygwin* | pw32* | os2* | cegcc*)
10186      # This hack is so that the source file can tell whether it is being
10187      # built for inclusion in a dll (and should export symbols for example).
10188      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10189      # (--disable-auto-import) libraries
10190      lt_prog_compiler_pic='-DDLL_EXPORT'
10191      case $host_os in
10192      os2*)
10193        lt_prog_compiler_static='$wl-static'
10194        ;;
10195      esac
10196      ;;
10197
10198    darwin* | rhapsody*)
10199      # PIC is the default on this platform
10200      # Common symbols not allowed in MH_DYLIB files
10201      lt_prog_compiler_pic='-fno-common'
10202      ;;
10203
10204    haiku*)
10205      # PIC is the default for Haiku.
10206      # The "-static" flag exists, but is broken.
10207      lt_prog_compiler_static=
10208      ;;
10209
10210    hpux*)
10211      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10212      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10213      # sets the default TLS model and affects inlining.
10214      case $host_cpu in
10215      hppa*64*)
10216        # +Z the default
10217        ;;
10218      *)
10219        lt_prog_compiler_pic='-fPIC'
10220        ;;
10221      esac
10222      ;;
10223
10224    interix[3-9]*)
10225      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10226      # Instead, we relocate shared libraries at runtime.
10227      ;;
10228
10229    msdosdjgpp*)
10230      # Just because we use GCC doesn't mean we suddenly get shared libraries
10231      # on systems that don't support them.
10232      lt_prog_compiler_can_build_shared=no
10233      enable_shared=no
10234      ;;
10235
10236    *nto* | *qnx*)
10237      # QNX uses GNU C++, but need to define -shared option too, otherwise
10238      # it will coredump.
10239      lt_prog_compiler_pic='-fPIC -shared'
10240      ;;
10241
10242    sysv4*MP*)
10243      if test -d /usr/nec; then
10244        lt_prog_compiler_pic=-Kconform_pic
10245      fi
10246      ;;
10247
10248    *)
10249      lt_prog_compiler_pic='-fPIC'
10250      ;;
10251    esac
10252
10253    case $cc_basename in
10254    nvcc*) # Cuda Compiler Driver 2.2
10255      lt_prog_compiler_wl='-Xlinker '
10256      if test -n "$lt_prog_compiler_pic"; then
10257        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10258      fi
10259      ;;
10260    esac
10261  else
10262    # PORTME Check for flag to pass linker flags through the system compiler.
10263    case $host_os in
10264    aix*)
10265      lt_prog_compiler_wl='-Wl,'
10266      if test ia64 = "$host_cpu"; then
10267        # AIX 5 now supports IA64 processor
10268        lt_prog_compiler_static='-Bstatic'
10269      else
10270        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10271      fi
10272      ;;
10273
10274    darwin* | rhapsody*)
10275      # PIC is the default on this platform
10276      # Common symbols not allowed in MH_DYLIB files
10277      lt_prog_compiler_pic='-fno-common'
10278      case $cc_basename in
10279      nagfor*)
10280        # NAG Fortran compiler
10281        lt_prog_compiler_wl='-Wl,-Wl,,'
10282        lt_prog_compiler_pic='-PIC'
10283        lt_prog_compiler_static='-Bstatic'
10284        ;;
10285      esac
10286      ;;
10287
10288    mingw* | cygwin* | pw32* | os2* | cegcc*)
10289      # This hack is so that the source file can tell whether it is being
10290      # built for inclusion in a dll (and should export symbols for example).
10291      lt_prog_compiler_pic='-DDLL_EXPORT'
10292      case $host_os in
10293      os2*)
10294        lt_prog_compiler_static='$wl-static'
10295        ;;
10296      esac
10297      ;;
10298
10299    hpux9* | hpux10* | hpux11*)
10300      lt_prog_compiler_wl='-Wl,'
10301      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10302      # not for PA HP-UX.
10303      case $host_cpu in
10304      hppa*64*|ia64*)
10305        # +Z the default
10306        ;;
10307      *)
10308        lt_prog_compiler_pic='+Z'
10309        ;;
10310      esac
10311      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10312      lt_prog_compiler_static='$wl-a ${wl}archive'
10313      ;;
10314
10315    irix5* | irix6* | nonstopux*)
10316      lt_prog_compiler_wl='-Wl,'
10317      # PIC (with -KPIC) is the default.
10318      lt_prog_compiler_static='-non_shared'
10319      ;;
10320
10321    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10322      case $cc_basename in
10323      # old Intel for x86_64, which still supported -KPIC.
10324      ecc*)
10325        lt_prog_compiler_wl='-Wl,'
10326        lt_prog_compiler_pic='-KPIC'
10327        lt_prog_compiler_static='-static'
10328        ;;
10329      # icc used to be incompatible with GCC.
10330      # ICC 10 doesn't accept -KPIC any more.
10331      icc* | ifort*)
10332        lt_prog_compiler_wl='-Wl,'
10333        lt_prog_compiler_pic='-fPIC'
10334        lt_prog_compiler_static='-static'
10335        ;;
10336      # Lahey Fortran 8.1.
10337      lf95*)
10338        lt_prog_compiler_wl='-Wl,'
10339        lt_prog_compiler_pic='--shared'
10340        lt_prog_compiler_static='--static'
10341        ;;
10342      nagfor*)
10343        # NAG Fortran compiler
10344        lt_prog_compiler_wl='-Wl,-Wl,,'
10345        lt_prog_compiler_pic='-PIC'
10346        lt_prog_compiler_static='-Bstatic'
10347        ;;
10348      tcc*)
10349        # Fabrice Bellard et al's Tiny C Compiler
10350        lt_prog_compiler_wl='-Wl,'
10351        lt_prog_compiler_pic='-fPIC'
10352        lt_prog_compiler_static='-static'
10353        ;;
10354      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10355        # Portland Group compilers (*not* the Pentium gcc compiler,
10356        # which looks to be a dead project)
10357        lt_prog_compiler_wl='-Wl,'
10358        lt_prog_compiler_pic='-fpic'
10359        lt_prog_compiler_static='-Bstatic'
10360        ;;
10361      ccc*)
10362        lt_prog_compiler_wl='-Wl,'
10363        # All Alpha code is PIC.
10364        lt_prog_compiler_static='-non_shared'
10365        ;;
10366      xl* | bgxl* | bgf* | mpixl*)
10367        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10368        lt_prog_compiler_wl='-Wl,'
10369        lt_prog_compiler_pic='-qpic'
10370        lt_prog_compiler_static='-qstaticlink'
10371        ;;
10372      *)
10373        case `$CC -V 2>&1 | sed 5q` in
10374        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10375          # Sun Fortran 8.3 passes all unrecognized flags to the linker
10376          lt_prog_compiler_pic='-KPIC'
10377          lt_prog_compiler_static='-Bstatic'
10378          lt_prog_compiler_wl=''
10379          ;;
10380        *Sun\ F* | *Sun*Fortran*)
10381          lt_prog_compiler_pic='-KPIC'
10382          lt_prog_compiler_static='-Bstatic'
10383          lt_prog_compiler_wl='-Qoption ld '
10384          ;;
10385        *Sun\ C*)
10386          # Sun C 5.9
10387          lt_prog_compiler_pic='-KPIC'
10388          lt_prog_compiler_static='-Bstatic'
10389          lt_prog_compiler_wl='-Wl,'
10390          ;;
10391        *Intel*\ [CF]*Compiler*)
10392          lt_prog_compiler_wl='-Wl,'
10393          lt_prog_compiler_pic='-fPIC'
10394          lt_prog_compiler_static='-static'
10395          ;;
10396        *Portland\ Group*)
10397          lt_prog_compiler_wl='-Wl,'
10398          lt_prog_compiler_pic='-fpic'
10399          lt_prog_compiler_static='-Bstatic'
10400          ;;
10401        esac
10402        ;;
10403      esac
10404      ;;
10405
10406    newsos6)
10407      lt_prog_compiler_pic='-KPIC'
10408      lt_prog_compiler_static='-Bstatic'
10409      ;;
10410
10411    *nto* | *qnx*)
10412      # QNX uses GNU C++, but need to define -shared option too, otherwise
10413      # it will coredump.
10414      lt_prog_compiler_pic='-fPIC -shared'
10415      ;;
10416
10417    osf3* | osf4* | osf5*)
10418      lt_prog_compiler_wl='-Wl,'
10419      # All OSF/1 code is PIC.
10420      lt_prog_compiler_static='-non_shared'
10421      ;;
10422
10423    rdos*)
10424      lt_prog_compiler_static='-non_shared'
10425      ;;
10426
10427    solaris*)
10428      lt_prog_compiler_pic='-KPIC'
10429      lt_prog_compiler_static='-Bstatic'
10430      case $cc_basename in
10431      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10432        lt_prog_compiler_wl='-Qoption ld ';;
10433      *)
10434        lt_prog_compiler_wl='-Wl,';;
10435      esac
10436      ;;
10437
10438    sunos4*)
10439      lt_prog_compiler_wl='-Qoption ld '
10440      lt_prog_compiler_pic='-PIC'
10441      lt_prog_compiler_static='-Bstatic'
10442      ;;
10443
10444    sysv4 | sysv4.2uw2* | sysv4.3*)
10445      lt_prog_compiler_wl='-Wl,'
10446      lt_prog_compiler_pic='-KPIC'
10447      lt_prog_compiler_static='-Bstatic'
10448      ;;
10449
10450    sysv4*MP*)
10451      if test -d /usr/nec; then
10452        lt_prog_compiler_pic='-Kconform_pic'
10453        lt_prog_compiler_static='-Bstatic'
10454      fi
10455      ;;
10456
10457    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10458      lt_prog_compiler_wl='-Wl,'
10459      lt_prog_compiler_pic='-KPIC'
10460      lt_prog_compiler_static='-Bstatic'
10461      ;;
10462
10463    unicos*)
10464      lt_prog_compiler_wl='-Wl,'
10465      lt_prog_compiler_can_build_shared=no
10466      ;;
10467
10468    uts4*)
10469      lt_prog_compiler_pic='-pic'
10470      lt_prog_compiler_static='-Bstatic'
10471      ;;
10472
10473    *)
10474      lt_prog_compiler_can_build_shared=no
10475      ;;
10476    esac
10477  fi
10478
10479case $host_os in
10480  # For platforms that do not support PIC, -DPIC is meaningless:
10481  *djgpp*)
10482    lt_prog_compiler_pic=
10483    ;;
10484  *)
10485    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10486    ;;
10487esac
10488
10489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10490$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10491if ${lt_cv_prog_compiler_pic+:} false; then :
10492  $as_echo_n "(cached) " >&6
10493else
10494  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10495fi
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10497$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10498lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10499
10500#
10501# Check to make sure the PIC flag actually works.
10502#
10503if test -n "$lt_prog_compiler_pic"; then
10504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10505$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10506if ${lt_cv_prog_compiler_pic_works+:} false; then :
10507  $as_echo_n "(cached) " >&6
10508else
10509  lt_cv_prog_compiler_pic_works=no
10510   ac_outfile=conftest.$ac_objext
10511   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10512   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10513   # Insert the option either (1) after the last *FLAGS variable, or
10514   # (2) before a word containing "conftest.", or (3) at the end.
10515   # Note that $ac_compile itself does not contain backslashes and begins
10516   # with a dollar sign (not a hyphen), so the echo should work correctly.
10517   # The option is referenced via a variable to avoid confusing sed.
10518   lt_compile=`echo "$ac_compile" | $SED \
10519   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10520   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10521   -e 's:$: $lt_compiler_flag:'`
10522   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10523   (eval "$lt_compile" 2>conftest.err)
10524   ac_status=$?
10525   cat conftest.err >&5
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   if (exit $ac_status) && test -s "$ac_outfile"; then
10528     # The compiler can only warn and ignore the option if not recognized
10529     # So say no if there are warnings other than the usual output.
10530     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10531     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10532     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10533       lt_cv_prog_compiler_pic_works=yes
10534     fi
10535   fi
10536   $RM conftest*
10537
10538fi
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10540$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10541
10542if test yes = "$lt_cv_prog_compiler_pic_works"; then
10543    case $lt_prog_compiler_pic in
10544     "" | " "*) ;;
10545     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10546     esac
10547else
10548    lt_prog_compiler_pic=
10549     lt_prog_compiler_can_build_shared=no
10550fi
10551
10552fi
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564#
10565# Check to make sure the static flag actually works.
10566#
10567wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10569$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10570if ${lt_cv_prog_compiler_static_works+:} false; then :
10571  $as_echo_n "(cached) " >&6
10572else
10573  lt_cv_prog_compiler_static_works=no
10574   save_LDFLAGS=$LDFLAGS
10575   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10576   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10577   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10578     # The linker can only warn and ignore the option if not recognized
10579     # So say no if there are warnings
10580     if test -s conftest.err; then
10581       # Append any errors to the config.log.
10582       cat conftest.err 1>&5
10583       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10584       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10585       if diff conftest.exp conftest.er2 >/dev/null; then
10586         lt_cv_prog_compiler_static_works=yes
10587       fi
10588     else
10589       lt_cv_prog_compiler_static_works=yes
10590     fi
10591   fi
10592   $RM -r conftest*
10593   LDFLAGS=$save_LDFLAGS
10594
10595fi
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10597$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10598
10599if test yes = "$lt_cv_prog_compiler_static_works"; then
10600    :
10601else
10602    lt_prog_compiler_static=
10603fi
10604
10605
10606
10607
10608
10609
10610
10611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10612$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10613if ${lt_cv_prog_compiler_c_o+:} false; then :
10614  $as_echo_n "(cached) " >&6
10615else
10616  lt_cv_prog_compiler_c_o=no
10617   $RM -r conftest 2>/dev/null
10618   mkdir conftest
10619   cd conftest
10620   mkdir out
10621   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10622
10623   lt_compiler_flag="-o out/conftest2.$ac_objext"
10624   # Insert the option either (1) after the last *FLAGS variable, or
10625   # (2) before a word containing "conftest.", or (3) at the end.
10626   # Note that $ac_compile itself does not contain backslashes and begins
10627   # with a dollar sign (not a hyphen), so the echo should work correctly.
10628   lt_compile=`echo "$ac_compile" | $SED \
10629   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10630   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10631   -e 's:$: $lt_compiler_flag:'`
10632   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10633   (eval "$lt_compile" 2>out/conftest.err)
10634   ac_status=$?
10635   cat out/conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10638   then
10639     # The compiler can only warn and ignore the option if not recognized
10640     # So say no if there are warnings
10641     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10642     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10643     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10644       lt_cv_prog_compiler_c_o=yes
10645     fi
10646   fi
10647   chmod u+w . 2>&5
10648   $RM conftest*
10649   # SGI C++ compiler will create directory out/ii_files/ for
10650   # template instantiation
10651   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10652   $RM out/* && rmdir out
10653   cd ..
10654   $RM -r conftest
10655   $RM conftest*
10656
10657fi
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10659$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10660
10661
10662
10663
10664
10665
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10667$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10668if ${lt_cv_prog_compiler_c_o+:} false; then :
10669  $as_echo_n "(cached) " >&6
10670else
10671  lt_cv_prog_compiler_c_o=no
10672   $RM -r conftest 2>/dev/null
10673   mkdir conftest
10674   cd conftest
10675   mkdir out
10676   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10677
10678   lt_compiler_flag="-o out/conftest2.$ac_objext"
10679   # Insert the option either (1) after the last *FLAGS variable, or
10680   # (2) before a word containing "conftest.", or (3) at the end.
10681   # Note that $ac_compile itself does not contain backslashes and begins
10682   # with a dollar sign (not a hyphen), so the echo should work correctly.
10683   lt_compile=`echo "$ac_compile" | $SED \
10684   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10685   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10686   -e 's:$: $lt_compiler_flag:'`
10687   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10688   (eval "$lt_compile" 2>out/conftest.err)
10689   ac_status=$?
10690   cat out/conftest.err >&5
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10693   then
10694     # The compiler can only warn and ignore the option if not recognized
10695     # So say no if there are warnings
10696     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10697     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10698     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10699       lt_cv_prog_compiler_c_o=yes
10700     fi
10701   fi
10702   chmod u+w . 2>&5
10703   $RM conftest*
10704   # SGI C++ compiler will create directory out/ii_files/ for
10705   # template instantiation
10706   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10707   $RM out/* && rmdir out
10708   cd ..
10709   $RM -r conftest
10710   $RM conftest*
10711
10712fi
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10714$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10715
10716
10717
10718
10719hard_links=nottested
10720if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10721  # do not overwrite the value of need_locks provided by the user
10722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10723$as_echo_n "checking if we can lock with hard links... " >&6; }
10724  hard_links=yes
10725  $RM conftest*
10726  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10727  touch conftest.a
10728  ln conftest.a conftest.b 2>&5 || hard_links=no
10729  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10731$as_echo "$hard_links" >&6; }
10732  if test no = "$hard_links"; then
10733    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10734$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10735    need_locks=warn
10736  fi
10737else
10738  need_locks=no
10739fi
10740
10741
10742
10743
10744
10745
10746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10747$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10748
10749  runpath_var=
10750  allow_undefined_flag=
10751  always_export_symbols=no
10752  archive_cmds=
10753  archive_expsym_cmds=
10754  compiler_needs_object=no
10755  enable_shared_with_static_runtimes=no
10756  export_dynamic_flag_spec=
10757  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10758  hardcode_automatic=no
10759  hardcode_direct=no
10760  hardcode_direct_absolute=no
10761  hardcode_libdir_flag_spec=
10762  hardcode_libdir_separator=
10763  hardcode_minus_L=no
10764  hardcode_shlibpath_var=unsupported
10765  inherit_rpath=no
10766  link_all_deplibs=unknown
10767  module_cmds=
10768  module_expsym_cmds=
10769  old_archive_from_new_cmds=
10770  old_archive_from_expsyms_cmds=
10771  thread_safe_flag_spec=
10772  whole_archive_flag_spec=
10773  # include_expsyms should be a list of space-separated symbols to be *always*
10774  # included in the symbol list
10775  include_expsyms=
10776  # exclude_expsyms can be an extended regexp of symbols to exclude
10777  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10778  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10779  # as well as any symbol that contains 'd'.
10780  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10781  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10782  # platforms (ab)use it in PIC code, but their linkers get confused if
10783  # the symbol is explicitly referenced.  Since portable code cannot
10784  # rely on this symbol name, it's probably fine to never include it in
10785  # preloaded symbol tables.
10786  # Exclude shared library initialization/finalization symbols.
10787  extract_expsyms_cmds=
10788
10789  case $host_os in
10790  cygwin* | mingw* | pw32* | cegcc*)
10791    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10792    # When not using gcc, we currently assume that we are using
10793    # Microsoft Visual C++.
10794    if test yes != "$GCC"; then
10795      with_gnu_ld=no
10796    fi
10797    ;;
10798  interix*)
10799    # we just hope/assume this is gcc and not c89 (= MSVC++)
10800    with_gnu_ld=yes
10801    ;;
10802  openbsd* | bitrig*)
10803    with_gnu_ld=no
10804    ;;
10805  linux* | k*bsd*-gnu | gnu*)
10806    link_all_deplibs=no
10807    ;;
10808  esac
10809
10810  ld_shlibs=yes
10811
10812  # On some targets, GNU ld is compatible enough with the native linker
10813  # that we're better off using the native interface for both.
10814  lt_use_gnu_ld_interface=no
10815  if test yes = "$with_gnu_ld"; then
10816    case $host_os in
10817      aix*)
10818        # The AIX port of GNU ld has always aspired to compatibility
10819        # with the native linker.  However, as the warning in the GNU ld
10820        # block says, versions before 2.19.5* couldn't really create working
10821        # shared libraries, regardless of the interface used.
10822        case `$LD -v 2>&1` in
10823          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10824          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10825          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10826          *)
10827            lt_use_gnu_ld_interface=yes
10828            ;;
10829        esac
10830        ;;
10831      *)
10832        lt_use_gnu_ld_interface=yes
10833        ;;
10834    esac
10835  fi
10836
10837  if test yes = "$lt_use_gnu_ld_interface"; then
10838    # If archive_cmds runs LD, not CC, wlarc should be empty
10839    wlarc='$wl'
10840
10841    # Set some defaults for GNU ld with shared library support. These
10842    # are reset later if shared libraries are not supported. Putting them
10843    # here allows them to be overridden if necessary.
10844    runpath_var=LD_RUN_PATH
10845    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10846    export_dynamic_flag_spec='$wl--export-dynamic'
10847    # ancient GNU ld didn't support --whole-archive et. al.
10848    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10849      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10850    else
10851      whole_archive_flag_spec=
10852    fi
10853    supports_anon_versioning=no
10854    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10855      *GNU\ gold*) supports_anon_versioning=yes ;;
10856      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10857      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10858      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10859      *\ 2.11.*) ;; # other 2.11 versions
10860      *) supports_anon_versioning=yes ;;
10861    esac
10862
10863    # See if GNU ld supports shared libraries.
10864    case $host_os in
10865    aix[3-9]*)
10866      # On AIX/PPC, the GNU linker is very broken
10867      if test ia64 != "$host_cpu"; then
10868        ld_shlibs=no
10869        cat <<_LT_EOF 1>&2
10870
10871*** Warning: the GNU linker, at least up to release 2.19, is reported
10872*** to be unable to reliably create shared libraries on AIX.
10873*** Therefore, libtool is disabling shared libraries support.  If you
10874*** really care for shared libraries, you may want to install binutils
10875*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10876*** You will then need to restart the configuration process.
10877
10878_LT_EOF
10879      fi
10880      ;;
10881
10882    amigaos*)
10883      case $host_cpu in
10884      powerpc)
10885            # see comment about AmigaOS4 .so support
10886            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10887            archive_expsym_cmds=''
10888        ;;
10889      m68k)
10890            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)'
10891            hardcode_libdir_flag_spec='-L$libdir'
10892            hardcode_minus_L=yes
10893        ;;
10894      esac
10895      ;;
10896
10897    beos*)
10898      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10899        allow_undefined_flag=unsupported
10900        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10901        # support --undefined.  This deserves some investigation.  FIXME
10902        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10903      else
10904        ld_shlibs=no
10905      fi
10906      ;;
10907
10908    cygwin* | mingw* | pw32* | cegcc*)
10909      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10910      # as there is no search path for DLLs.
10911      hardcode_libdir_flag_spec='-L$libdir'
10912      export_dynamic_flag_spec='$wl--export-all-symbols'
10913      allow_undefined_flag=unsupported
10914      always_export_symbols=no
10915      enable_shared_with_static_runtimes=yes
10916      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10917      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10918
10919      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10920        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10921        # If the export-symbols file already is a .def file, use it as
10922        # is; otherwise, prepend EXPORTS...
10923        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10924          cp $export_symbols $output_objdir/$soname.def;
10925        else
10926          echo EXPORTS > $output_objdir/$soname.def;
10927          cat $export_symbols >> $output_objdir/$soname.def;
10928        fi~
10929        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10930      else
10931        ld_shlibs=no
10932      fi
10933      ;;
10934
10935    haiku*)
10936      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10937      link_all_deplibs=yes
10938      ;;
10939
10940    os2*)
10941      hardcode_libdir_flag_spec='-L$libdir'
10942      hardcode_minus_L=yes
10943      allow_undefined_flag=unsupported
10944      shrext_cmds=.dll
10945      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10946        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10947        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10948        $ECHO EXPORTS >> $output_objdir/$libname.def~
10949        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10950        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10951        emximp -o $lib $output_objdir/$libname.def'
10952      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10953        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10954        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10955        $ECHO EXPORTS >> $output_objdir/$libname.def~
10956        prefix_cmds="$SED"~
10957        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10958          prefix_cmds="$prefix_cmds -e 1d";
10959        fi~
10960        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10961        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10962        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10963        emximp -o $lib $output_objdir/$libname.def'
10964      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10965      enable_shared_with_static_runtimes=yes
10966      ;;
10967
10968    interix[3-9]*)
10969      hardcode_direct=no
10970      hardcode_shlibpath_var=no
10971      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10972      export_dynamic_flag_spec='$wl-E'
10973      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10974      # Instead, shared libraries are loaded at an image base (0x10000000 by
10975      # default) and relocated if they conflict, which is a slow very memory
10976      # consuming and fragmenting process.  To avoid this, we pick a random,
10977      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10978      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10979      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10980      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'
10981      ;;
10982
10983    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10984      tmp_diet=no
10985      if test linux-dietlibc = "$host_os"; then
10986        case $cc_basename in
10987          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10988        esac
10989      fi
10990      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10991         && test no = "$tmp_diet"
10992      then
10993        tmp_addflag=' $pic_flag'
10994        tmp_sharedflag='-shared'
10995        case $cc_basename,$host_cpu in
10996        pgcc*)                          # Portland Group C compiler
10997          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'
10998          tmp_addflag=' $pic_flag'
10999          ;;
11000        pgf77* | pgf90* | pgf95* | pgfortran*)
11001                                        # Portland Group f77 and f90 compilers
11002          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'
11003          tmp_addflag=' $pic_flag -Mnomain' ;;
11004        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11005          tmp_addflag=' -i_dynamic' ;;
11006        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11007          tmp_addflag=' -i_dynamic -nofor_main' ;;
11008        ifc* | ifort*)                  # Intel Fortran compiler
11009          tmp_addflag=' -nofor_main' ;;
11010        lf95*)                          # Lahey Fortran 8.1
11011          whole_archive_flag_spec=
11012          tmp_sharedflag='--shared' ;;
11013        nagfor*)                        # NAGFOR 5.3
11014          tmp_sharedflag='-Wl,-shared' ;;
11015        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11016          tmp_sharedflag='-qmkshrobj'
11017          tmp_addflag= ;;
11018        nvcc*)  # Cuda Compiler Driver 2.2
11019          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'
11020          compiler_needs_object=yes
11021          ;;
11022        esac
11023        case `$CC -V 2>&1 | sed 5q` in
11024        *Sun\ C*)                       # Sun C 5.9
11025          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'
11026          compiler_needs_object=yes
11027          tmp_sharedflag='-G' ;;
11028        *Sun\ F*)                       # Sun Fortran 8.3
11029          tmp_sharedflag='-G' ;;
11030        esac
11031        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11032
11033        if test yes = "$supports_anon_versioning"; then
11034          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11035            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11036            echo "local: *; };" >> $output_objdir/$libname.ver~
11037            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11038        fi
11039
11040        case $cc_basename in
11041        tcc*)
11042          export_dynamic_flag_spec='-rdynamic'
11043          ;;
11044        xlf* | bgf* | bgxlf* | mpixlf*)
11045          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11046          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11047          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11048          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11049          if test yes = "$supports_anon_versioning"; then
11050            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11051              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11052              echo "local: *; };" >> $output_objdir/$libname.ver~
11053              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11054          fi
11055          ;;
11056        esac
11057      else
11058        ld_shlibs=no
11059      fi
11060      ;;
11061
11062    netbsd* | netbsdelf*-gnu)
11063      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11064        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'<