source: trunk/configure @ 440

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

check for libColPack in lib64 and lib

some strange systems insist on putting 64bit libraries in lib

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

File size: 607.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.4.0-trunk.
5#
6# Report bugs to <adol-c@list.coin-or.org>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63        expr "X$arg" : "X\\(.*\\)$as_nl";
64        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""        $as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139  # into an infinite loop, continuously re-executing ourselves.
140  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141    _as_can_reexec=no; export _as_can_reexec;
142    # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165  emulate sh
166  NULLCMD=:
167  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168  # is contrary to our usage.  Disable this feature.
169  alias -g '\${1+\"\$@\"}'='\"\$@\"'
170  setopt NO_GLOB_SUBST
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210test \$(( 1 + 1 )) = 2 || exit 1"
211  if (eval "$as_required") 2>/dev/null; then :
212  as_have_required=yes
213else
214  as_have_required=no
215fi
216  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218else
219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220as_found=false
221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222do
223  IFS=$as_save_IFS
224  test -z "$as_dir" && as_dir=.
225  as_found=:
226  case $as_dir in #(
227         /*)
228           for as_base in sh bash ksh sh5; do
229             # Try only shells that exist, to save several forks.
230             as_shell=$as_dir/$as_base
231             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233  CONFIG_SHELL=$as_shell as_have_required=yes
234                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235  break 2
236fi
237fi
238           done;;
239       esac
240  as_found=false
241done
242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi; }
246IFS=$as_save_IFS
247
248
249      if test "x$CONFIG_SHELL" != x; then :
250  export CONFIG_SHELL
251             # We cannot yet assume a decent shell, so we have to provide a
252# neutralization value for shells without unset; and this also
253# works around shells that cannot unset nonexistent variables.
254# Preserve -v and -x to the replacement shell.
255BASH_ENV=/dev/null
256ENV=/dev/null
257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258case $- in # ((((
259  *v*x* | *x*v* ) as_opts=-vx ;;
260  *v* ) as_opts=-v ;;
261  *x* ) as_opts=-x ;;
262  * ) as_opts= ;;
263esac
264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265# Admittedly, this is quite paranoid, since all the known shells bail
266# out after a failed `exec'.
267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268exit 255
269fi
270
271    if test x$as_have_required = xno; then :
272  $as_echo "$0: This script requires a shell more modern than all"
273  $as_echo "$0: the shells that I found on your system."
274  if test x${ZSH_VERSION+set} = xset ; then
275    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    $as_echo "$0: Please tell bug-autoconf@gnu.org and
279$0: adol-c@list.coin-or.org about your system, including
280$0: any error possibly output before this message. Then
281$0: install a modern shell, or manually run the script
282$0: under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343         X"$as_dir" : 'X\(//\)[^/]' \| \
344         X"$as_dir" : 'X\(//\)$' \| \
345         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348            s//\1/
349            q
350          }
351          /^X\(\/\/\)[^/].*/{
352            s//\1/
353            q
354          }
355          /^X\(\/\/\)$/{
356            s//\1/
357            q
358          }
359          /^X\(\/\).*/{
360            s//\1/
361            q
362          }
363          s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452         X"$0" : 'X\(//\)$' \| \
453         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456            s//\1/
457            q
458          }
459          /^X\/\(\/\/\)$/{
460            s//\1/
461            q
462          }
463          /^X\/\(\/\).*/{
464            s//\1/
465            q
466          }
467          s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T=' ';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='adolc'
593PACKAGE_TARNAME='adolc'
594PACKAGE_VERSION='2.4.0-trunk'
595PACKAGE_STRING='adolc 2.4.0-trunk'
596PACKAGE_BUGREPORT='adol-c@list.coin-or.org'
597PACKAGE_URL=''
598
599ac_unique_file="ADOL-C/src/adouble.cpp"
600ac_default_prefix=${HOME}/adolc_base
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615#  include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620#  include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640adolclib
641ac_adolc_cxxflags
642ac_adolc_cflags
643PAREXA_FALSE
644PAREXA_TRUE
645ADDEXA_FALSE
646ADDEXA_TRUE
647DOCEXA_FALSE
648DOCEXA_TRUE
649COLPACK_LIBS
650COLPACK_CFLAGS
651SPARSE_FALSE
652SPARSE_TRUE
653HAVE_LIBCOLPACK_FALSE
654HAVE_LIBCOLPACK_TRUE
655ADVBRANCH
656REAL_TYPE
657UINT_TYPE
658ATRIG_ERF
659ADOLC_PATCHLEVEL
660ADOLC_SUBVERSION
661ADOLC_VERSION
662ac_aux_dir
663LIBOBJS
664_lib
665CXXCPP
666OTOOL64
667OTOOL
668LIPO
669NMEDIT
670DSYMUTIL
671MANIFEST_TOOL
672RANLIB
673ac_ct_AR
674AR
675NM
676ac_ct_DUMPBIN
677DUMPBIN
678LD
679FGREP
680EGREP
681GREP
682SED
683LIBTOOL
684OBJDUMP
685DLLTOOL
686AS
687host_os
688host_vendor
689host_cpu
690host
691build_os
692build_vendor
693build_cpu
694build
695LN_S
696CPP
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700ac_ct_CC
701CFLAGS
702CC
703am__fastdepCXX_FALSE
704am__fastdepCXX_TRUE
705CXXDEPMODE
706am__nodep
707AMDEPBACKSLASH
708AMDEP_FALSE
709AMDEP_TRUE
710am__quote
711am__include
712DEPDIR
713OBJEXT
714EXEEXT
715ac_ct_CXX
716CPPFLAGS
717LDFLAGS
718CXXFLAGS
719CXX
720BUILD_ADOLC_AMPI_SUPPORT_FALSE
721BUILD_ADOLC_AMPI_SUPPORT_TRUE
722AM_BACKSLASH
723AM_DEFAULT_VERBOSITY
724AM_DEFAULT_V
725AM_V
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731AWK
732mkdir_p
733MKDIR_P
734INSTALL_STRIP_PROGRAM
735STRIP
736install_sh
737MAKEINFO
738AUTOHEADER
739AUTOMAKE
740AUTOCONF
741ACLOCAL
742VERSION
743PACKAGE
744CYGPATH_W
745am__isrc
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL'
787ac_subst_files=''
788ac_user_opts='
789enable_option_checking
790enable_silent_rules
791enable_ampi
792with_mpi_root
793with_mpicc
794with_mpicxx
795enable_dependency_tracking
796enable_shared
797enable_static
798with_pic
799enable_fast_install
800with_gnu_ld
801with_sysroot
802enable_libtool_lock
803enable_use_calloc
804enable_atrig_erf
805enable_ulong
806enable_double
807enable_advanced_branching
808enable_debug
809enable_harddebug
810enable_stdczero
811enable_lateinit
812enable_tserrno
813with_openmp_flag
814enable_sparse
815with_colpack
816enable_docexa
817enable_addexa
818enable_parexa
819with_cflags
820with_cxxflags
821with_ampi
822enable_tapedoc_values
823'
824      ac_precious_vars='build_alias
825host_alias
826target_alias
827CXX
828CXXFLAGS
829LDFLAGS
830LIBS
831CPPFLAGS
832CCC
833CC
834CFLAGS
835CPP
836CXXCPP'
837
838
839# Initialize some variables set by options.
840ac_init_help=
841ac_init_version=false
842ac_unrecognized_opts=
843ac_unrecognized_sep=
844# The variables have the same names as the options, with
845# dashes changed to underlines.
846cache_file=/dev/null
847exec_prefix=NONE
848no_create=
849no_recursion=
850prefix=NONE
851program_prefix=NONE
852program_suffix=NONE
853program_transform_name=s,x,x,
854silent=
855site=
856srcdir=
857verbose=
858x_includes=NONE
859x_libraries=NONE
860
861# Installation directory options.
862# These are left unexpanded so users can "make install exec_prefix=/foo"
863# and all the variables that are supposed to be based on exec_prefix
864# by default will actually change.
865# Use braces instead of parens because sh, perl, etc. also accept them.
866# (The list follows the same order as the GNU Coding Standards.)
867bindir='${exec_prefix}/bin'
868sbindir='${exec_prefix}/sbin'
869libexecdir='${exec_prefix}/libexec'
870datarootdir='${prefix}/share'
871datadir='${datarootdir}'
872sysconfdir='${prefix}/etc'
873sharedstatedir='${prefix}/com'
874localstatedir='${prefix}/var'
875includedir='${prefix}/include'
876oldincludedir='/usr/include'
877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878infodir='${datarootdir}/info'
879htmldir='${docdir}'
880dvidir='${docdir}'
881pdfdir='${docdir}'
882psdir='${docdir}'
883libdir='${exec_prefix}/lib'
884localedir='${datarootdir}/locale'
885mandir='${datarootdir}/man'
886
887ac_prev=
888ac_dashdash=
889for ac_option
890do
891  # If the previous option needs an argument, assign it.
892  if test -n "$ac_prev"; then
893    eval $ac_prev=\$ac_option
894    ac_prev=
895    continue
896  fi
897
898  case $ac_option in
899  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900  *=)   ac_optarg= ;;
901  *)    ac_optarg=yes ;;
902  esac
903
904  # Accept the important Cygnus configure options, so we can diagnose typos.
905
906  case $ac_dashdash$ac_option in
907  --)
908    ac_dashdash=yes ;;
909
910  -bindir | --bindir | --bindi | --bind | --bin | --bi)
911    ac_prev=bindir ;;
912  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913    bindir=$ac_optarg ;;
914
915  -build | --build | --buil | --bui | --bu)
916    ac_prev=build_alias ;;
917  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918    build_alias=$ac_optarg ;;
919
920  -cache-file | --cache-file | --cache-fil | --cache-fi \
921  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922    ac_prev=cache_file ;;
923  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925    cache_file=$ac_optarg ;;
926
927  --config-cache | -C)
928    cache_file=config.cache ;;
929
930  -datadir | --datadir | --datadi | --datad)
931    ac_prev=datadir ;;
932  -datadir=* | --datadir=* | --datadi=* | --datad=*)
933    datadir=$ac_optarg ;;
934
935  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936  | --dataroo | --dataro | --datar)
937    ac_prev=datarootdir ;;
938  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940    datarootdir=$ac_optarg ;;
941
942  -disable-* | --disable-*)
943    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944    # Reject names that are not valid shell variable names.
945    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946      as_fn_error $? "invalid feature name: $ac_useropt"
947    ac_useropt_orig=$ac_useropt
948    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949    case $ac_user_opts in
950      *"
951"enable_$ac_useropt"
952"*) ;;
953      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954         ac_unrecognized_sep=', ';;
955    esac
956    eval enable_$ac_useropt=no ;;
957
958  -docdir | --docdir | --docdi | --doc | --do)
959    ac_prev=docdir ;;
960  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961    docdir=$ac_optarg ;;
962
963  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964    ac_prev=dvidir ;;
965  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966    dvidir=$ac_optarg ;;
967
968  -enable-* | --enable-*)
969    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970    # Reject names that are not valid shell variable names.
971    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972      as_fn_error $? "invalid feature name: $ac_useropt"
973    ac_useropt_orig=$ac_useropt
974    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975    case $ac_user_opts in
976      *"
977"enable_$ac_useropt"
978"*) ;;
979      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980         ac_unrecognized_sep=', ';;
981    esac
982    eval enable_$ac_useropt=\$ac_optarg ;;
983
984  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986  | --exec | --exe | --ex)
987    ac_prev=exec_prefix ;;
988  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990  | --exec=* | --exe=* | --ex=*)
991    exec_prefix=$ac_optarg ;;
992
993  -gas | --gas | --ga | --g)
994    # Obsolete; use --with-gas.
995    with_gas=yes ;;
996
997  -help | --help | --hel | --he | -h)
998    ac_init_help=long ;;
999  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000    ac_init_help=recursive ;;
1001  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002    ac_init_help=short ;;
1003
1004  -host | --host | --hos | --ho)
1005    ac_prev=host_alias ;;
1006  -host=* | --host=* | --hos=* | --ho=*)
1007    host_alias=$ac_optarg ;;
1008
1009  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010    ac_prev=htmldir ;;
1011  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012  | --ht=*)
1013    htmldir=$ac_optarg ;;
1014
1015  -includedir | --includedir | --includedi | --included | --include \
1016  | --includ | --inclu | --incl | --inc)
1017    ac_prev=includedir ;;
1018  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019  | --includ=* | --inclu=* | --incl=* | --inc=*)
1020    includedir=$ac_optarg ;;
1021
1022  -infodir | --infodir | --infodi | --infod | --info | --inf)
1023    ac_prev=infodir ;;
1024  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025    infodir=$ac_optarg ;;
1026
1027  -libdir | --libdir | --libdi | --libd)
1028    ac_prev=libdir ;;
1029  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030    libdir=$ac_optarg ;;
1031
1032  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033  | --libexe | --libex | --libe)
1034    ac_prev=libexecdir ;;
1035  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036  | --libexe=* | --libex=* | --libe=*)
1037    libexecdir=$ac_optarg ;;
1038
1039  -localedir | --localedir | --localedi | --localed | --locale)
1040    ac_prev=localedir ;;
1041  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042    localedir=$ac_optarg ;;
1043
1044  -localstatedir | --localstatedir | --localstatedi | --localstated \
1045  | --localstate | --localstat | --localsta | --localst | --locals)
1046    ac_prev=localstatedir ;;
1047  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049    localstatedir=$ac_optarg ;;
1050
1051  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052    ac_prev=mandir ;;
1053  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054    mandir=$ac_optarg ;;
1055
1056  -nfp | --nfp | --nf)
1057    # Obsolete; use --without-fp.
1058    with_fp=no ;;
1059
1060  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061  | --no-cr | --no-c | -n)
1062    no_create=yes ;;
1063
1064  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066    no_recursion=yes ;;
1067
1068  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070  | --oldin | --oldi | --old | --ol | --o)
1071    ac_prev=oldincludedir ;;
1072  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075    oldincludedir=$ac_optarg ;;
1076
1077  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078    ac_prev=prefix ;;
1079  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080    prefix=$ac_optarg ;;
1081
1082  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083  | --program-pre | --program-pr | --program-p)
1084    ac_prev=program_prefix ;;
1085  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087    program_prefix=$ac_optarg ;;
1088
1089  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090  | --program-suf | --program-su | --program-s)
1091    ac_prev=program_suffix ;;
1092  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094    program_suffix=$ac_optarg ;;
1095
1096  -program-transform-name | --program-transform-name \
1097  | --program-transform-nam | --program-transform-na \
1098  | --program-transform-n | --program-transform- \
1099  | --program-transform | --program-transfor \
1100  | --program-transfo | --program-transf \
1101  | --program-trans | --program-tran \
1102  | --progr-tra | --program-tr | --program-t)
1103    ac_prev=program_transform_name ;;
1104  -program-transform-name=* | --program-transform-name=* \
1105  | --program-transform-nam=* | --program-transform-na=* \
1106  | --program-transform-n=* | --program-transform-=* \
1107  | --program-transform=* | --program-transfor=* \
1108  | --program-transfo=* | --program-transf=* \
1109  | --program-trans=* | --program-tran=* \
1110  | --progr-tra=* | --program-tr=* | --program-t=*)
1111    program_transform_name=$ac_optarg ;;
1112
1113  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114    ac_prev=pdfdir ;;
1115  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116    pdfdir=$ac_optarg ;;
1117
1118  -psdir | --psdir | --psdi | --psd | --ps)
1119    ac_prev=psdir ;;
1120  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121    psdir=$ac_optarg ;;
1122
1123  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124  | -silent | --silent | --silen | --sile | --sil)
1125    silent=yes ;;
1126
1127  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128    ac_prev=sbindir ;;
1129  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130  | --sbi=* | --sb=*)
1131    sbindir=$ac_optarg ;;
1132
1133  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135  | --sharedst | --shareds | --shared | --share | --shar \
1136  | --sha | --sh)
1137    ac_prev=sharedstatedir ;;
1138  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141  | --sha=* | --sh=*)
1142    sharedstatedir=$ac_optarg ;;
1143
1144  -site | --site | --sit)
1145    ac_prev=site ;;
1146  -site=* | --site=* | --sit=*)
1147    site=$ac_optarg ;;
1148
1149  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150    ac_prev=srcdir ;;
1151  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152    srcdir=$ac_optarg ;;
1153
1154  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155  | --syscon | --sysco | --sysc | --sys | --sy)
1156    ac_prev=sysconfdir ;;
1157  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159    sysconfdir=$ac_optarg ;;
1160
1161  -target | --target | --targe | --targ | --tar | --ta | --t)
1162    ac_prev=target_alias ;;
1163  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164    target_alias=$ac_optarg ;;
1165
1166  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167    verbose=yes ;;
1168
1169  -version | --version | --versio | --versi | --vers | -V)
1170    ac_init_version=: ;;
1171
1172  -with-* | --with-*)
1173    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174    # Reject names that are not valid shell variable names.
1175    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176      as_fn_error $? "invalid package name: $ac_useropt"
1177    ac_useropt_orig=$ac_useropt
1178    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179    case $ac_user_opts in
1180      *"
1181"with_$ac_useropt"
1182"*) ;;
1183      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184         ac_unrecognized_sep=', ';;
1185    esac
1186    eval with_$ac_useropt=\$ac_optarg ;;
1187
1188  -without-* | --without-*)
1189    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190    # Reject names that are not valid shell variable names.
1191    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192      as_fn_error $? "invalid package name: $ac_useropt"
1193    ac_useropt_orig=$ac_useropt
1194    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195    case $ac_user_opts in
1196      *"
1197"with_$ac_useropt"
1198"*) ;;
1199      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200         ac_unrecognized_sep=', ';;
1201    esac
1202    eval with_$ac_useropt=no ;;
1203
1204  --x)
1205    # Obsolete; use --with-x.
1206    with_x=yes ;;
1207
1208  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209  | --x-incl | --x-inc | --x-in | --x-i)
1210    ac_prev=x_includes ;;
1211  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213    x_includes=$ac_optarg ;;
1214
1215  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217    ac_prev=x_libraries ;;
1218  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220    x_libraries=$ac_optarg ;;
1221
1222  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223Try \`$0 --help' for more information"
1224    ;;
1225
1226  *=*)
1227    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228    # Reject names that are not valid shell variable names.
1229    case $ac_envvar in #(
1230      '' | [0-9]* | *[!_$as_cr_alnum]* )
1231      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232    esac
1233    eval $ac_envvar=\$ac_optarg
1234    export $ac_envvar ;;
1235
1236  *)
1237    # FIXME: should be removed in autoconf 3.0.
1238    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242    ;;
1243
1244  esac
1245done
1246
1247if test -n "$ac_prev"; then
1248  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249  as_fn_error $? "missing argument to $ac_option"
1250fi
1251
1252if test -n "$ac_unrecognized_opts"; then
1253  case $enable_option_checking in
1254    no) ;;
1255    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257  esac
1258fi
1259
1260# Check all directory arguments for consistency.
1261for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262                datadir sysconfdir sharedstatedir localstatedir includedir \
1263                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264                libdir localedir mandir
1265do
1266  eval ac_val=\$$ac_var
1267  # Remove trailing slashes.
1268  case $ac_val in
1269    */ )
1270      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271      eval $ac_var=\$ac_val;;
1272  esac
1273  # Be sure to have absolute directory names.
1274  case $ac_val in
1275    [\\/$]* | ?:[\\/]* )  continue;;
1276    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277  esac
1278  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279done
1280
1281# There might be people who depend on the old broken behavior: `$host'
1282# used to hold the argument of --host etc.
1283# FIXME: To remove some day.
1284build=$build_alias
1285host=$host_alias
1286target=$target_alias
1287
1288# FIXME: To remove some day.
1289if test "x$host_alias" != x; then
1290  if test "x$build_alias" = x; then
1291    cross_compiling=maybe
1292  elif test "x$build_alias" != "x$host_alias"; then
1293    cross_compiling=yes
1294  fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
1301
1302
1303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306  as_fn_error $? "working directory cannot be determined"
1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308  as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313  ac_srcdir_defaulted=yes
1314  # Try the directory containing this script, then the parent directory.
1315  ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317         X"$as_myself" : 'X\(//\)[^/]' \| \
1318         X"$as_myself" : 'X\(//\)$' \| \
1319         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320$as_echo X"$as_myself" |
1321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322            s//\1/
1323            q
1324          }
1325          /^X\(\/\/\)[^/].*/{
1326            s//\1/
1327            q
1328          }
1329          /^X\(\/\/\)$/{
1330            s//\1/
1331            q
1332          }
1333          /^X\(\/\).*/{
1334            s//\1/
1335            q
1336          }
1337          s/.*/./; q'`
1338  srcdir=$ac_confdir
1339  if test ! -r "$srcdir/$ac_unique_file"; then
1340    srcdir=..
1341  fi
1342else
1343  ac_srcdir_defaulted=no
1344fi
1345if test ! -r "$srcdir/$ac_unique_file"; then
1346  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352        pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355  srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
1363for ac_var in $ac_precious_vars; do
1364  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365  eval ac_env_${ac_var}_value=\$${ac_var}
1366  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
1369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374  # Omit some internal or obsolete options to make the list less imposing.
1375  # This message is too long to be a string in the A/UX 3.1 sh.
1376  cat <<_ACEOF
1377\`configure' configures adolc 2.4.0-trunk to adapt to many kinds of systems.
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE.  See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387  -h, --help              display this help and exit
1388      --help=short        display options specific to this package
1389      --help=recursive    display the short help of all the included packages
1390  -V, --version           display version information and exit
1391  -q, --quiet, --silent   do not print \`checking ...' messages
1392      --cache-file=FILE   cache test results in FILE [disabled]
1393  -C, --config-cache      alias for \`--cache-file=config.cache'
1394  -n, --no-create         do not create output files
1395      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1396
1397Installation directories:
1398  --prefix=PREFIX         install architecture-independent files in PREFIX
1399                          [$ac_default_prefix]
1400  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1401                          [PREFIX]
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
1411  --bindir=DIR            user executables [EPREFIX/bin]
1412  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1413  --libexecdir=DIR        program executables [EPREFIX/libexec]
1414  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1415  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1416  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1417  --libdir=DIR            object code libraries [EPREFIX/lib]
1418  --includedir=DIR        C header files [PREFIX/include]
1419  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1420  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1421  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1422  --infodir=DIR           info documentation [DATAROOTDIR/info]
1423  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1424  --mandir=DIR            man documentation [DATAROOTDIR/man]
1425  --docdir=DIR            documentation root [DATAROOTDIR/doc/adolc]
1426  --htmldir=DIR           html documentation [DOCDIR]
1427  --dvidir=DIR            dvi documentation [DOCDIR]
1428  --pdfdir=DIR            pdf documentation [DOCDIR]
1429  --psdir=DIR             ps documentation [DOCDIR]
1430_ACEOF
1431
1432  cat <<\_ACEOF
1433
1434Program names:
1435  --program-prefix=PREFIX            prepend PREFIX to installed program names
1436  --program-suffix=SUFFIX            append SUFFIX to installed program names
1437  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1438
1439System types:
1440  --build=BUILD     configure for building on BUILD [guessed]
1441  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442_ACEOF
1443fi
1444
1445if test -n "$ac_init_help"; then
1446  case $ac_init_help in
1447     short | recursive ) echo "Configuration of adolc 2.4.0-trunk:";;
1448   esac
1449  cat <<\_ACEOF
1450
1451Optional Features:
1452  --disable-option-checking  ignore unrecognized --enable/--with options
1453  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455  --enable-silent-rules   less verbose build output (undo: "make V=1")
1456  --disable-silent-rules  verbose build output (undo: "make V=0")
1457  --enable-ampi           build ADOL-C with adjoinable MPI (AMPI) support
1458                          [default=disabled]
1459  --enable-dependency-tracking
1460                          do not reject slow dependency extractors
1461  --disable-dependency-tracking
1462                          speeds up one-time build
1463  --enable-shared[=PKGS]  build shared libraries [default=yes]
1464  --enable-static[=PKGS]  build static libraries [default=yes]
1465  --enable-fast-install[=PKGS]
1466                          optimize for fast installation [default=yes]
1467  --disable-libtool-lock  avoid locking (might break parallel builds)
1468  --disable-use-calloc    disable use of calloc and use malloc instead for
1469                          memory allocation [default=calloc is used]
1470  --enable-atrig-erf      enable atrig and erf functions in ADOL-C
1471                          [default=no]
1472  --enable-ulong          enable 64-bit locations (only available on 64-bit
1473                          systems) [default=32-bit]
1474  --disable-double        disable double precision arithmetic [untested,
1475                          default=double is enabled]
1476  --enable-advanced-branching
1477                          enable advanced branching operations to reduce
1478                          retaping [default=no]. The boolean valued comparison
1479                          operators with two adouble arguments will not return
1480                          boolean results but the active results may be used
1481                          to automatically switch branches in conjunction with
1482                          condassign or advector (see manual).
1483
1484  --enable-debug          enable ADOL-C debug mode [default=no]
1485
1486  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1487
1488  --disable-stdczero      adouble default constructor does not initialze the
1489                          value to zero (improves performance but yields
1490                          incorrect results for implicit array
1491                          initializations, see manual) [default=enabled]
1492
1493  --enable-lateinit       adouble constructors need to be called. With malloc
1494                          or realloc that is not the case. With this option
1495                          the adouble can do an late initialization.)
1496                          [default=disabled]
1497
1498  --enable-tserrno        use errno as thread number cache [default=no]
1499
1500  --enable-sparse         build sparse drivers [default=disabled]
1501
1502  --enable-docexa         build documented examples [default=disabled]
1503  --enable-addexa         build additional examples [default=disabled]
1504  --enable-parexa         build parallel example [default=disabled], if
1505                          enabled -with-openmp-flag=FLAG required
1506
1507                  --disable-tapedoc-values
1508                          should the tape_doc routine compute the values as it
1509                          interprets and prints the tape contents
1510                          [default=enabled]
1511
1512Optional Packages:
1513  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1514  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1515  --with-mpi-root=MPIROOT absolute path to the MPI root directory
1516  --with-mpicc=MPICC      name of the MPI C++ compiler to use (default mpicc)
1517  --with-mpicxx=MPICXX    name of the MPI C++ compiler to use (default mpicxx)
1518  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1519                          both]
1520  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1521  --with-sysroot=DIR Search for dependent libraries within DIR
1522                        (or the compiler's sysroot if not specified).
1523  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1524                          [default=none]
1525
1526  --with-colpack=DIR      path to the colpack library and headers
1527                          [default=system libraries]
1528  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O2)
1529  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
1530  --with-ampi=AMPI_DIR    full path to the installation of adjoinable MPI
1531                          (AMPI)
1532
1533Some influential environment variables:
1534  CXX         C++ compiler command
1535  CXXFLAGS    C++ compiler flags
1536  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1537              nonstandard directory <lib dir>
1538  LIBS        libraries to pass to the linker, e.g. -l<library>
1539  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540              you have headers in a nonstandard directory <include dir>
1541  CC          C compiler command
1542  CFLAGS      C compiler flags
1543  CPP         C preprocessor
1544  CXXCPP      C++ preprocessor
1545
1546Use these variables to override the choices made by `configure' or to help
1547it to find libraries and programs with nonstandard names/locations.
1548
1549Report bugs to <adol-c@list.coin-or.org>.
1550_ACEOF
1551ac_status=$?
1552fi
1553
1554if test "$ac_init_help" = "recursive"; then
1555  # If there are subdirs, report their specific --help.
1556  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557    test -d "$ac_dir" ||
1558      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559      continue
1560    ac_builddir=.
1561
1562case "$ac_dir" in
1563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564*)
1565  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566  # A ".." for each directory in $ac_dir_suffix.
1567  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568  case $ac_top_builddir_sub in
1569  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571  esac ;;
1572esac
1573ac_abs_top_builddir=$ac_pwd
1574ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575# for backward compatibility:
1576ac_top_builddir=$ac_top_build_prefix
1577
1578case $srcdir in
1579  .)  # We are building in place.
1580    ac_srcdir=.
1581    ac_top_srcdir=$ac_top_builddir_sub
1582    ac_abs_top_srcdir=$ac_pwd ;;
1583  [\\/]* | ?:[\\/]* )  # Absolute name.
1584    ac_srcdir=$srcdir$ac_dir_suffix;
1585    ac_top_srcdir=$srcdir
1586    ac_abs_top_srcdir=$srcdir ;;
1587  *) # Relative name.
1588    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589    ac_top_srcdir=$ac_top_build_prefix$srcdir
1590    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591esac
1592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594    cd "$ac_dir" || { ac_status=$?; continue; }
1595    # Check for guested configure.
1596    if test -f "$ac_srcdir/configure.gnu"; then
1597      echo &&
1598      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599    elif test -f "$ac_srcdir/configure"; then
1600      echo &&
1601      $SHELL "$ac_srcdir/configure" --help=recursive
1602    else
1603      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604    fi || ac_status=$?
1605    cd "$ac_pwd" || { ac_status=$?; break; }
1606  done
1607fi
1608
1609test -n "$ac_init_help" && exit $ac_status
1610if $ac_init_version; then
1611  cat <<\_ACEOF
1612adolc configure 2.4.0-trunk
1613generated by GNU Autoconf 2.69
1614
1615Copyright (C) 2012 Free Software Foundation, Inc.
1616This configure script is free software; the Free Software Foundation
1617gives unlimited permission to copy, distribute and modify it.
1618_ACEOF
1619  exit
1620fi
1621
1622## ------------------------ ##
1623## Autoconf initialization. ##
1624## ------------------------ ##
1625
1626# ac_fn_cxx_try_compile LINENO
1627# ----------------------------
1628# Try to compile conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_cxx_try_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  rm -f conftest.$ac_objext
1633  if { { ac_try="$ac_compile"
1634case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640  (eval "$ac_compile") 2>conftest.err
1641  ac_status=$?
1642  if test -s conftest.err; then
1643    grep -v '^ *+' conftest.err >conftest.er1
1644    cat conftest.er1 >&5
1645    mv -f conftest.er1 conftest.err
1646  fi
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } && {
1649         test -z "$ac_cxx_werror_flag" ||
1650         test ! -s conftest.err
1651       } && test -s conftest.$ac_objext; then :
1652  ac_retval=0
1653else
1654  $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657        ac_retval=1
1658fi
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_cxx_try_compile
1663
1664# ac_fn_c_try_compile LINENO
1665# --------------------------
1666# Try to compile conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_compile ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  rm -f conftest.$ac_objext
1671  if { { ac_try="$ac_compile"
1672case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_compile") 2>conftest.err
1679  ac_status=$?
1680  if test -s conftest.err; then
1681    grep -v '^ *+' conftest.err >conftest.er1
1682    cat conftest.er1 >&5
1683    mv -f conftest.er1 conftest.err
1684  fi
1685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; } && {
1687         test -z "$ac_c_werror_flag" ||
1688         test ! -s conftest.err
1689       } && test -s conftest.$ac_objext; then :
1690  ac_retval=0
1691else
1692  $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695        ac_retval=1
1696fi
1697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698  as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_compile
1701
1702# ac_fn_c_try_cpp LINENO
1703# ----------------------
1704# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_c_try_cpp ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  if { { ac_try="$ac_cpp conftest.$ac_ext"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716  ac_status=$?
1717  if test -s conftest.err; then
1718    grep -v '^ *+' conftest.err >conftest.er1
1719    cat conftest.er1 >&5
1720    mv -f conftest.er1 conftest.err
1721  fi
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; } > conftest.i && {
1724         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725         test ! -s conftest.err
1726       }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732    ac_retval=1
1733fi
1734  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735  as_fn_set_status $ac_retval
1736
1737} # ac_fn_c_try_cpp
1738
1739# ac_fn_c_try_link LINENO
1740# -----------------------
1741# Try to link conftest.$ac_ext, and return whether this succeeded.
1742ac_fn_c_try_link ()
1743{
1744  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745  rm -f conftest.$ac_objext conftest$ac_exeext
1746  if { { ac_try="$ac_link"
1747case "(($ac_try" in
1748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749  *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753  (eval "$ac_link") 2>conftest.err
1754  ac_status=$?
1755  if test -s conftest.err; then
1756    grep -v '^ *+' conftest.err >conftest.er1
1757    cat conftest.er1 >&5
1758    mv -f conftest.er1 conftest.err
1759  fi
1760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; } && {
1762         test -z "$ac_c_werror_flag" ||
1763         test ! -s conftest.err
1764       } && test -s conftest$ac_exeext && {
1765         test "$cross_compiling" = yes ||
1766         test -x conftest$ac_exeext
1767       }; then :
1768  ac_retval=0
1769else
1770  $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773        ac_retval=1
1774fi
1775  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1776  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1777  # interfere with the next link command; also delete a directory that is
1778  # left behind by Apple's compiler.  We do this before executing the actions.
1779  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781  as_fn_set_status $ac_retval
1782
1783} # ac_fn_c_try_link
1784
1785# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786# -------------------------------------------------------
1787# Tests whether HEADER exists and can be compiled using the include files in
1788# INCLUDES, setting the cache variable VAR accordingly.
1789ac_fn_c_check_header_compile ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if eval \${$3+:} false; then :
1795  $as_echo_n "(cached) " >&6
1796else
1797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h.  */
1799$4
1800#include <$2>
1801_ACEOF
1802if ac_fn_c_try_compile "$LINENO"; then :
1803  eval "$3=yes"
1804else
1805  eval "$3=no"
1806fi
1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808fi
1809eval ac_res=\$$3
1810               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811$as_echo "$ac_res" >&6; }
1812  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814} # ac_fn_c_check_header_compile
1815
1816# ac_fn_c_try_run LINENO
1817# ----------------------
1818# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819# that executables *can* be run.
1820ac_fn_c_try_run ()
1821{
1822  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823  if { { ac_try="$ac_link"
1824case "(($ac_try" in
1825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826  *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
1830  (eval "$ac_link") 2>&5
1831  ac_status=$?
1832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834  { { case "(($ac_try" in
1835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836  *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840  (eval "$ac_try") 2>&5
1841  ac_status=$?
1842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843  test $ac_status = 0; }; }; then :
1844  ac_retval=0
1845else
1846  $as_echo "$as_me: program exited with status $ac_status" >&5
1847       $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850       ac_retval=$ac_status
1851fi
1852  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854  as_fn_set_status $ac_retval
1855
1856} # ac_fn_c_try_run
1857
1858# ac_fn_c_check_func LINENO FUNC VAR
1859# ----------------------------------
1860# Tests whether FUNC exists, setting the cache variable VAR accordingly
1861ac_fn_c_check_func ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval \${$3+:} false; then :
1867  $as_echo_n "(cached) " >&6
1868else
1869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h.  */
1871/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1873#define $2 innocuous_$2
1874
1875/* System header to define __stub macros and hopefully few prototypes,
1876    which can conflict with char $2 (); below.
1877    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878    <limits.h> exists even on freestanding compilers.  */
1879
1880#ifdef __STDC__
1881# include <limits.h>
1882#else
1883# include <assert.h>
1884#endif
1885
1886#undef $2
1887
1888/* Override any GCC internal prototype to avoid an error.
1889   Use char because int might match the return type of a GCC
1890   builtin and then its argument prototype would still apply.  */
1891#ifdef __cplusplus
1892extern "C"
1893#endif
1894char $2 ();
1895/* The GNU C library defines this for functions which it implements
1896    to always fail with ENOSYS.  Some functions are actually named
1897    something starting with __ and the normal name is an alias.  */
1898#if defined __stub_$2 || defined __stub___$2
1899choke me
1900#endif
1901
1902int
1903main ()
1904{
1905return $2 ();
1906  ;
1907  return 0;
1908}
1909_ACEOF
1910if ac_fn_c_try_link "$LINENO"; then :
1911  eval "$3=yes"
1912else
1913  eval "$3=no"
1914fi
1915rm -f core conftest.err conftest.$ac_objext \
1916    conftest$ac_exeext conftest.$ac_ext
1917fi
1918eval ac_res=\$$3
1919               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
1921  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923} # ac_fn_c_check_func
1924
1925# ac_fn_cxx_try_cpp LINENO
1926# ------------------------
1927# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1928ac_fn_cxx_try_cpp ()
1929{
1930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931  if { { ac_try="$ac_cpp conftest.$ac_ext"
1932case "(($ac_try" in
1933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934  *) ac_try_echo=$ac_try;;
1935esac
1936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937$as_echo "$ac_try_echo"; } >&5
1938  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1939  ac_status=$?
1940  if test -s conftest.err; then
1941    grep -v '^ *+' conftest.err >conftest.er1
1942    cat conftest.er1 >&5
1943    mv -f conftest.er1 conftest.err
1944  fi
1945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946  test $ac_status = 0; } > conftest.i && {
1947         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1948         test ! -s conftest.err
1949       }; then :
1950  ac_retval=0
1951else
1952  $as_echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955    ac_retval=1
1956fi
1957  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958  as_fn_set_status $ac_retval
1959
1960} # ac_fn_cxx_try_cpp
1961
1962# ac_fn_cxx_try_link LINENO
1963# -------------------------
1964# Try to link conftest.$ac_ext, and return whether this succeeded.
1965ac_fn_cxx_try_link ()
1966{
1967  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968  rm -f conftest.$ac_objext conftest$ac_exeext
1969  if { { ac_try="$ac_link"
1970case "(($ac_try" in
1971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972  *) ac_try_echo=$ac_try;;
1973esac
1974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975$as_echo "$ac_try_echo"; } >&5
1976  (eval "$ac_link") 2>conftest.err
1977  ac_status=$?
1978  if test -s conftest.err; then
1979    grep -v '^ *+' conftest.err >conftest.er1
1980    cat conftest.er1 >&5
1981    mv -f conftest.er1 conftest.err
1982  fi
1983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984  test $ac_status = 0; } && {
1985         test -z "$ac_cxx_werror_flag" ||
1986         test ! -s conftest.err
1987       } && test -s conftest$ac_exeext && {
1988         test "$cross_compiling" = yes ||
1989         test -x conftest$ac_exeext
1990       }; then :
1991  ac_retval=0
1992else
1993  $as_echo "$as_me: failed program was:" >&5
1994sed 's/^/| /' conftest.$ac_ext >&5
1995
1996        ac_retval=1
1997fi
1998  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1999  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2000  # interfere with the next link command; also delete a directory that is
2001  # left behind by Apple's compiler.  We do this before executing the actions.
2002  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004  as_fn_set_status $ac_retval
2005
2006} # ac_fn_cxx_try_link
2007
2008# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2009# --------------------------------------------
2010# Tries to find the compile-time value of EXPR in a program that includes
2011# INCLUDES, setting VAR accordingly. Returns whether the value could be
2012# computed
2013ac_fn_c_compute_int ()
2014{
2015  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016  if test "$cross_compiling" = yes; then
2017    # Depending upon the size, compute the lo and hi bounds.
2018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h.  */
2020$4
2021int
2022main ()
2023{
2024static int test_array [1 - 2 * !(($2) >= 0)];
2025test_array [0] = 0;
2026return test_array [0];
2027
2028  ;
2029  return 0;
2030}
2031_ACEOF
2032if ac_fn_c_try_compile "$LINENO"; then :
2033  ac_lo=0 ac_mid=0
2034  while :; do
2035    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h.  */
2037$4
2038int
2039main ()
2040{
2041static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2042test_array [0] = 0;
2043return test_array [0];
2044
2045  ;
2046  return 0;
2047}
2048_ACEOF
2049if ac_fn_c_try_compile "$LINENO"; then :
2050  ac_hi=$ac_mid; break
2051else
2052  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2053                        if test $ac_lo -le $ac_mid; then
2054                          ac_lo= ac_hi=
2055                          break
2056                        fi
2057                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060  done
2061else
2062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h.  */
2064$4
2065int
2066main ()
2067{
2068static int test_array [1 - 2 * !(($2) < 0)];
2069test_array [0] = 0;
2070return test_array [0];
2071
2072  ;
2073  return 0;
2074}
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"; then :
2077  ac_hi=-1 ac_mid=-1
2078  while :; do
2079    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082int
2083main ()
2084{
2085static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2086test_array [0] = 0;
2087return test_array [0];
2088
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094  ac_lo=$ac_mid; break
2095else
2096  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2097                        if test $ac_mid -le $ac_hi; then
2098                          ac_lo= ac_hi=
2099                          break
2100                        fi
2101                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104  done
2105else
2106  ac_lo= ac_hi=
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111# Binary search between lo and hi bounds.
2112while test "x$ac_lo" != "x$ac_hi"; do
2113  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h.  */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121test_array [0] = 0;
2122return test_array [0];
2123
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129  ac_hi=$ac_mid
2130else
2131  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134done
2135case $ac_lo in #((
2136?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2137'') ac_retval=1 ;;
2138esac
2139  else
2140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h.  */
2142$4
2143static long int longval () { return $2; }
2144static unsigned long int ulongval () { return $2; }
2145#include <stdio.h>
2146#include <stdlib.h>
2147int
2148main ()
2149{
2150
2151  FILE *f = fopen ("conftest.val", "w");
2152  if (! f)
2153    return 1;
2154  if (($2) < 0)
2155    {
2156      long int i = longval ();
2157      if (i != ($2))
2158        return 1;
2159      fprintf (f, "%ld", i);
2160    }
2161  else
2162    {
2163      unsigned long int i = ulongval ();
2164      if (i != ($2))
2165        return 1;
2166      fprintf (f, "%lu", i);
2167    }
2168  /* Do not output a trailing newline, as this causes \r\n confusion
2169     on some platforms.  */
2170  return ferror (f) || fclose (f) != 0;
2171
2172  ;
2173  return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_run "$LINENO"; then :
2177  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2178else
2179  ac_retval=1
2180fi
2181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2182  conftest.$ac_objext conftest.beam conftest.$ac_ext
2183rm -f conftest.val
2184
2185  fi
2186  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187  as_fn_set_status $ac_retval
2188
2189} # ac_fn_c_compute_int
2190
2191# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2192# -------------------------------------------
2193# Tests whether TYPE exists after having included INCLUDES, setting cache
2194# variable VAR accordingly.
2195ac_fn_c_check_type ()
2196{
2197  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199$as_echo_n "checking for $2... " >&6; }
2200if eval \${$3+:} false; then :
2201  $as_echo_n "(cached) " >&6
2202else
2203  eval "$3=no"
2204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h.  */
2206$4
2207int
2208main ()
2209{
2210if (sizeof ($2))
2211         return 0;
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218/* end confdefs.h.  */
2219$4
2220int
2221main ()
2222{
2223if (sizeof (($2)))
2224            return 0;
2225  ;
2226  return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_compile "$LINENO"; then :
2230
2231else
2232  eval "$3=yes"
2233fi
2234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235fi
2236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237fi
2238eval ac_res=\$$3
2239               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242
2243} # ac_fn_c_check_type
2244
2245# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2246# -------------------------------------------------------
2247# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2248# the include files in INCLUDES and setting the cache variable VAR
2249# accordingly.
2250ac_fn_c_check_header_mongrel ()
2251{
2252  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253  if eval \${$3+:} false; then :
2254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2255$as_echo_n "checking for $2... " >&6; }
2256if eval \${$3+:} false; then :
2257  $as_echo_n "(cached) " >&6
2258fi
2259eval ac_res=\$$3
2260               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261$as_echo "$ac_res" >&6; }
2262else
2263  # Is the header compilable?
2264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2265$as_echo_n "checking $2 usability... " >&6; }
2266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267/* end confdefs.h.  */
2268$4
2269#include <$2>
2270_ACEOF
2271if ac_fn_c_try_compile "$LINENO"; then :
2272  ac_header_compiler=yes
2273else
2274  ac_header_compiler=no
2275fi
2276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2278$as_echo "$ac_header_compiler" >&6; }
2279
2280# Is the header present?
2281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2282$as_echo_n "checking $2 presence... " >&6; }
2283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284/* end confdefs.h.  */
2285#include <$2>
2286_ACEOF
2287if ac_fn_c_try_cpp "$LINENO"; then :
2288  ac_header_preproc=yes
2289else
2290  ac_header_preproc=no
2291fi
2292rm -f conftest.err conftest.i conftest.$ac_ext
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2294$as_echo "$ac_header_preproc" >&6; }
2295
2296# So?  What about this header?
2297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2298  yes:no: )
2299    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2300$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2301    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2302$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2303    ;;
2304  no:yes:* )
2305    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2306$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2307    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2308$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2309    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2310$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2311    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2312$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2313    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2314$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2315( $as_echo "## -------------------------------------- ##
2316## Report this to adol-c@list.coin-or.org ##
2317## -------------------------------------- ##"
2318     ) | sed "s/^/$as_me: WARNING:     /" >&2
2319    ;;
2320esac
2321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322$as_echo_n "checking for $2... " >&6; }
2323if eval \${$3+:} false; then :
2324  $as_echo_n "(cached) " >&6
2325else
2326  eval "$3=\$ac_header_compiler"
2327fi
2328eval ac_res=\$$3
2329               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330$as_echo "$ac_res" >&6; }
2331fi
2332  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333
2334} # ac_fn_c_check_header_mongrel
2335
2336# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2337# ---------------------------------------------------------
2338# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2339# the include files in INCLUDES and setting the cache variable VAR
2340# accordingly.
2341ac_fn_cxx_check_header_mongrel ()
2342{
2343  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344  if eval \${$3+:} false; then :
2345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2346$as_echo_n "checking for $2... " >&6; }
2347if eval \${$3+:} false; then :
2348  $as_echo_n "(cached) " >&6
2349fi
2350eval ac_res=\$$3
2351               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352$as_echo "$ac_res" >&6; }
2353else
2354  # Is the header compilable?
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2356$as_echo_n "checking $2 usability... " >&6; }
2357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358/* end confdefs.h.  */
2359$4
2360#include <$2>
2361_ACEOF
2362if ac_fn_cxx_try_compile "$LINENO"; then :
2363  ac_header_compiler=yes
2364else
2365  ac_header_compiler=no
2366fi
2367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2369$as_echo "$ac_header_compiler" >&6; }
2370
2371# Is the header present?
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2373$as_echo_n "checking $2 presence... " >&6; }
2374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375/* end confdefs.h.  */
2376#include <$2>
2377_ACEOF
2378if ac_fn_cxx_try_cpp "$LINENO"; then :
2379  ac_header_preproc=yes
2380else
2381  ac_header_preproc=no
2382fi
2383rm -f conftest.err conftest.i conftest.$ac_ext
2384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2385$as_echo "$ac_header_preproc" >&6; }
2386
2387# So?  What about this header?
2388case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2389  yes:no: )
2390    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2391$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2392    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2393$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2394    ;;
2395  no:yes:* )
2396    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2397$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2398    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2399$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2400    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2401$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2402    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2403$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2404    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2405$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2406( $as_echo "## -------------------------------------- ##
2407## Report this to adol-c@list.coin-or.org ##
2408## -------------------------------------- ##"
2409     ) | sed "s/^/$as_me: WARNING:     /" >&2
2410    ;;
2411esac
2412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413$as_echo_n "checking for $2... " >&6; }
2414if eval \${$3+:} false; then :
2415  $as_echo_n "(cached) " >&6
2416else
2417  eval "$3=\$ac_header_compiler"
2418fi
2419eval ac_res=\$$3
2420               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421$as_echo "$ac_res" >&6; }
2422fi
2423  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424
2425} # ac_fn_cxx_check_header_mongrel
2426cat >config.log <<_ACEOF
2427This file contains any messages produced by compilers while
2428running configure, to aid debugging if configure makes a mistake.
2429
2430It was created by adolc $as_me 2.4.0-trunk, which was
2431generated by GNU Autoconf 2.69.  Invocation command line was
2432
2433  $ $0 $@
2434
2435_ACEOF
2436exec 5>>config.log
2437{
2438cat <<_ASUNAME
2439## --------- ##
2440## Platform. ##
2441## --------- ##
2442
2443hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2444uname -m = `(uname -m) 2>/dev/null || echo unknown`
2445uname -r = `(uname -r) 2>/dev/null || echo unknown`
2446uname -s = `(uname -s) 2>/dev/null || echo unknown`
2447uname -v = `(uname -v) 2>/dev/null || echo unknown`
2448
2449/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2450/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2451
2452/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2453/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2454/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2455/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2456/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2457/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2458/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2459
2460_ASUNAME
2461
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465  IFS=$as_save_IFS
2466  test -z "$as_dir" && as_dir=.
2467    $as_echo "PATH: $as_dir"
2468  done
2469IFS=$as_save_IFS
2470
2471} >&5
2472
2473cat >&5 <<_ACEOF
2474
2475
2476## ----------- ##
2477## Core tests. ##
2478## ----------- ##
2479
2480_ACEOF
2481
2482
2483# Keep a trace of the command line.
2484# Strip out --no-create and --no-recursion so they do not pile up.
2485# Strip out --silent because we don't want to record it for future runs.
2486# Also quote any args containing shell meta-characters.
2487# Make two passes to allow for proper duplicate-argument suppression.
2488ac_configure_args=
2489ac_configure_args0=
2490ac_configure_args1=
2491ac_must_keep_next=false
2492for ac_pass in 1 2
2493do
2494  for ac_arg
2495  do
2496    case $ac_arg in
2497    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2498    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2499    | -silent | --silent | --silen | --sile | --sil)
2500      continue ;;
2501    *\'*)
2502      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2503    esac
2504    case $ac_pass in
2505    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2506    2)
2507      as_fn_append ac_configure_args1 " '$ac_arg'"
2508      if test $ac_must_keep_next = true; then
2509        ac_must_keep_next=false # Got value, back to normal.
2510      else
2511        case $ac_arg in
2512          *=* | --config-cache | -C | -disable-* | --disable-* \
2513          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2514          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2515          | -with-* | --with-* | -without-* | --without-* | --x)
2516            case "$ac_configure_args0 " in
2517              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2518            esac
2519            ;;
2520          -* ) ac_must_keep_next=true ;;
2521        esac
2522      fi
2523      as_fn_append ac_configure_args " '$ac_arg'"
2524      ;;
2525    esac
2526  done
2527done
2528{ ac_configure_args0=; unset ac_configure_args0;}
2529{ ac_configure_args1=; unset ac_configure_args1;}
2530
2531# When interrupted or exit'd, cleanup temporary files, and complete
2532# config.log.  We remove comments because anyway the quotes in there
2533# would cause problems or look ugly.
2534# WARNING: Use '\'' to represent an apostrophe within the trap.
2535# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2536trap 'exit_status=$?
2537  # Save into config.log some information that might help in debugging.
2538  {
2539    echo
2540
2541    $as_echo "## ---------------- ##
2542## Cache variables. ##
2543## ---------------- ##"
2544    echo
2545    # The following way of writing the cache mishandles newlines in values,
2546(
2547  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2548    eval ac_val=\$$ac_var
2549    case $ac_val in #(
2550    *${as_nl}*)
2551      case $ac_var in #(
2552      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2553$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2554      esac
2555      case $ac_var in #(
2556      _ | IFS | as_nl) ;; #(
2557      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2558      *) { eval $ac_var=; unset $ac_var;} ;;
2559      esac ;;
2560    esac
2561  done
2562  (set) 2>&1 |
2563    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2564    *${as_nl}ac_space=\ *)
2565      sed -n \
2566        "s/'\''/'\''\\\\'\'''\''/g;
2567          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2568      ;; #(
2569    *)
2570      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2571      ;;
2572    esac |
2573    sort
2574)
2575    echo
2576
2577    $as_echo "## ----------------- ##
2578## Output variables. ##
2579## ----------------- ##"
2580    echo
2581    for ac_var in $ac_subst_vars
2582    do
2583      eval ac_val=\$$ac_var
2584      case $ac_val in
2585      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586      esac
2587      $as_echo "$ac_var='\''$ac_val'\''"
2588    done | sort
2589    echo
2590
2591    if test -n "$ac_subst_files"; then
2592      $as_echo "## ------------------- ##
2593## File substitutions. ##
2594## ------------------- ##"
2595      echo
2596      for ac_var in $ac_subst_files
2597      do
2598        eval ac_val=\$$ac_var
2599        case $ac_val in
2600        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2601        esac
2602        $as_echo "$ac_var='\''$ac_val'\''"
2603      done | sort
2604      echo
2605    fi
2606
2607    if test -s confdefs.h; then
2608      $as_echo "## ----------- ##
2609## confdefs.h. ##
2610## ----------- ##"
2611      echo
2612      cat confdefs.h
2613      echo
2614    fi
2615    test "$ac_signal" != 0 &&
2616      $as_echo "$as_me: caught signal $ac_signal"
2617    $as_echo "$as_me: exit $exit_status"
2618  } >&5
2619  rm -f core *.core core.conftest.* &&
2620    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2621    exit $exit_status
2622' 0
2623for ac_signal in 1 2 13 15; do
2624  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2625done
2626ac_signal=0
2627
2628# confdefs.h avoids OS command line length limits that DEFS can exceed.
2629rm -f -r conftest* confdefs.h
2630
2631$as_echo "/* confdefs.h */" > confdefs.h
2632
2633# Predefined preprocessor variables.
2634
2635cat >>confdefs.h <<_ACEOF
2636#define PACKAGE_NAME "$PACKAGE_NAME"
2637_ACEOF
2638
2639cat >>confdefs.h <<_ACEOF
2640#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2641_ACEOF
2642
2643cat >>confdefs.h <<_ACEOF
2644#define PACKAGE_VERSION "$PACKAGE_VERSION"
2645_ACEOF
2646
2647cat >>confdefs.h <<_ACEOF
2648#define PACKAGE_STRING "$PACKAGE_STRING"
2649_ACEOF
2650
2651cat >>confdefs.h <<_ACEOF
2652#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2653_ACEOF
2654
2655cat >>confdefs.h <<_ACEOF
2656#define PACKAGE_URL "$PACKAGE_URL"
2657_ACEOF
2658
2659
2660# Let the site file select an alternate cache file if it wants to.
2661# Prefer an explicitly selected file to automatically selected ones.
2662ac_site_file1=NONE
2663ac_site_file2=NONE
2664if test -n "$CONFIG_SITE"; then
2665  # We do not want a PATH search for config.site.
2666  case $CONFIG_SITE in #((
2667    -*)  ac_site_file1=./$CONFIG_SITE;;
2668    */*) ac_site_file1=$CONFIG_SITE;;
2669    *)   ac_site_file1=./$CONFIG_SITE;;
2670  esac
2671elif test "x$prefix" != xNONE; then
2672  ac_site_file1=$prefix/share/config.site
2673  ac_site_file2=$prefix/etc/config.site
2674else
2675  ac_site_file1=$ac_default_prefix/share/config.site
2676  ac_site_file2=$ac_default_prefix/etc/config.site
2677fi
2678for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2679do
2680  test "x$ac_site_file" = xNONE && continue
2681  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2682    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2683$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2684    sed 's/^/| /' "$ac_site_file" >&5
2685    . "$ac_site_file" \
2686      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688as_fn_error $? "failed to load site script $ac_site_file
2689See \`config.log' for more details" "$LINENO" 5; }
2690  fi
2691done
2692
2693if test -r "$cache_file"; then
2694  # Some versions of bash will fail to source /dev/null (special files
2695  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2696  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2697    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2698$as_echo "$as_me: loading cache $cache_file" >&6;}
2699    case $cache_file in
2700      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2701      *)                      . "./$cache_file";;
2702    esac
2703  fi
2704else
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2706$as_echo "$as_me: creating cache $cache_file" >&6;}
2707  >$cache_file
2708fi
2709
2710# Check that the precious variables saved in the cache have kept the same
2711# value.
2712ac_cache_corrupted=false
2713for ac_var in $ac_precious_vars; do
2714  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2715  eval ac_new_set=\$ac_env_${ac_var}_set
2716  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2717  eval ac_new_val=\$ac_env_${ac_var}_value
2718  case $ac_old_set,$ac_new_set in
2719    set,)
2720      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2721$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2722      ac_cache_corrupted=: ;;
2723    ,set)
2724      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2725$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2726      ac_cache_corrupted=: ;;
2727    ,);;
2728    *)
2729      if test "x$ac_old_val" != "x$ac_new_val"; then
2730        # differences in whitespace do not lead to failure.
2731        ac_old_val_w=`echo x $ac_old_val`
2732        ac_new_val_w=`echo x $ac_new_val`
2733        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2734          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2735$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2736          ac_cache_corrupted=:
2737        else
2738          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2739$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2740          eval $ac_var=\$ac_old_val
2741        fi
2742        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2743$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2744        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2745$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2746      fi;;
2747  esac
2748  # Pass precious variables to config.status.
2749  if test "$ac_new_set" = set; then
2750    case $ac_new_val in
2751    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2752    *) ac_arg=$ac_var=$ac_new_val ;;
2753    esac
2754    case " $ac_configure_args " in
2755      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2756      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2757    esac
2758  fi
2759done
2760if $ac_cache_corrupted; then
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2764$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2765  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2766fi
2767## -------------------- ##
2768## Main body of script. ##
2769## -------------------- ##
2770
2771ac_ext=c
2772ac_cpp='$CPP $CPPFLAGS'
2773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
2777
2778config_flags="$*"
2779
2780
2781ac_aux_dir=
2782for ac_dir in autoconf "$srcdir"/autoconf; do
2783  if test -f "$ac_dir/install-sh"; then
2784    ac_aux_dir=$ac_dir
2785    ac_install_sh="$ac_aux_dir/install-sh -c"
2786    break
2787  elif test -f "$ac_dir/install.sh"; then
2788    ac_aux_dir=$ac_dir
2789    ac_install_sh="$ac_aux_dir/install.sh -c"
2790    break
2791  elif test -f "$ac_dir/shtool"; then
2792    ac_aux_dir=$ac_dir
2793    ac_install_sh="$ac_aux_dir/shtool install -c"
2794    break
2795  fi
2796done
2797if test -z "$ac_aux_dir"; then
2798  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2799fi
2800
2801# These three variables are undocumented and unsupported,
2802# and are intended to be withdrawn in a future Autoconf release.
2803# They can cause serious problems if a builder's source tree is in a directory
2804# whose full name contains unusual characters.
2805ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2806ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2807ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2808
2809
2810
2811ac_config_headers="$ac_config_headers ADOL-C/src/config.h"
2812
2813
2814am__api_version='1.12'
2815
2816# Find a good install program.  We prefer a C program (faster),
2817# so one script is as good as another.  But avoid the broken or
2818# incompatible versions:
2819# SysV /etc/install, /usr/sbin/install
2820# SunOS /usr/etc/install
2821# IRIX /sbin/install
2822# AIX /bin/install
2823# AmigaOS /C/install, which installs bootblocks on floppy discs
2824# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2825# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2826# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2827# OS/2's system install, which has a completely different semantic
2828# ./install, which can be erroneously created by make from ./install.sh.
2829# Reject install programs that cannot install multiple files.
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2831$as_echo_n "checking for a BSD-compatible install... " >&6; }
2832if test -z "$INSTALL"; then
2833if ${ac_cv_path_install+:} false; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839  IFS=$as_save_IFS
2840  test -z "$as_dir" && as_dir=.
2841    # Account for people who put trailing slashes in PATH elements.
2842case $as_dir/ in #((
2843  ./ | .// | /[cC]/* | \
2844  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2845  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2846  /usr/ucb/* ) ;;
2847  *)
2848    # OSF1 and SCO ODT 3.0 have their own names for install.
2849    # Don't use installbsd from OSF since it installs stuff as root
2850    # by default.
2851    for ac_prog in ginstall scoinst install; do
2852      for ac_exec_ext in '' $ac_executable_extensions; do
2853        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2854          if test $ac_prog = install &&
2855            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2856            # AIX install.  It has an incompatible calling convention.
2857            :
2858          elif test $ac_prog = install &&
2859            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2860            # program-specific install script used by HP pwplus--don't use.
2861            :
2862          else
2863            rm -rf conftest.one conftest.two conftest.dir
2864            echo one > conftest.one
2865            echo two > conftest.two
2866            mkdir conftest.dir
2867            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2868              test -s conftest.one && test -s conftest.two &&
2869              test -s conftest.dir/conftest.one &&
2870              test -s conftest.dir/conftest.two
2871            then
2872              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2873              break 3
2874            fi
2875          fi
2876        fi
2877      done
2878    done
2879    ;;
2880esac
2881
2882  done
2883IFS=$as_save_IFS
2884
2885rm -rf conftest.one conftest.two conftest.dir
2886
2887fi
2888  if test "${ac_cv_path_install+set}" = set; then
2889    INSTALL=$ac_cv_path_install
2890  else
2891    # As a last resort, use the slow shell script.  Don't cache a
2892    # value for INSTALL within a source directory, because that will
2893    # break other packages using the cache if that directory is
2894    # removed, or if the value is a relative name.
2895    INSTALL=$ac_install_sh
2896  fi
2897fi
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2899$as_echo "$INSTALL" >&6; }
2900
2901# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2902# It thinks the first close brace ends the variable substitution.
2903test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2904
2905test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2906
2907test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2908
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2910$as_echo_n "checking whether build environment is sane... " >&6; }
2911# Reject unsafe characters in $srcdir or the absolute working directory
2912# name.  Accept space and tab only in the latter.
2913am_lf='
2914'
2915case `pwd` in
2916  *[\\\"\#\$\&\'\`$am_lf]*)
2917    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2918esac
2919case $srcdir in
2920  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2921    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2922esac
2923
2924# Do 'set' in a subshell so we don't clobber the current shell's
2925# arguments.  Must try -L first in case configure is actually a
2926# symlink; some systems play weird games with the mod time of symlinks
2927# (eg FreeBSD returns the mod time of the symlink's containing
2928# directory).
2929if (
2930   am_has_slept=no
2931   for am_try in 1 2; do
2932     echo "timestamp, slept: $am_has_slept" > conftest.file
2933     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2934     if test "$*" = "X"; then
2935        # -L didn't work.
2936        set X `ls -t "$srcdir/configure" conftest.file`
2937     fi
2938     if test "$*" != "X $srcdir/configure conftest.file" \
2939        && test "$*" != "X conftest.file $srcdir/configure"; then
2940
2941        # If neither matched, then we have a broken ls.  This can happen
2942        # if, for instance, CONFIG_SHELL is bash and it inherits a
2943        # broken ls alias from the environment.  This has actually
2944        # happened.  Such a system could not be considered "sane".
2945        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2946  alias in your environment" "$LINENO" 5
2947     fi
2948     if test "$2" = conftest.file || test $am_try -eq 2; then
2949       break
2950     fi
2951     # Just in case.
2952     sleep 1
2953     am_has_slept=yes
2954   done
2955   test "$2" = conftest.file
2956   )
2957then
2958   # Ok.
2959   :
2960else
2961   as_fn_error $? "newly created file is older than distributed files!
2962Check your system clock" "$LINENO" 5
2963fi
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965$as_echo "yes" >&6; }
2966# If we didn't sleep, we still need to ensure time stamps of config.status and
2967# generated files are strictly newer.
2968am_sleep_pid=
2969if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2970  ( sleep 1 ) &
2971  am_sleep_pid=$!
2972fi
2973
2974rm -f conftest.file
2975
2976test "$program_prefix" != NONE &&
2977  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2978# Use a double $ so make ignores it.
2979test "$program_suffix" != NONE &&
2980  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2981# Double any \ or $.
2982# By default was `s,x,x', remove it if useless.
2983ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2984program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2985
2986# expand $ac_aux_dir to an absolute path
2987am_aux_dir=`cd $ac_aux_dir && pwd`
2988
2989if test x"${MISSING+set}" != xset; then
2990  case $am_aux_dir in
2991  *\ * | *\     *)
2992    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2993  *)
2994    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2995  esac
2996fi
2997# Use eval to expand $SHELL
2998if eval "$MISSING --run true"; then
2999  am_missing_run="$MISSING --run "
3000else
3001  am_missing_run=
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3003$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3004fi
3005
3006if test x"${install_sh}" != xset; then
3007  case $am_aux_dir in
3008  *\ * | *\     *)
3009    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3010  *)
3011    install_sh="\${SHELL} $am_aux_dir/install-sh"
3012  esac
3013fi
3014
3015# Installed binaries are usually stripped using 'strip' when the user
3016# run "make install-strip".  However 'strip' might not be the right
3017# tool to use in cross-compilation environments, therefore Automake
3018# will honor the 'STRIP' environment variable to overrule this program.
3019if test "$cross_compiling" != no; then
3020  if test -n "$ac_tool_prefix"; then
3021  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3022set dummy ${ac_tool_prefix}strip; ac_word=$2
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024$as_echo_n "checking for $ac_word... " >&6; }
3025if ${ac_cv_prog_STRIP+:} false; then :
3026  $as_echo_n "(cached) " >&6
3027else
3028  if test -n "$STRIP"; then
3029  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3030else
3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034  IFS=$as_save_IFS
3035  test -z "$as_dir" && as_dir=.
3036    for ac_exec_ext in '' $ac_executable_extensions; do
3037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043  done
3044IFS=$as_save_IFS
3045
3046fi
3047fi
3048STRIP=$ac_cv_prog_STRIP
3049if test -n "$STRIP"; then
3050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3051$as_echo "$STRIP" >&6; }
3052else
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054$as_echo "no" >&6; }
3055fi
3056
3057
3058fi
3059if test -z "$ac_cv_prog_STRIP"; then
3060  ac_ct_STRIP=$STRIP
3061  # Extract the first word of "strip", so it can be a program name with args.
3062set dummy strip; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$ac_ct_STRIP"; then
3069  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_ac_ct_STRIP="strip"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3089if test -n "$ac_ct_STRIP"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3091$as_echo "$ac_ct_STRIP" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097  if test "x$ac_ct_STRIP" = x; then
3098    STRIP=":"
3099  else
3100    case $cross_compiling:$ac_tool_warned in
3101yes:)
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3104ac_tool_warned=yes ;;
3105esac
3106    STRIP=$ac_ct_STRIP
3107  fi
3108else
3109  STRIP="$ac_cv_prog_STRIP"
3110fi
3111
3112fi
3113INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3114
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3116$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3117if test -z "$MKDIR_P"; then
3118  if ${ac_cv_path_mkdir+:} false; then :
3119  $as_echo_n "(cached) " >&6
3120else
3121  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3123do
3124  IFS=$as_save_IFS
3125  test -z "$as_dir" && as_dir=.
3126    for ac_prog in mkdir gmkdir; do
3127         for ac_exec_ext in '' $ac_executable_extensions; do
3128           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3129           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3130             'mkdir (GNU coreutils) '* | \
3131             'mkdir (coreutils) '* | \
3132             'mkdir (fileutils) '4.1*)
3133               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3134               break 3;;
3135           esac
3136         done
3137       done
3138  done
3139IFS=$as_save_IFS
3140
3141fi
3142
3143  test -d ./--version && rmdir ./--version
3144  if test "${ac_cv_path_mkdir+set}" = set; then
3145    MKDIR_P="$ac_cv_path_mkdir -p"
3146  else
3147    # As a last resort, use the slow shell script.  Don't cache a
3148    # value for MKDIR_P within a source directory, because that will
3149    # break other packages using the cache if that directory is
3150    # removed, or if the value is a relative name.
3151    MKDIR_P="$ac_install_sh -d"
3152  fi
3153fi
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3155$as_echo "$MKDIR_P" >&6; }
3156
3157for ac_prog in gawk mawk nawk awk
3158do
3159  # Extract the first word of "$ac_prog", so it can be a program name with args.
3160set dummy $ac_prog; ac_word=$2
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162$as_echo_n "checking for $ac_word... " >&6; }
3163if ${ac_cv_prog_AWK+:} false; then :
3164  $as_echo_n "(cached) " >&6
3165else
3166  if test -n "$AWK"; then
3167  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172  IFS=$as_save_IFS
3173  test -z "$as_dir" && as_dir=.
3174    for ac_exec_ext in '' $ac_executable_extensions; do
3175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176    ac_cv_prog_AWK="$ac_prog"
3177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178    break 2
3179  fi
3180done
3181  done
3182IFS=$as_save_IFS
3183
3184fi
3185fi
3186AWK=$ac_cv_prog_AWK
3187if test -n "$AWK"; then
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3189$as_echo "$AWK" >&6; }
3190else
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193fi
3194
3195
3196  test -n "$AWK" && break
3197done
3198
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3200$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3201set x ${MAKE-make}
3202ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3203if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  cat >conftest.make <<\_ACEOF
3207SHELL = /bin/sh
3208all:
3209        @echo '@@@%%%=$(MAKE)=@@@%%%'
3210_ACEOF
3211# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3212case `${MAKE-make} -f conftest.make 2>/dev/null` in
3213  *@@@%%%=?*=@@@%%%*)
3214    eval ac_cv_prog_make_${ac_make}_set=yes;;
3215  *)
3216    eval ac_cv_prog_make_${ac_make}_set=no;;
3217esac
3218rm -f conftest.make
3219fi
3220if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222$as_echo "yes" >&6; }
3223  SET_MAKE=
3224else
3225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226$as_echo "no" >&6; }
3227  SET_MAKE="MAKE=${MAKE-make}"
3228fi
3229
3230rm -rf .tst 2>/dev/null
3231mkdir .tst 2>/dev/null
3232if test -d .tst; then
3233  am__leading_dot=.
3234else
3235  am__leading_dot=_
3236fi
3237rmdir .tst 2>/dev/null
3238
3239if test "`cd $srcdir && pwd`" != "`pwd`"; then
3240  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3241  # is not polluted with repeated "-I."
3242  am__isrc=' -I$(srcdir)'
3243  # test to see if srcdir already configured
3244  if test -f $srcdir/config.status; then
3245    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3246  fi
3247fi
3248
3249# test whether we have cygpath
3250if test -z "$CYGPATH_W"; then
3251  if (cygpath --version) >/dev/null 2>/dev/null; then
3252    CYGPATH_W='cygpath -w'
3253  else
3254    CYGPATH_W=echo
3255  fi
3256fi
3257
3258
3259# Define the identity of the package.
3260 PACKAGE='adolc'
3261 VERSION='2.4.0-trunk'
3262
3263
3264cat >>confdefs.h <<_ACEOF
3265#define PACKAGE "$PACKAGE"
3266_ACEOF
3267
3268
3269cat >>confdefs.h <<_ACEOF
3270#define VERSION "$VERSION"
3271_ACEOF
3272
3273# Some tools Automake needs.
3274
3275ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3276
3277
3278AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3279
3280
3281AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3282
3283
3284AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3285
3286
3287MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3288
3289mkdir_p="$MKDIR_P"
3290# We need awk for the "check" target.  The system "awk" is bad on
3291# some platforms.
3292# Always define AMTAR for backward compatibility.  Yes, it's still used
3293# in the wild :-(  We should find a proper way to deprecate it ...
3294AMTAR='$${TAR-tar}'
3295
3296am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3297
3298
3299
3300
3301
3302# Check whether --enable-silent-rules was given.
3303if test "${enable_silent_rules+set}" = set; then :
3304  enableval=$enable_silent_rules;
3305fi
3306
3307case $enable_silent_rules in # (((
3308  yes) AM_DEFAULT_VERBOSITY=0;;
3309   no) AM_DEFAULT_VERBOSITY=1;;
3310    *) AM_DEFAULT_VERBOSITY=0;;
3311esac
3312am_make=${MAKE-make}
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3314$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3315if ${am_cv_make_support_nested_variables+:} false; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  if $as_echo 'TRUE=$(BAR$(V))
3319BAR0=false
3320BAR1=true
3321V=1
3322am__doit:
3323        @$(TRUE)
3324.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3325  am_cv_make_support_nested_variables=yes
3326else
3327  am_cv_make_support_nested_variables=no
3328fi
3329fi
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3331$as_echo "$am_cv_make_support_nested_variables" >&6; }
3332if test $am_cv_make_support_nested_variables = yes; then
3333    AM_V='$(V)'
3334  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3335else
3336  AM_V=$AM_DEFAULT_VERBOSITY
3337  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3338fi
3339AM_BACKSLASH='\'
3340
3341
3342
3343adolclib=adolc
3344
3345if test "x$CFLAGS" == x ; then
3346    ac_shell_cflags="not_set"
3347else
3348    ac_shell_cflags="$CFLAGS"
3349fi
3350if test "x$CXXFLAGS" == x ; then
3351    ac_shell_cxxflags="not_set"
3352else
3353    ac_shell_cxxflags="$CXXFLAGS"
3354fi
3355libdir_set_on_cmd="no"
3356for i in $config_flags ; do
3357    case $i in
3358    -libdir | --libdir | --libdi | --libd | -libdir=* | --libdir=* | --libdi=* | --libd=*)
3359            libdir_set_on_cmd="yes"
3360            break
3361            ;;
3362    esac
3363done
3364
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build ADOL-C with adjoinable MPI (AMPI) support" >&5
3366$as_echo_n "checking whether to build ADOL-C with adjoinable MPI (AMPI) support... " >&6; }
3367# Check whether --enable-ampi was given.
3368if test "${enable_ampi+set}" = set; then :
3369  enableval=$enable_ampi; adolc_ampi_support=$enableval
3370else
3371  adolc_ampi_support=no
3372fi
3373
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $adolc_ampi_support" >&5
3375$as_echo "$adolc_ampi_support" >&6; }
3376 if test x${adolc_ampi_support} = xyes; then
3377  BUILD_ADOLC_AMPI_SUPPORT_TRUE=
3378  BUILD_ADOLC_AMPI_SUPPORT_FALSE='#'
3379else
3380  BUILD_ADOLC_AMPI_SUPPORT_TRUE='#'
3381  BUILD_ADOLC_AMPI_SUPPORT_FALSE=
3382fi
3383
3384if test x"${adolc_ampi_support}" = xyes ; then
3385
3386$as_echo "#define ADOLC_AMPI_SUPPORT 1" >>confdefs.h
3387
3388fi
3389
3390
3391
3392# MPI root directory
3393
3394# Check whether --with-mpi_root was given.
3395if test "${with_mpi_root+set}" = set; then :
3396  withval=$with_mpi_root;
3397fi
3398
3399
3400if test x"$with_mpi_root" != "x";
3401then
3402  if test x"$adolc_ampi_support" = "xno";
3403  then
3404    as_fn_error $? "if --with-mpi-root is set one  must also --enable_ampi" "$LINENO" 5
3405  fi
3406  MPIROOT="$with_mpi_root"
3407fi
3408
3409
3410# Check whether --with-mpicc was given.
3411if test "${with_mpicc+set}" = set; then :
3412  withval=$with_mpicc;
3413fi
3414
3415
3416if test x"$with_mpicc" != "x";
3417then
3418  if test x"$adolc_ampi_support" = "xno";
3419  then
3420    as_fn_error $? "if --with-mpicc is set one  must also --enable-ampi" "$LINENO" 5
3421  fi
3422  MPICC="$with_mpicc"
3423else
3424  MPICC="mpicc"
3425fi
3426
3427if test x"$with_mpi_root" != "x";
3428then
3429  MPICC="$with_mpi_root/bin/$MPICC"
3430fi
3431
3432
3433
3434# Check whether --with-mpicxx was given.
3435if test "${with_mpicxx+set}" = set; then :
3436  withval=$with_mpicxx;
3437fi
3438
3439
3440if test x"$with_mpicxx" != "x";
3441then
3442  if test x"$adolc_ampi_support" = "xno";
3443  then
3444    as_fn_error $? "if --with-mpicxx is set one  must also --enable-ampi" "$LINENO" 5
3445  fi
3446  MPICXX="$with_mpicxx"
3447else
3448  MPICXX="mpicxx"
3449fi
3450
3451if test x"$with_mpi_root" != "x";
3452then
3453  MPICXX="$with_mpi_root/bin/$MPICXX"
3454fi
3455
3456if test x"$adolc_ampi_support" = "xyes";
3457then
3458  CC="$MPICC"
3459  CXX="$MPICXX"
3460fi
3461
3462
3463
3464# checks for programs
3465ac_ext=cpp
3466ac_cpp='$CXXCPP $CPPFLAGS'
3467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3470if test -z "$CXX"; then
3471  if test -n "$CCC"; then
3472    CXX=$CCC
3473  else
3474    if test -n "$ac_tool_prefix"; then
3475  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3476  do
3477    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480$as_echo_n "checking for $ac_word... " >&6; }
3481if ${ac_cv_prog_CXX+:} false; then :
3482  $as_echo_n "(cached) " >&6
3483else
3484  if test -n "$CXX"; then
3485  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3486else
3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488for as_dir in $PATH
3489do
3490  IFS=$as_save_IFS
3491  test -z "$as_dir" && as_dir=.
3492    for ac_exec_ext in '' $ac_executable_extensions; do
3493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496    break 2
3497  fi
3498done
3499  done
3500IFS=$as_save_IFS
3501
3502fi
3503fi
3504CXX=$ac_cv_prog_CXX
3505if test -n "$CXX"; then
3506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3507$as_echo "$CXX" >&6; }
3508else
3509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510$as_echo "no" >&6; }
3511fi
3512
3513
3514    test -n "$CXX" && break
3515  done
3516fi
3517if test -z "$CXX"; then
3518  ac_ct_CXX=$CXX
3519  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3520do
3521  # Extract the first word of "$ac_prog", so it can be a program name with args.
3522set dummy $ac_prog; ac_word=$2
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524$as_echo_n "checking for $ac_word... " >&6; }
3525if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3526  $as_echo_n "(cached) " >&6
3527else
3528  if test -n "$ac_ct_CXX"; then
3529  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3530else
3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534  IFS=$as_save_IFS
3535  test -z "$as_dir" && as_dir=.
3536    for ac_exec_ext in '' $ac_executable_extensions; do
3537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538    ac_cv_prog_ac_ct_CXX="$ac_prog"
3539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540    break 2
3541  fi
3542done
3543  done
3544IFS=$as_save_IFS
3545
3546fi
3547fi
3548ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3549if test -n "$ac_ct_CXX"; then
3550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3551$as_echo "$ac_ct_CXX" >&6; }
3552else
3553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554$as_echo "no" >&6; }
3555fi
3556
3557
3558  test -n "$ac_ct_CXX" && break
3559done
3560
3561  if test "x$ac_ct_CXX" = x; then
3562    CXX="g++"
3563  else
3564    case $cross_compiling:$ac_tool_warned in
3565yes:)
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3568ac_tool_warned=yes ;;
3569esac
3570    CXX=$ac_ct_CXX
3571  fi
3572fi
3573
3574  fi
3575fi
3576# Provide some information about the compiler.
3577$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3578set X $ac_compile
3579ac_compiler=$2
3580for ac_option in --version -v -V -qversion; do
3581  { { ac_try="$ac_compiler $ac_option >&5"
3582case "(($ac_try" in
3583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584  *) ac_try_echo=$ac_try;;
3585esac
3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587$as_echo "$ac_try_echo"; } >&5
3588  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3589  ac_status=$?
3590  if test -s conftest.err; then
3591    sed '10a\
3592... rest of stderr output deleted ...
3593         10q' conftest.err >conftest.er1
3594    cat conftest.er1 >&5
3595  fi
3596  rm -f conftest.er1 conftest.err
3597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598  test $ac_status = 0; }
3599done
3600
3601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h.  */
3603
3604int
3605main ()
3606{
3607
3608  ;
3609  return 0;
3610}
3611_ACEOF
3612ac_clean_files_save=$ac_clean_files
3613ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3614# Try to create an executable without -o first, disregard a.out.
3615# It will help us diagnose broken compilers, and finding out an intuition
3616# of exeext.
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3618$as_echo_n "checking whether the C++ compiler works... " >&6; }
3619ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3620
3621# The possible output files:
3622ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3623
3624ac_rmfiles=
3625for ac_file in $ac_files
3626do
3627  case $ac_file in
3628    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3629    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3630  esac
3631done
3632rm -f $ac_rmfiles
3633
3634if { { ac_try="$ac_link_default"
3635case "(($ac_try" in
3636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637  *) ac_try_echo=$ac_try;;
3638esac
3639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640$as_echo "$ac_try_echo"; } >&5
3641  (eval "$ac_link_default") 2>&5
3642  ac_status=$?
3643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644  test $ac_status = 0; }; then :
3645  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3646# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3647# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3648# so that the user can short-circuit this test for compilers unknown to
3649# Autoconf.
3650for ac_file in $ac_files ''
3651do
3652  test -f "$ac_file" || continue
3653  case $ac_file in
3654    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3655        ;;
3656    [ab].out )
3657        # We found the default executable, but exeext='' is most
3658        # certainly right.
3659        break;;
3660    *.* )
3661        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3662        then :; else
3663           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664        fi
3665        # We set ac_cv_exeext here because the later test for it is not
3666        # safe: cross compilers may not add the suffix if given an `-o'
3667        # argument, so we may need to know it at that point already.
3668        # Even if this section looks crufty: it has the advantage of
3669        # actually working.
3670        break;;
3671    * )
3672        break;;
3673  esac
3674done
3675test "$ac_cv_exeext" = no && ac_cv_exeext=
3676
3677else
3678  ac_file=''
3679fi
3680if test -z "$ac_file"; then :
3681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682$as_echo "no" >&6; }
3683$as_echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688as_fn_error 77 "C++ compiler cannot create executables
3689See \`config.log' for more details" "$LINENO" 5; }
3690else
3691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3692$as_echo "yes" >&6; }
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3695$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3697$as_echo "$ac_file" >&6; }
3698ac_exeext=$ac_cv_exeext
3699
3700rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3701ac_clean_files=$ac_clean_files_save
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3703$as_echo_n "checking for suffix of executables... " >&6; }
3704if { { ac_try="$ac_link"
3705case "(($ac_try" in
3706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707  *) ac_try_echo=$ac_try;;
3708esac
3709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710$as_echo "$ac_try_echo"; } >&5
3711  (eval "$ac_link") 2>&5
3712  ac_status=$?
3713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714  test $ac_status = 0; }; then :
3715  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3716# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3717# work properly (i.e., refer to `conftest.exe'), while it won't with
3718# `rm'.
3719for ac_file in conftest.exe conftest conftest.*; do
3720  test -f "$ac_file" || continue
3721  case $ac_file in
3722    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3723    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3724          break;;
3725    * ) break;;
3726  esac
3727done
3728else
3729  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3731as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3732See \`config.log' for more details" "$LINENO" 5; }
3733fi
3734rm -f conftest conftest$ac_cv_exeext
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3736$as_echo "$ac_cv_exeext" >&6; }
3737
3738rm -f conftest.$ac_ext
3739EXEEXT=$ac_cv_exeext
3740ac_exeext=$EXEEXT
3741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* end confdefs.h.  */
3743#include <stdio.h>
3744int
3745main ()
3746{
3747FILE *f = fopen ("conftest.out", "w");
3748 return ferror (f) || fclose (f) != 0;
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754ac_clean_files="$ac_clean_files conftest.out"
3755# Check that the compiler produces executables we can run.  If not, either
3756# the compiler is broken, or we cross compile.
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3758$as_echo_n "checking whether we are cross compiling... " >&6; }
3759if test "$cross_compiling" != yes; then
3760  { { ac_try="$ac_link"
3761case "(($ac_try" in
3762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763  *) ac_try_echo=$ac_try;;
3764esac
3765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766$as_echo "$ac_try_echo"; } >&5
3767  (eval "$ac_link") 2>&5
3768  ac_status=$?
3769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3770  test $ac_status = 0; }
3771  if { ac_try='./conftest$ac_cv_exeext'
3772  { { case "(($ac_try" in
3773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774  *) ac_try_echo=$ac_try;;
3775esac
3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777$as_echo "$ac_try_echo"; } >&5
3778  (eval "$ac_try") 2>&5
3779  ac_status=$?
3780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781  test $ac_status = 0; }; }; then
3782    cross_compiling=no
3783  else
3784    if test "$cross_compiling" = maybe; then
3785        cross_compiling=yes
3786    else
3787        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789as_fn_error $? "cannot run C++ compiled programs.
3790If you meant to cross compile, use \`--host'.
3791See \`config.log' for more details" "$LINENO" 5; }
3792    fi
3793  fi
3794fi
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3796$as_echo "$cross_compiling" >&6; }
3797
3798rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3799ac_clean_files=$ac_clean_files_save
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3801$as_echo_n "checking for suffix of object files... " >&6; }
3802if ${ac_cv_objext+:} false; then :
3803  $as_echo_n "(cached) " >&6
3804else
3805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806/* end confdefs.h.  */
3807
3808int
3809main ()
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816rm -f conftest.o conftest.obj
3817if { { ac_try="$ac_compile"
3818case "(($ac_try" in
3819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820  *) ac_try_echo=$ac_try;;
3821esac
3822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823$as_echo "$ac_try_echo"; } >&5
3824  (eval "$ac_compile") 2>&5
3825  ac_status=$?
3826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827  test $ac_status = 0; }; then :
3828  for ac_file in conftest.o conftest.obj conftest.*; do
3829  test -f "$ac_file" || continue;
3830  case $ac_file in
3831    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3832    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3833       break;;
3834  esac
3835done
3836else
3837  $as_echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842as_fn_error $? "cannot compute suffix of object files: cannot compile
3843See \`config.log' for more details" "$LINENO" 5; }
3844fi
3845rm -f conftest.$ac_cv_objext conftest.$ac_ext
3846fi
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3848$as_echo "$ac_cv_objext" >&6; }
3849OBJEXT=$ac_cv_objext
3850ac_objext=$OBJEXT
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3852$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3853if ${ac_cv_cxx_compiler_gnu+:} false; then :
3854  $as_echo_n "(cached) " >&6
3855else
3856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h.  */
3858
3859int
3860main ()
3861{
3862#ifndef __GNUC__
3863       choke me
3864#endif
3865
3866  ;
3867  return 0;
3868}
3869_ACEOF
3870if ac_fn_cxx_try_compile "$LINENO"; then :
3871  ac_compiler_gnu=yes
3872else
3873  ac_compiler_gnu=no
3874fi
3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3877
3878fi
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3880$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3881if test $ac_compiler_gnu = yes; then
3882  GXX=yes
3883else
3884  GXX=
3885fi
3886ac_test_CXXFLAGS=${CXXFLAGS+set}
3887ac_save_CXXFLAGS=$CXXFLAGS
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3889$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3890if ${ac_cv_prog_cxx_g+:} false; then :
3891  $as_echo_n "(cached) " >&6
3892else
3893  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3894   ac_cxx_werror_flag=yes
3895   ac_cv_prog_cxx_g=no
3896   CXXFLAGS="-g"
3897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898/* end confdefs.h.  */
3899
3900int
3901main ()
3902{
3903
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908if ac_fn_cxx_try_compile "$LINENO"; then :
3909  ac_cv_prog_cxx_g=yes
3910else
3911  CXXFLAGS=""
3912      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h.  */
3914
3915int
3916main ()
3917{
3918
3919  ;
3920  return 0;
3921}
3922_ACEOF
3923if ac_fn_cxx_try_compile "$LINENO"; then :
3924
3925else
3926  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3927         CXXFLAGS="-g"
3928         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929/* end confdefs.h.  */
3930
3931int
3932main ()
3933{
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939if ac_fn_cxx_try_compile "$LINENO"; then :
3940  ac_cv_prog_cxx_g=yes
3941fi
3942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945fi
3946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3948fi
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3950$as_echo "$ac_cv_prog_cxx_g" >&6; }
3951if test "$ac_test_CXXFLAGS" = set; then
3952  CXXFLAGS=$ac_save_CXXFLAGS
3953elif test $ac_cv_prog_cxx_g = yes; then
3954  if test "$GXX" = yes; then
3955    CXXFLAGS="-g -O2"
3956  else
3957    CXXFLAGS="-g"
3958  fi
3959else
3960  if test "$GXX" = yes; then
3961    CXXFLAGS="-O2"
3962  else
3963    CXXFLAGS=
3964  fi
3965fi
3966ac_ext=c
3967ac_cpp='$CPP $CPPFLAGS'
3968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971DEPDIR="${am__leading_dot}deps"
3972
3973ac_config_commands="$ac_config_commands depfiles"
3974
3975
3976am_make=${MAKE-make}
3977cat > confinc << 'END'
3978am__doit:
3979        @echo this is the am__doit target
3980.PHONY: am__doit
3981END
3982# If we don't find an include directive, just comment out the code.
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3984$as_echo_n "checking for style of include used by $am_make... " >&6; }
3985am__include="#"
3986am__quote=
3987_am_result=none
3988# First try GNU make style include.
3989echo "include confinc" > confmf
3990# Ignore all kinds of additional output from 'make'.
3991case `$am_make -s -f confmf 2> /dev/null` in #(
3992*the\ am__doit\ target*)
3993  am__include=include
3994  am__quote=
3995  _am_result=GNU
3996  ;;
3997esac
3998# Now try BSD make style include.
3999if test "$am__include" = "#"; then
4000   echo '.include "confinc"' > confmf
4001   case `$am_make -s -f confmf 2> /dev/null` in #(
4002   *the\ am__doit\ target*)
4003     am__include=.include
4004     am__quote="\""
4005     _am_result=BSD
4006     ;;
4007   esac
4008fi
4009
4010
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4012$as_echo "$_am_result" >&6; }
4013rm -f confinc confmf
4014
4015# Check whether --enable-dependency-tracking was given.
4016if test "${enable_dependency_tracking+set}" = set; then :
4017  enableval=$enable_dependency_tracking;
4018fi
4019
4020if test "x$enable_dependency_tracking" != xno; then
4021  am_depcomp="$ac_aux_dir/depcomp"
4022  AMDEPBACKSLASH='\'
4023  am__nodep='_no'
4024fi
4025 if test "x$enable_dependency_tracking" != xno; then
4026  AMDEP_TRUE=
4027  AMDEP_FALSE='#'
4028else
4029  AMDEP_TRUE='#'
4030  AMDEP_FALSE=
4031fi
4032
4033
4034
4035depcc="$CXX"  am_compiler_list=
4036
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4038$as_echo_n "checking dependency style of $depcc... " >&6; }
4039if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4040  $as_echo_n "(cached) " >&6
4041else
4042  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4043  # We make a subdir and do the tests there.  Otherwise we can end up
4044  # making bogus files that we don't know about and never remove.  For
4045  # instance it was reported that on HP-UX the gcc test will end up
4046  # making a dummy file named 'D' -- because '-MD' means "put the output
4047  # in D".
4048  rm -rf conftest.dir
4049  mkdir conftest.dir
4050  # Copy depcomp to subdir because otherwise we won't find it if we're
4051  # using a relative directory.
4052  cp "$am_depcomp" conftest.dir
4053  cd conftest.dir
4054  # We will build objects and dependencies in a subdirectory because
4055  # it helps to detect inapplicable dependency modes.  For instance
4056  # both Tru64's cc and ICC support -MD to output dependencies as a
4057  # side effect of compilation, but ICC will put the dependencies in
4058  # the current directory while Tru64 will put them in the object
4059  # directory.
4060  mkdir sub
4061
4062  am_cv_CXX_dependencies_compiler_type=none
4063  if test "$am_compiler_list" = ""; then
4064     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4065  fi
4066  am__universal=false
4067  case " $depcc " in #(
4068     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4069     esac
4070
4071  for depmode in $am_compiler_list; do
4072    # Setup a source with many dependencies, because some compilers
4073    # like to wrap large dependency lists on column 80 (with \), and
4074    # we should not choose a depcomp mode which is confused by this.
4075    #
4076    # We need to recreate these files for each test, as the compiler may
4077    # overwrite some of them when testing with obscure command lines.
4078    # This happens at least with the AIX C compiler.
4079    : > sub/conftest.c
4080    for i in 1 2 3 4 5 6; do
4081      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4082      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4083      # Solaris 10 /bin/sh.
4084      echo '/* dummy */' > sub/conftst$i.h
4085    done
4086    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4087
4088    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4089    # mode.  It turns out that the SunPro C++ compiler does not properly
4090    # handle '-M -o', and we need to detect this.  Also, some Intel
4091    # versions had trouble with output in subdirs.
4092    am__obj=sub/conftest.${OBJEXT-o}
4093    am__minus_obj="-o $am__obj"
4094    case $depmode in
4095    gcc)
4096      # This depmode causes a compiler race in universal mode.
4097      test "$am__universal" = false || continue
4098      ;;
4099    nosideeffect)
4100      # After this tag, mechanisms are not by side-effect, so they'll
4101      # only be used when explicitly requested.
4102      if test "x$enable_dependency_tracking" = xyes; then
4103        continue
4104      else
4105        break
4106      fi
4107      ;;
4108    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4109      # This compiler won't grok '-c -o', but also, the minuso test has
4110      # not run yet.  These depmodes are late enough in the game, and
4111      # so weak that their functioning should not be impacted.
4112      am__obj=conftest.${OBJEXT-o}
4113      am__minus_obj=
4114      ;;
4115    none) break ;;
4116    esac
4117    if depmode=$depmode \
4118       source=sub/conftest.c object=$am__obj \
4119       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4120       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4121         >/dev/null 2>conftest.err &&
4122       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4123       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4124       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4125       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4126      # icc doesn't choke on unknown options, it will just issue warnings
4127      # or remarks (even with -Werror).  So we grep stderr for any message
4128      # that says an option was ignored or not supported.
4129      # When given -MP, icc 7.0 and 7.1 complain thusly:
4130      #   icc: Command line warning: ignoring option '-M'; no argument required
4131      # The diagnosis changed in icc 8.0:
4132      #   icc: Command line remark: option '-MP' not supported
4133      if (grep 'ignoring option' conftest.err ||
4134          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4135        am_cv_CXX_dependencies_compiler_type=$depmode
4136        break
4137      fi
4138    fi
4139  done
4140
4141  cd ..
4142  rm -rf conftest.dir
4143else
4144  am_cv_CXX_dependencies_compiler_type=none
4145fi
4146
4147fi
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4149$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4150CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4151
4152 if
4153  test "x$enable_dependency_tracking" != xno \
4154  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4155  am__fastdepCXX_TRUE=
4156  am__fastdepCXX_FALSE='#'
4157else
4158  am__fastdepCXX_TRUE='#'
4159  am__fastdepCXX_FALSE=
4160fi
4161
4162
4163ac_ext=c
4164ac_cpp='$CPP $CPPFLAGS'
4165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168if test -n "$ac_tool_prefix"; then
4169  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4170set dummy ${ac_tool_prefix}gcc; ac_word=$2
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172$as_echo_n "checking for $ac_word... " >&6; }
4173if ${ac_cv_prog_CC+:} false; then :
4174  $as_echo_n "(cached) " >&6
4175else
4176  if test -n "$CC"; then
4177  ac_cv_prog_CC="$CC" # Let the user override the test.
4178else
4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182  IFS=$as_save_IFS
4183  test -z "$as_dir" && as_dir=.
4184    for ac_exec_ext in '' $ac_executable_extensions; do
4185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188    break 2
4189  fi
4190done
4191  done
4192IFS=$as_save_IFS
4193
4194fi
4195fi
4196CC=$ac_cv_prog_CC
4197if test -n "$CC"; then
4198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199$as_echo "$CC" >&6; }
4200else
4201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
4203fi
4204
4205
4206fi
4207if test -z "$ac_cv_prog_CC"; then
4208  ac_ct_CC=$CC
4209  # Extract the first word of "gcc", so it can be a program name with args.
4210set dummy gcc; ac_word=$2
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212$as_echo_n "checking for $ac_word... " >&6; }
4213if ${ac_cv_prog_ac_ct_CC+:} false; then :
4214  $as_echo_n "(cached) " >&6
4215else
4216  if test -n "$ac_ct_CC"; then
4217  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4218else
4219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222  IFS=$as_save_IFS
4223  test -z "$as_dir" && as_dir=.
4224    for ac_exec_ext in '' $ac_executable_extensions; do
4225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226    ac_cv_prog_ac_ct_CC="gcc"
4227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228    break 2
4229  fi
4230done
4231  done
4232IFS=$as_save_IFS
4233
4234fi
4235fi
4236ac_ct_CC=$ac_cv_prog_ac_ct_CC
4237if test -n "$ac_ct_CC"; then
4238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4239$as_echo "$ac_ct_CC" >&6; }
4240else
4241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242$as_echo "no" >&6; }
4243fi
4244
4245  if test "x$ac_ct_CC" = x; then
4246    CC=""
4247  else
4248    case $cross_compiling:$ac_tool_warned in
4249yes:)
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252ac_tool_warned=yes ;;
4253esac
4254    CC=$ac_ct_CC
4255  fi
4256else
4257  CC="$ac_cv_prog_CC"
4258fi
4259
4260if test -z "$CC"; then
4261          if test -n "$ac_tool_prefix"; then
4262    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4263set dummy ${ac_tool_prefix}cc; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if ${ac_cv_prog_CC+:} false; then :
4267  $as_echo_n "(cached) " >&6
4268else
4269  if test -n "$CC"; then
4270  ac_cv_prog_CC="$CC" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277    for ac_exec_ext in '' $ac_executable_extensions; do
4278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279    ac_cv_prog_CC="${ac_tool_prefix}cc"
4280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284  done
4285IFS=$as_save_IFS
4286
4287fi
4288fi
4289CC=$ac_cv_prog_CC
4290if test -n "$CC"; then
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292$as_echo "$CC" >&6; }
4293else
4294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
4296fi
4297
4298
4299  fi
4300fi
4301if test -z "$CC"; then
4302  # Extract the first word of "cc", so it can be a program name with args.
4303set dummy cc; ac_word=$2
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305$as_echo_n "checking for $ac_word... " >&6; }
4306if ${ac_cv_prog_CC+:} false; then :
4307  $as_echo_n "(cached) " >&6
4308else
4309  if test -n "$CC"; then
4310  ac_cv_prog_CC="$CC" # Let the user override the test.
4311else
4312  ac_prog_rejected=no
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316  IFS=$as_save_IFS
4317  test -z "$as_dir" && as_dir=.
4318    for ac_exec_ext in '' $ac_executable_extensions; do
4319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4321       ac_prog_rejected=yes
4322       continue
4323     fi
4324    ac_cv_prog_CC="cc"
4325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326    break 2
4327  fi
4328done
4329  done
4330IFS=$as_save_IFS
4331
4332if test $ac_prog_rejected = yes; then
4333  # We found a bogon in the path, so make sure we never use it.
4334  set dummy $ac_cv_prog_CC
4335  shift
4336  if test $# != 0; then
4337    # We chose a different compiler from the bogus one.
4338    # However, it has the same basename, so the bogon will be chosen
4339    # first if we set CC to just the basename; use the full file name.
4340    shift
4341    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4342  fi
4343fi
4344fi
4345fi
4346CC=$ac_cv_prog_CC
4347if test -n "$CC"; then
4348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349$as_echo "$CC" >&6; }
4350else
4351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
4353fi
4354
4355
4356fi
4357if test -z "$CC"; then
4358  if test -n "$ac_tool_prefix"; then
4359  for ac_prog in cl.exe
4360  do
4361    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364$as_echo_n "checking for $ac_word... " >&6; }
4365if ${ac_cv_prog_CC+:} false; then :
4366  $as_echo_n "(cached) " >&6
4367else
4368  if test -n "$CC"; then
4369  ac_cv_prog_CC="$CC" # Let the user override the test.
4370else
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374  IFS=$as_save_IFS
4375  test -z "$as_dir" && as_dir=.
4376    for ac_exec_ext in '' $ac_executable_extensions; do
4377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4378    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380    break 2
4381  fi
4382done
4383  done
4384IFS=$as_save_IFS
4385
4386fi
4387fi
4388CC=$ac_cv_prog_CC
4389if test -n "$CC"; then
4390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4391$as_echo "$CC" >&6; }
4392else
4393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394$as_echo "no" >&6; }
4395fi
4396
4397
4398    test -n "$CC" && break
4399  done
4400fi
4401if test -z "$CC"; then
4402  ac_ct_CC=$CC
4403  for ac_prog in cl.exe
4404do
4405  # Extract the first word of "$ac_prog", so it can be a program name with args.
4406set dummy $ac_prog; ac_word=$2
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408$as_echo_n "checking for $ac_word... " >&6; }
4409if ${ac_cv_prog_ac_ct_CC+:} false; then :
4410  $as_echo_n "(cached) " >&6
4411else
4412  if test -n "$ac_ct_CC"; then
4413  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4414else
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418  IFS=$as_save_IFS
4419  test -z "$as_dir" && as_dir=.
4420    for ac_exec_ext in '' $ac_executable_extensions; do
4421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4422    ac_cv_prog_ac_ct_CC="$ac_prog"
4423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424    break 2
4425  fi
4426done
4427  done
4428IFS=$as_save_IFS
4429
4430fi
4431fi
4432ac_ct_CC=$ac_cv_prog_ac_ct_CC
4433if test -n "$ac_ct_CC"; then
4434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4435$as_echo "$ac_ct_CC" >&6; }
4436else
4437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438$as_echo "no" >&6; }
4439fi
4440
4441
4442  test -n "$ac_ct_CC" && break
4443done
4444
4445  if test "x$ac_ct_CC" = x; then
4446    CC=""
4447  else
4448    case $cross_compiling:$ac_tool_warned in
4449yes:)
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452ac_tool_warned=yes ;;
4453esac
4454    CC=$ac_ct_CC
4455  fi
4456fi
4457
4458fi
4459
4460
4461test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463as_fn_error $? "no acceptable C compiler found in \$PATH
4464See \`config.log' for more details" "$LINENO" 5; }
4465
4466# Provide some information about the compiler.
4467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4468set X $ac_compile
4469ac_compiler=$2
4470for ac_option in --version -v -V -qversion; do
4471  { { ac_try="$ac_compiler $ac_option >&5"
4472case "(($ac_try" in
4473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474  *) ac_try_echo=$ac_try;;
4475esac
4476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477$as_echo "$ac_try_echo"; } >&5
4478  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4479  ac_status=$?
4480  if test -s conftest.err; then
4481    sed '10a\
4482... rest of stderr output deleted ...
4483         10q' conftest.err >conftest.er1
4484    cat conftest.er1 >&5
4485  fi
4486  rm -f conftest.er1 conftest.err
4487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488  test $ac_status = 0; }
4489done
4490
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4492$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4493if ${ac_cv_c_compiler_gnu+:} false; then :
4494  $as_echo_n "(cached) " >&6
4495else
4496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497/* end confdefs.h.  */
4498
4499int
4500main ()
4501{
4502#ifndef __GNUC__
4503       choke me
4504#endif
4505
4506  ;
4507  return 0;
4508}
4509_ACEOF
4510if ac_fn_c_try_compile "$LINENO"; then :
4511  ac_compiler_gnu=yes
4512else
4513  ac_compiler_gnu=no
4514fi
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516ac_cv_c_compiler_gnu=$ac_compiler_gnu
4517
4518fi
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4520$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4521if test $ac_compiler_gnu = yes; then
4522  GCC=yes
4523else
4524  GCC=
4525fi
4526ac_test_CFLAGS=${CFLAGS+set}
4527ac_save_CFLAGS=$CFLAGS
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4529$as_echo_n "checking whether $CC accepts -g... " >&6; }
4530if ${ac_cv_prog_cc_g+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  ac_save_c_werror_flag=$ac_c_werror_flag
4534   ac_c_werror_flag=yes
4535   ac_cv_prog_cc_g=no
4536   CFLAGS="-g"
4537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h.  */
4539
4540int
4541main ()
4542{
4543
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548if ac_fn_c_try_compile "$LINENO"; then :
4549  ac_cv_prog_cc_g=yes
4550else
4551  CFLAGS=""
4552      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h.  */
4554
4555int
4556main ()
4557{
4558
4559  ;
4560  return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_compile "$LINENO"; then :
4564
4565else
4566  ac_c_werror_flag=$ac_save_c_werror_flag
4567         CFLAGS="-g"
4568         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h.  */
4570
4571int
4572main ()
4573{
4574
4575  ;
4576  return 0;
4577}
4578_ACEOF
4579if ac_fn_c_try_compile "$LINENO"; then :
4580  ac_cv_prog_cc_g=yes
4581fi
4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583fi
4584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585fi
4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587   ac_c_werror_flag=$ac_save_c_werror_flag
4588fi
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4590$as_echo "$ac_cv_prog_cc_g" >&6; }
4591if test "$ac_test_CFLAGS" = set; then
4592  CFLAGS=$ac_save_CFLAGS
4593elif test $ac_cv_prog_cc_g = yes; then
4594  if test "$GCC" = yes; then
4595    CFLAGS="-g -O2"
4596  else
4597    CFLAGS="-g"
4598  fi
4599else
4600  if test "$GCC" = yes; then
4601    CFLAGS="-O2"
4602  else
4603    CFLAGS=
4604  fi
4605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4607$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4608if ${ac_cv_prog_cc_c89+:} false; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611  ac_cv_prog_cc_c89=no
4612ac_save_CC=$CC
4613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h.  */
4615#include <stdarg.h>
4616#include <stdio.h>
4617struct stat;
4618/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4619struct buf { int x; };
4620FILE * (*rcsopen) (struct buf *, struct stat *, int);
4621static char *e (p, i)
4622     char **p;
4623     int i;
4624{
4625  return p[i];
4626}
4627static char *f (char * (*g) (char **, int), char **p, ...)
4628{
4629  char *s;
4630  va_list v;
4631  va_start (v,p);
4632  s = g (p, va_arg (v,int));
4633  va_end (v);
4634  return s;
4635}
4636
4637/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4638   function prototypes and stuff, but not '\xHH' hex character constants.
4639   These don't provoke an error unfortunately, instead are silently treated
4640   as 'x'.  The following induces an error, until -std is added to get
4641   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4642   array size at least.  It's necessary to write '\x00'==0 to get something
4643   that's true only with -std.  */
4644int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4645
4646/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4647   inside strings and character constants.  */
4648#define FOO(x) 'x'
4649int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4650
4651int test (int i, double x);
4652struct s1 {int (*f) (int a);};
4653struct s2 {int (*f) (double a);};
4654int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4655int argc;
4656char **argv;
4657int
4658main ()
4659{
4660return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4661  ;
4662  return 0;
4663}
4664_ACEOF
4665for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4666        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4667do
4668  CC="$ac_save_CC $ac_arg"
4669  if ac_fn_c_try_compile "$LINENO"; then :
4670  ac_cv_prog_cc_c89=$ac_arg
4671fi
4672rm -f core conftest.err conftest.$ac_objext
4673  test "x$ac_cv_prog_cc_c89" != "xno" && break
4674done
4675rm -f conftest.$ac_ext
4676CC=$ac_save_CC
4677
4678fi
4679# AC_CACHE_VAL
4680case "x$ac_cv_prog_cc_c89" in
4681  x)
4682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4683$as_echo "none needed" >&6; } ;;
4684  xno)
4685    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4686$as_echo "unsupported" >&6; } ;;
4687  *)
4688    CC="$CC $ac_cv_prog_cc_c89"
4689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4690$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4691esac
4692if test "x$ac_cv_prog_cc_c89" != xno; then :
4693
4694fi
4695
4696ac_ext=c
4697ac_cpp='$CPP $CPPFLAGS'
4698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701
4702depcc="$CC"   am_compiler_list=
4703
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4705$as_echo_n "checking dependency style of $depcc... " >&6; }
4706if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4707  $as_echo_n "(cached) " >&6
4708else
4709  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4710  # We make a subdir and do the tests there.  Otherwise we can end up
4711  # making bogus files that we don't know about and never remove.  For
4712  # instance it was reported that on HP-UX the gcc test will end up
4713  # making a dummy file named 'D' -- because '-MD' means "put the output
4714  # in D".
4715  rm -rf conftest.dir
4716  mkdir conftest.dir
4717  # Copy depcomp to subdir because otherwise we won't find it if we're
4718  # using a relative directory.
4719  cp "$am_depcomp" conftest.dir
4720  cd conftest.dir
4721  # We will build objects and dependencies in a subdirectory because
4722  # it helps to detect inapplicable dependency modes.  For instance
4723  # both Tru64's cc and ICC support -MD to output dependencies as a
4724  # side effect of compilation, but ICC will put the dependencies in
4725  # the current directory while Tru64 will put them in the object
4726  # directory.
4727  mkdir sub
4728
4729  am_cv_CC_dependencies_compiler_type=none
4730  if test "$am_compiler_list" = ""; then
4731     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4732  fi
4733  am__universal=false
4734  case " $depcc " in #(
4735     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4736     esac
4737
4738  for depmode in $am_compiler_list; do
4739    # Setup a source with many dependencies, because some compilers
4740    # like to wrap large dependency lists on column 80 (with \), and
4741    # we should not choose a depcomp mode which is confused by this.
4742    #
4743    # We need to recreate these files for each test, as the compiler may
4744    # overwrite some of them when testing with obscure command lines.
4745    # This happens at least with the AIX C compiler.
4746    : > sub/conftest.c
4747    for i in 1 2 3 4 5 6; do
4748      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4749      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4750      # Solaris 10 /bin/sh.
4751      echo '/* dummy */' > sub/conftst$i.h
4752    done
4753    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4754
4755    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4756    # mode.  It turns out that the SunPro C++ compiler does not properly
4757    # handle '-M -o', and we need to detect this.  Also, some Intel
4758    # versions had trouble with output in subdirs.
4759    am__obj=sub/conftest.${OBJEXT-o}
4760    am__minus_obj="-o $am__obj"
4761    case $depmode in
4762    gcc)
4763      # This depmode causes a compiler race in universal mode.
4764      test "$am__universal" = false || continue
4765      ;;
4766    nosideeffect)
4767      # After this tag, mechanisms are not by side-effect, so they'll
4768      # only be used when explicitly requested.
4769      if test "x$enable_dependency_tracking" = xyes; then
4770        continue
4771      else
4772        break
4773      fi
4774      ;;
4775    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4776      # This compiler won't grok '-c -o', but also, the minuso test has
4777      # not run yet.  These depmodes are late enough in the game, and
4778      # so weak that their functioning should not be impacted.
4779      am__obj=conftest.${OBJEXT-o}
4780      am__minus_obj=
4781      ;;
4782    none) break ;;
4783    esac
4784    if depmode=$depmode \
4785       source=sub/conftest.c object=$am__obj \
4786       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4787       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4788         >/dev/null 2>conftest.err &&
4789       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4790       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4791       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4792       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4793      # icc doesn't choke on unknown options, it will just issue warnings
4794      # or remarks (even with -Werror).  So we grep stderr for any message
4795      # that says an option was ignored or not supported.
4796      # When given -MP, icc 7.0 and 7.1 complain thusly:
4797      #   icc: Command line warning: ignoring option '-M'; no argument required
4798      # The diagnosis changed in icc 8.0:
4799      #   icc: Command line remark: option '-MP' not supported
4800      if (grep 'ignoring option' conftest.err ||
4801          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4802        am_cv_CC_dependencies_compiler_type=$depmode
4803        break
4804      fi
4805    fi
4806  done
4807
4808  cd ..
4809  rm -rf conftest.dir
4810else
4811  am_cv_CC_dependencies_compiler_type=none
4812fi
4813
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4816$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4817CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4818
4819 if
4820  test "x$enable_dependency_tracking" != xno \
4821  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4822  am__fastdepCC_TRUE=
4823  am__fastdepCC_FALSE='#'
4824else
4825  am__fastdepCC_TRUE='#'
4826  am__fastdepCC_FALSE=
4827fi
4828
4829
4830ac_ext=c
4831ac_cpp='$CPP $CPPFLAGS'
4832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4836$as_echo_n "checking how to run the C preprocessor... " >&6; }
4837# On Suns, sometimes $CPP names a directory.
4838if test -n "$CPP" && test -d "$CPP"; then
4839  CPP=
4840fi
4841if test -z "$CPP"; then
4842  if ${ac_cv_prog_CPP+:} false; then :
4843  $as_echo_n "(cached) " >&6
4844else
4845      # Double quotes because CPP needs to be expanded
4846    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4847    do
4848      ac_preproc_ok=false
4849for ac_c_preproc_warn_flag in '' yes
4850do
4851  # Use a header file that comes with gcc, so configuring glibc
4852  # with a fresh cross-compiler works.
4853  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4854  # <limits.h> exists even on freestanding compilers.
4855  # On the NeXT, cc -E runs the code through the compiler's parser,
4856  # not just through cpp. "Syntax error" is here to catch this case.
4857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858/* end confdefs.h.  */
4859#ifdef __STDC__
4860# include <limits.h>
4861#else
4862# include <assert.h>
4863#endif
4864                     Syntax error
4865_ACEOF
4866if ac_fn_c_try_cpp "$LINENO"; then :
4867
4868else
4869  # Broken: fails on valid input.
4870continue
4871fi
4872rm -f conftest.err conftest.i conftest.$ac_ext
4873
4874  # OK, works on sane cases.  Now check whether nonexistent headers
4875  # can be detected and how.
4876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h.  */
4878#include <ac_nonexistent.h>
4879_ACEOF
4880if ac_fn_c_try_cpp "$LINENO"; then :
4881  # Broken: success on invalid input.
4882continue
4883else
4884  # Passes both tests.
4885ac_preproc_ok=:
4886break
4887fi
4888rm -f conftest.err conftest.i conftest.$ac_ext
4889
4890done
4891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892rm -f conftest.i conftest.err conftest.$ac_ext
4893if $ac_preproc_ok; then :
4894  break
4895fi
4896
4897    done
4898    ac_cv_prog_CPP=$CPP
4899
4900fi
4901  CPP=$ac_cv_prog_CPP
4902else
4903  ac_cv_prog_CPP=$CPP
4904fi
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4906$as_echo "$CPP" >&6; }
4907ac_preproc_ok=false
4908for ac_c_preproc_warn_flag in '' yes
4909do
4910  # Use a header file that comes with gcc, so configuring glibc
4911  # with a fresh cross-compiler works.
4912  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913  # <limits.h> exists even on freestanding compilers.
4914  # On the NeXT, cc -E runs the code through the compiler's parser,
4915  # not just through cpp. "Syntax error" is here to catch this case.
4916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917/* end confdefs.h.  */
4918#ifdef __STDC__
4919# include <limits.h>
4920#else
4921# include <assert.h>
4922#endif
4923                     Syntax error
4924_ACEOF
4925if ac_fn_c_try_cpp "$LINENO"; then :
4926
4927else
4928  # Broken: fails on valid input.
4929continue
4930fi
4931rm -f conftest.err conftest.i conftest.$ac_ext
4932
4933  # OK, works on sane cases.  Now check whether nonexistent headers
4934  # can be detected and how.
4935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936/* end confdefs.h.  */
4937#include <ac_nonexistent.h>
4938_ACEOF
4939if ac_fn_c_try_cpp "$LINENO"; then :
4940  # Broken: success on invalid input.
4941continue
4942else
4943  # Passes both tests.
4944ac_preproc_ok=:
4945break
4946fi
4947rm -f conftest.err conftest.i conftest.$ac_ext
4948
4949done
4950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4951rm -f conftest.i conftest.err conftest.$ac_ext
4952if $ac_preproc_ok; then :
4953
4954else
4955  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4958See \`config.log' for more details" "$LINENO" 5; }
4959fi
4960
4961ac_ext=c
4962ac_cpp='$CPP $CPPFLAGS'
4963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966
4967
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4969$as_echo_n "checking whether ln -s works... " >&6; }
4970LN_S=$as_ln_s
4971if test "$LN_S" = "ln -s"; then
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4973$as_echo "yes" >&6; }
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4976$as_echo "no, using $LN_S" >&6; }
4977fi
4978
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4980$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4981set x ${MAKE-make}
4982ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4983if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4984  $as_echo_n "(cached) " >&6
4985else
4986  cat >conftest.make <<\_ACEOF
4987SHELL = /bin/sh
4988all:
4989        @echo '@@@%%%=$(MAKE)=@@@%%%'
4990_ACEOF
4991# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4992case `${MAKE-make} -f conftest.make 2>/dev/null` in
4993  *@@@%%%=?*=@@@%%%*)
4994    eval ac_cv_prog_make_${ac_make}_set=yes;;
4995  *)
4996    eval ac_cv_prog_make_${ac_make}_set=no;;
4997esac
4998rm -f conftest.make
4999fi
5000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5002$as_echo "yes" >&6; }
5003  SET_MAKE=
5004else
5005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
5007  SET_MAKE="MAKE=${MAKE-make}"
5008fi
5009
5010# Make sure we can run config.sub.
5011$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5012  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5013
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5015$as_echo_n "checking build system type... " >&6; }
5016if ${ac_cv_build+:} false; then :
5017  $as_echo_n "(cached) " >&6
5018else
5019  ac_build_alias=$build_alias
5020test "x$ac_build_alias" = x &&
5021  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5022test "x$ac_build_alias" = x &&
5023  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5024ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5025  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5026
5027fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5029$as_echo "$ac_cv_build" >&6; }
5030case $ac_cv_build in
5031*-*-*) ;;
5032*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5033esac
5034build=$ac_cv_build
5035ac_save_IFS=$IFS; IFS='-'
5036set x $ac_cv_build
5037shift
5038build_cpu=$1
5039build_vendor=$2
5040shift; shift
5041# Remember, the first character of IFS is used to create $*,
5042# except with old shells:
5043build_os=$*
5044IFS=$ac_save_IFS
5045case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5046
5047
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5049$as_echo_n "checking host system type... " >&6; }
5050if ${ac_cv_host+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  if test "x$host_alias" = x; then
5054  ac_cv_host=$ac_cv_build
5055else
5056  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5057    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5058fi
5059
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5062$as_echo "$ac_cv_host" >&6; }
5063case $ac_cv_host in
5064*-*-*) ;;
5065*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5066esac
5067host=$ac_cv_host
5068ac_save_IFS=$IFS; IFS='-'
5069set x $ac_cv_host
5070shift
5071host_cpu=$1
5072host_vendor=$2
5073shift; shift
5074# Remember, the first character of IFS is used to create $*,
5075# except with old shells:
5076host_os=$*
5077IFS=$ac_save_IFS
5078case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5079
5080
5081enable_win32_dll=yes
5082
5083case $host in
5084*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5085  if test -n "$ac_tool_prefix"; then
5086  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5087set dummy ${ac_tool_prefix}as; ac_word=$2
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089$as_echo_n "checking for $ac_word... " >&6; }
5090if ${ac_cv_prog_AS+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093  if test -n "$AS"; then
5094  ac_cv_prog_AS="$AS" # Let the user override the test.
5095else
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099  IFS=$as_save_IFS
5100  test -z "$as_dir" && as_dir=.
5101    for ac_exec_ext in '' $ac_executable_extensions; do
5102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103    ac_cv_prog_AS="${ac_tool_prefix}as"
5104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105    break 2
5106  fi
5107done
5108  done
5109IFS=$as_save_IFS
5110
5111fi
5112fi
5113AS=$ac_cv_prog_AS
5114if test -n "$AS"; then
5115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5116$as_echo "$AS" >&6; }
5117else
5118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119$as_echo "no" >&6; }
5120fi
5121
5122
5123fi
5124if test -z "$ac_cv_prog_AS"; then
5125  ac_ct_AS=$AS
5126  # Extract the first word of "as", so it can be a program name with args.
5127set dummy as; ac_word=$2
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129$as_echo_n "checking for $ac_word... " >&6; }
5130if ${ac_cv_prog_ac_ct_AS+:} false; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133  if test -n "$ac_ct_AS"; then
5134  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139  IFS=$as_save_IFS
5140  test -z "$as_dir" && as_dir=.
5141    for ac_exec_ext in '' $ac_executable_extensions; do
5142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143    ac_cv_prog_ac_ct_AS="as"
5144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145    break 2
5146  fi
5147done
5148  done
5149IFS=$as_save_IFS
5150
5151fi
5152fi
5153ac_ct_AS=$ac_cv_prog_ac_ct_AS
5154if test -n "$ac_ct_AS"; then
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5156$as_echo "$ac_ct_AS" >&6; }
5157else
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161
5162  if test "x$ac_ct_AS" = x; then
5163    AS="false"
5164  else
5165    case $cross_compiling:$ac_tool_warned in
5166yes:)
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169ac_tool_warned=yes ;;
5170esac
5171    AS=$ac_ct_AS
5172  fi
5173else
5174  AS="$ac_cv_prog_AS"
5175fi
5176
5177  if test -n "$ac_tool_prefix"; then
5178  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5179set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
5182if ${ac_cv_prog_DLLTOOL+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  if test -n "$DLLTOOL"; then
5186  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193    for ac_exec_ext in '' $ac_executable_extensions; do
5194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200  done
5201IFS=$as_save_IFS
5202
5203fi
5204fi
5205DLLTOOL=$ac_cv_prog_DLLTOOL
5206if test -n "$DLLTOOL"; then
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5208$as_echo "$DLLTOOL" >&6; }
5209else
5210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213
5214
5215fi
5216if test -z "$ac_cv_prog_DLLTOOL"; then
5217  ac_ct_DLLTOOL=$DLLTOOL
5218  # Extract the first word of "dlltool", so it can be a program name with args.
5219set dummy dlltool; ac_word=$2
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221$as_echo_n "checking for $ac_word... " >&6; }
5222if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5223  $as_echo_n "(cached) " >&6
5224else
5225  if test -n "$ac_ct_DLLTOOL"; then
5226  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5227else
5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231  IFS=$as_save_IFS
5232  test -z "$as_dir" && as_dir=.
5233    for ac_exec_ext in '' $ac_executable_extensions; do
5234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237    break 2
5238  fi
5239done
5240  done
5241IFS=$as_save_IFS
5242
5243fi
5244fi
5245ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5246if test -n "$ac_ct_DLLTOOL"; then
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5248$as_echo "$ac_ct_DLLTOOL" >&6; }
5249else
5250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251$as_echo "no" >&6; }
5252fi
5253
5254  if test "x$ac_ct_DLLTOOL" = x; then
5255    DLLTOOL="false"
5256  else
5257    case $cross_compiling:$ac_tool_warned in
5258yes:)
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5261ac_tool_warned=yes ;;
5262esac
5263    DLLTOOL=$ac_ct_DLLTOOL
5264  fi
5265else
5266  DLLTOOL="$ac_cv_prog_DLLTOOL"
5267fi
5268
5269  if test -n "$ac_tool_prefix"; then
5270  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5271set dummy ${ac_tool_prefix}objdump; ac_word=$2
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273$as_echo_n "checking for $ac_word... " >&6; }
5274if ${ac_cv_prog_OBJDUMP+:} false; then :
5275  $as_echo_n "(cached) " >&6
5276else
5277  if test -n "$OBJDUMP"; then
5278  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5279else
5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH
5282do
5283  IFS=$as_save_IFS
5284  test -z "$as_dir" && as_dir=.
5285    for ac_exec_ext in '' $ac_executable_extensions; do
5286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289    break 2
5290  fi
5291done
5292  done
5293IFS=$as_save_IFS
5294
5295fi
5296fi
5297OBJDUMP=$ac_cv_prog_OBJDUMP
5298if test -n "$OBJDUMP"; then
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5300$as_echo "$OBJDUMP" >&6; }
5301else
5302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }
5304fi
5305
5306
5307fi
5308if test -z "$ac_cv_prog_OBJDUMP"; then
5309  ac_ct_OBJDUMP=$OBJDUMP
5310  # Extract the first word of "objdump", so it can be a program name with args.
5311set dummy objdump; ac_word=$2
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  if test -n "$ac_ct_OBJDUMP"; then
5318  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323  IFS=$as_save_IFS
5324  test -z "$as_dir" && as_dir=.
5325    for ac_exec_ext in '' $ac_executable_extensions; do
5326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329    break 2
5330  fi
5331done
5332  done
5333IFS=$as_save_IFS
5334
5335fi
5336fi
5337ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5338if test -n "$ac_ct_OBJDUMP"; then
5339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5340$as_echo "$ac_ct_OBJDUMP" >&6; }
5341else
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344fi
5345
5346  if test "x$ac_ct_OBJDUMP" = x; then
5347    OBJDUMP="false"
5348  else
5349    case $cross_compiling:$ac_tool_warned in
5350yes:)
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353ac_tool_warned=yes ;;
5354esac
5355    OBJDUMP=$ac_ct_OBJDUMP
5356  fi
5357else
5358  OBJDUMP="$ac_cv_prog_OBJDUMP"
5359fi
5360
5361  ;;
5362esac
5363
5364test -z "$AS" && AS=as
5365
5366
5367
5368
5369
5370test -z "$DLLTOOL" && DLLTOOL=dlltool
5371
5372
5373
5374
5375
5376test -z "$OBJDUMP" && OBJDUMP=objdump
5377
5378
5379
5380
5381
5382
5383
5384case `pwd` in
5385  *\ * | *\     *)
5386    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5387$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5388esac
5389
5390
5391
5392macro_version='2.4.2'
5393macro_revision='1.3337'
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407ltmain="$ac_aux_dir/ltmain.sh"
5408
5409# Backslashify metacharacters that are still active within
5410# double-quoted strings.
5411sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5412
5413# Same as above, but do not quote variable references.
5414double_quote_subst='s/\(["`\\]\)/\\\1/g'
5415
5416# Sed substitution to delay expansion of an escaped shell variable in a
5417# double_quote_subst'ed string.
5418delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5419
5420# Sed substitution to delay expansion of an escaped single quote.
5421delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5422
5423# Sed substitution to avoid accidental globbing in evaled expressions
5424no_glob_subst='s/\*/\\\*/g'
5425
5426ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5427ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5428ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5429
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5431$as_echo_n "checking how to print strings... " >&6; }
5432# Test print first, because it will be a builtin if present.
5433if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5434   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5435  ECHO='print -r --'
5436elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5437  ECHO='printf %s\n'
5438else
5439  # Use this function as a fallback that always works.
5440  func_fallback_echo ()
5441  {
5442    eval 'cat <<_LTECHO_EOF
5443$1
5444_LTECHO_EOF'
5445  }
5446  ECHO='func_fallback_echo'
5447fi
5448
5449# func_echo_all arg...
5450# Invoke $ECHO with all args, space-separated.
5451func_echo_all ()
5452{
5453    $ECHO ""
5454}
5455
5456case "$ECHO" in
5457  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5458$as_echo "printf" >&6; } ;;
5459  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5460$as_echo "print -r" >&6; } ;;
5461  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5462$as_echo "cat" >&6; } ;;
5463esac
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5479$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5480if ${ac_cv_path_SED+:} false; then :
5481  $as_echo_n "(cached) " >&6
5482else
5483            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5484     for ac_i in 1 2 3 4 5 6 7; do
5485       ac_script="$ac_script$as_nl$ac_script"
5486     done
5487     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5488     { ac_script=; unset ac_script;}
5489     if test -z "$SED"; then
5490  ac_path_SED_found=false
5491  # Loop through the user's path and test for each of PROGNAME-LIST
5492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495  IFS=$as_save_IFS
5496  test -z "$as_dir" && as_dir=.
5497    for ac_prog in sed gsed; do
5498    for ac_exec_ext in '' $ac_executable_extensions; do
5499      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5500      as_fn_executable_p "$ac_path_SED" || continue
5501# Check for GNU ac_path_SED and select it if it is found.
5502  # Check for GNU $ac_path_SED
5503case `"$ac_path_SED" --version 2>&1` in
5504*GNU*)
5505  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5506*)
5507  ac_count=0
5508  $as_echo_n 0123456789 >"conftest.in"
5509  while :
5510  do
5511    cat "conftest.in" "conftest.in" >"conftest.tmp"
5512    mv "conftest.tmp" "conftest.in"
5513    cp "conftest.in" "conftest.nl"
5514    $as_echo '' >> "conftest.nl"
5515    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5516    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5517    as_fn_arith $ac_count + 1 && ac_count=$as_val
5518    if test $ac_count -gt ${ac_path_SED_max-0}; then
5519      # Best one so far, save it but keep looking for a better one
5520      ac_cv_path_SED="$ac_path_SED"
5521      ac_path_SED_max=$ac_count
5522    fi
5523    # 10*(2^10) chars as input seems more than enough
5524    test $ac_count -gt 10 && break
5525  done
5526  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5527esac
5528
5529      $ac_path_SED_found && break 3
5530    done
5531  done
5532  done
5533IFS=$as_save_IFS
5534  if test -z "$ac_cv_path_SED"; then
5535    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5536  fi
5537else
5538  ac_cv_path_SED=$SED
5539fi
5540
5541fi
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5543$as_echo "$ac_cv_path_SED" >&6; }
5544 SED="$ac_cv_path_SED"
5545  rm -f conftest.sed
5546
5547test -z "$SED" && SED=sed
5548Xsed="$SED -e 1s/^X//"
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5561$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5562if ${ac_cv_path_GREP+:} false; then :
5563  $as_echo_n "(cached) " >&6
5564else
5565  if test -z "$GREP"; then
5566  ac_path_GREP_found=false
5567  # Loop through the user's path and test for each of PROGNAME-LIST
5568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5570do
5571  IFS=$as_save_IFS
5572  test -z "$as_dir" && as_dir=.
5573    for ac_prog in grep ggrep; do
5574    for ac_exec_ext in '' $ac_executable_extensions; do
5575      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5576      as_fn_executable_p "$ac_path_GREP" || continue
5577# Check for GNU ac_path_GREP and select it if it is found.
5578  # Check for GNU $ac_path_GREP
5579case `"$ac_path_GREP" --version 2>&1` in
5580*GNU*)
5581  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5582*)
5583  ac_count=0
5584  $as_echo_n 0123456789 >"conftest.in"
5585  while :
5586  do
5587    cat "conftest.in" "conftest.in" >"conftest.tmp"
5588    mv "conftest.tmp" "conftest.in"
5589    cp "conftest.in" "conftest.nl"
5590    $as_echo 'GREP' >> "conftest.nl"
5591    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5592    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5593    as_fn_arith $ac_count + 1 && ac_count=$as_val
5594    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5595      # Best one so far, save it but keep looking for a better one
5596      ac_cv_path_GREP="$ac_path_GREP"
5597      ac_path_GREP_max=$ac_count
5598    fi
5599    # 10*(2^10) chars as input seems more than enough
5600    test $ac_count -gt 10 && break
5601  done
5602  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5603esac
5604
5605      $ac_path_GREP_found && break 3
5606    done
5607  done
5608  done
5609IFS=$as_save_IFS
5610  if test -z "$ac_cv_path_GREP"; then
5611    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5612  fi
5613else
5614  ac_cv_path_GREP=$GREP
5615fi
5616
5617fi
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5619$as_echo "$ac_cv_path_GREP" >&6; }
5620 GREP="$ac_cv_path_GREP"
5621
5622
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5624$as_echo_n "checking for egrep... " >&6; }
5625if ${ac_cv_path_EGREP+:} false; then :
5626  $as_echo_n "(cached) " >&6
5627else
5628  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5629   then ac_cv_path_EGREP="$GREP -E"
5630   else
5631     if test -z "$EGREP"; then
5632  ac_path_EGREP_found=false
5633  # Loop through the user's path and test for each of PROGNAME-LIST
5634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5636do
5637  IFS=$as_save_IFS
5638  test -z "$as_dir" && as_dir=.
5639    for ac_prog in egrep; do
5640    for ac_exec_ext in '' $ac_executable_extensions; do
5641      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5642      as_fn_executable_p "$ac_path_EGREP" || continue
5643# Check for GNU ac_path_EGREP and select it if it is found.
5644  # Check for GNU $ac_path_EGREP
5645case `"$ac_path_EGREP" --version 2>&1` in
5646*GNU*)
5647  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5648*)
5649  ac_count=0
5650  $as_echo_n 0123456789 >"conftest.in"
5651  while :
5652  do
5653    cat "conftest.in" "conftest.in" >"conftest.tmp"
5654    mv "conftest.tmp" "conftest.in"
5655    cp "conftest.in" "conftest.nl"
5656    $as_echo 'EGREP' >> "conftest.nl"
5657    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5658    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5659    as_fn_arith $ac_count + 1 && ac_count=$as_val
5660    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5661      # Best one so far, save it but keep looking for a better one
5662      ac_cv_path_EGREP="$ac_path_EGREP"
5663      ac_path_EGREP_max=$ac_count
5664    fi
5665    # 10*(2^10) chars as input seems more than enough
5666    test $ac_count -gt 10 && break
5667  done
5668  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5669esac
5670
5671      $ac_path_EGREP_found && break 3
5672    done
5673  done
5674  done
5675IFS=$as_save_IFS
5676  if test -z "$ac_cv_path_EGREP"; then
5677    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5678  fi
5679else
5680  ac_cv_path_EGREP=$EGREP
5681fi
5682
5683   fi
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5686$as_echo "$ac_cv_path_EGREP" >&6; }
5687 EGREP="$ac_cv_path_EGREP"
5688
5689
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5691$as_echo_n "checking for fgrep... " >&6; }
5692if ${ac_cv_path_FGREP+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5696   then ac_cv_path_FGREP="$GREP -F"
5697   else
5698     if test -z "$FGREP"; then
5699  ac_path_FGREP_found=false
5700  # Loop through the user's path and test for each of PROGNAME-LIST
5701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5703do
5704  IFS=$as_save_IFS
5705  test -z "$as_dir" && as_dir=.
5706    for ac_prog in fgrep; do
5707    for ac_exec_ext in '' $ac_executable_extensions; do
5708      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5709      as_fn_executable_p "$ac_path_FGREP" || continue
5710# Check for GNU ac_path_FGREP and select it if it is found.
5711  # Check for GNU $ac_path_FGREP
5712case `"$ac_path_FGREP" --version 2>&1` in
5713*GNU*)
5714  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5715*)
5716  ac_count=0
5717  $as_echo_n 0123456789 >"conftest.in"
5718  while :
5719  do
5720    cat "conftest.in" "conftest.in" >"conftest.tmp"
5721    mv "conftest.tmp" "conftest.in"
5722    cp "conftest.in" "conftest.nl"
5723    $as_echo 'FGREP' >> "conftest.nl"
5724    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726    as_fn_arith $ac_count + 1 && ac_count=$as_val
5727    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5728      # Best one so far, save it but keep looking for a better one
5729      ac_cv_path_FGREP="$ac_path_FGREP"
5730      ac_path_FGREP_max=$ac_count
5731    fi
5732    # 10*(2^10) chars as input seems more than enough
5733    test $ac_count -gt 10 && break
5734  done
5735  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5736esac
5737
5738      $ac_path_FGREP_found && break 3
5739    done
5740  done
5741  done
5742IFS=$as_save_IFS
5743  if test -z "$ac_cv_path_FGREP"; then
5744    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5745  fi
5746else
5747  ac_cv_path_FGREP=$FGREP
5748fi
5749
5750   fi
5751fi
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5753$as_echo "$ac_cv_path_FGREP" >&6; }
5754 FGREP="$ac_cv_path_FGREP"
5755
5756
5757test -z "$GREP" && GREP=grep
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777# Check whether --with-gnu-ld was given.
5778if test "${with_gnu_ld+set}" = set; then :
5779  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5780else
5781  with_gnu_ld=no
5782fi
5783
5784ac_prog=ld
5785if test "$GCC" = yes; then
5786  # Check if gcc -print-prog-name=ld gives a path.
5787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5788$as_echo_n "checking for ld used by $CC... " >&6; }
5789  case $host in
5790  *-*-mingw*)
5791    # gcc leaves a trailing carriage return which upsets mingw
5792    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5793  *)
5794    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5795  esac
5796  case $ac_prog in
5797    # Accept absolute paths.
5798    [\\/]* | ?:[\\/]*)
5799      re_direlt='/[^/][^/]*/\.\./'
5800      # Canonicalize the pathname of ld
5801      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5802      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5803        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5804      done
5805      test -z "$LD" && LD="$ac_prog"
5806      ;;
5807  "")
5808    # If it fails, then pretend we aren't using GCC.
5809    ac_prog=ld
5810    ;;
5811  *)
5812    # If it is relative, then search for the first ld in PATH.
5813    with_gnu_ld=unknown
5814    ;;
5815  esac
5816elif test "$with_gnu_ld" = yes; then
5817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5818$as_echo_n "checking for GNU ld... " >&6; }
5819else
5820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5821$as_echo_n "checking for non-GNU ld... " >&6; }
5822fi
5823if ${lt_cv_path_LD+:} false; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  if test -z "$LD"; then
5827  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828  for ac_dir in $PATH; do
5829    IFS="$lt_save_ifs"
5830    test -z "$ac_dir" && ac_dir=.
5831    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5832      lt_cv_path_LD="$ac_dir/$ac_prog"
5833      # Check to see if the program is GNU ld.  I'd rather use --version,
5834      # but apparently some variants of GNU ld only accept -v.
5835      # Break only if it was the GNU/non-GNU ld that we prefer.
5836      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5837      *GNU* | *'with BFD'*)
5838        test "$with_gnu_ld" != no && break
5839        ;;
5840      *)
5841        test "$with_gnu_ld" != yes && break
5842        ;;
5843      esac
5844    fi
5845  done
5846  IFS="$lt_save_ifs"
5847else
5848  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5849fi
5850fi
5851
5852LD="$lt_cv_path_LD"
5853if test -n "$LD"; then
5854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5855$as_echo "$LD" >&6; }
5856else
5857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858$as_echo "no" >&6; }
5859fi
5860test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5862$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5863if ${lt_cv_prog_gnu_ld+:} false; then :
5864  $as_echo_n "(cached) " >&6
5865else
5866  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5867case `$LD -v 2>&1 </dev/null` in
5868*GNU* | *'with BFD'*)
5869  lt_cv_prog_gnu_ld=yes
5870  ;;
5871*)
5872  lt_cv_prog_gnu_ld=no
5873  ;;
5874esac
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5877$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5878with_gnu_ld=$lt_cv_prog_gnu_ld
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5889$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5890if ${lt_cv_path_NM+:} false; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  if test -n "$NM"; then
5894  # Let the user override the test.
5895  lt_cv_path_NM="$NM"
5896else
5897  lt_nm_to_check="${ac_tool_prefix}nm"
5898  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5899    lt_nm_to_check="$lt_nm_to_check nm"
5900  fi
5901  for lt_tmp_nm in $lt_nm_to_check; do
5902    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5903    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5904      IFS="$lt_save_ifs"
5905      test -z "$ac_dir" && ac_dir=.
5906      tmp_nm="$ac_dir/$lt_tmp_nm"
5907      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5908        # Check to see if the nm accepts a BSD-compat flag.
5909        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5910        #   nm: unknown option "B" ignored
5911        # Tru64's nm complains that /dev/null is an invalid object file
5912        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5913        */dev/null* | *'Invalid file or object type'*)
5914          lt_cv_path_NM="$tmp_nm -B"
5915          break
5916          ;;
5917        *)
5918          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5919          */dev/null*)
5920            lt_cv_path_NM="$tmp_nm -p"
5921            break
5922            ;;
5923          *)
5924            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5925            continue # so that we can try to find one that supports BSD flags
5926            ;;
5927          esac
5928          ;;
5929        esac
5930      fi
5931    done
5932    IFS="$lt_save_ifs"
5933  done
5934  : ${lt_cv_path_NM=no}
5935fi
5936fi
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5938$as_echo "$lt_cv_path_NM" >&6; }
5939if test "$lt_cv_path_NM" != "no"; then
5940  NM="$lt_cv_path_NM"
5941else
5942  # Didn't find any BSD compatible name lister, look for dumpbin.
5943  if test -n "$DUMPBIN"; then :
5944    # Let the user override the test.
5945  else
5946    if test -n "$ac_tool_prefix"; then
5947  for ac_prog in dumpbin "link -dump"
5948  do
5949    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952$as_echo_n "checking for $ac_word... " >&6; }
5953if ${ac_cv_prog_DUMPBIN+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956  if test -n "$DUMPBIN"; then
5957  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962  IFS=$as_save_IFS
5963  test -z "$as_dir" && as_dir=.
5964    for ac_exec_ext in '' $ac_executable_extensions; do
5965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968    break 2
5969  fi
5970done
5971  done
5972IFS=$as_save_IFS
5973
5974fi
5975fi
5976DUMPBIN=$ac_cv_prog_DUMPBIN
5977if test -n "$DUMPBIN"; then
5978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5979$as_echo "$DUMPBIN" >&6; }
5980else
5981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982$as_echo "no" >&6; }
5983fi
5984
5985
5986    test -n "$DUMPBIN" && break
5987  done
5988fi
5989if test -z "$DUMPBIN"; then
5990  ac_ct_DUMPBIN=$DUMPBIN
5991  for ac_prog in dumpbin "link -dump"
5992do
5993  # Extract the first word of "$ac_prog", so it can be a program name with args.
5994set dummy $ac_prog; ac_word=$2
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996$as_echo_n "checking for $ac_word... " >&6; }
5997if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5998  $as_echo_n "(cached) " >&6
5999else
6000  if test -n "$ac_ct_DUMPBIN"; then
6001  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006  IFS=$as_save_IFS
6007  test -z "$as_dir" && as_dir=.
6008    for ac_exec_ext in '' $ac_executable_extensions; do
6009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012    break 2
6013  fi
6014done
6015  done
6016IFS=$as_save_IFS
6017
6018fi
6019fi
6020ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6021if test -n "$ac_ct_DUMPBIN"; then
6022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6023$as_echo "$ac_ct_DUMPBIN" >&6; }
6024else
6025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026$as_echo "no" >&6; }
6027fi
6028
6029
6030  test -n "$ac_ct_DUMPBIN" && break
6031done
6032
6033  if test "x$ac_ct_DUMPBIN" = x; then
6034    DUMPBIN=":"
6035  else
6036    case $cross_compiling:$ac_tool_warned in
6037yes:)
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6040ac_tool_warned=yes ;;
6041esac
6042    DUMPBIN=$ac_ct_DUMPBIN
6043  fi
6044fi
6045
6046    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6047    *COFF*)
6048      DUMPBIN="$DUMPBIN -symbols"
6049      ;;
6050    *)
6051      DUMPBIN=:
6052      ;;
6053    esac
6054  fi
6055
6056  if test "$DUMPBIN" != ":"; then
6057    NM="$DUMPBIN"
6058  fi
6059fi
6060test -z "$NM" && NM=nm
6061
6062
6063
6064
6065
6066
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6068$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6069if ${lt_cv_nm_interface+:} false; then :
6070  $as_echo_n "(cached) " >&6
6071else
6072  lt_cv_nm_interface="BSD nm"
6073  echo "int some_variable = 0;" > conftest.$ac_ext
6074  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6075  (eval "$ac_compile" 2>conftest.err)
6076  cat conftest.err >&5
6077  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6078  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6079  cat conftest.err >&5
6080  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6081  cat conftest.out >&5
6082  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6083    lt_cv_nm_interface="MS dumpbin"
6084  fi
6085  rm -f conftest*
6086fi
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6088$as_echo "$lt_cv_nm_interface" >&6; }
6089
6090# find the maximum length of command line arguments
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6092$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6093if ${lt_cv_sys_max_cmd_len+:} false; then :
6094  $as_echo_n "(cached) " >&6
6095else
6096    i=0
6097  teststring="ABCD"
6098
6099  case $build_os in
6100  msdosdjgpp*)
6101    # On DJGPP, this test can blow up pretty badly due to problems in libc
6102    # (any single argument exceeding 2000 bytes causes a buffer overrun
6103    # during glob expansion).  Even if it were fixed, the result of this
6104    # check would be larger than it should be.
6105    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6106    ;;
6107
6108  gnu*)
6109    # Under GNU Hurd, this test is not required because there is
6110    # no limit to the length of command line arguments.
6111    # Libtool will interpret -1 as no limit whatsoever
6112    lt_cv_sys_max_cmd_len=-1;
6113    ;;
6114
6115  cygwin* | mingw* | cegcc*)
6116    # On Win9x/ME, this test blows up -- it succeeds, but takes
6117    # about 5 minutes as the teststring grows exponentially.
6118    # Worse, since 9x/ME are not pre-emptively multitasking,
6119    # you end up with a "frozen" computer, even though with patience
6120    # the test eventually succeeds (with a max line length of 256k).
6121    # Instead, let's just punt: use the minimum linelength reported by
6122    # all of the supported platforms: 8192 (on NT/2K/XP).
6123    lt_cv_sys_max_cmd_len=8192;
6124    ;;
6125
6126  mint*)
6127    # On MiNT this can take a long time and run out of memory.
6128    lt_cv_sys_max_cmd_len=8192;
6129    ;;
6130
6131  amigaos*)
6132    # On AmigaOS with pdksh, this test takes hours, literally.
6133    # So we just punt and use a minimum line length of 8192.
6134    lt_cv_sys_max_cmd_len=8192;
6135    ;;
6136
6137  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6138    # This has been around since 386BSD, at least.  Likely further.
6139    if test -x /sbin/sysctl; then
6140      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6141    elif test -x /usr/sbin/sysctl; then
6142      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6143    else
6144      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6145    fi
6146    # And add a safety zone
6147    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6148    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6149    ;;
6150
6151  interix*)
6152    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6153    lt_cv_sys_max_cmd_len=196608
6154    ;;
6155
6156  os2*)
6157    # The test takes a long time on OS/2.
6158    lt_cv_sys_max_cmd_len=8192
6159    ;;
6160
6161  osf*)
6162    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6163    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6164    # nice to cause kernel panics so lets avoid the loop below.
6165    # First set a reasonable default.
6166    lt_cv_sys_max_cmd_len=16384
6167    #
6168    if test -x /sbin/sysconfig; then
6169      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6170        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6171      esac
6172    fi
6173    ;;
6174  sco3.2v5*)
6175    lt_cv_sys_max_cmd_len=102400
6176    ;;
6177  sysv5* | sco5v6* | sysv4.2uw2*)
6178    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6179    if test -n "$kargmax"; then
6180      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6181    else
6182      lt_cv_sys_max_cmd_len=32768
6183    fi
6184    ;;
6185  *)
6186    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6187    if test -n "$lt_cv_sys_max_cmd_len"; then
6188      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6189      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6190    else
6191      # Make teststring a little bigger before we do anything with it.
6192      # a 1K string should be a reasonable start.
6193      for i in 1 2 3 4 5 6 7 8 ; do
6194        teststring=$teststring$teststring
6195      done
6196      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6197      # If test is not a shell built-in, we'll probably end up computing a
6198      # maximum length that is only half of the actual maximum length, but
6199      # we can't tell.
6200      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6201                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6202              test $i != 17 # 1/2 MB should be enough
6203      do
6204        i=`expr $i + 1`
6205        teststring=$teststring$teststring
6206      done
6207      # Only check the string length outside the loop.
6208      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6209      teststring=
6210      # Add a significant safety factor because C++ compilers can tack on
6211      # massive amounts of additional arguments before passing them to the
6212      # linker.  It appears as though 1/2 is a usable value.
6213      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6214    fi
6215    ;;
6216  esac
6217
6218fi
6219
6220if test -n $lt_cv_sys_max_cmd_len ; then
6221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6222$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6223else
6224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6225$as_echo "none" >&6; }
6226fi
6227max_cmd_len=$lt_cv_sys_max_cmd_len
6228
6229
6230
6231
6232
6233
6234: ${CP="cp -f"}
6235: ${MV="mv -f"}
6236: ${RM="rm -f"}
6237
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6239$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6240# Try some XSI features
6241xsi_shell=no
6242( _lt_dummy="a/b/c"
6243  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6244      = c,a/b,b/c, \
6245    && eval 'test $(( 1 + 1 )) -eq 2 \
6246    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6247  && xsi_shell=yes
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6249$as_echo "$xsi_shell" >&6; }
6250
6251
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6253$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6254lt_shell_append=no
6255( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6256    >/dev/null 2>&1 \
6257  && lt_shell_append=yes
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6259$as_echo "$lt_shell_append" >&6; }
6260
6261
6262if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6263  lt_unset=unset
6264else
6265  lt_unset=false
6266fi
6267
6268
6269
6270
6271
6272# test EBCDIC or ASCII
6273case `echo X|tr X '\101'` in
6274 A) # ASCII based system
6275    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6276  lt_SP2NL='tr \040 \012'
6277  lt_NL2SP='tr \015\012 \040\040'
6278  ;;
6279 *) # EBCDIC based system
6280  lt_SP2NL='tr \100 \n'
6281  lt_NL2SP='tr \r\n \100\100'
6282  ;;
6283esac
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6294$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6295if ${lt_cv_to_host_file_cmd+:} false; then :
6296  $as_echo_n "(cached) " >&6
6297else
6298  case $host in
6299  *-*-mingw* )
6300    case $build in
6301      *-*-mingw* ) # actually msys
6302        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6303        ;;
6304      *-*-cygwin* )
6305        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6306        ;;
6307      * ) # otherwise, assume *nix
6308        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6309        ;;
6310    esac
6311    ;;
6312  *-*-cygwin* )
6313    case $build in
6314      *-*-mingw* ) # actually msys
6315        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6316        ;;
6317      *-*-cygwin* )
6318        lt_cv_to_host_file_cmd=func_convert_file_noop
6319        ;;
6320      * ) # otherwise, assume *nix
6321        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6322        ;;
6323    esac
6324    ;;
6325  * ) # unhandled hosts (and "normal" native builds)
6326    lt_cv_to_host_file_cmd=func_convert_file_noop
6327    ;;
6328esac
6329
6330fi
6331
6332to_host_file_cmd=$lt_cv_to_host_file_cmd
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6334$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6335
6336
6337
6338
6339
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6341$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6342if ${lt_cv_to_tool_file_cmd+:} false; then :
6343  $as_echo_n "(cached) " >&6
6344else
6345  #assume ordinary cross tools, or native build.
6346lt_cv_to_tool_file_cmd=func_convert_file_noop
6347case $host in
6348  *-*-mingw* )
6349    case $build in
6350      *-*-mingw* ) # actually msys
6351        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6352        ;;
6353    esac
6354    ;;
6355esac
6356
6357fi
6358
6359to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6361$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6362
6363
6364
6365
6366
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6368$as_echo_n "checking for $LD option to reload object files... " >&6; }
6369if ${lt_cv_ld_reload_flag+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  lt_cv_ld_reload_flag='-r'
6373fi
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6375$as_echo "$lt_cv_ld_reload_flag" >&6; }
6376reload_flag=$lt_cv_ld_reload_flag
6377case $reload_flag in
6378"" | " "*) ;;
6379*) reload_flag=" $reload_flag" ;;
6380esac
6381reload_cmds='$LD$reload_flag -o $output$reload_objs'
6382case $host_os in
6383  cygwin* | mingw* | pw32* | cegcc*)
6384    if test "$GCC" != yes; then
6385      reload_cmds=false
6386    fi
6387    ;;
6388  darwin*)
6389    if test "$GCC" = yes; then
6390      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6391    else
6392      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6393    fi
6394    ;;
6395esac
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405if test -n "$ac_tool_prefix"; then
6406  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6407set dummy ${ac_tool_prefix}objdump; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if ${ac_cv_prog_OBJDUMP+:} false; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  if test -n "$OBJDUMP"; then
6414  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419  IFS=$as_save_IFS
6420  test -z "$as_dir" && as_dir=.
6421    for ac_exec_ext in '' $ac_executable_extensions; do
6422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425    break 2
6426  fi
6427done
6428  done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433OBJDUMP=$ac_cv_prog_OBJDUMP
6434if test -n "$OBJDUMP"; then
6435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6436$as_echo "$OBJDUMP" >&6; }
6437else
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442
6443fi
6444if test -z "$ac_cv_prog_OBJDUMP"; then
6445  ac_ct_OBJDUMP=$OBJDUMP
6446  # Extract the first word of "objdump", so it can be a program name with args.
6447set dummy objdump; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  if test -n "$ac_ct_OBJDUMP"; then
6454  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459  IFS=$as_save_IFS
6460  test -z "$as_dir" && as_dir=.
6461    for ac_exec_ext in '' $ac_executable_extensions; do
6462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465    break 2
6466  fi
6467done
6468  done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6474if test -n "$ac_ct_OBJDUMP"; then
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6476$as_echo "$ac_ct_OBJDUMP" >&6; }
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482  if test "x$ac_ct_OBJDUMP" = x; then
6483    OBJDUMP="false"
6484  else
6485    case $cross_compiling:$ac_tool_warned in
6486yes:)
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489ac_tool_warned=yes ;;
6490esac
6491    OBJDUMP=$ac_ct_OBJDUMP
6492  fi
6493else
6494  OBJDUMP="$ac_cv_prog_OBJDUMP"
6495fi
6496
6497test -z "$OBJDUMP" && OBJDUMP=objdump
6498
6499
6500
6501
6502
6503
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6505$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6506if ${lt_cv_deplibs_check_method+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  lt_cv_file_magic_cmd='$MAGIC_CMD'
6510lt_cv_file_magic_test_file=
6511lt_cv_deplibs_check_method='unknown'
6512# Need to set the preceding variable on all platforms that support
6513# interlibrary dependencies.
6514# 'none' -- dependencies not supported.
6515# `unknown' -- same as none, but documents that we really don't know.
6516# 'pass_all' -- all dependencies passed with no checks.
6517# 'test_compile' -- check by making test program.
6518# 'file_magic [[regex]]' -- check by looking for files in library path
6519# which responds to the $file_magic_cmd with a given extended regex.
6520# If you have `file' or equivalent on your system and you're not sure
6521# whether `pass_all' will *always* work, you probably want this one.
6522
6523case $host_os in
6524aix[4-9]*)
6525  lt_cv_deplibs_check_method=pass_all
6526  ;;
6527
6528beos*)
6529  lt_cv_deplibs_check_method=pass_all
6530  ;;
6531
6532bsdi[45]*)
6533  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6534  lt_cv_file_magic_cmd='/usr/bin/file -L'
6535  lt_cv_file_magic_test_file=/shlib/libc.so
6536  ;;
6537
6538cygwin*)
6539  # func_win32_libid is a shell function defined in ltmain.sh
6540  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6541  lt_cv_file_magic_cmd='func_win32_libid'
6542  ;;
6543
6544mingw* | pw32*)
6545  # Base MSYS/MinGW do not provide the 'file' command needed by
6546  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6547  # unless we find 'file', for example because we are cross-compiling.
6548  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6549  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6550    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6551    lt_cv_file_magic_cmd='func_win32_libid'
6552  else
6553    # Keep this pattern in sync with the one in func_win32_libid.
6554    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6555    lt_cv_file_magic_cmd='$OBJDUMP -f'
6556  fi
6557  ;;
6558
6559cegcc*)
6560  # use the weaker test based on 'objdump'. See mingw*.
6561  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6562  lt_cv_file_magic_cmd='$OBJDUMP -f'
6563  ;;
6564
6565darwin* | rhapsody*)
6566  lt_cv_deplibs_check_method=pass_all
6567  ;;
6568
6569freebsd* | dragonfly*)
6570  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6571    case $host_cpu in
6572    i*86 )
6573      # Not sure whether the presence of OpenBSD here was a mistake.
6574      # Let's accept both of them until this is cleared up.
6575      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6576      lt_cv_file_magic_cmd=/usr/bin/file
6577      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6578      ;;
6579    esac
6580  else
6581    lt_cv_deplibs_check_method=pass_all
6582  fi
6583  ;;
6584
6585gnu*)
6586  lt_cv_deplibs_check_method=pass_all
6587  ;;
6588
6589haiku*)
6590  lt_cv_deplibs_check_method=pass_all
6591  ;;
6592
6593hpux10.20* | hpux11*)
6594  lt_cv_file_magic_cmd=/usr/bin/file
6595  case $host_cpu in
6596  ia64*)
6597    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6598    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6599    ;;
6600  hppa*64*)
6601    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]'
6602    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6603    ;;
6604  *)
6605    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6606    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6607    ;;
6608  esac
6609  ;;
6610
6611interix[3-9]*)
6612  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6613  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6614  ;;
6615
6616irix5* | irix6* | nonstopux*)
6617  case $LD in
6618  *-32|*"-32 ") libmagic=32-bit;;
6619  *-n32|*"-n32 ") libmagic=N32;;
6620  *-64|*"-64 ") libmagic=64-bit;;
6621  *) libmagic=never-match;;
6622  esac
6623  lt_cv_deplibs_check_method=pass_all
6624  ;;
6625
6626# This must be glibc/ELF.
6627linux* | k*bsd*-gnu | kopensolaris*-gnu)
6628  lt_cv_deplibs_check_method=pass_all
6629  ;;
6630
6631netbsd*)
6632  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6633    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6634  else
6635    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6636  fi
6637  ;;
6638
6639newos6*)
6640  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6641  lt_cv_file_magic_cmd=/usr/bin/file
6642  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6643  ;;
6644
6645*nto* | *qnx*)
6646  lt_cv_deplibs_check_method=pass_all
6647  ;;
6648
6649openbsd*)
6650  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6651    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6652  else
6653    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6654  fi
6655  ;;
6656
6657osf3* | osf4* | osf5*)
6658  lt_cv_deplibs_check_method=pass_all
6659  ;;
6660
6661rdos*)
6662  lt_cv_deplibs_check_method=pass_all
6663  ;;
6664
6665solaris*)
6666  lt_cv_deplibs_check_method=pass_all
6667  ;;
6668
6669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6670  lt_cv_deplibs_check_method=pass_all
6671  ;;
6672
6673sysv4 | sysv4.3*)
6674  case $host_vendor in
6675  motorola)
6676    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]'
6677    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6678    ;;
6679  ncr)
6680    lt_cv_deplibs_check_method=pass_all
6681    ;;
6682  sequent)
6683    lt_cv_file_magic_cmd='/bin/file'
6684    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6685    ;;
6686  sni)
6687    lt_cv_file_magic_cmd='/bin/file'
6688    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6689    lt_cv_file_magic_test_file=/lib/libc.so
6690    ;;
6691  siemens)
6692    lt_cv_deplibs_check_method=pass_all
6693    ;;
6694  pc)
6695    lt_cv_deplibs_check_method=pass_all
6696    ;;
6697  esac
6698  ;;
6699
6700tpf*)
6701  lt_cv_deplibs_check_method=pass_all
6702  ;;
6703esac
6704
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6707$as_echo "$lt_cv_deplibs_check_method" >&6; }
6708
6709file_magic_glob=
6710want_nocaseglob=no
6711if test "$build" = "$host"; then
6712  case $host_os in
6713  mingw* | pw32*)
6714    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6715      want_nocaseglob=yes
6716    else
6717      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6718    fi
6719    ;;
6720  esac
6721fi
6722
6723file_magic_cmd=$lt_cv_file_magic_cmd
6724deplibs_check_method=$lt_cv_deplibs_check_method
6725test -z "$deplibs_check_method" && deplibs_check_method=unknown
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748if test -n "$ac_tool_prefix"; then
6749  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6750set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752$as_echo_n "checking for $ac_word... " >&6; }
6753if ${ac_cv_prog_DLLTOOL+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756  if test -n "$DLLTOOL"; then
6757  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6758else
6759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760for as_dir in $PATH
6761do
6762  IFS=$as_save_IFS
6763  test -z "$as_dir" && as_dir=.
6764    for ac_exec_ext in '' $ac_executable_extensions; do
6765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768    break 2
6769  fi
6770done
6771  done
6772IFS=$as_save_IFS
6773
6774fi
6775fi
6776DLLTOOL=$ac_cv_prog_DLLTOOL
6777if test -n "$DLLTOOL"; then
6778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6779$as_echo "$DLLTOOL" >&6; }
6780else
6781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782$as_echo "no" >&6; }
6783fi
6784
6785
6786fi
6787if test -z "$ac_cv_prog_DLLTOOL"; then
6788  ac_ct_DLLTOOL=$DLLTOOL
6789  # Extract the first word of "dlltool", so it can be a program name with args.
6790set dummy dlltool; ac_word=$2
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792$as_echo_n "checking for $ac_word... " >&6; }
6793if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6794  $as_echo_n "(cached) " >&6
6795else
6796  if test -n "$ac_ct_DLLTOOL"; then
6797  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6798else
6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802  IFS=$as_save_IFS
6803  test -z "$as_dir" && as_dir=.
6804    for ac_exec_ext in '' $ac_executable_extensions; do
6805  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808    break 2
6809  fi
6810done
6811  done
6812IFS=$as_save_IFS
6813
6814fi
6815fi
6816ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6817if test -n "$ac_ct_DLLTOOL"; then
6818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6819$as_echo "$ac_ct_DLLTOOL" >&6; }
6820else
6821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822$as_echo "no" >&6; }
6823fi
6824
6825  if test "x$ac_ct_DLLTOOL" = x; then
6826    DLLTOOL="false"
6827  else
6828    case $cross_compiling:$ac_tool_warned in
6829yes:)
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6832ac_tool_warned=yes ;;
6833esac
6834    DLLTOOL=$ac_ct_DLLTOOL
6835  fi
6836else
6837  DLLTOOL="$ac_cv_prog_DLLTOOL"
6838fi
6839
6840test -z "$DLLTOOL" && DLLTOOL=dlltool
6841
6842
6843
6844
6845
6846
6847
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6849$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6850if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6851  $as_echo_n "(cached) " >&6
6852else
6853  lt_cv_sharedlib_from_linklib_cmd='unknown'
6854
6855case $host_os in
6856cygwin* | mingw* | pw32* | cegcc*)
6857  # two different shell functions defined in ltmain.sh
6858  # decide which to use based on capabilities of $DLLTOOL
6859  case `$DLLTOOL --help 2>&1` in
6860  *--identify-strict*)
6861    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6862    ;;
6863  *)
6864    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6865    ;;
6866  esac
6867  ;;
6868*)
6869  # fallback: assume linklib IS sharedlib
6870  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6871  ;;
6872esac
6873
6874fi
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6876$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6877sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6878test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6879
6880
6881
6882
6883
6884
6885
6886
6887if test -n "$ac_tool_prefix"; then
6888  for ac_prog in ar
6889  do
6890    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6891set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893$as_echo_n "checking for $ac_word... " >&6; }
6894if ${ac_cv_prog_AR+:} false; then :
6895  $as_echo_n "(cached) " >&6
6896else
6897  if test -n "$AR"; then
6898  ac_cv_prog_AR="$AR" # Let the user override the test.
6899else
6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903  IFS=$as_save_IFS
6904  test -z "$as_dir" && as_dir=.
6905    for ac_exec_ext in '' $ac_executable_extensions; do
6906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909    break 2
6910  fi
6911done
6912  done
6913IFS=$as_save_IFS
6914
6915fi
6916fi
6917AR=$ac_cv_prog_AR
6918if test -n "$AR"; then
6919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6920$as_echo "$AR" >&6; }
6921else
6922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923$as_echo "no" >&6; }
6924fi
6925
6926
6927    test -n "$AR" && break
6928  done
6929fi
6930if test -z "$AR"; then
6931  ac_ct_AR=$AR
6932  for ac_prog in ar
6933do
6934  # Extract the first word of "$ac_prog", so it can be a program name with args.
6935set dummy $ac_prog; ac_word=$2
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937$as_echo_n "checking for $ac_word... " >&6; }
6938if ${ac_cv_prog_ac_ct_AR+:} false; then :
6939  $as_echo_n "(cached) " >&6
6940else
6941  if test -n "$ac_ct_AR"; then
6942  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947  IFS=$as_save_IFS
6948  test -z "$as_dir" && as_dir=.
6949    for ac_exec_ext in '' $ac_executable_extensions; do
6950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951    ac_cv_prog_ac_ct_AR="$ac_prog"
6952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953    break 2
6954  fi
6955done
6956  done
6957IFS=$as_save_IFS
6958
6959fi
6960fi
6961ac_ct_AR=$ac_cv_prog_ac_ct_AR
6962if test -n "$ac_ct_AR"; then
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6964$as_echo "$ac_ct_AR" >&6; }
6965else
6966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967$as_echo "no" >&6; }
6968fi
6969
6970
6971  test -n "$ac_ct_AR" && break
6972done
6973
6974  if test "x$ac_ct_AR" = x; then
6975    AR="false"
6976  else
6977    case $cross_compiling:$ac_tool_warned in
6978yes:)
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981ac_tool_warned=yes ;;
6982esac
6983    AR=$ac_ct_AR
6984  fi
6985fi
6986
6987: ${AR=ar}
6988: ${AR_FLAGS=cru}
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7001$as_echo_n "checking for archiver @FILE support... " >&6; }
7002if ${lt_cv_ar_at_file+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  lt_cv_ar_at_file=no
7006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008
7009int
7010main ()
7011{
7012
7013  ;
7014  return 0;
7015}
7016_ACEOF
7017if ac_fn_c_try_compile "$LINENO"; then :
7018  echo conftest.$ac_objext > conftest.lst
7019      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7020      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7021  (eval $lt_ar_try) 2>&5
7022  ac_status=$?
7023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7024  test $ac_status = 0; }
7025      if test "$ac_status" -eq 0; then
7026        # Ensure the archiver fails upon bogus file names.
7027        rm -f conftest.$ac_objext libconftest.a
7028        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7029  (eval $lt_ar_try) 2>&5
7030  ac_status=$?
7031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032  test $ac_status = 0; }
7033        if test "$ac_status" -ne 0; then
7034          lt_cv_ar_at_file=@
7035        fi
7036      fi
7037      rm -f conftest.* libconftest.a
7038
7039fi
7040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041
7042fi
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7044$as_echo "$lt_cv_ar_at_file" >&6; }
7045
7046if test "x$lt_cv_ar_at_file" = xno; then
7047  archiver_list_spec=
7048else
7049  archiver_list_spec=$lt_cv_ar_at_file
7050fi
7051
7052
7053
7054
7055
7056
7057
7058if test -n "$ac_tool_prefix"; then
7059  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7060set dummy ${ac_tool_prefix}strip; ac_word=$2
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062$as_echo_n "checking for $ac_word... " >&6; }
7063if ${ac_cv_prog_STRIP+:} false; then :
7064  $as_echo_n "(cached) " >&6
7065else
7066  if test -n "$STRIP"; then
7067  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072  IFS=$as_save_IFS
7073  test -z "$as_dir" && as_dir=.
7074    for ac_exec_ext in '' $ac_executable_extensions; do
7075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078    break 2
7079  fi
7080done
7081  done
7082IFS=$as_save_IFS
7083
7084fi
7085fi
7086STRIP=$ac_cv_prog_STRIP
7087if test -n "$STRIP"; then
7088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7089$as_echo "$STRIP" >&6; }
7090else
7091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092$as_echo "no" >&6; }
7093fi
7094
7095
7096fi
7097if test -z "$ac_cv_prog_STRIP"; then
7098  ac_ct_STRIP=$STRIP
7099  # Extract the first word of "strip", so it can be a program name with args.
7100set dummy strip; ac_word=$2
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102$as_echo_n "checking for $ac_word... " >&6; }
7103if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7104  $as_echo_n "(cached) " >&6
7105else
7106  if test -n "$ac_ct_STRIP"; then
7107  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7108else
7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112  IFS=$as_save_IFS
7113  test -z "$as_dir" && as_dir=.
7114    for ac_exec_ext in '' $ac_executable_extensions; do
7115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116    ac_cv_prog_ac_ct_STRIP="strip"
7117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118    break 2
7119  fi
7120done
7121  done
7122IFS=$as_save_IFS
7123
7124fi
7125fi
7126ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7127if test -n "$ac_ct_STRIP"; then
7128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7129$as_echo "$ac_ct_STRIP" >&6; }
7130else
7131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132$as_echo "no" >&6; }
7133fi
7134
7135  if test "x$ac_ct_STRIP" = x; then
7136    STRIP=":"
7137  else
7138    case $cross_compiling:$ac_tool_warned in
7139yes:)
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142ac_tool_warned=yes ;;
7143esac
7144    STRIP=$ac_ct_STRIP
7145  fi
7146else
7147  STRIP="$ac_cv_prog_STRIP"
7148fi
7149
7150test -z "$STRIP" && STRIP=:
7151
7152
7153
7154
7155
7156
7157if test -n "$ac_tool_prefix"; then
7158  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7159set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161$as_echo_n "checking for $ac_word... " >&6; }
7162if ${ac_cv_prog_RANLIB+:} false; then :
7163  $as_echo_n "(cached) " >&6
7164else
7165  if test -n "$RANLIB"; then
7166  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171  IFS=$as_save_IFS
7172  test -z "$as_dir" && as_dir=.
7173    for ac_exec_ext in '' $ac_executable_extensions; do
7174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177    break 2
7178  fi
7179done
7180  done
7181IFS=$as_save_IFS
7182
7183fi
7184fi
7185RANLIB=$ac_cv_prog_RANLIB
7186if test -n "$RANLIB"; then
7187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7188$as_echo "$RANLIB" >&6; }
7189else
7190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191$as_echo "no" >&6; }
7192fi
7193
7194
7195fi
7196if test -z "$ac_cv_prog_RANLIB"; then
7197  ac_ct_RANLIB=$RANLIB
7198  # Extract the first word of "ranlib", so it can be a program name with args.
7199set dummy ranlib; ac_word=$2
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201$as_echo_n "checking for $ac_word... " >&6; }
7202if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7203  $as_echo_n "(cached) " >&6
7204else
7205  if test -n "$ac_ct_RANLIB"; then
7206  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211  IFS=$as_save_IFS
7212  test -z "$as_dir" && as_dir=.
7213    for ac_exec_ext in '' $ac_executable_extensions; do
7214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215    ac_cv_prog_ac_ct_RANLIB="ranlib"
7216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217    break 2
7218  fi
7219done
7220  done
7221IFS=$as_save_IFS
7222
7223fi
7224fi
7225ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7226if test -n "$ac_ct_RANLIB"; then
7227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7228$as_echo "$ac_ct_RANLIB" >&6; }
7229else
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231$as_echo "no" >&6; }
7232fi
7233
7234  if test "x$ac_ct_RANLIB" = x; then
7235    RANLIB=":"
7236  else
7237    case $cross_compiling:$ac_tool_warned in
7238yes:)
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241ac_tool_warned=yes ;;
7242esac
7243    RANLIB=$ac_ct_RANLIB
7244  fi
7245else
7246  RANLIB="$ac_cv_prog_RANLIB"
7247fi
7248
7249test -z "$RANLIB" && RANLIB=:
7250
7251
7252
7253
7254
7255
7256# Determine commands to create old-style static archives.
7257old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7258old_postinstall_cmds='chmod 644 $oldlib'
7259old_postuninstall_cmds=
7260
7261if test -n "$RANLIB"; then
7262  case $host_os in
7263  openbsd*)
7264    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7265    ;;
7266  *)
7267    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7268    ;;
7269  esac
7270  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7271fi
7272
7273case $host_os in
7274  darwin*)
7275    lock_old_archive_extraction=yes ;;
7276  *)
7277    lock_old_archive_extraction=no ;;
7278esac
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318# If no C compiler was specified, use CC.
7319LTCC=${LTCC-"$CC"}
7320
7321# If no C compiler flags were specified, use CFLAGS.
7322LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7323
7324# Allow CC to be a program name with arguments.
7325compiler=$CC
7326
7327
7328# Check for command to grab the raw symbol name followed by C symbol from nm.
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7330$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7331if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334
7335# These are sane defaults that work on at least a few old systems.
7336# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7337
7338# Character class describing NM global symbol codes.
7339symcode='[BCDEGRST]'
7340
7341# Regexp to match symbols that can be accessed directly from C.
7342sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7343
7344# Define system-specific variables.
7345case $host_os in
7346aix*)
7347  symcode='[BCDT]'
7348  ;;
7349cygwin* | mingw* | pw32* | cegcc*)
7350  symcode='[ABCDGISTW]'
7351  ;;
7352hpux*)
7353  if test "$host_cpu" = ia64; then
7354    symcode='[ABCDEGRST]'
7355  fi
7356  ;;
7357irix* | nonstopux*)
7358  symcode='[BCDEGRST]'
7359  ;;
7360osf*)
7361  symcode='[BCDEGQRST]'
7362  ;;
7363solaris*)
7364  symcode='[BDRT]'
7365  ;;
7366sco3.2v5*)
7367  symcode='[DT]'
7368  ;;
7369sysv4.2uw2*)
7370  symcode='[DT]'
7371  ;;
7372sysv5* | sco5v6* | unixware* | OpenUNIX*)
7373  symcode='[ABDT]'
7374  ;;
7375sysv4)
7376  symcode='[DFNSTU]'
7377  ;;
7378esac
7379
7380# If we're using GNU nm, then use its standard symbol codes.
7381case `$NM -V 2>&1` in
7382*GNU* | *'with BFD'*)
7383  symcode='[ABCDGIRSTW]' ;;
7384esac
7385
7386# Transform an extracted symbol line into a proper C declaration.
7387# Some systems (esp. on ia64) link data and code symbols differently,
7388# so use this general approach.
7389lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7390
7391# Transform an extracted symbol line into symbol name and symbol address
7392lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7393lt_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'"
7394
7395# Handle CRLF in mingw tool chain
7396opt_cr=
7397case $build_os in
7398mingw*)
7399  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7400  ;;
7401esac
7402
7403# Try without a prefix underscore, then with it.
7404for ac_symprfx in "" "_"; do
7405
7406  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7407  symxfrm="\\1 $ac_symprfx\\2 \\2"
7408
7409  # Write the raw and C identifiers.
7410  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7411    # Fake it for dumpbin and say T for any non-static function
7412    # and D for any global variable.
7413    # Also find C++ and __fastcall symbols from MSVC++,
7414    # which start with @ or ?.
7415    lt_cv_sys_global_symbol_pipe="$AWK '"\
7416"     {last_section=section; section=\$ 3};"\
7417"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7418"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7419"     \$ 0!~/External *\|/{next};"\
7420"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7421"     {if(hide[section]) next};"\
7422"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7423"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7424"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7425"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7426"     ' prfx=^$ac_symprfx"
7427  else
7428    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7429  fi
7430  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7431
7432  # Check to see that the pipe works correctly.
7433  pipe_works=no
7434
7435  rm -f conftest*
7436  cat > conftest.$ac_ext <<_LT_EOF
7437#ifdef __cplusplus
7438extern "C" {
7439#endif
7440char nm_test_var;
7441void nm_test_func(void);
7442void nm_test_func(void){}
7443#ifdef __cplusplus
7444}
7445#endif
7446int main(){nm_test_var='a';nm_test_func();return(0);}
7447_LT_EOF
7448
7449  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7450  (eval $ac_compile) 2>&5
7451  ac_status=$?
7452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453  test $ac_status = 0; }; then
7454    # Now try to grab the symbols.
7455    nlist=conftest.nm
7456    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7457  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7458  ac_status=$?
7459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7460  test $ac_status = 0; } && test -s "$nlist"; then
7461      # Try sorting and uniquifying the output.
7462      if sort "$nlist" | uniq > "$nlist"T; then
7463        mv -f "$nlist"T "$nlist"
7464      else
7465        rm -f "$nlist"T
7466      fi
7467
7468      # Make sure that we snagged all the symbols we need.
7469      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7470        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7471          cat <<_LT_EOF > conftest.$ac_ext
7472/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7473#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7474/* DATA imports from DLLs on WIN32 con't be const, because runtime
7475   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7476# define LT_DLSYM_CONST
7477#elif defined(__osf__)
7478/* This system does not cope well with relocations in const data.  */
7479# define LT_DLSYM_CONST
7480#else
7481# define LT_DLSYM_CONST const
7482#endif
7483
7484#ifdef __cplusplus
7485extern "C" {
7486#endif
7487
7488_LT_EOF
7489          # Now generate the symbol file.
7490          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7491
7492          cat <<_LT_EOF >> conftest.$ac_ext
7493
7494/* The mapping between symbol names and symbols.  */
7495LT_DLSYM_CONST struct {
7496  const char *name;
7497  void       *address;
7498}
7499lt__PROGRAM__LTX_preloaded_symbols[] =
7500{
7501  { "@PROGRAM@", (void *) 0 },
7502_LT_EOF
7503          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7504          cat <<\_LT_EOF >> conftest.$ac_ext
7505  {0, (void *) 0}
7506};
7507
7508/* This works around a problem in FreeBSD linker */
7509#ifdef FREEBSD_WORKAROUND
7510static const void *lt_preloaded_setup() {
7511  return lt__PROGRAM__LTX_preloaded_symbols;
7512}
7513#endif
7514
7515#ifdef __cplusplus
7516}
7517#endif
7518_LT_EOF
7519          # Now try linking the two files.
7520          mv conftest.$ac_objext conftstm.$ac_objext
7521          lt_globsym_save_LIBS=$LIBS
7522          lt_globsym_save_CFLAGS=$CFLAGS
7523          LIBS="conftstm.$ac_objext"
7524          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7525          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7526  (eval $ac_link) 2>&5
7527  ac_status=$?
7528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7530            pipe_works=yes
7531          fi
7532          LIBS=$lt_globsym_save_LIBS
7533          CFLAGS=$lt_globsym_save_CFLAGS
7534        else
7535          echo "cannot find nm_test_func in $nlist" >&5
7536        fi
7537      else
7538        echo "cannot find nm_test_var in $nlist" >&5
7539      fi
7540    else
7541      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7542    fi
7543  else
7544    echo "$progname: failed program was:" >&5
7545    cat conftest.$ac_ext >&5
7546  fi
7547  rm -rf conftest* conftst*
7548
7549  # Do not use the global_symbol_pipe unless it works.
7550  if test "$pipe_works" = yes; then
7551    break
7552  else
7553    lt_cv_sys_global_symbol_pipe=
7554  fi
7555done
7556
7557fi
7558
7559if test -z "$lt_cv_sys_global_symbol_pipe"; then
7560  lt_cv_sys_global_symbol_to_cdecl=
7561fi
7562if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7564$as_echo "failed" >&6; }
7565else
7566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7567$as_echo "ok" >&6; }
7568fi
7569
7570# Response file support.
7571if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7572  nm_file_list_spec='@'
7573elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7574  nm_file_list_spec='@'
7575fi
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7604$as_echo_n "checking for sysroot... " >&6; }
7605
7606# Check whether --with-sysroot was given.
7607if test "${with_sysroot+set}" = set; then :
7608  withval=$with_sysroot;
7609else
7610  with_sysroot=no
7611fi
7612
7613
7614lt_sysroot=
7615case ${with_sysroot} in #(
7616 yes)
7617   if test "$GCC" = yes; then
7618     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7619   fi
7620   ;; #(
7621 /*)
7622   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7623   ;; #(
7624 no|'')
7625   ;; #(
7626 *)
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7628$as_echo "${with_sysroot}" >&6; }
7629   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7630   ;;
7631esac
7632
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7634$as_echo "${lt_sysroot:-no}" >&6; }
7635
7636
7637
7638
7639
7640# Check whether --enable-libtool-lock was given.
7641if test "${enable_libtool_lock+set}" = set; then :
7642  enableval=$enable_libtool_lock;
7643fi
7644
7645test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7646
7647# Some flags need to be propagated to the compiler or linker for good
7648# libtool support.
7649case $host in
7650ia64-*-hpux*)
7651  # Find out which ABI we are using.
7652  echo 'int i;' > conftest.$ac_ext
7653  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7654  (eval $ac_compile) 2>&5
7655  ac_status=$?
7656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7657  test $ac_status = 0; }; then
7658    case `/usr/bin/file conftest.$ac_objext` in
7659      *ELF-32*)
7660        HPUX_IA64_MODE="32"
7661        ;;
7662      *ELF-64*)
7663        HPUX_IA64_MODE="64"
7664        ;;
7665    esac
7666  fi
7667  rm -rf conftest*
7668  ;;
7669*-*-irix6*)
7670  # Find out which ABI we are using.
7671  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7672  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7673  (eval $ac_compile) 2>&5
7674  ac_status=$?
7675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7676  test $ac_status = 0; }; then
7677    if test "$lt_cv_prog_gnu_ld" = yes; then
7678      case `/usr/bin/file conftest.$ac_objext` in
7679        *32-bit*)
7680          LD="${LD-ld} -melf32bsmip"
7681          ;;
7682        *N32*)
7683          LD="${LD-ld} -melf32bmipn32"
7684          ;;
7685        *64-bit*)
7686          LD="${LD-ld} -melf64bmip"
7687        ;;
7688      esac
7689    else
7690      case `/usr/bin/file conftest.$ac_objext` in
7691        *32-bit*)
7692          LD="${LD-ld} -32"
7693          ;;
7694        *N32*)
7695          LD="${LD-ld} -n32"
7696          ;;
7697        *64-bit*)
7698          LD="${LD-ld} -64"
7699          ;;
7700      esac
7701    fi
7702  fi
7703  rm -rf conftest*
7704  ;;
7705
7706x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7707s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7708  # Find out which ABI we are using.
7709  echo 'int i;' > conftest.$ac_ext
7710  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7711  (eval $ac_compile) 2>&5
7712  ac_status=$?
7713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714  test $ac_status = 0; }; then
7715    case `/usr/bin/file conftest.o` in
7716      *32-bit*)
7717        case $host in
7718          x86_64-*kfreebsd*-gnu)
7719            LD="${LD-ld} -m elf_i386_fbsd"
7720            ;;
7721          x86_64-*linux*)
7722            LD="${LD-ld} -m elf_i386"
7723            ;;
7724          ppc64-*linux*|powerpc64-*linux*)
7725            LD="${LD-ld} -m elf32ppclinux"
7726            ;;
7727          s390x-*linux*)
7728            LD="${LD-ld} -m elf_s390"
7729            ;;
7730          sparc64-*linux*)
7731            LD="${LD-ld} -m elf32_sparc"
7732            ;;
7733        esac
7734        ;;
7735      *64-bit*)
7736        case $host in
7737          x86_64-*kfreebsd*-gnu)
7738            LD="${LD-ld} -m elf_x86_64_fbsd"
7739            ;;
7740          x86_64-*linux*)
7741            LD="${LD-ld} -m elf_x86_64"
7742            ;;
7743          ppc*-*linux*|powerpc*-*linux*)
7744            LD="${LD-ld} -m elf64ppc"
7745            ;;
7746          s390*-*linux*|s390*-*tpf*)
7747            LD="${LD-ld} -m elf64_s390"
7748            ;;
7749          sparc*-*linux*)
7750            LD="${LD-ld} -m elf64_sparc"
7751            ;;
7752        esac
7753        ;;
7754    esac
7755  fi
7756  rm -rf conftest*
7757  ;;
7758
7759*-*-sco3.2v5*)
7760  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7761  SAVE_CFLAGS="$CFLAGS"
7762  CFLAGS="$CFLAGS -belf"
7763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7764$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7765if ${lt_cv_cc_needs_belf+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  ac_ext=c
7769ac_cpp='$CPP $CPPFLAGS'
7770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7772ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773
7774     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776
7777int
7778main ()
7779{
7780
7781  ;
7782  return 0;
7783}
7784_ACEOF
7785if ac_fn_c_try_link "$LINENO"; then :
7786  lt_cv_cc_needs_belf=yes
7787else
7788  lt_cv_cc_needs_belf=no
7789fi
7790rm -f core conftest.err conftest.$ac_objext \
7791    conftest$ac_exeext conftest.$ac_ext
7792     ac_ext=c
7793ac_cpp='$CPP $CPPFLAGS'
7794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7796ac_compiler_gnu=$ac_cv_c_compiler_gnu
7797
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7800$as_echo "$lt_cv_cc_needs_belf" >&6; }
7801  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7802    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7803    CFLAGS="$SAVE_CFLAGS"
7804  fi
7805  ;;
7806*-*solaris*)
7807  # Find out which ABI we are using.
7808  echo 'int i;' > conftest.$ac_ext
7809  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7810  (eval $ac_compile) 2>&5
7811  ac_status=$?
7812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813  test $ac_status = 0; }; then
7814    case `/usr/bin/file conftest.o` in
7815    *64-bit*)
7816      case $lt_cv_prog_gnu_ld in
7817      yes*)
7818        case $host in
7819        i?86-*-solaris*)
7820          LD="${LD-ld} -m elf_x86_64"
7821          ;;
7822        sparc*-*-solaris*)
7823          LD="${LD-ld} -m elf64_sparc"
7824          ;;
7825        esac
7826        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7827        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7828          LD="${LD-ld}_sol2"
7829        fi
7830        ;;
7831      *)
7832        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7833          LD="${LD-ld} -64"
7834        fi
7835        ;;
7836      esac
7837      ;;
7838    esac
7839  fi
7840  rm -rf conftest*
7841  ;;
7842esac
7843
7844need_locks="$enable_libtool_lock"
7845
7846if test -n "$ac_tool_prefix"; then
7847  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7848set dummy ${ac_tool_prefix}mt; ac_word=$2
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850$as_echo_n "checking for $ac_word... " >&6; }
7851if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7852  $as_echo_n "(cached) " >&6
7853else
7854  if test -n "$MANIFEST_TOOL"; then
7855  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860  IFS=$as_save_IFS
7861  test -z "$as_dir" && as_dir=.
7862    for ac_exec_ext in '' $ac_executable_extensions; do
7863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866    break 2
7867  fi
7868done
7869  done
7870IFS=$as_save_IFS
7871
7872fi
7873fi
7874MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7875if test -n "$MANIFEST_TOOL"; then
7876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7877$as_echo "$MANIFEST_TOOL" >&6; }
7878else
7879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
7881fi
7882
7883
7884fi
7885if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7886  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7887  # Extract the first word of "mt", so it can be a program name with args.
7888set dummy mt; ac_word=$2
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890$as_echo_n "checking for $ac_word... " >&6; }
7891if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7892  $as_echo_n "(cached) " >&6
7893else
7894  if test -n "$ac_ct_MANIFEST_TOOL"; then
7895  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7896else
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900  IFS=$as_save_IFS
7901  test -z "$as_dir" && as_dir=.
7902    for ac_exec_ext in '' $ac_executable_extensions; do
7903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906    break 2
7907  fi
7908done
7909  done
7910IFS=$as_save_IFS
7911
7912fi
7913fi
7914ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7915if test -n "$ac_ct_MANIFEST_TOOL"; then
7916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7917$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7918else
7919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
7921fi
7922
7923  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7924    MANIFEST_TOOL=":"
7925  else
7926    case $cross_compiling:$ac_tool_warned in
7927yes:)
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930ac_tool_warned=yes ;;
7931esac
7932    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7933  fi
7934else
7935  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7936fi
7937
7938test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7940$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7941if ${lt_cv_path_mainfest_tool+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  lt_cv_path_mainfest_tool=no
7945  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7946  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7947  cat conftest.err >&5
7948  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7949    lt_cv_path_mainfest_tool=yes
7950  fi
7951  rm -f conftest*
7952fi
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7954$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7955if test "x$lt_cv_path_mainfest_tool" != xyes; then
7956  MANIFEST_TOOL=:
7957fi
7958
7959
7960
7961
7962
7963
7964  case $host_os in
7965    rhapsody* | darwin*)
7966    if test -n "$ac_tool_prefix"; then
7967  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7968set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970$as_echo_n "checking for $ac_word... " >&6; }
7971if ${ac_cv_prog_DSYMUTIL+:} false; then :
7972  $as_echo_n "(cached) " >&6
7973else
7974  if test -n "$DSYMUTIL"; then
7975  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7976else
7977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978for as_dir in $PATH
7979do
7980  IFS=$as_save_IFS
7981  test -z "$as_dir" && as_dir=.
7982    for ac_exec_ext in '' $ac_executable_extensions; do
7983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986    break 2
7987  fi
7988done
7989  done
7990IFS=$as_save_IFS
7991
7992fi
7993fi
7994DSYMUTIL=$ac_cv_prog_DSYMUTIL
7995if test -n "$DSYMUTIL"; then
7996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7997$as_echo "$DSYMUTIL" >&6; }
7998else
7999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000$as_echo "no" >&6; }
8001fi
8002
8003
8004fi
8005if test -z "$ac_cv_prog_DSYMUTIL"; then
8006  ac_ct_DSYMUTIL=$DSYMUTIL
8007  # Extract the first word of "dsymutil", so it can be a program name with args.
8008set dummy dsymutil; ac_word=$2
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010$as_echo_n "checking for $ac_word... " >&6; }
8011if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8012  $as_echo_n "(cached) " >&6
8013else
8014  if test -n "$ac_ct_DSYMUTIL"; then
8015  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8016else
8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020  IFS=$as_save_IFS
8021  test -z "$as_dir" && as_dir=.
8022    for ac_exec_ext in '' $ac_executable_extensions; do
8023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026    break 2
8027  fi
8028done
8029  done
8030IFS=$as_save_IFS
8031
8032fi
8033fi
8034ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8035if test -n "$ac_ct_DSYMUTIL"; then
8036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8037$as_echo "$ac_ct_DSYMUTIL" >&6; }
8038else
8039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040$as_echo "no" >&6; }
8041fi
8042
8043  if test "x$ac_ct_DSYMUTIL" = x; then
8044    DSYMUTIL=":"
8045  else
8046    case $cross_compiling:$ac_tool_warned in
8047yes:)
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8050ac_tool_warned=yes ;;
8051esac
8052    DSYMUTIL=$ac_ct_DSYMUTIL
8053  fi
8054else
8055  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8056fi
8057
8058    if test -n "$ac_tool_prefix"; then
8059  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8060set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062$as_echo_n "checking for $ac_word... " >&6; }
8063if ${ac_cv_prog_NMEDIT+:} false; then :
8064  $as_echo_n "(cached) " >&6
8065else
8066  if test -n "$NMEDIT"; then
8067  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072  IFS=$as_save_IFS
8073  test -z "$as_dir" && as_dir=.
8074    for ac_exec_ext in '' $ac_executable_extensions; do
8075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078    break 2
8079  fi
8080done
8081  done
8082IFS=$as_save_IFS
8083
8084fi
8085fi
8086NMEDIT=$ac_cv_prog_NMEDIT
8087if test -n "$NMEDIT"; then
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8089$as_echo "$NMEDIT" >&6; }
8090else
8091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092$as_echo "no" >&6; }
8093fi
8094
8095
8096fi
8097if test -z "$ac_cv_prog_NMEDIT"; then
8098  ac_ct_NMEDIT=$NMEDIT
8099  # Extract the first word of "nmedit", so it can be a program name with args.
8100set dummy nmedit; ac_word=$2
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102$as_echo_n "checking for $ac_word... " >&6; }
8103if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8104  $as_echo_n "(cached) " >&6
8105else
8106  if test -n "$ac_ct_NMEDIT"; then
8107  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8108else
8109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112  IFS=$as_save_IFS
8113  test -z "$as_dir" && as_dir=.
8114    for ac_exec_ext in '' $ac_executable_extensions; do
8115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118    break 2
8119  fi
8120done
8121  done
8122IFS=$as_save_IFS
8123
8124fi
8125fi
8126ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8127if test -n "$ac_ct_NMEDIT"; then
8128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8129$as_echo "$ac_ct_NMEDIT" >&6; }
8130else
8131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132$as_echo "no" >&6; }
8133fi
8134
8135  if test "x$ac_ct_NMEDIT" = x; then
8136    NMEDIT=":"
8137  else
8138    case $cross_compiling:$ac_tool_warned in
8139yes:)
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8142ac_tool_warned=yes ;;
8143esac
8144    NMEDIT=$ac_ct_NMEDIT
8145  fi
8146else
8147  NMEDIT="$ac_cv_prog_NMEDIT"
8148fi
8149
8150    if test -n "$ac_tool_prefix"; then
8151  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8152set dummy ${ac_tool_prefix}lipo; ac_word=$2
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154$as_echo_n "checking for $ac_word... " >&6; }
8155if ${ac_cv_prog_LIPO+:} false; then :
8156  $as_echo_n "(cached) " >&6
8157else
8158  if test -n "$LIPO"; then
8159  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8160else
8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164  IFS=$as_save_IFS
8165  test -z "$as_dir" && as_dir=.
8166    for ac_exec_ext in '' $ac_executable_extensions; do
8167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170    break 2
8171  fi
8172done
8173  done
8174IFS=$as_save_IFS
8175
8176fi
8177fi
8178LIPO=$ac_cv_prog_LIPO
8179if test -n "$LIPO"; then
8180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8181$as_echo "$LIPO" >&6; }
8182else
8183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184$as_echo "no" >&6; }
8185fi
8186
8187
8188fi
8189if test -z "$ac_cv_prog_LIPO"; then
8190  ac_ct_LIPO=$LIPO
8191  # Extract the first word of "lipo", so it can be a program name with args.
8192set dummy lipo; ac_word=$2
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194$as_echo_n "checking for $ac_word... " >&6; }
8195if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8196  $as_echo_n "(cached) " >&6
8197else
8198  if test -n "$ac_ct_LIPO"; then
8199  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8200else
8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204  IFS=$as_save_IFS
8205  test -z "$as_dir" && as_dir=.
8206    for ac_exec_ext in '' $ac_executable_extensions; do
8207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208    ac_cv_prog_ac_ct_LIPO="lipo"
8209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210    break 2
8211  fi
8212done
8213  done
8214IFS=$as_save_IFS
8215
8216fi
8217fi
8218ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8219if test -n "$ac_ct_LIPO"; then
8220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8221$as_echo "$ac_ct_LIPO" >&6; }
8222else
8223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224$as_echo "no" >&6; }
8225fi
8226
8227  if test "x$ac_ct_LIPO" = x; then
8228    LIPO=":"
8229  else
8230    case $cross_compiling:$ac_tool_warned in
8231yes:)
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8234ac_tool_warned=yes ;;
8235esac
8236    LIPO=$ac_ct_LIPO
8237  fi
8238else
8239  LIPO="$ac_cv_prog_LIPO"
8240fi
8241
8242    if test -n "$ac_tool_prefix"; then
8243  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8244set dummy ${ac_tool_prefix}otool; ac_word=$2
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246$as_echo_n "checking for $ac_word... " >&6; }
8247if ${ac_cv_prog_OTOOL+:} false; then :
8248  $as_echo_n "(cached) " >&6
8249else
8250  if test -n "$OTOOL"; then
8251  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8252else
8253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254for as_dir in $PATH
8255do
8256  IFS=$as_save_IFS
8257  test -z "$as_dir" && as_dir=.
8258    for ac_exec_ext in '' $ac_executable_extensions; do
8259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262    break 2
8263  fi
8264done
8265  done
8266IFS=$as_save_IFS
8267
8268fi
8269fi
8270OTOOL=$ac_cv_prog_OTOOL
8271if test -n "$OTOOL"; then
8272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8273$as_echo "$OTOOL" >&6; }
8274else
8275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276$as_echo "no" >&6; }
8277fi
8278
8279
8280fi
8281if test -z "$ac_cv_prog_OTOOL"; then
8282  ac_ct_OTOOL=$OTOOL
8283  # Extract the first word of "otool", so it can be a program name with args.
8284set dummy otool; ac_word=$2
8285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286$as_echo_n "checking for $ac_word... " >&6; }
8287if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8288  $as_echo_n "(cached) " >&6
8289else
8290  if test -n "$ac_ct_OTOOL"; then
8291  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8292else
8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296  IFS=$as_save_IFS
8297  test -z "$as_dir" && as_dir=.
8298    for ac_exec_ext in '' $ac_executable_extensions; do
8299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300    ac_cv_prog_ac_ct_OTOOL="otool"
8301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302    break 2
8303  fi
8304done
8305  done
8306IFS=$as_save_IFS
8307
8308fi
8309fi
8310ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8311if test -n "$ac_ct_OTOOL"; then
8312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8313$as_echo "$ac_ct_OTOOL" >&6; }
8314else
8315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316$as_echo "no" >&6; }
8317fi
8318
8319  if test "x$ac_ct_OTOOL" = x; then
8320    OTOOL=":"
8321  else
8322    case $cross_compiling:$ac_tool_warned in
8323yes:)
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8326ac_tool_warned=yes ;;
8327esac
8328    OTOOL=$ac_ct_OTOOL
8329  fi
8330else
8331  OTOOL="$ac_cv_prog_OTOOL"
8332fi
8333
8334    if test -n "$ac_tool_prefix"; then
8335  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8336set dummy ${ac_tool_prefix}otool64; ac_word=$2
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338$as_echo_n "checking for $ac_word... " >&6; }
8339if ${ac_cv_prog_OTOOL64+:} false; then :
8340  $as_echo_n "(cached) " >&6
8341else
8342  if test -n "$OTOOL64"; then
8343  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8344else
8345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346for as_dir in $PATH
8347do
8348  IFS=$as_save_IFS
8349  test -z "$as_dir" && as_dir=.
8350    for ac_exec_ext in '' $ac_executable_extensions; do
8351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354    break 2
8355  fi
8356done
8357  done
8358IFS=$as_save_IFS
8359
8360fi
8361fi
8362OTOOL64=$ac_cv_prog_OTOOL64
8363if test -n "$OTOOL64"; then
8364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8365$as_echo "$OTOOL64" >&6; }
8366else
8367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368$as_echo "no" >&6; }
8369fi
8370
8371
8372fi
8373if test -z "$ac_cv_prog_OTOOL64"; then
8374  ac_ct_OTOOL64=$OTOOL64
8375  # Extract the first word of "otool64", so it can be a program name with args.
8376set dummy otool64; ac_word=$2
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378$as_echo_n "checking for $ac_word... " >&6; }
8379if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8380  $as_echo_n "(cached) " >&6
8381else
8382  if test -n "$ac_ct_OTOOL64"; then
8383  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8384else
8385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386for as_dir in $PATH
8387do
8388  IFS=$as_save_IFS
8389  test -z "$as_dir" && as_dir=.
8390    for ac_exec_ext in '' $ac_executable_extensions; do
8391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392    ac_cv_prog_ac_ct_OTOOL64="otool64"
8393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394    break 2
8395  fi
8396done
8397  done
8398IFS=$as_save_IFS
8399
8400fi
8401fi
8402ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8403if test -n "$ac_ct_OTOOL64"; then
8404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8405$as_echo "$ac_ct_OTOOL64" >&6; }
8406else
8407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408$as_echo "no" >&6; }
8409fi
8410
8411  if test "x$ac_ct_OTOOL64" = x; then
8412    OTOOL64=":"
8413  else
8414    case $cross_compiling:$ac_tool_warned in
8415yes:)
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8418ac_tool_warned=yes ;;
8419esac
8420    OTOOL64=$ac_ct_OTOOL64
8421  fi
8422else
8423  OTOOL64="$ac_cv_prog_OTOOL64"
8424fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8453$as_echo_n "checking for -single_module linker flag... " >&6; }
8454if ${lt_cv_apple_cc_single_mod+:} false; then :
8455  $as_echo_n "(cached) " >&6
8456else
8457  lt_cv_apple_cc_single_mod=no
8458      if test -z "${LT_MULTI_MODULE}"; then
8459        # By default we will add the -single_module flag. You can override
8460        # by either setting the environment variable LT_MULTI_MODULE
8461        # non-empty at configure time, or by adding -multi_module to the
8462        # link flags.
8463        rm -rf libconftest.dylib*
8464        echo "int foo(void){return 1;}" > conftest.c
8465        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8466-dynamiclib -Wl,-single_module conftest.c" >&5
8467        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8468          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8469        _lt_result=$?
8470        # If there is a non-empty error log, and "single_module"
8471        # appears in it, assume the flag caused a linker warning
8472        if test -s conftest.err && $GREP single_module conftest.err; then
8473          cat conftest.err >&5
8474        # Otherwise, if the output was created with a 0 exit code from
8475        # the compiler, it worked.
8476        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8477          lt_cv_apple_cc_single_mod=yes
8478        else
8479          cat conftest.err >&5
8480        fi
8481        rm -rf libconftest.dylib*
8482        rm -f conftest.*
8483      fi
8484fi
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8486$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8487
8488    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8489$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8490if ${lt_cv_ld_exported_symbols_list+:} false; then :
8491  $as_echo_n "(cached) " >&6
8492else
8493  lt_cv_ld_exported_symbols_list=no
8494      save_LDFLAGS=$LDFLAGS
8495      echo "_main" > conftest.sym
8496      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8497      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498/* end confdefs.h.  */
8499
8500int
8501main ()
8502{
8503
8504  ;
8505  return 0;
8506}
8507_ACEOF
8508if ac_fn_c_try_link "$LINENO"; then :
8509  lt_cv_ld_exported_symbols_list=yes
8510else
8511  lt_cv_ld_exported_symbols_list=no
8512fi
8513rm -f core conftest.err conftest.$ac_objext \
8514    conftest$ac_exeext conftest.$ac_ext
8515        LDFLAGS="$save_LDFLAGS"
8516
8517fi
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8519$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8520
8521    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8522$as_echo_n "checking for -force_load linker flag... " >&6; }
8523if ${lt_cv_ld_force_load+:} false; then :
8524  $as_echo_n "(cached) " >&6
8525else
8526  lt_cv_ld_force_load=no
8527      cat > conftest.c << _LT_EOF
8528int forced_loaded() { return 2;}
8529_LT_EOF
8530      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8531      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8532      echo "$AR cru libconftest.a conftest.o" >&5
8533      $AR cru libconftest.a conftest.o 2>&5
8534      echo "$RANLIB libconftest.a" >&5
8535      $RANLIB libconftest.a 2>&5
8536      cat > conftest.c << _LT_EOF
8537int main() { return 0;}
8538_LT_EOF
8539      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8540      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8541      _lt_result=$?
8542      if test -s conftest.err && $GREP force_load conftest.err; then
8543        cat conftest.err >&5
8544      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8545        lt_cv_ld_force_load=yes
8546      else
8547        cat conftest.err >&5
8548      fi
8549        rm -f conftest.err libconftest.a conftest conftest.c
8550        rm -rf conftest.dSYM
8551
8552fi
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8554$as_echo "$lt_cv_ld_force_load" >&6; }
8555    case $host_os in
8556    rhapsody* | darwin1.[012])
8557      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8558    darwin1.*)
8559      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8560    darwin*) # darwin 5.x on
8561      # if running on 10.5 or later, the deployment target defaults
8562      # to the OS version, if on x86, and 10.4, the deployment
8563      # target defaults to 10.4. Don't you love it?
8564      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8565        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8566          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8567        10.[012]*)
8568          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8569        10.*)
8570          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8571      esac
8572    ;;
8573  esac
8574    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8575      _lt_dar_single_mod='$single_module'
8576    fi
8577    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8578      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8579    else
8580      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8581    fi
8582    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8583      _lt_dsymutil='~$DSYMUTIL $lib || :'
8584    else
8585      _lt_dsymutil=
8586    fi
8587    ;;
8588  esac
8589
8590
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8592$as_echo_n "checking for ANSI C header files... " >&6; }
8593if ${ac_cv_header_stdc+:} false; then :
8594  $as_echo_n "(cached) " >&6
8595else
8596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597/* end confdefs.h.  */
8598#include <stdlib.h>
8599#include <stdarg.h>
8600#include <string.h>
8601#include <float.h>
8602
8603int
8604main ()
8605{
8606
8607  ;
8608  return 0;
8609}
8610_ACEOF
8611if ac_fn_c_try_compile "$LINENO"; then :
8612  ac_cv_header_stdc=yes
8613else
8614  ac_cv_header_stdc=no
8615fi
8616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617
8618if test $ac_cv_header_stdc = yes; then
8619  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621/* end confdefs.h.  */
8622#include <string.h>
8623
8624_ACEOF
8625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8626  $EGREP "memchr" >/dev/null 2>&1; then :
8627
8628else
8629  ac_cv_header_stdc=no
8630fi
8631rm -f conftest*
8632
8633fi
8634
8635if test $ac_cv_header_stdc = yes; then
8636  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h.  */
8639#include <stdlib.h>
8640
8641_ACEOF
8642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8643  $EGREP "free" >/dev/null 2>&1; then :
8644
8645else
8646  ac_cv_header_stdc=no
8647fi
8648rm -f conftest*
8649
8650fi
8651
8652if test $ac_cv_header_stdc = yes; then
8653  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8654  if test "$cross_compiling" = yes; then :
8655  :
8656else
8657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h.  */
8659#include <ctype.h>
8660#include <stdlib.h>
8661#if ((' ' & 0x0FF) == 0x020)
8662# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8663# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8664#else
8665# define ISLOWER(c) \
8666                   (('a' <= (c) && (c) <= 'i') \
8667                     || ('j' <= (c) && (c) <= 'r') \
8668                     || ('s' <= (c) && (c) <= 'z'))
8669# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8670#endif
8671
8672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8673int
8674main ()
8675{
8676  int i;
8677  for (i = 0; i < 256; i++)
8678    if (XOR (islower (i), ISLOWER (i))
8679        || toupper (i) != TOUPPER (i))
8680      return 2;
8681  return 0;
8682}
8683_ACEOF
8684if ac_fn_c_try_run "$LINENO"; then :
8685
8686else
8687  ac_cv_header_stdc=no
8688fi
8689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8690  conftest.$ac_objext conftest.beam conftest.$ac_ext
8691fi
8692
8693fi
8694fi
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8696$as_echo "$ac_cv_header_stdc" >&6; }
8697if test $ac_cv_header_stdc = yes; then
8698
8699$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8700
8701fi
8702
8703# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8704for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8705                  inttypes.h stdint.h unistd.h
8706do :
8707  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8708ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8709"
8710if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8711  cat >>confdefs.h <<_ACEOF
8712#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8713_ACEOF
8714
8715fi
8716
8717done
8718
8719
8720for ac_header in dlfcn.h
8721do :
8722  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8723"
8724if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8725  cat >>confdefs.h <<_ACEOF
8726#define HAVE_DLFCN_H 1
8727_ACEOF
8728
8729fi
8730
8731done
8732
8733
8734
8735
8736func_stripname_cnf ()
8737{
8738  case ${2} in
8739  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8740  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8741  esac
8742} # func_stripname_cnf
8743
8744
8745
8746
8747
8748# Set options
8749
8750
8751
8752        enable_dlopen=no
8753
8754
8755
8756            # Check whether --enable-shared was given.
8757if test "${enable_shared+set}" = set; then :
8758  enableval=$enable_shared; p=${PACKAGE-default}
8759    case $enableval in
8760    yes) enable_shared=yes ;;
8761    no) enable_shared=no ;;
8762    *)
8763      enable_shared=no
8764      # Look at the argument we got.  We use all the common list separators.
8765      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8766      for pkg in $enableval; do
8767        IFS="$lt_save_ifs"
8768        if test "X$pkg" = "X$p"; then
8769          enable_shared=yes
8770        fi
8771      done
8772      IFS="$lt_save_ifs"
8773      ;;
8774    esac
8775else
8776  enable_shared=yes
8777fi
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787  # Check whether --enable-static was given.
8788if test "${enable_static+set}" = set; then :
8789  enableval=$enable_static; p=${PACKAGE-default}
8790    case $enableval in
8791    yes) enable_static=yes ;;
8792    no) enable_static=no ;;
8793    *)
8794     enable_static=no
8795      # Look at the argument we got.  We use all the common list separators.
8796      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8797      for pkg in $enableval; do
8798        IFS="$lt_save_ifs"
8799        if test "X$pkg" = "X$p"; then
8800          enable_static=yes
8801        fi
8802      done
8803      IFS="$lt_save_ifs"
8804      ;;
8805    esac
8806else
8807  enable_static=yes
8808fi
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819# Check whether --with-pic was given.
8820if test "${with_pic+set}" = set; then :
8821  withval=$with_pic; lt_p=${PACKAGE-default}
8822    case $withval in
8823    yes|no) pic_mode=$withval ;;
8824    *)
8825      pic_mode=default
8826      # Look at the argument we got.  We use all the common list separators.
8827      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8828      for lt_pkg in $withval; do
8829        IFS="$lt_save_ifs"
8830        if test "X$lt_pkg" = "X$lt_p"; then
8831          pic_mode=yes
8832        fi
8833      done
8834      IFS="$lt_save_ifs"
8835      ;;
8836    esac
8837else
8838  pic_mode=default
8839fi
8840
8841
8842test -z "$pic_mode" && pic_mode=default
8843
8844
8845
8846
8847
8848
8849
8850  # Check whether --enable-fast-install was given.
8851if test "${enable_fast_install+set}" = set; then :
8852  enableval=$enable_fast_install; p=${PACKAGE-default}
8853    case $enableval in
8854    yes) enable_fast_install=yes ;;
8855    no) enable_fast_install=no ;;
8856    *)
8857      enable_fast_install=no
8858      # Look at the argument we got.  We use all the common list separators.
8859      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8860      for pkg in $enableval; do
8861        IFS="$lt_save_ifs"
8862        if test "X$pkg" = "X$p"; then
8863          enable_fast_install=yes
8864        fi
8865      done
8866      IFS="$lt_save_ifs"
8867      ;;
8868    esac
8869else
8870  enable_fast_install=yes
8871fi
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883# This can be used to rebuild libtool when needed
8884LIBTOOL_DEPS="$ltmain"
8885
8886# Always use our own libtool.
8887LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918test -z "$LN_S" && LN_S="ln -s"
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933if test -n "${ZSH_VERSION+set}" ; then
8934   setopt NO_GLOB_SUBST
8935fi
8936
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8938$as_echo_n "checking for objdir... " >&6; }
8939if ${lt_cv_objdir+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  rm -f .libs 2>/dev/null
8943mkdir .libs 2>/dev/null
8944if test -d .libs; then
8945  lt_cv_objdir=.libs
8946else
8947  # MS-DOS does not allow filenames that begin with a dot.
8948  lt_cv_objdir=_libs
8949fi
8950rmdir .libs 2>/dev/null
8951fi
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8953$as_echo "$lt_cv_objdir" >&6; }
8954objdir=$lt_cv_objdir
8955
8956
8957
8958
8959
8960cat >>confdefs.h <<_ACEOF
8961#define LT_OBJDIR "$lt_cv_objdir/"
8962_ACEOF
8963
8964
8965
8966
8967case $host_os in
8968aix3*)
8969  # AIX sometimes has problems with the GCC collect2 program.  For some
8970  # reason, if we set the COLLECT_NAMES environment variable, the problems
8971  # vanish in a puff of smoke.
8972  if test "X${COLLECT_NAMES+set}" != Xset; then
8973    COLLECT_NAMES=
8974    export COLLECT_NAMES
8975  fi
8976  ;;
8977esac
8978
8979# Global variables:
8980ofile=libtool
8981can_build_shared=yes
8982
8983# All known linkers require a `.a' archive for static linking (except MSVC,
8984# which needs '.lib').
8985libext=a
8986
8987with_gnu_ld="$lt_cv_prog_gnu_ld"
8988
8989old_CC="$CC"
8990old_CFLAGS="$CFLAGS"
8991
8992# Set sane defaults for various variables
8993test -z "$CC" && CC=cc
8994test -z "$LTCC" && LTCC=$CC
8995test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8996test -z "$LD" && LD=ld
8997test -z "$ac_objext" && ac_objext=o
8998
8999for cc_temp in $compiler""; do
9000  case $cc_temp in
9001    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9002    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9003    \-*) ;;
9004    *) break;;
9005  esac
9006done
9007cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9008
9009
9010# Only perform the check for file, if the check method requires it
9011test -z "$MAGIC_CMD" && MAGIC_CMD=file
9012case $deplibs_check_method in
9013file_magic*)
9014  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9016$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9017if ${lt_cv_path_MAGIC_CMD+:} false; then :
9018  $as_echo_n "(cached) " >&6
9019else
9020  case $MAGIC_CMD in
9021[\\/*] |  ?:[\\/]*)
9022  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9023  ;;
9024*)
9025  lt_save_MAGIC_CMD="$MAGIC_CMD"
9026  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9027  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9028  for ac_dir in $ac_dummy; do
9029    IFS="$lt_save_ifs"
9030    test -z "$ac_dir" && ac_dir=.
9031    if test -f $ac_dir/${ac_tool_prefix}file; then
9032      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9033      if test -n "$file_magic_test_file"; then
9034        case $deplibs_check_method in
9035        "file_magic "*)
9036          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9037          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9038          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9039            $EGREP "$file_magic_regex" > /dev/null; then
9040            :
9041          else
9042            cat <<_LT_EOF 1>&2
9043
9044*** Warning: the command libtool uses to detect shared libraries,
9045*** $file_magic_cmd, produces output that libtool cannot recognize.
9046*** The result is that libtool may fail to recognize shared libraries
9047*** as such.  This will affect the creation of libtool libraries that
9048*** depend on shared libraries, but programs linked with such libtool
9049*** libraries will work regardless of this problem.  Nevertheless, you
9050*** may want to report the problem to your system manager and/or to
9051*** bug-libtool@gnu.org
9052
9053_LT_EOF
9054          fi ;;
9055        esac
9056      fi
9057      break
9058    fi
9059  done
9060  IFS="$lt_save_ifs"
9061  MAGIC_CMD="$lt_save_MAGIC_CMD"
9062  ;;
9063esac
9064fi
9065
9066MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9067if test -n "$MAGIC_CMD"; then
9068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9069$as_echo "$MAGIC_CMD" >&6; }
9070else
9071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072$as_echo "no" >&6; }
9073fi
9074
9075
9076
9077
9078
9079if test -z "$lt_cv_path_MAGIC_CMD"; then
9080  if test -n "$ac_tool_prefix"; then
9081    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9082$as_echo_n "checking for file... " >&6; }
9083if ${lt_cv_path_MAGIC_CMD+:} false; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  case $MAGIC_CMD in
9087[\\/*] |  ?:[\\/]*)
9088  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9089  ;;
9090*)
9091  lt_save_MAGIC_CMD="$MAGIC_CMD"
9092  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9093  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9094  for ac_dir in $ac_dummy; do
9095    IFS="$lt_save_ifs"
9096    test -z "$ac_dir" && ac_dir=.
9097    if test -f $ac_dir/file; then
9098      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9099      if test -n "$file_magic_test_file"; then
9100        case $deplibs_check_method in
9101        "file_magic "*)
9102          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9103          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9104          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9105            $EGREP "$file_magic_regex" > /dev/null; then
9106            :
9107          else
9108            cat <<_LT_EOF 1>&2
9109
9110*** Warning: the command libtool uses to detect shared libraries,
9111*** $file_magic_cmd, produces output that libtool cannot recognize.
9112*** The result is that libtool may fail to recognize shared libraries
9113*** as such.  This will affect the creation of libtool libraries that
9114*** depend on shared libraries, but programs linked with such libtool
9115*** libraries will work regardless of this problem.  Nevertheless, you
9116*** may want to report the problem to your system manager and/or to
9117*** bug-libtool@gnu.org
9118
9119_LT_EOF
9120          fi ;;
9121        esac
9122      fi
9123      break
9124    fi
9125  done
9126  IFS="$lt_save_ifs"
9127  MAGIC_CMD="$lt_save_MAGIC_CMD"
9128  ;;
9129esac
9130fi
9131
9132MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9133if test -n "$MAGIC_CMD"; then
9134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9135$as_echo "$MAGIC_CMD" >&6; }
9136else
9137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138$as_echo "no" >&6; }
9139fi
9140
9141
9142  else
9143    MAGIC_CMD=:
9144  fi
9145fi
9146
9147  fi
9148  ;;
9149esac
9150
9151# Use C for the default configuration in the libtool script
9152
9153lt_save_CC="$CC"
9154ac_ext=c
9155ac_cpp='$CPP $CPPFLAGS'
9156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9158ac_compiler_gnu=$ac_cv_c_compiler_gnu
9159
9160
9161# Source file extension for C test sources.
9162ac_ext=c
9163
9164# Object file extension for compiled C test sources.
9165objext=o
9166objext=$objext
9167
9168# Code to be used in simple compile tests
9169lt_simple_compile_test_code="int some_variable = 0;"
9170
9171# Code to be used in simple link tests
9172lt_simple_link_test_code='int main(){return(0);}'
9173
9174
9175
9176
9177
9178
9179
9180# If no C compiler was specified, use CC.
9181LTCC=${LTCC-"$CC"}
9182
9183# If no C compiler flags were specified, use CFLAGS.
9184LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9185
9186# Allow CC to be a program name with arguments.
9187compiler=$CC
9188
9189# Save the default compiler, since it gets overwritten when the other
9190# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9191compiler_DEFAULT=$CC
9192
9193# save warnings/boilerplate of simple test code
9194ac_outfile=conftest.$ac_objext
9195echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9196eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9197_lt_compiler_boilerplate=`cat conftest.err`
9198$RM conftest*
9199
9200ac_outfile=conftest.$ac_objext
9201echo "$lt_simple_link_test_code" >conftest.$ac_ext
9202eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9203_lt_linker_boilerplate=`cat conftest.err`
9204$RM -r conftest*
9205
9206
9207## CAVEAT EMPTOR:
9208## There is no encapsulation within the following macros, do not change
9209## the running order or otherwise move them around unless you know exactly
9210## what you are doing...
9211if test -n "$compiler"; then
9212
9213lt_prog_compiler_no_builtin_flag=
9214
9215if test "$GCC" = yes; then
9216  case $cc_basename in
9217  nvcc*)
9218    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9219  *)
9220    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9221  esac
9222
9223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9224$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9225if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9226  $as_echo_n "(cached) " >&6
9227else
9228  lt_cv_prog_compiler_rtti_exceptions=no
9229   ac_outfile=conftest.$ac_objext
9230   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9231   lt_compiler_flag="-fno-rtti -fno-exceptions"
9232   # Insert the option either (1) after the last *FLAGS variable, or
9233   # (2) before a word containing "conftest.", or (3) at the end.
9234   # Note that $ac_compile itself does not contain backslashes and begins
9235   # with a dollar sign (not a hyphen), so the echo should work correctly.
9236   # The option is referenced via a variable to avoid confusing sed.
9237   lt_compile=`echo "$ac_compile" | $SED \
9238   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9239   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9240   -e 's:$: $lt_compiler_flag:'`
9241   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9242   (eval "$lt_compile" 2>conftest.err)
9243   ac_status=$?
9244   cat conftest.err >&5
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   if (exit $ac_status) && test -s "$ac_outfile"; then
9247     # The compiler can only warn and ignore the option if not recognized
9248     # So say no if there are warnings other than the usual output.
9249     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9250     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9251     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9252       lt_cv_prog_compiler_rtti_exceptions=yes
9253     fi
9254   fi
9255   $RM conftest*
9256
9257fi
9258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9259$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9260
9261if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9262    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9263else
9264    :
9265fi
9266
9267fi
9268
9269
9270
9271
9272
9273
9274  lt_prog_compiler_wl=
9275lt_prog_compiler_pic=
9276lt_prog_compiler_static=
9277
9278
9279  if test "$GCC" = yes; then
9280    lt_prog_compiler_wl='-Wl,'
9281    lt_prog_compiler_static='-static'
9282
9283    case $host_os in
9284      aix*)
9285      # All AIX code is PIC.
9286      if test "$host_cpu" = ia64; then
9287        # AIX 5 now supports IA64 processor
9288        lt_prog_compiler_static='-Bstatic'
9289      fi
9290      ;;
9291
9292    amigaos*)
9293      case $host_cpu in
9294      powerpc)
9295            # see comment about AmigaOS4 .so support
9296            lt_prog_compiler_pic='-fPIC'
9297        ;;
9298      m68k)
9299            # FIXME: we need at least 68020 code to build shared libraries, but
9300            # adding the `-m68020' flag to GCC prevents building anything better,
9301            # like `-m68040'.
9302            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9303        ;;
9304      esac
9305      ;;
9306
9307    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9308      # PIC is the default for these OSes.
9309      ;;
9310
9311    mingw* | cygwin* | pw32* | os2* | cegcc*)
9312      # This hack is so that the source file can tell whether it is being
9313      # built for inclusion in a dll (and should export symbols for example).
9314      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9315      # (--disable-auto-import) libraries
9316      lt_prog_compiler_pic='-DDLL_EXPORT'
9317      ;;
9318
9319    darwin* | rhapsody*)
9320      # PIC is the default on this platform
9321      # Common symbols not allowed in MH_DYLIB files
9322      lt_prog_compiler_pic='-fno-common'
9323      ;;
9324
9325    haiku*)
9326      # PIC is the default for Haiku.
9327      # The "-static" flag exists, but is broken.
9328      lt_prog_compiler_static=
9329      ;;
9330
9331    hpux*)
9332      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9333      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9334      # sets the default TLS model and affects inlining.
9335      case $host_cpu in
9336      hppa*64*)
9337        # +Z the default
9338        ;;
9339      *)
9340        lt_prog_compiler_pic='-fPIC'
9341        ;;
9342      esac
9343      ;;
9344
9345    interix[3-9]*)
9346      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9347      # Instead, we relocate shared libraries at runtime.
9348      ;;
9349
9350    msdosdjgpp*)
9351      # Just because we use GCC doesn't mean we suddenly get shared libraries
9352      # on systems that don't support them.
9353      lt_prog_compiler_can_build_shared=no
9354      enable_shared=no
9355      ;;
9356
9357    *nto* | *qnx*)
9358      # QNX uses GNU C++, but need to define -shared option too, otherwise
9359      # it will coredump.
9360      lt_prog_compiler_pic='-fPIC -shared'
9361      ;;
9362
9363    sysv4*MP*)
9364      if test -d /usr/nec; then
9365        lt_prog_compiler_pic=-Kconform_pic
9366      fi
9367      ;;
9368
9369    *)
9370      lt_prog_compiler_pic='-fPIC'
9371      ;;
9372    esac
9373
9374    case $cc_basename in
9375    nvcc*) # Cuda Compiler Driver 2.2
9376      lt_prog_compiler_wl='-Xlinker '
9377      if test -n "$lt_prog_compiler_pic"; then
9378        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9379      fi
9380      ;;
9381    esac
9382  else
9383    # PORTME Check for flag to pass linker flags through the system compiler.
9384    case $host_os in
9385    aix*)
9386      lt_prog_compiler_wl='-Wl,'
9387      if test "$host_cpu" = ia64; then
9388        # AIX 5 now supports IA64 processor
9389        lt_prog_compiler_static='-Bstatic'
9390      else
9391        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9392      fi
9393      ;;
9394
9395    mingw* | cygwin* | pw32* | os2* | cegcc*)
9396      # This hack is so that the source file can tell whether it is being
9397      # built for inclusion in a dll (and should export symbols for example).
9398      lt_prog_compiler_pic='-DDLL_EXPORT'
9399      ;;
9400
9401    hpux9* | hpux10* | hpux11*)
9402      lt_prog_compiler_wl='-Wl,'
9403      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9404      # not for PA HP-UX.
9405      case $host_cpu in
9406      hppa*64*|ia64*)
9407        # +Z the default
9408        ;;
9409      *)
9410        lt_prog_compiler_pic='+Z'
9411        ;;
9412      esac
9413      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9414      lt_prog_compiler_static='${wl}-a ${wl}archive'
9415      ;;
9416
9417    irix5* | irix6* | nonstopux*)
9418      lt_prog_compiler_wl='-Wl,'
9419      # PIC (with -KPIC) is the default.
9420      lt_prog_compiler_static='-non_shared'
9421      ;;
9422
9423    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9424      case $cc_basename in
9425      # old Intel for x86_64 which still supported -KPIC.
9426      ecc*)
9427        lt_prog_compiler_wl='-Wl,'
9428        lt_prog_compiler_pic='-KPIC'
9429        lt_prog_compiler_static='-static'
9430        ;;
9431      # icc used to be incompatible with GCC.
9432      # ICC 10 doesn't accept -KPIC any more.
9433      icc* | ifort*)
9434        lt_prog_compiler_wl='-Wl,'
9435        lt_prog_compiler_pic='-fPIC'
9436        lt_prog_compiler_static='-static'
9437        ;;
9438      # Lahey Fortran 8.1.
9439      lf95*)
9440        lt_prog_compiler_wl='-Wl,'
9441        lt_prog_compiler_pic='--shared'
9442        lt_prog_compiler_static='--static'
9443        ;;
9444      nagfor*)
9445        # NAG Fortran compiler
9446        lt_prog_compiler_wl='-Wl,-Wl,,'
9447        lt_prog_compiler_pic='-PIC'
9448        lt_prog_compiler_static='-Bstatic'
9449        ;;
9450      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9451        # Portland Group compilers (*not* the Pentium gcc compiler,
9452        # which looks to be a dead project)
9453        lt_prog_compiler_wl='-Wl,'
9454        lt_prog_compiler_pic='-fpic'
9455        lt_prog_compiler_static='-Bstatic'
9456        ;;
9457      ccc*)
9458        lt_prog_compiler_wl='-Wl,'
9459        # All Alpha code is PIC.
9460        lt_prog_compiler_static='-non_shared'
9461        ;;
9462      xl* | bgxl* | bgf* | mpixl*)
9463        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9464        lt_prog_compiler_wl='-Wl,'
9465        lt_prog_compiler_pic='-qpic'
9466        lt_prog_compiler_static='-qstaticlink'
9467        ;;
9468      *)
9469        case `$CC -V 2>&1 | sed 5q` in
9470        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9471          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9472          lt_prog_compiler_pic='-KPIC'
9473          lt_prog_compiler_static='-Bstatic'
9474          lt_prog_compiler_wl=''
9475          ;;
9476        *Sun\ F* | *Sun*Fortran*)
9477          lt_prog_compiler_pic='-KPIC'
9478          lt_prog_compiler_static='-Bstatic'
9479          lt_prog_compiler_wl='-Qoption ld '
9480          ;;
9481        *Sun\ C*)
9482          # Sun C 5.9
9483          lt_prog_compiler_pic='-KPIC'
9484          lt_prog_compiler_static='-Bstatic'
9485          lt_prog_compiler_wl='-Wl,'
9486          ;;
9487        *Intel*\ [CF]*Compiler*)
9488          lt_prog_compiler_wl='-Wl,'
9489          lt_prog_compiler_pic='-fPIC'
9490          lt_prog_compiler_static='-static'
9491          ;;
9492        *Portland\ Group*)
9493          lt_prog_compiler_wl='-Wl,'
9494          lt_prog_compiler_pic='-fpic'
9495          lt_prog_compiler_static='-Bstatic'
9496          ;;
9497        esac
9498        ;;
9499      esac
9500      ;;
9501
9502    newsos6)
9503      lt_prog_compiler_pic='-KPIC'
9504      lt_prog_compiler_static='-Bstatic'
9505      ;;
9506
9507    *nto* | *qnx*)
9508      # QNX uses GNU C++, but need to define -shared option too, otherwise
9509      # it will coredump.
9510      lt_prog_compiler_pic='-fPIC -shared'
9511      ;;
9512
9513    osf3* | osf4* | osf5*)
9514      lt_prog_compiler_wl='-Wl,'
9515      # All OSF/1 code is PIC.
9516      lt_prog_compiler_static='-non_shared'
9517      ;;
9518
9519    rdos*)
9520      lt_prog_compiler_static='-non_shared'
9521      ;;
9522
9523    solaris*)
9524      lt_prog_compiler_pic='-KPIC'
9525      lt_prog_compiler_static='-Bstatic'
9526      case $cc_basename in
9527      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9528        lt_prog_compiler_wl='-Qoption ld ';;
9529      *)
9530        lt_prog_compiler_wl='-Wl,';;
9531      esac
9532      ;;
9533
9534    sunos4*)
9535      lt_prog_compiler_wl='-Qoption ld '
9536      lt_prog_compiler_pic='-PIC'
9537      lt_prog_compiler_static='-Bstatic'
9538      ;;
9539
9540    sysv4 | sysv4.2uw2* | sysv4.3*)
9541      lt_prog_compiler_wl='-Wl,'
9542      lt_prog_compiler_pic='-KPIC'
9543      lt_prog_compiler_static='-Bstatic'
9544      ;;
9545
9546    sysv4*MP*)
9547      if test -d /usr/nec ;then
9548        lt_prog_compiler_pic='-Kconform_pic'
9549        lt_prog_compiler_static='-Bstatic'
9550      fi
9551      ;;
9552
9553    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9554      lt_prog_compiler_wl='-Wl,'
9555      lt_prog_compiler_pic='-KPIC'
9556      lt_prog_compiler_static='-Bstatic'
9557      ;;
9558
9559    unicos*)
9560      lt_prog_compiler_wl='-Wl,'
9561      lt_prog_compiler_can_build_shared=no
9562      ;;
9563
9564    uts4*)
9565      lt_prog_compiler_pic='-pic'
9566      lt_prog_compiler_static='-Bstatic'
9567      ;;
9568
9569    *)
9570      lt_prog_compiler_can_build_shared=no
9571      ;;
9572    esac
9573  fi
9574
9575case $host_os in
9576  # For platforms which do not support PIC, -DPIC is meaningless:
9577  *djgpp*)
9578    lt_prog_compiler_pic=
9579    ;;
9580  *)
9581    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9582    ;;
9583esac
9584
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9586$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9587if ${lt_cv_prog_compiler_pic+:} false; then :
9588  $as_echo_n "(cached) " >&6
9589else
9590  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9591fi
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9593$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9594lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9595
9596#
9597# Check to make sure the PIC flag actually works.
9598#
9599if test -n "$lt_prog_compiler_pic"; then
9600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9601$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9602if ${lt_cv_prog_compiler_pic_works+:} false; then :
9603  $as_echo_n "(cached) " >&6
9604else
9605  lt_cv_prog_compiler_pic_works=no
9606   ac_outfile=conftest.$ac_objext
9607   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9608   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9609   # Insert the option either (1) after the last *FLAGS variable, or
9610   # (2) before a word containing "conftest.", or (3) at the end.
9611   # Note that $ac_compile itself does not contain backslashes and begins
9612   # with a dollar sign (not a hyphen), so the echo should work correctly.
9613   # The option is referenced via a variable to avoid confusing sed.
9614   lt_compile=`echo "$ac_compile" | $SED \
9615   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9616   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9617   -e 's:$: $lt_compiler_flag:'`
9618   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9619   (eval "$lt_compile" 2>conftest.err)
9620   ac_status=$?
9621   cat conftest.err >&5
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   if (exit $ac_status) && test -s "$ac_outfile"; then
9624     # The compiler can only warn and ignore the option if not recognized
9625     # So say no if there are warnings other than the usual output.
9626     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9627     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9628     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9629       lt_cv_prog_compiler_pic_works=yes
9630     fi
9631   fi
9632   $RM conftest*
9633
9634fi
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9636$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9637
9638if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9639    case $lt_prog_compiler_pic in
9640     "" | " "*) ;;
9641     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9642     esac
9643else
9644    lt_prog_compiler_pic=
9645     lt_prog_compiler_can_build_shared=no
9646fi
9647
9648fi
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660#
9661# Check to make sure the static flag actually works.
9662#
9663wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9665$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9666if ${lt_cv_prog_compiler_static_works+:} false; then :
9667  $as_echo_n "(cached) " >&6
9668else
9669  lt_cv_prog_compiler_static_works=no
9670   save_LDFLAGS="$LDFLAGS"
9671   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9672   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9673   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9674     # The linker can only warn and ignore the option if not recognized
9675     # So say no if there are warnings
9676     if test -s conftest.err; then
9677       # Append any errors to the config.log.
9678       cat conftest.err 1>&5
9679       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9680       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9681       if diff conftest.exp conftest.er2 >/dev/null; then
9682         lt_cv_prog_compiler_static_works=yes
9683       fi
9684     else
9685       lt_cv_prog_compiler_static_works=yes
9686     fi
9687   fi
9688   $RM -r conftest*
9689   LDFLAGS="$save_LDFLAGS"
9690
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9693$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9694
9695if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9696    :
9697else
9698    lt_prog_compiler_static=
9699fi
9700
9701
9702
9703
9704
9705
9706
9707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9708$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9709if ${lt_cv_prog_compiler_c_o+:} false; then :
9710  $as_echo_n "(cached) " >&6
9711else
9712  lt_cv_prog_compiler_c_o=no
9713   $RM -r conftest 2>/dev/null
9714   mkdir conftest
9715   cd conftest
9716   mkdir out
9717   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9718
9719   lt_compiler_flag="-o out/conftest2.$ac_objext"
9720   # Insert the option either (1) after the last *FLAGS variable, or
9721   # (2) before a word containing "conftest.", or (3) at the end.
9722   # Note that $ac_compile itself does not contain backslashes and begins
9723   # with a dollar sign (not a hyphen), so the echo should work correctly.
9724   lt_compile=`echo "$ac_compile" | $SED \
9725   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9726   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9727   -e 's:$: $lt_compiler_flag:'`
9728   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9729   (eval "$lt_compile" 2>out/conftest.err)
9730   ac_status=$?
9731   cat out/conftest.err >&5
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9734   then
9735     # The compiler can only warn and ignore the option if not recognized
9736     # So say no if there are warnings
9737     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9738     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9739     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9740       lt_cv_prog_compiler_c_o=yes
9741     fi
9742   fi
9743   chmod u+w . 2>&5
9744   $RM conftest*
9745   # SGI C++ compiler will create directory out/ii_files/ for
9746   # template instantiation
9747   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9748   $RM out/* && rmdir out
9749   cd ..
9750   $RM -r conftest
9751   $RM conftest*
9752
9753fi
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9755$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9756
9757
9758
9759
9760
9761
9762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9763$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9764if ${lt_cv_prog_compiler_c_o+:} false; then :
9765  $as_echo_n "(cached) " >&6
9766else
9767  lt_cv_prog_compiler_c_o=no
9768   $RM -r conftest 2>/dev/null
9769   mkdir conftest
9770   cd conftest
9771   mkdir out
9772   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9773
9774   lt_compiler_flag="-o out/conftest2.$ac_objext"
9775   # Insert the option either (1) after the last *FLAGS variable, or
9776   # (2) before a word containing "conftest.", or (3) at the end.
9777   # Note that $ac_compile itself does not contain backslashes and begins
9778   # with a dollar sign (not a hyphen), so the echo should work correctly.
9779   lt_compile=`echo "$ac_compile" | $SED \
9780   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9781   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9782   -e 's:$: $lt_compiler_flag:'`
9783   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9784   (eval "$lt_compile" 2>out/conftest.err)
9785   ac_status=$?
9786   cat out/conftest.err >&5
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9789   then
9790     # The compiler can only warn and ignore the option if not recognized
9791     # So say no if there are warnings
9792     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9793     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9794     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9795       lt_cv_prog_compiler_c_o=yes
9796     fi
9797   fi
9798   chmod u+w . 2>&5
9799   $RM conftest*
9800   # SGI C++ compiler will create directory out/ii_files/ for
9801   # template instantiation
9802   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9803   $RM out/* && rmdir out
9804   cd ..
9805   $RM -r conftest
9806   $RM conftest*
9807
9808fi
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9810$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9811
9812
9813
9814
9815hard_links="nottested"
9816if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9817  # do not overwrite the value of need_locks provided by the user
9818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9819$as_echo_n "checking if we can lock with hard links... " >&6; }
9820  hard_links=yes
9821  $RM conftest*
9822  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9823  touch conftest.a
9824  ln conftest.a conftest.b 2>&5 || hard_links=no
9825  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9827$as_echo "$hard_links" >&6; }
9828  if test "$hard_links" = no; then
9829    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9830$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9831    need_locks=warn
9832  fi
9833else
9834  need_locks=no
9835fi
9836
9837
9838
9839
9840
9841
9842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9843$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9844
9845  runpath_var=
9846  allow_undefined_flag=
9847  always_export_symbols=no
9848  archive_cmds=
9849  archive_expsym_cmds=
9850  compiler_needs_object=no
9851  enable_shared_with_static_runtimes=no
9852  export_dynamic_flag_spec=
9853  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9854  hardcode_automatic=no
9855  hardcode_direct=no
9856  hardcode_direct_absolute=no
9857  hardcode_libdir_flag_spec=
9858  hardcode_libdir_separator=
9859  hardcode_minus_L=no
9860  hardcode_shlibpath_var=unsupported
9861  inherit_rpath=no
9862  link_all_deplibs=unknown
9863  module_cmds=
9864  module_expsym_cmds=
9865  old_archive_from_new_cmds=
9866  old_archive_from_expsyms_cmds=
9867  thread_safe_flag_spec=
9868  whole_archive_flag_spec=
9869  # include_expsyms should be a list of space-separated symbols to be *always*
9870  # included in the symbol list
9871  include_expsyms=
9872  # exclude_expsyms can be an extended regexp of symbols to exclude
9873  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9874  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9875  # as well as any symbol that contains `d'.
9876  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9877  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9878  # platforms (ab)use it in PIC code, but their linkers get confused if
9879  # the symbol is explicitly referenced.  Since portable code cannot
9880  # rely on this symbol name, it's probably fine to never include it in
9881  # preloaded symbol tables.
9882  # Exclude shared library initialization/finalization symbols.
9883  extract_expsyms_cmds=
9884
9885  case $host_os in
9886  cygwin* | mingw* | pw32* | cegcc*)
9887    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9888    # When not using gcc, we currently assume that we are using
9889    # Microsoft Visual C++.
9890    if test "$GCC" != yes; then
9891      with_gnu_ld=no
9892    fi
9893    ;;
9894  interix*)
9895    # we just hope/assume this is gcc and not c89 (= MSVC++)
9896    with_gnu_ld=yes
9897    ;;
9898  openbsd*)
9899    with_gnu_ld=no
9900    ;;
9901  esac
9902
9903  ld_shlibs=yes
9904
9905  # On some targets, GNU ld is compatible enough with the native linker
9906  # that we're better off using the native interface for both.
9907  lt_use_gnu_ld_interface=no
9908  if test "$with_gnu_ld" = yes; then
9909    case $host_os in
9910      aix*)
9911        # The AIX port of GNU ld has always aspired to compatibility
9912        # with the native linker.  However, as the warning in the GNU ld
9913        # block says, versions before 2.19.5* couldn't really create working
9914        # shared libraries, regardless of the interface used.
9915        case `$LD -v 2>&1` in
9916          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9917          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9918          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9919          *)
9920            lt_use_gnu_ld_interface=yes
9921            ;;
9922        esac
9923        ;;
9924      *)
9925        lt_use_gnu_ld_interface=yes
9926        ;;
9927    esac
9928  fi
9929
9930  if test "$lt_use_gnu_ld_interface" = yes; then
9931    # If archive_cmds runs LD, not CC, wlarc should be empty
9932    wlarc='${wl}'
9933
9934    # Set some defaults for GNU ld with shared library support. These
9935    # are reset later if shared libraries are not supported. Putting them
9936    # here allows them to be overridden if necessary.
9937    runpath_var=LD_RUN_PATH
9938    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939    export_dynamic_flag_spec='${wl}--export-dynamic'
9940    # ancient GNU ld didn't support --whole-archive et. al.
9941    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9942      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9943    else
9944      whole_archive_flag_spec=
9945    fi
9946    supports_anon_versioning=no
9947    case `$LD -v 2>&1` in
9948      *GNU\ gold*) supports_anon_versioning=yes ;;
9949      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9950      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9951      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9952      *\ 2.11.*) ;; # other 2.11 versions
9953      *) supports_anon_versioning=yes ;;
9954    esac
9955
9956    # See if GNU ld supports shared libraries.
9957    case $host_os in
9958    aix[3-9]*)
9959      # On AIX/PPC, the GNU linker is very broken
9960      if test "$host_cpu" != ia64; then
9961        ld_shlibs=no
9962        cat <<_LT_EOF 1>&2
9963
9964*** Warning: the GNU linker, at least up to release 2.19, is reported
9965*** to be unable to reliably create shared libraries on AIX.
9966*** Therefore, libtool is disabling shared libraries support.  If you
9967*** really care for shared libraries, you may want to install binutils
9968*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9969*** You will then need to restart the configuration process.
9970
9971_LT_EOF
9972      fi
9973      ;;
9974
9975    amigaos*)
9976      case $host_cpu in
9977      powerpc)
9978            # see comment about AmigaOS4 .so support
9979            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9980            archive_expsym_cmds=''
9981        ;;
9982      m68k)
9983            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)'
9984            hardcode_libdir_flag_spec='-L$libdir'
9985            hardcode_minus_L=yes
9986        ;;
9987      esac
9988      ;;
9989
9990    beos*)
9991      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9992        allow_undefined_flag=unsupported
9993        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9994        # support --undefined.  This deserves some investigation.  FIXME
9995        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9996      else
9997        ld_shlibs=no
9998      fi
9999      ;;
10000
10001    cygwin* | mingw* | pw32* | cegcc*)
10002      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10003      # as there is no search path for DLLs.
10004      hardcode_libdir_flag_spec='-L$libdir'
10005      export_dynamic_flag_spec='${wl}--export-all-symbols'
10006      allow_undefined_flag=unsupported
10007      always_export_symbols=no
10008      enable_shared_with_static_runtimes=yes
10009      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'
10010      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10011
10012      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10013        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10014        # If the export-symbols file already is a .def file (1st line
10015        # is EXPORTS), use it as is; otherwise, prepend...
10016        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10017          cp $export_symbols $output_objdir/$soname.def;
10018        else
10019          echo EXPORTS > $output_objdir/$soname.def;
10020          cat $export_symbols >> $output_objdir/$soname.def;
10021        fi~
10022        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10023      else
10024        ld_shlibs=no
10025      fi
10026      ;;
10027
10028    haiku*)
10029      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10030      link_all_deplibs=yes
10031      ;;
10032
10033    interix[3-9]*)
10034      hardcode_direct=no
10035      hardcode_shlibpath_var=no
10036      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10037      export_dynamic_flag_spec='${wl}-E'
10038      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10039      # Instead, shared libraries are loaded at an image base (0x10000000 by
10040      # default) and relocated if they conflict, which is a slow very memory
10041      # consuming and fragmenting process.  To avoid this, we pick a random,
10042      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10043      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10044      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10045      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'
10046      ;;
10047
10048    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10049      tmp_diet=no
10050      if test "$host_os" = linux-dietlibc; then
10051        case $cc_basename in
10052          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10053        esac
10054      fi
10055      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10056         && test "$tmp_diet" = no
10057      then
10058        tmp_addflag=' $pic_flag'
10059        tmp_sharedflag='-shared'
10060        case $cc_basename,$host_cpu in
10061        pgcc*)                          # Portland Group C compiler
10062          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'
10063          tmp_addflag=' $pic_flag'
10064          ;;
10065        pgf77* | pgf90* | pgf95* | pgfortran*)
10066                                        # Portland Group f77 and f90 compilers
10067          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'
10068          tmp_addflag=' $pic_flag -Mnomain' ;;
10069        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10070          tmp_addflag=' -i_dynamic' ;;
10071        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10072          tmp_addflag=' -i_dynamic -nofor_main' ;;
10073        ifc* | ifort*)                  # Intel Fortran compiler
10074          tmp_addflag=' -nofor_main' ;;
10075        lf95*)                          # Lahey Fortran 8.1
10076          whole_archive_flag_spec=
10077          tmp_sharedflag='--shared' ;;
10078        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10079          tmp_sharedflag='-qmkshrobj'
10080          tmp_addflag= ;;
10081        nvcc*)  # Cuda Compiler Driver 2.2
10082          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'
10083          compiler_needs_object=yes
10084          ;;
10085        esac
10086        case `$CC -V 2>&1 | sed 5q` in
10087        *Sun\ C*)                       # Sun C 5.9
10088          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'
10089          compiler_needs_object=yes
10090          tmp_sharedflag='-G' ;;
10091        *Sun\ F*)                       # Sun Fortran 8.3
10092          tmp_sharedflag='-G' ;;
10093        esac
10094        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095
10096        if test "x$supports_anon_versioning" = xyes; then
10097          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10098            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10099            echo "local: *; };" >> $output_objdir/$libname.ver~
10100            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10101        fi
10102
10103        case $cc_basename in
10104        xlf* | bgf* | bgxlf* | mpixlf*)
10105          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10106          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10107          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10108          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10109          if test "x$supports_anon_versioning" = xyes; then
10110            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10111              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10112              echo "local: *; };" >> $output_objdir/$libname.ver~
10113              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10114          fi
10115          ;;
10116        esac
10117      else
10118        ld_shlibs=no
10119      fi
10120      ;;
10121
10122    netbsd*)
10123      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10124        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10125        wlarc=
10126      else
10127        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10129      fi
10130      ;;
10131
10132    solaris*)
10133      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10134        ld_shlibs=no
10135        cat <<_LT_EOF 1>&2
10136
10137*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10138*** create shared libraries on Solaris systems.  Therefore, libtool
10139*** is disabling shared libraries support.  We urge you to upgrade GNU
10140*** binutils to release 2.9.1 or newer.  Another option is to modify
10141*** your PATH or compiler configuration so that the native linker is
10142*** used, and then restart.
10143
10144_LT_EOF
10145      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10146        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10147        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10148      else
10149        ld_shlibs=no
10150      fi
10151      ;;
10152
10153    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10154      case `$LD -v 2>&1` in
10155        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10156        ld_shlibs=no
10157        cat <<_LT_EOF 1>&2
10158
10159*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10160*** reliably create shared libraries on SCO systems.  Therefore, libtool
10161*** is disabling shared libraries support.  We urge you to upgrade GNU
10162*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10163*** your PATH or compiler configuration so that the native linker is
10164*** used, and then restart.
10165
10166_LT_EOF
10167        ;;
10168        *)
10169          # For security reasons, it is highly recommended that you always
10170          # use absolute paths for naming shared libraries, and exclude the
10171          # DT_RUNPATH tag from executables and libraries.  But doing so
10172          # requires that you compile everything twice, which is a pain.
10173          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10174            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10175            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10176            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10177          else
10178            ld_shlibs=no
10179          fi
10180        ;;
10181      esac
10182      ;;
10183
10184    sunos4*)
10185      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10186      wlarc=
10187      hardcode_direct=yes
10188      hardcode_shlibpath_var=no
10189      ;;
10190
10191    *)
10192      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10193        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10194        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10195      else
10196        ld_shlibs=no
10197      fi
10198      ;;
10199    esac
10200
10201    if test "$ld_shlibs" = no; then
10202      runpath_var=
10203      hardcode_libdir_flag_spec=
10204      export_dynamic_flag_spec=
10205      whole_archive_flag_spec=
10206    fi
10207  else
10208    # PORTME fill in a description of your system's linker (not GNU ld)
10209    case $host_os in
10210    aix3*)
10211      allow_undefined_flag=unsupported
10212      always_export_symbols=yes
10213      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'
10214      # Note: this linker hardcodes the directories in LIBPATH if there
10215      # are no directories specified by -L.
10216      hardcode_minus_L=yes
10217      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10218        # Neither direct hardcoding nor static linking is supported with a
10219        # broken collect2.
10220        hardcode_direct=unsupported
10221      fi
10222      ;;
10223
10224    aix[4-9]*)
10225      if test "$host_cpu" = ia64; then
10226        # On IA64, the linker does run time linking by default, so we don't
10227        # have to do anything special.
10228        aix_use_runtimelinking=no
10229        exp_sym_flag='-Bexport'
10230        no_entry_flag=""
10231      else
10232        # If we're using GNU nm, then we don't want the "-C" option.
10233        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10234        # Also, AIX nm treats weak defined symbols like other global
10235        # defined symbols, whereas GNU nm marks them as "W".
10236        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10237          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'
10238        else
10239          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'
10240        fi
10241        aix_use_runtimelinking=no
10242
10243        # Test if we are trying to use run time linking or normal
10244        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10245        # need to do runtime linking.
10246        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10247          for ld_flag in $LDFLAGS; do
10248          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10249            aix_use_runtimelinking=yes
10250            break
10251          fi
10252          done
10253          ;;
10254        esac
10255
10256        exp_sym_flag='-bexport'
10257        no_entry_flag='-bnoentry'
10258      fi
10259
10260      # When large executables or shared objects are built, AIX ld can
10261      # have problems creating the table of contents.  If linking a library
10262      # or program results in "error TOC overflow" add -mminimal-toc to
10263      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10264      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10265
10266      archive_cmds=''
10267      hardcode_direct=yes
10268      hardcode_direct_absolute=yes
10269      hardcode_libdir_separator=':'
10270      link_all_deplibs=yes
10271      file_list_spec='${wl}-f,'
10272
10273      if test "$GCC" = yes; then
10274        case $host_os in aix4.[012]|aix4.[012].*)
10275        # We only want to do this on AIX 4.2 and lower, the check
10276        # below for broken collect2 doesn't work under 4.3+
10277          collect2name=`${CC} -print-prog-name=collect2`
10278          if test -f "$collect2name" &&
10279           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10280          then
10281          # We have reworked collect2
10282          :
10283          else
10284          # We have old collect2
10285          hardcode_direct=unsupported
10286          # It fails to find uninstalled libraries when the uninstalled
10287          # path is not listed in the libpath.  Setting hardcode_minus_L
10288          # to unsupported forces relinking
10289          hardcode_minus_L=yes
10290          hardcode_libdir_flag_spec='-L$libdir'
10291          hardcode_libdir_separator=
10292          fi
10293          ;;
10294        esac
10295        shared_flag='-shared'
10296        if test "$aix_use_runtimelinking" = yes; then
10297          shared_flag="$shared_flag "'${wl}-G'
10298        fi
10299      else
10300        # not using gcc
10301        if test "$host_cpu" = ia64; then
10302        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10303        # chokes on -Wl,-G. The following line is correct:
10304          shared_flag='-G'
10305        else
10306          if test "$aix_use_runtimelinking" = yes; then
10307            shared_flag='${wl}-G'
10308          else
10309            shared_flag='${wl}-bM:SRE'
10310          fi
10311        fi
10312      fi
10313
10314      export_dynamic_flag_spec='${wl}-bexpall'
10315      # It seems that -bexpall does not export symbols beginning with
10316      # underscore (_), so it is better to generate a list of symbols to export.
10317      always_export_symbols=yes
10318      if test "$aix_use_runtimelinking" = yes; then
10319        # Warning - without using the other runtime loading flags (-brtl),
10320        # -berok will link without error, but may produce a broken library.
10321        allow_undefined_flag='-berok'
10322        # Determine the default libpath from the value encoded in an
10323        # empty executable.
10324        if test "${lt_cv_aix_libpath+set}" = set; then
10325  aix_libpath=$lt_cv_aix_libpath
10326else
10327  if ${lt_cv_aix_libpath_+:} false; then :
10328  $as_echo_n "(cached) " >&6
10329else
10330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331/* end confdefs.h.  */
10332
10333int
10334main ()
10335{
10336
10337  ;
10338  return 0;
10339}
10340_ACEOF
10341if ac_fn_c_try_link "$LINENO"; then :
10342
10343  lt_aix_libpath_sed='
10344      /Import File Strings/,/^$/ {
10345          /^0/ {
10346              s/^0  *\([^ ]*\) *$/\1/
10347              p
10348          }
10349      }'
10350  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10351  # Check for a 64-bit object if we didn't find anything.
10352  if test -z "$lt_cv_aix_libpath_"; then
10353    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10354  fi
10355fi
10356rm -f core conftest.err conftest.$ac_objext \
10357    conftest$ac_exeext conftest.$ac_ext
10358  if test -z "$lt_cv_aix_libpath_"; then
10359    lt_cv_aix_libpath_="/usr/lib:/lib"
10360  fi
10361
10362fi
10363
10364  aix_libpath=$lt_cv_aix_libpath_
10365fi
10366
10367        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10368        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"
10369      else
10370        if test "$host_cpu" = ia64; then
10371          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10372          allow_undefined_flag="-z nodefs"
10373          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"
10374        else
10375         # Determine the default libpath from the value encoded in an
10376         # empty executable.
10377         if test "${lt_cv_aix_libpath+set}" = set; then
10378  aix_libpath=$lt_cv_aix_libpath
10379else
10380  if ${lt_cv_aix_libpath_+:} false; then :
10381  $as_echo_n "(cached) " >&6
10382else
10383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h.  */
10385
10386int
10387main ()
10388{
10389
10390  ;
10391  return 0;
10392}
10393_ACEOF
10394if ac_fn_c_try_link "$LINENO"; then :
10395
10396  lt_aix_libpath_sed='
10397      /Import File Strings/,/^$/ {
10398          /^0/ {
10399              s/^0  *\([^ ]*\) *$/\1/
10400              p
10401          }
10402      }'
10403  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10404  # Check for a 64-bit object if we didn't find anything.
10405  if test -z "$lt_cv_aix_libpath_"; then
10406    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10407  fi
10408fi
10409rm -f core conftest.err conftest.$ac_objext \
10410    conftest$ac_exeext conftest.$ac_ext
10411  if test -z "$lt_cv_aix_libpath_"; then
10412    lt_cv_aix_libpath_="/usr/lib:/lib"
10413  fi
10414
10415fi
10416
10417  aix_libpath=$lt_cv_aix_libpath_
10418fi
10419
10420         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10421          # Warning - without using the other run time loading flags,
10422          # -berok will link without error, but may produce a broken library.
10423          no_undefined_flag=' ${wl}-bernotok'
10424          allow_undefined_flag=' ${wl}-berok'
10425          if test "$with_gnu_ld" = yes; then
10426            # We only use this code for GNU lds that support --whole-archive.
10427            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10428          else
10429            # Exported symbols can be pulled into shared objects from archives
10430            whole_archive_flag_spec='$convenience'
10431          fi
10432          archive_cmds_need_lc=yes
10433          # This is similar to how AIX traditionally builds its shared libraries.
10434          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'
10435        fi
10436      fi
10437      ;;
10438
10439    amigaos*)
10440      case $host_cpu in
10441      powerpc)
10442            # see comment about AmigaOS4 .so support
10443            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10444            archive_expsym_cmds=''
10445        ;;
10446      m68k)
10447            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)'
10448            hardcode_libdir_flag_spec='-L$libdir'
10449            hardcode_minus_L=yes
10450        ;;
10451      esac
10452      ;;
10453
10454    bsdi[45]*)
10455      export_dynamic_flag_spec=-rdynamic
10456      ;;
10457
10458    cygwin* | mingw* | pw32* | cegcc*)
10459      # When not using gcc, we currently assume that we are using
10460      # Microsoft Visual C++.
10461      # hardcode_libdir_flag_spec is actually meaningless, as there is
10462      # no search path for DLLs.
10463      case $cc_basename in
10464      cl*)
10465        # Native MSVC
10466        hardcode_libdir_flag_spec=' '
10467        allow_undefined_flag=unsupported
10468        always_export_symbols=yes
10469        file_list_spec='@'
10470        # Tell ltmain to make .lib files, not .a files.
10471        libext=lib
10472        # Tell ltmain to make .dll files, not .so files.
10473        shrext_cmds=".dll"
10474        # FIXME: Setting linknames here is a bad hack.
10475        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10476        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10477            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10478          else
10479            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10480          fi~
10481          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10482          linknames='
10483        # The linker will not automatically build a static lib if we build a DLL.
10484        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10485        enable_shared_with_static_runtimes=yes
10486        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10487        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10488        # Don't use ranlib
10489        old_postinstall_cmds='chmod 644 $oldlib'
10490        postlink_cmds='lt_outputfile="@OUTPUT@"~
10491          lt_tool_outputfile="@TOOL_OUTPUT@"~
10492          case $lt_outputfile in
10493            *.exe|*.EXE) ;;
10494            *)
10495              lt_outputfile="$lt_outputfile.exe"
10496              lt_tool_outputfile="$lt_tool_outputfile.exe"
10497              ;;
10498          esac~
10499          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10500            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10501            $RM "$lt_outputfile.manifest";
10502          fi'
10503        ;;
10504      *)
10505        # Assume MSVC wrapper
10506        hardcode_libdir_flag_spec=' '
10507        allow_undefined_flag=unsupported
10508        # Tell ltmain to make .lib files, not .a files.
10509        libext=lib
10510        # Tell ltmain to make .dll files, not .so files.
10511        shrext_cmds=".dll"
10512        # FIXME: Setting linknames here is a bad hack.
10513        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10514        # The linker will automatically build a .lib file if we build a DLL.
10515        old_archive_from_new_cmds='true'
10516        # FIXME: Should let the user specify the lib program.
10517        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10518        enable_shared_with_static_runtimes=yes
10519        ;;
10520      esac
10521      ;;
10522
10523    darwin* | rhapsody*)
10524
10525
10526  archive_cmds_need_lc=no
10527  hardcode_direct=no
10528  hardcode_automatic=yes
10529  hardcode_shlibpath_var=unsupported
10530  if test "$lt_cv_ld_force_load" = "yes"; then
10531    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10532
10533  else
10534    whole_archive_flag_spec=''
10535  fi
10536  link_all_deplibs=yes
10537  allow_undefined_flag="$_lt_dar_allow_undefined"
10538  case $cc_basename in
10539     ifort*) _lt_dar_can_shared=yes ;;
10540     *) _lt_dar_can_shared=$GCC ;;
10541  esac
10542  if test "$_lt_dar_can_shared" = "yes"; then
10543    output_verbose_link_cmd=func_echo_all
10544    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10545    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10546    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10547    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10548
10549  else
10550  ld_shlibs=no
10551  fi
10552
10553      ;;
10554
10555    dgux*)
10556      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557      hardcode_libdir_flag_spec='-L$libdir'
10558      hardcode_shlibpath_var=no
10559      ;;
10560
10561    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10562    # support.  Future versions do this automatically, but an explicit c++rt0.o
10563    # does not break anything, and helps significantly (at the cost of a little
10564    # extra space).
10565    freebsd2.2*)
10566      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10567      hardcode_libdir_flag_spec='-R$libdir'
10568      hardcode_direct=yes
10569      hardcode_shlibpath_var=no
10570      ;;
10571
10572    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10573    freebsd2.*)
10574      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10575      hardcode_direct=yes
10576      hardcode_minus_L=yes
10577      hardcode_shlibpath_var=no
10578      ;;
10579
10580    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10581    freebsd* | dragonfly*)
10582      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10583      hardcode_libdir_flag_spec='-R$libdir'
10584      hardcode_direct=yes
10585      hardcode_shlibpath_var=no
10586      ;;
10587
10588    hpux9*)
10589      if test "$GCC" = yes; then
10590        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10591      else
10592        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10593      fi
10594      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10595      hardcode_libdir_separator=:
10596      hardcode_direct=yes
10597
10598      # hardcode_minus_L: Not really in the search PATH,
10599      # but as the default location of the library.
10600      hardcode_minus_L=yes
10601      export_dynamic_flag_spec='${wl}-E'
10602      ;;
10603
10604    hpux10*)
10605      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10606        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10607      else
10608        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10609      fi
10610      if test "$with_gnu_ld" = no; then
10611        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10612        hardcode_libdir_separator=:
10613        hardcode_direct=yes
10614        hardcode_direct_absolute=yes
10615        export_dynamic_flag_spec='${wl}-E'
10616        # hardcode_minus_L: Not really in the search PATH,
10617        # but as the default location of the library.
10618        hardcode_minus_L=yes
10619      fi
10620      ;;
10621
10622    hpux11*)
10623      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10624        case $host_cpu in
10625        hppa*64*)
10626          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10627          ;;
10628        ia64*)
10629          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10630          ;;
10631        *)
10632          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10633          ;;
10634        esac
10635      else
10636        case $host_cpu in
10637        hppa*64*)
10638          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10639          ;;
10640        ia64*)
10641          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10642          ;;
10643        *)
10644
10645          # Older versions of the 11.00 compiler do not understand -b yet
10646          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10647          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10648$as_echo_n "checking if $CC understands -b... " >&6; }
10649if ${lt_cv_prog_compiler__b+:} false; then :
10650  $as_echo_n "(cached) " >&6
10651else
10652  lt_cv_prog_compiler__b=no
10653   save_LDFLAGS="$LDFLAGS"
10654   LDFLAGS="$LDFLAGS -b"
10655   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10656   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10657     # The linker can only warn and ignore the option if not recognized
10658     # So say no if there are warnings
10659     if test -s conftest.err; then
10660       # Append any errors to the config.log.
10661       cat conftest.err 1>&5
10662       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10663       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10664       if diff conftest.exp conftest.er2 >/dev/null; then
10665         lt_cv_prog_compiler__b=yes
10666       fi
10667     else
10668       lt_cv_prog_compiler__b=yes
10669     fi
10670   fi
10671   $RM -r conftest*
10672   LDFLAGS="$save_LDFLAGS"
10673
10674fi
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10676$as_echo "$lt_cv_prog_compiler__b" >&6; }
10677
10678if test x"$lt_cv_prog_compiler__b" = xyes; then
10679    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10680else
10681    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10682fi
10683
10684          ;;
10685        esac
10686      fi
10687      if test "$with_gnu_ld" = no; then
10688        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10689        hardcode_libdir_separator=:
10690
10691        case $host_cpu in
10692        hppa*64*|ia64*)
10693          hardcode_direct=no
10694          hardcode_shlibpath_var=no
10695          ;;
10696        *)
10697          hardcode_direct=yes
10698          hardcode_direct_absolute=yes
10699          export_dynamic_flag_spec='${wl}-E'
10700
10701          # hardcode_minus_L: Not really in the search PATH,
10702          # but as the default location of the library.
10703          hardcode_minus_L=yes
10704          ;;
10705        esac
10706      fi
10707      ;;
10708
10709    irix5* | irix6* | nonstopux*)
10710      if test "$GCC" = yes; then
10711        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10712        # Try to use the -exported_symbol ld option, if it does not
10713        # work, assume that -exports_file does not work either and
10714        # implicitly export all symbols.
10715        # This should be the same for all languages, so no per-tag cache variable.
10716        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10717$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10718if ${lt_cv_irix_exported_symbol+:} false; then :
10719  $as_echo_n "(cached) " >&6
10720else
10721  save_LDFLAGS="$LDFLAGS"
10722           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10723           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724/* end confdefs.h.  */
10725int foo (void) { return 0; }
10726_ACEOF
10727if ac_fn_c_try_link "$LINENO"; then :
10728  lt_cv_irix_exported_symbol=yes
10729else
10730  lt_cv_irix_exported_symbol=no
10731fi
10732rm -f core conftest.err conftest.$ac_objext \
10733    conftest$ac_exeext conftest.$ac_ext
10734           LDFLAGS="$save_LDFLAGS"
10735fi
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10737$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10738        if test "$lt_cv_irix_exported_symbol" = yes; then
10739          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10740        fi
10741      else
10742        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10743        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10744      fi
10745      archive_cmds_need_lc='no'
10746      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10747      hardcode_libdir_separator=:
10748      inherit_rpath=yes
10749      link_all_deplibs=yes
10750      ;;
10751
10752    netbsd*)
10753      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10754        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10755      else
10756        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10757      fi
10758      hardcode_libdir_flag_spec='-R$libdir'
10759      hardcode_direct=yes
10760      hardcode_shlibpath_var=no
10761      ;;
10762
10763    newsos6)
10764      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10765      hardcode_direct=yes
10766      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10767      hardcode_libdir_separator=:
10768      hardcode_shlibpath_var=no
10769      ;;
10770
10771    *nto* | *qnx*)
10772      ;;
10773
10774    openbsd*)
10775      if test -f /usr/libexec/ld.so; then
10776        hardcode_direct=yes
10777        hardcode_shlibpath_var=no
10778        hardcode_direct_absolute=yes
10779        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10780          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10781          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10782          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10783          export_dynamic_flag_spec='${wl}-E'
10784        else
10785          case $host_os in
10786           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10787             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10788             hardcode_libdir_flag_spec='-R$libdir'
10789             ;;
10790           *)
10791             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10792             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10793             ;;
10794          esac
10795        fi
10796      else
10797        ld_shlibs=no
10798      fi
10799      ;;
10800
10801    os2*)
10802      hardcode_libdir_flag_spec='-L$libdir'
10803      hardcode_minus_L=yes
10804      allow_undefined_flag=unsupported
10805      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10806      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10807      ;;
10808
10809    osf3*)
10810      if test "$GCC" = yes; then
10811        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10812        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10813      else
10814        allow_undefined_flag=' -expect_unresolved \*'
10815        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10816      fi
10817      archive_cmds_need_lc='no'
10818      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10819      hardcode_libdir_separator=:
10820      ;;
10821
10822    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10823      if test "$GCC" = yes; then
10824        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10825        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10826        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10827      else
10828        allow_undefined_flag=' -expect_unresolved \*'
10829        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10830        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10831        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10832
10833        # Both c and cxx compiler support -rpath directly
10834        hardcode_libdir_flag_spec='-rpath $libdir'
10835      fi
10836      archive_cmds_need_lc='no'
10837      hardcode_libdir_separator=:
10838      ;;
10839
10840    solaris*)
10841      no_undefined_flag=' -z defs'
10842      if test "$GCC" = yes; then
10843        wlarc='${wl}'
10844        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10845        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10846          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10847      else
10848        case `$CC -V 2>&1` in
10849        *"Compilers 5.0"*)
10850          wlarc=''
10851          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10852          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10853          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10854          ;;
10855        *)
10856          wlarc='${wl}'
10857          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10858          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10859          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10860          ;;
10861        esac
10862      fi
10863      hardcode_libdir_flag_spec='-R$libdir'
10864      hardcode_shlibpath_var=no
10865      case $host_os in
10866      solaris2.[0-5] | solaris2.[0-5].*) ;;
10867      *)
10868        # The compiler driver will combine and reorder linker options,
10869        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10870        # but is careful enough not to reorder.
10871        # Supported since Solaris 2.6 (maybe 2.5.1?)
10872        if test "$GCC" = yes; then
10873          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10874        else
10875          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10876        fi
10877        ;;
10878      esac
10879      link_all_deplibs=yes
10880      ;;
10881
10882    sunos4*)
10883      if test "x$host_vendor" = xsequent; then
10884        # Use $CC to link under sequent, because it throws in some extra .o
10885        # files that make .init and .fini sections work.
10886        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10887      else
10888        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10889      fi
10890      hardcode_libdir_flag_spec='-L$libdir'
10891      hardcode_direct=yes
10892      hardcode_minus_L=yes
10893      hardcode_shlibpath_var=no
10894      ;;
10895
10896    sysv4)
10897      case $host_vendor in
10898        sni)
10899          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10900          hardcode_direct=yes # is this really true???
10901        ;;
10902        siemens)
10903          ## LD is ld it makes a PLAMLIB
10904          ## CC just makes a GrossModule.
10905          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10906          reload_cmds='$CC -r -o $output$reload_objs'
10907          hardcode_direct=no
10908        ;;
10909        motorola)
10910          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10911          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10912        ;;
10913      esac
10914      runpath_var='LD_RUN_PATH'
10915      hardcode_shlibpath_var=no
10916      ;;
10917
10918    sysv4.3*)
10919      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10920      hardcode_shlibpath_var=no
10921      export_dynamic_flag_spec='-Bexport'
10922      ;;
10923
10924    sysv4*MP*)
10925      if test -d /usr/nec; then
10926        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10927        hardcode_shlibpath_var=no
10928        runpath_var=LD_RUN_PATH
10929        hardcode_runpath_var=yes
10930        ld_shlibs=yes
10931      fi
10932      ;;
10933
10934    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10935      no_undefined_flag='${wl}-z,text'
10936      archive_cmds_need_lc=no
10937      hardcode_shlibpath_var=no
10938      runpath_var='LD_RUN_PATH'
10939
10940      if test "$GCC" = yes; then
10941        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10942        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10943      else
10944        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946      fi
10947      ;;
10948
10949    sysv5* | sco3.2v5* | sco5v6*)
10950      # Note: We can NOT use -z defs as we might desire, because we do not
10951      # link with -lc, and that would cause any symbols used from libc to
10952      # always be unresolved, which means just about no library would
10953      # ever link correctly.  If we're not using GNU ld we use -z text
10954      # though, which does catch some bad symbols but isn't as heavy-handed
10955      # as -z defs.
10956      no_undefined_flag='${wl}-z,text'
10957      allow_undefined_flag='${wl}-z,nodefs'
10958      archive_cmds_need_lc=no
10959      hardcode_shlibpath_var=no
10960      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10961      hardcode_libdir_separator=':'
10962      link_all_deplibs=y