source: trunk/configure @ 462

Last change on this file since 462 was 462, checked in by kulshres, 6 years ago

regenerate files

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

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