source: trunk/configure @ 708

Last change on this file since 708 was 708, checked in by kulshres, 3 years ago

Merge branch 'master' of 'gitclone' into 'svn'

The following changes have been merged:

commit e2291bde44a282a133894b0db350aeb0b92a87db
Author: Mladen Banovic <mladenbanovic2705@…>
Date: Fri Jul 8 10:15:51 2016 +0200

Add methods getNumLiveVar and getNumDir in adtl.h, change counter type in FOR_I_EQ_0_LT_NUMDIR macro to size_t (instead of int). Update chunk size of BOOST pool in adouble_tl.cpp according to adouble::numDir.

commit 2ffb294465b973bfd4bf1f73d84478f8233c0d2f
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 23 12:32:14 2016 +0200

implement missing ref_eq_mult_p und ref_eq_min_p in ho_rev.c

somehow these were left out when parameters were being implemented.

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

commit 8cf0e5c1bd36f1dcf3be72cd67de631b2e1d0ee6
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 23 12:31:04 2016 +0200

make sure the result is the last locint written in trace for each operation

since we're trying to generate ascii traces in the future, we'll need this
convention that the last location is the result, and previous locations
are arguments. This has been the case for almost all operations anyway
except for a few new one's that I wrote without keeping this in mind.

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

commit 9ae0ff220f37463f2ed85cafc8a626c24e472f2f
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue Jun 21 14:16:27 2016 +0200

on some compilers newer boost interferes with AC_FUNC_MALLOC test

so do AC_FUNC_MALLOC and AC_FUNC_REALLOC as usual and check for boost
library later.

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

commit b746f620772cc8cce53e8f350adc6281279caf72
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jun 20 15:32:22 2016 +0200

make Klaus Röbenack's name UTF-8 instead of ISO-8859-1

These are the only places where we're not simple ASCII or UTF-8 already

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

commit 1171aa3961b5eb46a5d2ee64751c02a393a8a6f5
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Fri Jun 17 10:42:39 2016 +0200

correct short_ref document about include file

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

commit 2c6b2aac2ef04431ece2c6ff80e574aa2e58814b
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Fri Jun 17 10:40:34 2016 +0200

correct error message to new semantics

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

commit 506cde73451740bf0a15eff7d4abb158ee719ab0
Author: mflehmig <martin.flehmig@…>
Date: Fri Jun 17 10:14:26 2016 +0200

Fixed include of ADOL-C header.

ADOL-C header was included in old fashion (without adolc directory) for this example.

commit 2a023d3281d3d6d9824bad724a5768e3ee2fff94
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Jun 16 13:50:39 2016 +0200

Try to use boost::pool for allocating advals in traceless vector mode

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

commit 80f1e2019ac1faab96fe06f3e9da47efcc1bcd23
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon May 23 15:13:22 2016 +0200

correct a reference in doc and rebuild

commit d7ab5283afe58bacb2e8739d72ede4e17f4c8081
Author: Mladen Banovic <mladenbanovic2705@…>
Date: Fri May 20 16:42:13 2016 +0200

Update section 7 of adolc-manual related to the Traceless forward differentiation.

commit bedb8e36f959c5272e4610fe504acc83208e5e9d
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue May 17 16:09:36 2016 +0200

macro name correction

commit 92ff596a0331776901df7f172ca347572e3daafd
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Tue May 17 15:56:17 2016 +0200

Add a warning about using static build of ADOL-C

static build of ADOL-C does not call constructors
for internal global objects, thereby causing
segmentation faults.

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

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