source: trunk/configure @ 609

Last change on this file since 609 was 606, checked in by kulshres, 4 years ago

regenerate configure

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

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