source: trunk/configure @ 377

Last change on this file since 377 was 377, checked in by kulshres, 7 years ago

regenerate files

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

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