source: trunk/configure @ 161

Last change on this file since 161 was 161, checked in by kulshres, 9 years ago

Squashed merge of branch 'master' of 'gitclone' into svn

  • 'master' of 'gitclone': (8 commits) Add missing files to dist Add a rpm spec file add some comments and add else cases to ifs typo fix more improvements in ColPack? checking adjust Makefile.am overall to not explicitly need COLPACK_LIBS refactor colpack searching fix in-tree Colpack location for seperated build

Details of the commits:
ommit f925eb1d39f53bf893280f872407e45b16901cd1
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 23 17:58:41 2010 +0200

Add missing files to dist

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

commit 37d5799660bbb042f02518f22c4034a3541b5b26
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 23 17:57:51 2010 +0200

Add a rpm spec file

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

commit 25a41aac1c58214d3d35b4321d90a5fbfb1d2a5d
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 16 15:09:04 2010 +0200

add some comments and add else cases to ifs

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

commit 1fc5a86ce4340692d0e486b6df2a41af5d138e2b
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 16 14:52:20 2010 +0200

typo fix

it's COLPACK_LIBDIR not COLPACK_DIR

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

commit f8eb90f4962914ccf665617e1a1a7f8d07c066d4
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 16 14:42:15 2010 +0200

more improvements in ColPack? checking

check for the header file too and then test link a C++ program
use readlink to find the real paths for the includedir and libdir
remove the old .tmp from libdir, it may contain junk.
use $AR instead of ar, we may be cross compiling.

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

commit 4db5d1eeb1925f996f244184683c6c649b1262fe
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 18:53:00 2010 +0200

adjust Makefile.am overall to not explicitly need COLPACK_LIBS

in case it is dynamically linked to libadolc.so this information
will be forwarded to the executable automatically too. in the
static linking case libadolc.{so,a} already contain everything

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

commit 2c2a4a433c6716db317b1883e9bd568a267cd7e4
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 16:38:16 2010 +0200

refactor colpack searching

link with ColPack? statically if ColPack? resides inside
the source tree.

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

commit b950c231857d9fcfcd3f70e1253cc11b9e2d6f5c
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 16:02:29 2010 +0200

fix in-tree Colpack location for seperated build

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

File size: 576.1 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.65 for adolc 2.1.9-trunk.
5#
6# Report bugs to <adol-c@list.coin-or.org>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11# Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in #(
64      *"$as_nl"*)
65        expr "X$arg" : "X\\(.*\\)$as_nl";
66        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""        $as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194         /*)
195           for as_base in sh bash ksh sh5; do
196             # Try only shells that exist, to save several forks.
197             as_shell=$as_dir/$as_base
198             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205           done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218        # neutralization value for shells without unset; and this also
219        # works around shells that cannot unset nonexistent variables.
220        BASH_ENV=/dev/null
221        ENV=/dev/null
222        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223        export CONFIG_SHELL
224        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225fi
226
227    if test x$as_have_required = xno; then :
228  $as_echo "$0: This script requires a shell more modern than all"
229  $as_echo "$0: the shells that I found on your system."
230  if test x${ZSH_VERSION+set} = xset ; then
231    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233  else
234    $as_echo "$0: Please tell bug-autoconf@gnu.org and
235$0: adol-c@list.coin-or.org about your system, including
236$0: any error possibly output before this message. Then
237$0: install a modern shell, or manually run the script
238$0: under such a shell if you do have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299         X"$as_dir" : 'X\(//\)[^/]' \| \
300         X"$as_dir" : 'X\(//\)$' \| \
301         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304            s//\1/
305            q
306          }
307          /^X\(\/\/\)[^/].*/{
308            s//\1/
309            q
310          }
311          /^X\(\/\/\)$/{
312            s//\1/
313            q
314          }
315          /^X\(\/\).*/{
316            s//\1/
317            q
318          }
319          s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400         X"$0" : 'X\(//\)$' \| \
401         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404            s//\1/
405            q
406          }
407          /^X\/\(\/\/\)$/{
408            s//\1/
409            q
410          }
411          /^X\/\(\/\).*/{
412            s//\1/
413            q
414          }
415          s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T=' ';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514        test -d "$1/.";
515      else
516        case $1 in #(
517        -*)set "./$1";;
518        esac;
519        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520        ???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617           test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629           test "X$echo_testing_string" = "X$echo_test_string"; then
630          # Cool, printf works
631          :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633             test "X$echo_testing_string" = 'X\t' &&
634             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635             test "X$echo_testing_string" = "X$echo_test_string"; then
636          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637          export CONFIG_SHELL
638          SHELL="$CONFIG_SHELL"
639          export SHELL
640          ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642             test "X$echo_testing_string" = 'X\t' &&
643             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644             test "X$echo_testing_string" = "X$echo_test_string"; then
645          ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647          # maybe with a smaller string...
648          prev=:
649
650          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652            then
653              break
654            fi
655            prev="$cmd"
656          done
657
658          if test "$prev" != 'sed 50q "$0"'; then
659            echo_test_string=`eval $prev`
660            export echo_test_string
661            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662          else
663            # Oops.  We lost completely, so just stick with echo.
664            ECHO=echo
665          fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='adolc'
704PACKAGE_TARNAME='adolc'
705PACKAGE_VERSION='2.1.9-trunk'
706PACKAGE_STRING='adolc 2.1.9-trunk'
707PACKAGE_BUGREPORT='adol-c@list.coin-or.org'
708PACKAGE_URL=''
709
710ac_unique_file="ADOL-C/src/adolc.h"
711ac_default_prefix=${HOME}/adolc_base
712# Factoring default headers for most tests.
713ac_includes_default="\
714#include <stdio.h>
715#ifdef HAVE_SYS_TYPES_H
716# include <sys/types.h>
717#endif
718#ifdef HAVE_SYS_STAT_H
719# include <sys/stat.h>
720#endif
721#ifdef STDC_HEADERS
722# include <stdlib.h>
723# include <stddef.h>
724#else
725# ifdef HAVE_STDLIB_H
726#  include <stdlib.h>
727# endif
728#endif
729#ifdef HAVE_STRING_H
730# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731#  include <memory.h>
732# endif
733# include <string.h>
734#endif
735#ifdef HAVE_STRINGS_H
736# include <strings.h>
737#endif
738#ifdef HAVE_INTTYPES_H
739# include <inttypes.h>
740#endif
741#ifdef HAVE_STDINT_H
742# include <stdint.h>
743#endif
744#ifdef HAVE_UNISTD_H
745# include <unistd.h>
746#endif"
747
748ac_subst_vars='am__EXEEXT_FALSE
749am__EXEEXT_TRUE
750LTLIBOBJS
751Q
752V
753MCS
754OBJC
755F77
756FC
757AM_MAKEFLAGS
758MAKEFLAGS
759shavedir
760ac_adolc_cxxflags
761ac_adolc_cflags
762PAREXA_FALSE
763PAREXA_TRUE
764ADDEXA_FALSE
765ADDEXA_TRUE
766DOCEXA_FALSE
767DOCEXA_TRUE
768COLPACK_LIBS
769COLPACK_CFLAGS
770SPARSE_FALSE
771SPARSE_TRUE
772HAVE_LIBCOLPACK_FALSE
773HAVE_LIBCOLPACK_TRUE
774ADOLC_PATCHLEVEL
775ADOLC_SUBVERSION
776ADOLC_VERSION
777ac_aux_dir
778LIBOBJS
779_lib
780LTCXXCOMPILE
781LTCOMPILE
782DOLT_BASH
783CXXCPP
784OTOOL64
785OTOOL
786LIPO
787NMEDIT
788DSYMUTIL
789lt_ECHO
790RANLIB
791AR
792NM
793ac_ct_DUMPBIN
794DUMPBIN
795LD
796FGREP
797EGREP
798GREP
799SED
800LIBTOOL
801OBJDUMP
802DLLTOOL
803AS
804host_os
805host_vendor
806host_cpu
807host
808build_os
809build_vendor
810build_cpu
811build
812LN_S
813CPP
814am__fastdepCC_FALSE
815am__fastdepCC_TRUE
816CCDEPMODE
817ac_ct_CC
818CFLAGS
819CC
820am__fastdepCXX_FALSE
821am__fastdepCXX_TRUE
822CXXDEPMODE
823AMDEPBACKSLASH
824AMDEP_FALSE
825AMDEP_TRUE
826am__quote
827am__include
828DEPDIR
829OBJEXT
830EXEEXT
831ac_ct_CXX
832CPPFLAGS
833LDFLAGS
834CXXFLAGS
835CXX
836am__untar
837am__tar
838AMTAR
839am__leading_dot
840SET_MAKE
841AWK
842mkdir_p
843MKDIR_P
844INSTALL_STRIP_PROGRAM
845STRIP
846install_sh
847MAKEINFO
848AUTOHEADER
849AUTOMAKE
850AUTOCONF
851ACLOCAL
852VERSION
853PACKAGE
854CYGPATH_W
855am__isrc
856INSTALL_DATA
857INSTALL_SCRIPT
858INSTALL_PROGRAM
859target_alias
860host_alias
861build_alias
862LIBS
863ECHO_T
864ECHO_N
865ECHO_C
866DEFS
867mandir
868localedir
869libdir
870psdir
871pdfdir
872dvidir
873htmldir
874infodir
875docdir
876oldincludedir
877includedir
878localstatedir
879sharedstatedir
880sysconfdir
881datadir
882datarootdir
883libexecdir
884sbindir
885bindir
886program_transform_name
887prefix
888exec_prefix
889PACKAGE_URL
890PACKAGE_BUGREPORT
891PACKAGE_STRING
892PACKAGE_VERSION
893PACKAGE_TARNAME
894PACKAGE_NAME
895PATH_SEPARATOR
896SHELL'
897ac_subst_files=''
898ac_user_opts='
899enable_option_checking
900enable_dependency_tracking
901enable_shared
902enable_static
903with_pic
904enable_fast_install
905with_gnu_ld
906enable_libtool_lock
907enable_debug
908enable_harddebug
909enable_stdczero
910enable_tserrno
911enable_safe_extern
912enable_sparse
913with_colpack
914enable_docexa
915enable_addexa
916enable_parexa
917with_openmp_flag
918with_cflags
919with_cxxflags
920enable_shave
921'
922      ac_precious_vars='build_alias
923host_alias
924target_alias
925CXX
926CXXFLAGS
927LDFLAGS
928LIBS
929CPPFLAGS
930CCC
931CC
932CFLAGS
933CPP
934CXXCPP'
935
936
937# Initialize some variables set by options.
938ac_init_help=
939ac_init_version=false
940ac_unrecognized_opts=
941ac_unrecognized_sep=
942# The variables have the same names as the options, with
943# dashes changed to underlines.
944cache_file=/dev/null
945exec_prefix=NONE
946no_create=
947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
955verbose=
956x_includes=NONE
957x_libraries=NONE
958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
964# (The list follows the same order as the GNU Coding Standards.)
965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
973includedir='${prefix}/include'
974oldincludedir='/usr/include'
975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
984
985ac_prev=
986ac_dashdash=
987for ac_option
988do
989  # If the previous option needs an argument, assign it.
990  if test -n "$ac_prev"; then
991    eval $ac_prev=\$ac_option
992    ac_prev=
993    continue
994  fi
995
996  case $ac_option in
997  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998  *)    ac_optarg=yes ;;
999  esac
1000
1001  # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003  case $ac_dashdash$ac_option in
1004  --)
1005    ac_dashdash=yes ;;
1006
1007  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008    ac_prev=bindir ;;
1009  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010    bindir=$ac_optarg ;;
1011
1012  -build | --build | --buil | --bui | --bu)
1013    ac_prev=build_alias ;;
1014  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015    build_alias=$ac_optarg ;;
1016
1017  -cache-file | --cache-file | --cache-fil | --cache-fi \
1018  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019    ac_prev=cache_file ;;
1020  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022    cache_file=$ac_optarg ;;
1023
1024  --config-cache | -C)
1025    cache_file=config.cache ;;
1026
1027  -datadir | --datadir | --datadi | --datad)
1028    ac_prev=datadir ;;
1029  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030    datadir=$ac_optarg ;;
1031
1032  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033  | --dataroo | --dataro | --datar)
1034    ac_prev=datarootdir ;;
1035  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037    datarootdir=$ac_optarg ;;
1038
1039  -disable-* | --disable-*)
1040    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041    # Reject names that are not valid shell variable names.
1042    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043      as_fn_error "invalid feature name: $ac_useropt"
1044    ac_useropt_orig=$ac_useropt
1045    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046    case $ac_user_opts in
1047      *"
1048"enable_$ac_useropt"
1049"*) ;;
1050      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051         ac_unrecognized_sep=', ';;
1052    esac
1053    eval enable_$ac_useropt=no ;;
1054
1055  -docdir | --docdir | --docdi | --doc | --do)
1056    ac_prev=docdir ;;
1057  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058    docdir=$ac_optarg ;;
1059
1060  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061    ac_prev=dvidir ;;
1062  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063    dvidir=$ac_optarg ;;
1064
1065  -enable-* | --enable-*)
1066    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067    # Reject names that are not valid shell variable names.
1068    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069      as_fn_error "invalid feature name: $ac_useropt"
1070    ac_useropt_orig=$ac_useropt
1071    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072    case $ac_user_opts in
1073      *"
1074"enable_$ac_useropt"
1075"*) ;;
1076      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077         ac_unrecognized_sep=', ';;
1078    esac
1079    eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083  | --exec | --exe | --ex)
1084    ac_prev=exec_prefix ;;
1085  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087  | --exec=* | --exe=* | --ex=*)
1088    exec_prefix=$ac_optarg ;;
1089
1090  -gas | --gas | --ga | --g)
1091    # Obsolete; use --with-gas.
1092    with_gas=yes ;;
1093
1094  -help | --help | --hel | --he | -h)
1095    ac_init_help=long ;;
1096  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097    ac_init_help=recursive ;;
1098  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099    ac_init_help=short ;;
1100
1101  -host | --host | --hos | --ho)
1102    ac_prev=host_alias ;;
1103  -host=* | --host=* | --hos=* | --ho=*)
1104    host_alias=$ac_optarg ;;
1105
1106  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107    ac_prev=htmldir ;;
1108  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109  | --ht=*)
1110    htmldir=$ac_optarg ;;
1111
1112  -includedir | --includedir | --includedi | --included | --include \
1113  | --includ | --inclu | --incl | --inc)
1114    ac_prev=includedir ;;
1115  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116  | --includ=* | --inclu=* | --incl=* | --inc=*)
1117    includedir=$ac_optarg ;;
1118
1119  -infodir | --infodir | --infodi | --infod | --info | --inf)
1120    ac_prev=infodir ;;
1121  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122    infodir=$ac_optarg ;;
1123
1124  -libdir | --libdir | --libdi | --libd)
1125    ac_prev=libdir ;;
1126  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127    libdir=$ac_optarg ;;
1128
1129  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130  | --libexe | --libex | --libe)
1131    ac_prev=libexecdir ;;
1132  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133  | --libexe=* | --libex=* | --libe=*)
1134    libexecdir=$ac_optarg ;;
1135
1136  -localedir | --localedir | --localedi | --localed | --locale)
1137    ac_prev=localedir ;;
1138  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139    localedir=$ac_optarg ;;
1140
1141  -localstatedir | --localstatedir | --localstatedi | --localstated \
1142  | --localstate | --localstat | --localsta | --localst | --locals)
1143    ac_prev=localstatedir ;;
1144  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146    localstatedir=$ac_optarg ;;
1147
1148  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149    ac_prev=mandir ;;
1150  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151    mandir=$ac_optarg ;;
1152
1153  -nfp | --nfp | --nf)
1154    # Obsolete; use --without-fp.
1155    with_fp=no ;;
1156
1157  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158  | --no-cr | --no-c | -n)
1159    no_create=yes ;;
1160
1161  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163    no_recursion=yes ;;
1164
1165  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167  | --oldin | --oldi | --old | --ol | --o)
1168    ac_prev=oldincludedir ;;
1169  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172    oldincludedir=$ac_optarg ;;
1173
1174  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175    ac_prev=prefix ;;
1176  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177    prefix=$ac_optarg ;;
1178
1179  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180  | --program-pre | --program-pr | --program-p)
1181    ac_prev=program_prefix ;;
1182  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184    program_prefix=$ac_optarg ;;
1185
1186  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187  | --program-suf | --program-su | --program-s)
1188    ac_prev=program_suffix ;;
1189  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191    program_suffix=$ac_optarg ;;
1192
1193  -program-transform-name | --program-transform-name \
1194  | --program-transform-nam | --program-transform-na \
1195  | --program-transform-n | --program-transform- \
1196  | --program-transform | --program-transfor \
1197  | --program-transfo | --program-transf \
1198  | --program-trans | --program-tran \
1199  | --progr-tra | --program-tr | --program-t)
1200    ac_prev=program_transform_name ;;
1201  -program-transform-name=* | --program-transform-name=* \
1202  | --program-transform-nam=* | --program-transform-na=* \
1203  | --program-transform-n=* | --program-transform-=* \
1204  | --program-transform=* | --program-transfor=* \
1205  | --program-transfo=* | --program-transf=* \
1206  | --program-trans=* | --program-tran=* \
1207  | --progr-tra=* | --program-tr=* | --program-t=*)
1208    program_transform_name=$ac_optarg ;;
1209
1210  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211    ac_prev=pdfdir ;;
1212  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213    pdfdir=$ac_optarg ;;
1214
1215  -psdir | --psdir | --psdi | --psd | --ps)
1216    ac_prev=psdir ;;
1217  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218    psdir=$ac_optarg ;;
1219
1220  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221  | -silent | --silent | --silen | --sile | --sil)
1222    silent=yes ;;
1223
1224  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225    ac_prev=sbindir ;;
1226  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227  | --sbi=* | --sb=*)
1228    sbindir=$ac_optarg ;;
1229
1230  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232  | --sharedst | --shareds | --shared | --share | --shar \
1233  | --sha | --sh)
1234    ac_prev=sharedstatedir ;;
1235  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238  | --sha=* | --sh=*)
1239    sharedstatedir=$ac_optarg ;;
1240
1241  -site | --site | --sit)
1242    ac_prev=site ;;
1243  -site=* | --site=* | --sit=*)
1244    site=$ac_optarg ;;
1245
1246  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247    ac_prev=srcdir ;;
1248  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249    srcdir=$ac_optarg ;;
1250
1251  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252  | --syscon | --sysco | --sysc | --sys | --sy)
1253    ac_prev=sysconfdir ;;
1254  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256    sysconfdir=$ac_optarg ;;
1257
1258  -target | --target | --targe | --targ | --tar | --ta | --t)
1259    ac_prev=target_alias ;;
1260  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261    target_alias=$ac_optarg ;;
1262
1263  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264    verbose=yes ;;
1265
1266  -version | --version | --versio | --versi | --vers | -V)
1267    ac_init_version=: ;;
1268
1269  -with-* | --with-*)
1270    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271    # Reject names that are not valid shell variable names.
1272    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273      as_fn_error "invalid package name: $ac_useropt"
1274    ac_useropt_orig=$ac_useropt
1275    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276    case $ac_user_opts in
1277      *"
1278"with_$ac_useropt"
1279"*) ;;
1280      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281         ac_unrecognized_sep=', ';;
1282    esac
1283    eval with_$ac_useropt=\$ac_optarg ;;
1284
1285  -without-* | --without-*)
1286    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287    # Reject names that are not valid shell variable names.
1288    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289      as_fn_error "invalid package name: $ac_useropt"
1290    ac_useropt_orig=$ac_useropt
1291    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292    case $ac_user_opts in
1293      *"
1294"with_$ac_useropt"
1295"*) ;;
1296      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297         ac_unrecognized_sep=', ';;
1298    esac
1299    eval with_$ac_useropt=no ;;
1300
1301  --x)
1302    # Obsolete; use --with-x.
1303    with_x=yes ;;
1304
1305  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306  | --x-incl | --x-inc | --x-in | --x-i)
1307    ac_prev=x_includes ;;
1308  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310    x_includes=$ac_optarg ;;
1311
1312  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314    ac_prev=x_libraries ;;
1315  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317    x_libraries=$ac_optarg ;;
1318
1319  -*) as_fn_error "unrecognized option: \`$ac_option'
1320Try \`$0 --help' for more information."
1321    ;;
1322
1323  *=*)
1324    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325    # Reject names that are not valid shell variable names.
1326    case $ac_envvar in #(
1327      '' | [0-9]* | *[!_$as_cr_alnum]* )
1328      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329    esac
1330    eval $ac_envvar=\$ac_optarg
1331    export $ac_envvar ;;
1332
1333  *)
1334    # FIXME: should be removed in autoconf 3.0.
1335    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339    ;;
1340
1341  esac
1342done
1343
1344if test -n "$ac_prev"; then
1345  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346  as_fn_error "missing argument to $ac_option"
1347fi
1348
1349if test -n "$ac_unrecognized_opts"; then
1350  case $enable_option_checking in
1351    no) ;;
1352    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354  esac
1355fi
1356
1357# Check all directory arguments for consistency.
1358for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                datadir sysconfdir sharedstatedir localstatedir includedir \
1360                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                libdir localedir mandir
1362do
1363  eval ac_val=\$$ac_var
1364  # Remove trailing slashes.
1365  case $ac_val in
1366    */ )
1367      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368      eval $ac_var=\$ac_val;;
1369  esac
1370  # Be sure to have absolute directory names.
1371  case $ac_val in
1372    [\\/$]* | ?:[\\/]* )  continue;;
1373    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374  esac
1375  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376done
1377
1378# There might be people who depend on the old broken behavior: `$host'
1379# used to hold the argument of --host etc.
1380# FIXME: To remove some day.
1381build=$build_alias
1382host=$host_alias
1383target=$target_alias
1384
1385# FIXME: To remove some day.
1386if test "x$host_alias" != x; then
1387  if test "x$build_alias" = x; then
1388    cross_compiling=maybe
1389    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390    If a cross compiler is detected then cross compile mode will be used." >&2
1391  elif test "x$build_alias" != "x$host_alias"; then
1392    cross_compiling=yes
1393  fi
1394fi
1395
1396ac_tool_prefix=
1397test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
1399test "$silent" = yes && exec 6>/dev/null
1400
1401
1402ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403ac_ls_di=`ls -di .` &&
1404ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405  as_fn_error "working directory cannot be determined"
1406test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407  as_fn_error "pwd does not report name of working directory"
1408
1409
1410# Find the source files, if location was not specified.
1411if test -z "$srcdir"; then
1412  ac_srcdir_defaulted=yes
1413  # Try the directory containing this script, then the parent directory.
1414  ac_confdir=`$as_dirname -- "$as_myself" ||
1415$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416         X"$as_myself" : 'X\(//\)[^/]' \| \
1417         X"$as_myself" : 'X\(//\)$' \| \
1418         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419$as_echo X"$as_myself" |
1420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421            s//\1/
1422            q
1423          }
1424          /^X\(\/\/\)[^/].*/{
1425            s//\1/
1426            q
1427          }
1428          /^X\(\/\/\)$/{
1429            s//\1/
1430            q
1431          }
1432          /^X\(\/\).*/{
1433            s//\1/
1434            q
1435          }
1436          s/.*/./; q'`
1437  srcdir=$ac_confdir
1438  if test ! -r "$srcdir/$ac_unique_file"; then
1439    srcdir=..
1440  fi
1441else
1442  ac_srcdir_defaulted=no
1443fi
1444if test ! -r "$srcdir/$ac_unique_file"; then
1445  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447fi
1448ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449ac_abs_confdir=`(
1450        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451        pwd)`
1452# When building in place, set srcdir=.
1453if test "$ac_abs_confdir" = "$ac_pwd"; then
1454  srcdir=.
1455fi
1456# Remove unnecessary trailing slashes from srcdir.
1457# Double slashes in file names in object file debugging info
1458# mess up M-x gdb in Emacs.
1459case $srcdir in
1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461esac
1462for ac_var in $ac_precious_vars; do
1463  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464  eval ac_env_${ac_var}_value=\$${ac_var}
1465  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467done
1468
1469#
1470# Report the --help message.
1471#
1472if test "$ac_init_help" = "long"; then
1473  # Omit some internal or obsolete options to make the list less imposing.
1474  # This message is too long to be a string in the A/UX 3.1 sh.
1475  cat <<_ACEOF
1476\`configure' configures adolc 2.1.9-trunk to adapt to many kinds of systems.
1477
1478Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
1483Defaults for the options are specified in brackets.
1484
1485Configuration:
1486  -h, --help              display this help and exit
1487      --help=short        display options specific to this package
1488      --help=recursive    display the short help of all the included packages
1489  -V, --version           display version information and exit
1490  -q, --quiet, --silent   do not print \`checking...' messages
1491      --cache-file=FILE   cache test results in FILE [disabled]
1492  -C, --config-cache      alias for \`--cache-file=config.cache'
1493  -n, --no-create         do not create output files
1494      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
1496Installation directories:
1497  --prefix=PREFIX         install architecture-independent files in PREFIX
1498                          [$ac_default_prefix]
1499  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500                          [PREFIX]
1501
1502By default, \`make install' will install all the files in
1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505for instance \`--prefix=\$HOME'.
1506
1507For better control, use the options below.
1508
1509Fine tuning of the installation directories:
1510  --bindir=DIR            user executables [EPREFIX/bin]
1511  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512  --libexecdir=DIR        program executables [EPREFIX/libexec]
1513  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516  --libdir=DIR            object code libraries [EPREFIX/lib]
1517  --includedir=DIR        C header files [PREFIX/include]
1518  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521  --infodir=DIR           info documentation [DATAROOTDIR/info]
1522  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523  --mandir=DIR            man documentation [DATAROOTDIR/man]
1524  --docdir=DIR            documentation root [DATAROOTDIR/doc/adolc]
1525  --htmldir=DIR           html documentation [DOCDIR]
1526  --dvidir=DIR            dvi documentation [DOCDIR]
1527  --pdfdir=DIR            pdf documentation [DOCDIR]
1528  --psdir=DIR             ps documentation [DOCDIR]
1529_ACEOF
1530
1531  cat <<\_ACEOF
1532
1533Program names:
1534  --program-prefix=PREFIX            prepend PREFIX to installed program names
1535  --program-suffix=SUFFIX            append SUFFIX to installed program names
1536  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
1538System types:
1539  --build=BUILD     configure for building on BUILD [guessed]
1540  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541_ACEOF
1542fi
1543
1544if test -n "$ac_init_help"; then
1545  case $ac_init_help in
1546     short | recursive ) echo "Configuration of adolc 2.1.9-trunk:";;
1547   esac
1548  cat <<\_ACEOF
1549
1550Optional Features:
1551  --disable-option-checking  ignore unrecognized --enable/--with options
1552  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1553  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1554  --disable-dependency-tracking  speeds up one-time build
1555  --enable-dependency-tracking   do not reject slow dependency extractors
1556  --enable-shared[=PKGS]  build shared libraries [default=yes]
1557  --enable-static[=PKGS]  build static libraries [default=yes]
1558  --enable-fast-install[=PKGS]
1559                          optimize for fast installation [default=yes]
1560  --disable-libtool-lock  avoid locking (might break parallel builds)
1561
1562  --enable-debug          enable ADOL-C debug mode [default=no]
1563
1564  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1565
1566  --enable-stdczero       adouble standard constructor zeros value (at the
1567                          cost of performance) [default=no]
1568
1569  --enable-tserrno        use errno as thread number cache [default=no]
1570
1571  --enable-safe-extern    backup all adoubles before calling an external
1572                          function [default=no]
1573
1574  --enable-sparse         build sparse drivers [default=disabled]
1575
1576  --enable-docexa         build documented examples [default=disabled]
1577  --enable-addexa         build additional examples [default=disabled]
1578  --enable-parexa         build parallel example [default=disabled], if
1579                          enabled -with-openmp-flag=FLAG required
1580  --enable-shave          use shave to make the build pretty [[default=yes]]
1581
1582Optional Packages:
1583  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1584  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1585  --with-pic              try to use only PIC/non-PIC objects [default=use
1586                          both]
1587  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1588
1589  --with-colpack          path to the colpack library and headers
1590                          [default=${srcdir}/ThirdParty/ColPack]
1591  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1592                          [default=none]
1593  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O2)
1594  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
1595
1596Some influential environment variables:
1597  CXX         C++ compiler command
1598  CXXFLAGS    C++ compiler flags
1599  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1600              nonstandard directory <lib dir>
1601  LIBS        libraries to pass to the linker, e.g. -l<library>
1602  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603              you have headers in a nonstandard directory <include dir>
1604  CC          C compiler command
1605  CFLAGS      C compiler flags
1606  CPP         C preprocessor
1607  CXXCPP      C++ preprocessor
1608
1609Use these variables to override the choices made by `configure' or to help
1610it to find libraries and programs with nonstandard names/locations.
1611
1612Report bugs to <adol-c@list.coin-or.org>.
1613_ACEOF
1614ac_status=$?
1615fi
1616
1617if test "$ac_init_help" = "recursive"; then
1618  # If there are subdirs, report their specific --help.
1619  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620    test -d "$ac_dir" ||
1621      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622      continue
1623    ac_builddir=.
1624
1625case "$ac_dir" in
1626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627*)
1628  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629  # A ".." for each directory in $ac_dir_suffix.
1630  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631  case $ac_top_builddir_sub in
1632  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634  esac ;;
1635esac
1636ac_abs_top_builddir=$ac_pwd
1637ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638# for backward compatibility:
1639ac_top_builddir=$ac_top_build_prefix
1640
1641case $srcdir in
1642  .)  # We are building in place.
1643    ac_srcdir=.
1644    ac_top_srcdir=$ac_top_builddir_sub
1645    ac_abs_top_srcdir=$ac_pwd ;;
1646  [\\/]* | ?:[\\/]* )  # Absolute name.
1647    ac_srcdir=$srcdir$ac_dir_suffix;
1648    ac_top_srcdir=$srcdir
1649    ac_abs_top_srcdir=$srcdir ;;
1650  *) # Relative name.
1651    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652    ac_top_srcdir=$ac_top_build_prefix$srcdir
1653    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654esac
1655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657    cd "$ac_dir" || { ac_status=$?; continue; }
1658    # Check for guested configure.
1659    if test -f "$ac_srcdir/configure.gnu"; then
1660      echo &&
1661      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662    elif test -f "$ac_srcdir/configure"; then
1663      echo &&
1664      $SHELL "$ac_srcdir/configure" --help=recursive
1665    else
1666      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667    fi || ac_status=$?
1668    cd "$ac_pwd" || { ac_status=$?; break; }
1669  done
1670fi
1671
1672test -n "$ac_init_help" && exit $ac_status
1673if $ac_init_version; then
1674  cat <<\_ACEOF
1675adolc configure 2.1.9-trunk
1676generated by GNU Autoconf 2.65
1677
1678Copyright (C) 2009 Free Software Foundation, Inc.
1679This configure script is free software; the Free Software Foundation
1680gives unlimited permission to copy, distribute and modify it.
1681_ACEOF
1682  exit
1683fi
1684
1685## ------------------------ ##
1686## Autoconf initialization. ##
1687## ------------------------ ##
1688
1689# ac_fn_cxx_try_compile LINENO
1690# ----------------------------
1691# Try to compile conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_cxx_try_compile ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  rm -f conftest.$ac_objext
1696  if { { ac_try="$ac_compile"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_compile") 2>conftest.err
1704  ac_status=$?
1705  if test -s conftest.err; then
1706    grep -v '^ *+' conftest.err >conftest.er1
1707    cat conftest.er1 >&5
1708    mv -f conftest.er1 conftest.err
1709  fi
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && {
1712         test -z "$ac_cxx_werror_flag" ||
1713         test ! -s conftest.err
1714       } && test -s conftest.$ac_objext; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720        ac_retval=1
1721fi
1722  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_cxx_try_compile
1726
1727# ac_fn_c_try_compile LINENO
1728# --------------------------
1729# Try to compile conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_compile ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  rm -f conftest.$ac_objext
1734  if { { ac_try="$ac_compile"
1735case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741  (eval "$ac_compile") 2>conftest.err
1742  ac_status=$?
1743  if test -s conftest.err; then
1744    grep -v '^ *+' conftest.err >conftest.er1
1745    cat conftest.er1 >&5
1746    mv -f conftest.er1 conftest.err
1747  fi
1748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749  test $ac_status = 0; } && {
1750         test -z "$ac_c_werror_flag" ||
1751         test ! -s conftest.err
1752       } && test -s conftest.$ac_objext; then :
1753  ac_retval=0
1754else
1755  $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758        ac_retval=1
1759fi
1760  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761  as_fn_set_status $ac_retval
1762
1763} # ac_fn_c_try_compile
1764
1765# ac_fn_c_try_cpp LINENO
1766# ----------------------
1767# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_cpp ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  if { { ac_try="$ac_cpp conftest.$ac_ext"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779  ac_status=$?
1780  if test -s conftest.err; then
1781    grep -v '^ *+' conftest.err >conftest.er1
1782    cat conftest.er1 >&5
1783    mv -f conftest.er1 conftest.err
1784  fi
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; } >/dev/null && {
1787         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788         test ! -s conftest.err
1789       }; then :
1790  ac_retval=0
1791else
1792  $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795    ac_retval=1
1796fi
1797  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798  as_fn_set_status $ac_retval
1799
1800} # ac_fn_c_try_cpp
1801
1802# ac_fn_c_try_link LINENO
1803# -----------------------
1804# Try to link conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_link ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  rm -f conftest.$ac_objext conftest$ac_exeext
1809  if { { ac_try="$ac_link"
1810case "(($ac_try" in
1811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812  *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816  (eval "$ac_link") 2>conftest.err
1817  ac_status=$?
1818  if test -s conftest.err; then
1819    grep -v '^ *+' conftest.err >conftest.er1
1820    cat conftest.er1 >&5
1821    mv -f conftest.er1 conftest.err
1822  fi
1823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824  test $ac_status = 0; } && {
1825         test -z "$ac_c_werror_flag" ||
1826         test ! -s conftest.err
1827       } && test -s conftest$ac_exeext && {
1828         test "$cross_compiling" = yes ||
1829         $as_test_x conftest$ac_exeext
1830       }; then :
1831  ac_retval=0
1832else
1833  $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836        ac_retval=1
1837fi
1838  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840  # interfere with the next link command; also delete a directory that is
1841  # left behind by Apple's compiler.  We do this before executing the actions.
1842  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844  as_fn_set_status $ac_retval
1845
1846} # ac_fn_c_try_link
1847
1848# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1849# -------------------------------------------------------
1850# Tests whether HEADER exists and can be compiled using the include files in
1851# INCLUDES, setting the cache variable VAR accordingly.
1852ac_fn_c_check_header_compile ()
1853{
1854  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858  $as_echo_n "(cached) " >&6
1859else
1860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861/* end confdefs.h.  */
1862$4
1863#include <$2>
1864_ACEOF
1865if ac_fn_c_try_compile "$LINENO"; then :
1866  eval "$3=yes"
1867else
1868  eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877} # ac_fn_c_check_header_compile
1878
1879# ac_fn_c_try_run LINENO
1880# ----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882# that executables *can* be run.
1883ac_fn_c_try_run ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889  *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893  (eval "$ac_link") 2>&5
1894  ac_status=$?
1895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897  { { case "(($ac_try" in
1898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899  *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903  (eval "$ac_try") 2>&5
1904  ac_status=$?
1905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906  test $ac_status = 0; }; }; then :
1907  ac_retval=0
1908else
1909  $as_echo "$as_me: program exited with status $ac_status" >&5
1910       $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913       ac_retval=$ac_status
1914fi
1915  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917  as_fn_set_status $ac_retval
1918
1919} # ac_fn_c_try_run
1920
1921# ac_fn_c_check_func LINENO FUNC VAR
1922# ----------------------------------
1923# Tests whether FUNC exists, setting the cache variable VAR accordingly
1924ac_fn_c_check_func ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1936#define $2 innocuous_$2
1937
1938/* System header to define __stub macros and hopefully few prototypes,
1939    which can conflict with char $2 (); below.
1940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941    <limits.h> exists even on freestanding compilers.  */
1942
1943#ifdef __STDC__
1944# include <limits.h>
1945#else
1946# include <assert.h>
1947#endif
1948
1949#undef $2
1950
1951/* Override any GCC internal prototype to avoid an error.
1952   Use char because int might match the return type of a GCC
1953   builtin and then its argument prototype would still apply.  */
1954#ifdef __cplusplus
1955extern "C"
1956#endif
1957char $2 ();
1958/* The GNU C library defines this for functions which it implements
1959    to always fail with ENOSYS.  Some functions are actually named
1960    something starting with __ and the normal name is an alias.  */
1961#if defined __stub_$2 || defined __stub___$2
1962choke me
1963#endif
1964
1965int
1966main ()
1967{
1968return $2 ();
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_link "$LINENO"; then :
1974  eval "$3=yes"
1975else
1976  eval "$3=no"
1977fi
1978rm -f core conftest.err conftest.$ac_objext \
1979    conftest$ac_exeext conftest.$ac_ext
1980fi
1981eval ac_res=\$$3
1982               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985
1986} # ac_fn_c_check_func
1987
1988# ac_fn_cxx_try_cpp LINENO
1989# ------------------------
1990# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1991ac_fn_cxx_try_cpp ()
1992{
1993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994  if { { ac_try="$ac_cpp conftest.$ac_ext"
1995case "(($ac_try" in
1996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997  *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2002  ac_status=$?
2003  if test -s conftest.err; then
2004    grep -v '^ *+' conftest.err >conftest.er1
2005    cat conftest.er1 >&5
2006    mv -f conftest.er1 conftest.err
2007  fi
2008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009  test $ac_status = 0; } >/dev/null && {
2010         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2011         test ! -s conftest.err
2012       }; then :
2013  ac_retval=0
2014else
2015  $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018    ac_retval=1
2019fi
2020  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021  as_fn_set_status $ac_retval
2022
2023} # ac_fn_cxx_try_cpp
2024
2025# ac_fn_cxx_try_link LINENO
2026# -------------------------
2027# Try to link conftest.$ac_ext, and return whether this succeeded.
2028ac_fn_cxx_try_link ()
2029{
2030  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031  rm -f conftest.$ac_objext conftest$ac_exeext
2032  if { { ac_try="$ac_link"
2033case "(($ac_try" in
2034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035  *) ac_try_echo=$ac_try;;
2036esac
2037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038$as_echo "$ac_try_echo"; } >&5
2039  (eval "$ac_link") 2>conftest.err
2040  ac_status=$?
2041  if test -s conftest.err; then
2042    grep -v '^ *+' conftest.err >conftest.er1
2043    cat conftest.er1 >&5
2044    mv -f conftest.er1 conftest.err
2045  fi
2046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047  test $ac_status = 0; } && {
2048         test -z "$ac_cxx_werror_flag" ||
2049         test ! -s conftest.err
2050       } && test -s conftest$ac_exeext && {
2051         test "$cross_compiling" = yes ||
2052         $as_test_x conftest$ac_exeext
2053       }; then :
2054  ac_retval=0
2055else
2056  $as_echo "$as_me: failed program was:" >&5
2057sed 's/^/| /' conftest.$ac_ext >&5
2058
2059        ac_retval=1
2060fi
2061  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2062  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2063  # interfere with the next link command; also delete a directory that is
2064  # left behind by Apple's compiler.  We do this before executing the actions.
2065  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067  as_fn_set_status $ac_retval
2068
2069} # ac_fn_cxx_try_link
2070
2071# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072# --------------------------------------------
2073# Tries to find the compile-time value of EXPR in a program that includes
2074# INCLUDES, setting VAR accordingly. Returns whether the value could be
2075# computed
2076ac_fn_c_compute_int ()
2077{
2078  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079  if test "$cross_compiling" = yes; then
2080    # Depending upon the size, compute the lo and hi bounds.
2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083$4
2084int
2085main ()
2086{
2087static int test_array [1 - 2 * !(($2) >= 0)];
2088test_array [0] = 0
2089
2090  ;
2091  return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095  ac_lo=0 ac_mid=0
2096  while :; do
2097    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h.  */
2099$4
2100int
2101main ()
2102{
2103static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104test_array [0] = 0
2105
2106  ;
2107  return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111  ac_hi=$ac_mid; break
2112else
2113  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2114                        if test $ac_lo -le $ac_mid; then
2115                          ac_lo= ac_hi=
2116                          break
2117                        fi
2118                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121  done
2122else
2123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h.  */
2125$4
2126int
2127main ()
2128{
2129static int test_array [1 - 2 * !(($2) < 0)];
2130test_array [0] = 0
2131
2132  ;
2133  return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137  ac_hi=-1 ac_mid=-1
2138  while :; do
2139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$4
2142int
2143main ()
2144{
2145static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2146test_array [0] = 0
2147
2148  ;
2149  return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153  ac_lo=$ac_mid; break
2154else
2155  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2156                        if test $ac_mid -le $ac_hi; then
2157                          ac_lo= ac_hi=
2158                          break
2159                        fi
2160                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163  done
2164else
2165  ac_lo= ac_hi=
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170# Binary search between lo and hi bounds.
2171while test "x$ac_lo" != "x$ac_hi"; do
2172  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h.  */
2175$4
2176int
2177main ()
2178{
2179static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180test_array [0] = 0
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187  ac_hi=$ac_mid
2188else
2189  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192done
2193case $ac_lo in #((
2194?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2195'') ac_retval=1 ;;
2196esac
2197  else
2198    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h.  */
2200$4
2201static long int longval () { return $2; }
2202static unsigned long int ulongval () { return $2; }
2203#include <stdio.h>
2204#include <stdlib.h>
2205int
2206main ()
2207{
2208
2209  FILE *f = fopen ("conftest.val", "w");
2210  if (! f)
2211    return 1;
2212  if (($2) < 0)
2213    {
2214      long int i = longval ();
2215      if (i != ($2))
2216        return 1;
2217      fprintf (f, "%ld", i);
2218    }
2219  else
2220    {
2221      unsigned long int i = ulongval ();
2222      if (i != ($2))
2223        return 1;
2224      fprintf (f, "%lu", i);
2225    }
2226  /* Do not output a trailing newline, as this causes \r\n confusion
2227     on some platforms.  */
2228  return ferror (f) || fclose (f) != 0;
2229
2230  ;
2231  return 0;
2232}
2233_ACEOF
2234if ac_fn_c_try_run "$LINENO"; then :
2235  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2236else
2237  ac_retval=1
2238fi
2239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2240  conftest.$ac_objext conftest.beam conftest.$ac_ext
2241rm -f conftest.val
2242
2243  fi
2244  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2245  as_fn_set_status $ac_retval
2246
2247} # ac_fn_c_compute_int
2248
2249# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250# -------------------------------------------
2251# Tests whether TYPE exists after having included INCLUDES, setting cache
2252# variable VAR accordingly.
2253ac_fn_c_check_type ()
2254{
2255  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257$as_echo_n "checking for $2... " >&6; }
2258if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259  $as_echo_n "(cached) " >&6
2260else
2261  eval "$3=no"
2262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h.  */
2264$4
2265int
2266main ()
2267{
2268if (sizeof ($2))
2269         return 0;
2270  ;
2271  return 0;
2272}
2273_ACEOF
2274if ac_fn_c_try_compile "$LINENO"; then :
2275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h.  */
2277$4
2278int
2279main ()
2280{
2281if (sizeof (($2)))
2282            return 0;
2283  ;
2284  return 0;
2285}
2286_ACEOF
2287if ac_fn_c_try_compile "$LINENO"; then :
2288
2289else
2290  eval "$3=yes"
2291fi
2292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293fi
2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295fi
2296eval ac_res=\$$3
2297               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298$as_echo "$ac_res" >&6; }
2299  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300
2301} # ac_fn_c_check_type
2302
2303# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2304# -------------------------------------------------------
2305# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2306# the include files in INCLUDES and setting the cache variable VAR
2307# accordingly.
2308ac_fn_c_check_header_mongrel ()
2309{
2310  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313$as_echo_n "checking for $2... " >&6; }
2314if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315  $as_echo_n "(cached) " >&6
2316fi
2317eval ac_res=\$$3
2318               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319$as_echo "$ac_res" >&6; }
2320else
2321  # Is the header compilable?
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2323$as_echo_n "checking $2 usability... " >&6; }
2324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325/* end confdefs.h.  */
2326$4
2327#include <$2>
2328_ACEOF
2329if ac_fn_c_try_compile "$LINENO"; then :
2330  ac_header_compiler=yes
2331else
2332  ac_header_compiler=no
2333fi
2334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2336$as_echo "$ac_header_compiler" >&6; }
2337
2338# Is the header present?
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2340$as_echo_n "checking $2 presence... " >&6; }
2341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342/* end confdefs.h.  */
2343#include <$2>
2344_ACEOF
2345if ac_fn_c_try_cpp "$LINENO"; then :
2346  ac_header_preproc=yes
2347else
2348  ac_header_preproc=no
2349fi
2350rm -f conftest.err conftest.$ac_ext
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2352$as_echo "$ac_header_preproc" >&6; }
2353
2354# So?  What about this header?
2355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2356  yes:no: )
2357    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2358$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2359    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2360$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2361    ;;
2362  no:yes:* )
2363    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2364$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2365    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2366$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2367    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2368$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2369    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2370$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2371    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2372$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2373( cat <<\_ASBOX
2374## -------------------------------------- ##
2375## Report this to adol-c@list.coin-or.org ##
2376## -------------------------------------- ##
2377_ASBOX
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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; 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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393
2394} # ac_fn_c_check_header_mongrel
2395
2396# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2397# ---------------------------------------------------------
2398# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2399# the include files in INCLUDES and setting the cache variable VAR
2400# accordingly.
2401ac_fn_cxx_check_header_mongrel ()
2402{
2403  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406$as_echo_n "checking for $2... " >&6; }
2407if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408  $as_echo_n "(cached) " >&6
2409fi
2410eval ac_res=\$$3
2411               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412$as_echo "$ac_res" >&6; }
2413else
2414  # Is the header compilable?
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2416$as_echo_n "checking $2 usability... " >&6; }
2417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418/* end confdefs.h.  */
2419$4
2420#include <$2>
2421_ACEOF
2422if ac_fn_cxx_try_compile "$LINENO"; then :
2423  ac_header_compiler=yes
2424else
2425  ac_header_compiler=no
2426fi
2427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2429$as_echo "$ac_header_compiler" >&6; }
2430
2431# Is the header present?
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2433$as_echo_n "checking $2 presence... " >&6; }
2434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435/* end confdefs.h.  */
2436#include <$2>
2437_ACEOF
2438if ac_fn_cxx_try_cpp "$LINENO"; then :
2439  ac_header_preproc=yes
2440else
2441  ac_header_preproc=no
2442fi
2443rm -f conftest.err conftest.$ac_ext
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2445$as_echo "$ac_header_preproc" >&6; }
2446
2447# So?  What about this header?
2448case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2449  yes:no: )
2450    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2451$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2452    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2453$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2454    ;;
2455  no:yes:* )
2456    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2457$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2458    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2459$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2460    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2461$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2462    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2463$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2464    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2465$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2466( cat <<\_ASBOX
2467## -------------------------------------- ##
2468## Report this to adol-c@list.coin-or.org ##
2469## -------------------------------------- ##
2470_ASBOX
2471     ) | sed "s/^/$as_me: WARNING:     /" >&2
2472    ;;
2473esac
2474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475$as_echo_n "checking for $2... " >&6; }
2476if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2477  $as_echo_n "(cached) " >&6
2478else
2479  eval "$3=\$ac_header_compiler"
2480fi
2481eval ac_res=\$$3
2482               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483$as_echo "$ac_res" >&6; }
2484fi
2485  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2486
2487} # ac_fn_cxx_check_header_mongrel
2488cat >config.log <<_ACEOF
2489This file contains any messages produced by compilers while
2490running configure, to aid debugging if configure makes a mistake.
2491
2492It was created by adolc $as_me 2.1.9-trunk, which was
2493generated by GNU Autoconf 2.65.  Invocation command line was
2494
2495  $ $0 $@
2496
2497_ACEOF
2498exec 5>>config.log
2499{
2500cat <<_ASUNAME
2501## --------- ##
2502## Platform. ##
2503## --------- ##
2504
2505hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2506uname -m = `(uname -m) 2>/dev/null || echo unknown`
2507uname -r = `(uname -r) 2>/dev/null || echo unknown`
2508uname -s = `(uname -s) 2>/dev/null || echo unknown`
2509uname -v = `(uname -v) 2>/dev/null || echo unknown`
2510
2511/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2512/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2513
2514/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2515/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2516/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2517/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2518/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2519/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2520/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2521
2522_ASUNAME
2523
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527  IFS=$as_save_IFS
2528  test -z "$as_dir" && as_dir=.
2529    $as_echo "PATH: $as_dir"
2530  done
2531IFS=$as_save_IFS
2532
2533} >&5
2534
2535cat >&5 <<_ACEOF
2536
2537
2538## ----------- ##
2539## Core tests. ##
2540## ----------- ##
2541
2542_ACEOF
2543
2544
2545# Keep a trace of the command line.
2546# Strip out --no-create and --no-recursion so they do not pile up.
2547# Strip out --silent because we don't want to record it for future runs.
2548# Also quote any args containing shell meta-characters.
2549# Make two passes to allow for proper duplicate-argument suppression.
2550ac_configure_args=
2551ac_configure_args0=
2552ac_configure_args1=
2553ac_must_keep_next=false
2554for ac_pass in 1 2
2555do
2556  for ac_arg
2557  do
2558    case $ac_arg in
2559    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2560    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2561    | -silent | --silent | --silen | --sile | --sil)
2562      continue ;;
2563    *\'*)
2564      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2565    esac
2566    case $ac_pass in
2567    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2568    2)
2569      as_fn_append ac_configure_args1 " '$ac_arg'"
2570      if test $ac_must_keep_next = true; then
2571        ac_must_keep_next=false # Got value, back to normal.
2572      else
2573        case $ac_arg in
2574          *=* | --config-cache | -C | -disable-* | --disable-* \
2575          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2576          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2577          | -with-* | --with-* | -without-* | --without-* | --x)
2578            case "$ac_configure_args0 " in
2579              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2580            esac
2581            ;;
2582          -* ) ac_must_keep_next=true ;;
2583        esac
2584      fi
2585      as_fn_append ac_configure_args " '$ac_arg'"
2586      ;;
2587    esac
2588  done
2589done
2590{ ac_configure_args0=; unset ac_configure_args0;}
2591{ ac_configure_args1=; unset ac_configure_args1;}
2592
2593# When interrupted or exit'd, cleanup temporary files, and complete
2594# config.log.  We remove comments because anyway the quotes in there
2595# would cause problems or look ugly.
2596# WARNING: Use '\'' to represent an apostrophe within the trap.
2597# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2598trap 'exit_status=$?
2599  # Save into config.log some information that might help in debugging.
2600  {
2601    echo
2602
2603    cat <<\_ASBOX
2604## ---------------- ##
2605## Cache variables. ##
2606## ---------------- ##
2607_ASBOX
2608    echo
2609    # The following way of writing the cache mishandles newlines in values,
2610(
2611  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2612    eval ac_val=\$$ac_var
2613    case $ac_val in #(
2614    *${as_nl}*)
2615      case $ac_var in #(
2616      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2617$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2618      esac
2619      case $ac_var in #(
2620      _ | IFS | as_nl) ;; #(
2621      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2622      *) { eval $ac_var=; unset $ac_var;} ;;
2623      esac ;;
2624    esac
2625  done
2626  (set) 2>&1 |
2627    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2628    *${as_nl}ac_space=\ *)
2629      sed -n \
2630        "s/'\''/'\''\\\\'\'''\''/g;
2631          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2632      ;; #(
2633    *)
2634      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2635      ;;
2636    esac |
2637    sort
2638)
2639    echo
2640
2641    cat <<\_ASBOX
2642## ----------------- ##
2643## Output variables. ##
2644## ----------------- ##
2645_ASBOX
2646    echo
2647    for ac_var in $ac_subst_vars
2648    do
2649      eval ac_val=\$$ac_var
2650      case $ac_val in
2651      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2652      esac
2653      $as_echo "$ac_var='\''$ac_val'\''"
2654    done | sort
2655    echo
2656
2657    if test -n "$ac_subst_files"; then
2658      cat <<\_ASBOX
2659## ------------------- ##
2660## File substitutions. ##
2661## ------------------- ##
2662_ASBOX
2663      echo
2664      for ac_var in $ac_subst_files
2665      do
2666        eval ac_val=\$$ac_var
2667        case $ac_val in
2668        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2669        esac
2670        $as_echo "$ac_var='\''$ac_val'\''"
2671      done | sort
2672      echo
2673    fi
2674
2675    if test -s confdefs.h; then
2676      cat <<\_ASBOX
2677## ----------- ##
2678## confdefs.h. ##
2679## ----------- ##
2680_ASBOX
2681      echo
2682      cat confdefs.h
2683      echo
2684    fi
2685    test "$ac_signal" != 0 &&
2686      $as_echo "$as_me: caught signal $ac_signal"
2687    $as_echo "$as_me: exit $exit_status"
2688  } >&5
2689  rm -f core *.core core.conftest.* &&
2690    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2691    exit $exit_status
2692' 0
2693for ac_signal in 1 2 13 15; do
2694  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2695done
2696ac_signal=0
2697
2698# confdefs.h avoids OS command line length limits that DEFS can exceed.
2699rm -f -r conftest* confdefs.h
2700
2701$as_echo "/* confdefs.h */" > confdefs.h
2702
2703# Predefined preprocessor variables.
2704
2705cat >>confdefs.h <<_ACEOF
2706#define PACKAGE_NAME "$PACKAGE_NAME"
2707_ACEOF
2708
2709cat >>confdefs.h <<_ACEOF
2710#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2711_ACEOF
2712
2713cat >>confdefs.h <<_ACEOF
2714#define PACKAGE_VERSION "$PACKAGE_VERSION"
2715_ACEOF
2716
2717cat >>confdefs.h <<_ACEOF
2718#define PACKAGE_STRING "$PACKAGE_STRING"
2719_ACEOF
2720
2721cat >>confdefs.h <<_ACEOF
2722#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2723_ACEOF
2724
2725cat >>confdefs.h <<_ACEOF
2726#define PACKAGE_URL "$PACKAGE_URL"
2727_ACEOF
2728
2729
2730# Let the site file select an alternate cache file if it wants to.
2731# Prefer an explicitly selected file to automatically selected ones.
2732ac_site_file1=NONE
2733ac_site_file2=NONE
2734if test -n "$CONFIG_SITE"; then
2735  ac_site_file1=$CONFIG_SITE
2736elif test "x$prefix" != xNONE; then
2737  ac_site_file1=$prefix/share/config.site
2738  ac_site_file2=$prefix/etc/config.site
2739else
2740  ac_site_file1=$ac_default_prefix/share/config.site
2741  ac_site_file2=$ac_default_prefix/etc/config.site
2742fi
2743for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2744do
2745  test "x$ac_site_file" = xNONE && continue
2746  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2747    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2748$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2749    sed 's/^/| /' "$ac_site_file" >&5
2750    . "$ac_site_file"
2751  fi
2752done
2753
2754if test -r "$cache_file"; then
2755  # Some versions of bash will fail to source /dev/null (special files
2756  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2757  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2758    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2759$as_echo "$as_me: loading cache $cache_file" >&6;}
2760    case $cache_file in
2761      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2762      *)                      . "./$cache_file";;
2763    esac
2764  fi
2765else
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2767$as_echo "$as_me: creating cache $cache_file" >&6;}
2768  >$cache_file
2769fi
2770
2771# Check that the precious variables saved in the cache have kept the same
2772# value.
2773ac_cache_corrupted=false
2774for ac_var in $ac_precious_vars; do
2775  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2776  eval ac_new_set=\$ac_env_${ac_var}_set
2777  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2778  eval ac_new_val=\$ac_env_${ac_var}_value
2779  case $ac_old_set,$ac_new_set in
2780    set,)
2781      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2782$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2783      ac_cache_corrupted=: ;;
2784    ,set)
2785      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2786$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2787      ac_cache_corrupted=: ;;
2788    ,);;
2789    *)
2790      if test "x$ac_old_val" != "x$ac_new_val"; then
2791        # differences in whitespace do not lead to failure.
2792        ac_old_val_w=`echo x $ac_old_val`
2793        ac_new_val_w=`echo x $ac_new_val`
2794        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2795          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2796$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2797          ac_cache_corrupted=:
2798        else
2799          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2800$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2801          eval $ac_var=\$ac_old_val
2802        fi
2803        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2804$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2805        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2806$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2807      fi;;
2808  esac
2809  # Pass precious variables to config.status.
2810  if test "$ac_new_set" = set; then
2811    case $ac_new_val in
2812    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2813    *) ac_arg=$ac_var=$ac_new_val ;;
2814    esac
2815    case " $ac_configure_args " in
2816      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2817      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2818    esac
2819  fi
2820done
2821if $ac_cache_corrupted; then
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2825$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2826  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2827fi
2828## -------------------- ##
2829## Main body of script. ##
2830## -------------------- ##
2831
2832ac_ext=c
2833ac_cpp='$CPP $CPPFLAGS'
2834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837
2838
2839
2840
2841ac_aux_dir=
2842for ac_dir in autoconf "$srcdir"/autoconf; do
2843  for ac_t in install-sh install.sh shtool; do
2844    if test -f "$ac_dir/$ac_t"; then
2845      ac_aux_dir=$ac_dir
2846      ac_install_sh="$ac_aux_dir/$ac_t -c"
2847      break 2
2848    fi
2849  done
2850done
2851if test -z "$ac_aux_dir"; then
2852  as_fn_error "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2853fi
2854
2855# These three variables are undocumented and unsupported,
2856# and are intended to be withdrawn in a future Autoconf release.
2857# They can cause serious problems if a builder's source tree is in a directory
2858# whose full name contains unusual characters.
2859ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2860ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2861ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2862
2863
2864ac_config_headers="$ac_config_headers ADOL-C/src/config.h"
2865
2866
2867am__api_version='1.11'
2868
2869# Find a good install program.  We prefer a C program (faster),
2870# so one script is as good as another.  But avoid the broken or
2871# incompatible versions:
2872# SysV /etc/install, /usr/sbin/install
2873# SunOS /usr/etc/install
2874# IRIX /sbin/install
2875# AIX /bin/install
2876# AmigaOS /C/install, which installs bootblocks on floppy discs
2877# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2878# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2879# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2880# OS/2's system install, which has a completely different semantic
2881# ./install, which can be erroneously created by make from ./install.sh.
2882# Reject install programs that cannot install multiple files.
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2884$as_echo_n "checking for a BSD-compatible install... " >&6; }
2885if test -z "$INSTALL"; then
2886if test "${ac_cv_path_install+set}" = set; then :
2887  $as_echo_n "(cached) " >&6
2888else
2889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894    # Account for people who put trailing slashes in PATH elements.
2895case $as_dir/ in #((
2896  ./ | .// | /[cC]/* | \
2897  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2898  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2899  /usr/ucb/* ) ;;
2900  *)
2901    # OSF1 and SCO ODT 3.0 have their own names for install.
2902    # Don't use installbsd from OSF since it installs stuff as root
2903    # by default.
2904    for ac_prog in ginstall scoinst install; do
2905      for ac_exec_ext in '' $ac_executable_extensions; do
2906        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2907          if test $ac_prog = install &&
2908            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2909            # AIX install.  It has an incompatible calling convention.
2910            :
2911          elif test $ac_prog = install &&
2912            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2913            # program-specific install script used by HP pwplus--don't use.
2914            :
2915          else
2916            rm -rf conftest.one conftest.two conftest.dir
2917            echo one > conftest.one
2918            echo two > conftest.two
2919            mkdir conftest.dir
2920            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2921              test -s conftest.one && test -s conftest.two &&
2922              test -s conftest.dir/conftest.one &&
2923              test -s conftest.dir/conftest.two
2924            then
2925              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2926              break 3
2927            fi
2928          fi
2929        fi
2930      done
2931    done
2932    ;;
2933esac
2934
2935  done
2936IFS=$as_save_IFS
2937
2938rm -rf conftest.one conftest.two conftest.dir
2939
2940fi
2941  if test "${ac_cv_path_install+set}" = set; then
2942    INSTALL=$ac_cv_path_install
2943  else
2944    # As a last resort, use the slow shell script.  Don't cache a
2945    # value for INSTALL within a source directory, because that will
2946    # break other packages using the cache if that directory is
2947    # removed, or if the value is a relative name.
2948    INSTALL=$ac_install_sh
2949  fi
2950fi
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2952$as_echo "$INSTALL" >&6; }
2953
2954# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2955# It thinks the first close brace ends the variable substitution.
2956test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2957
2958test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2959
2960test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2961
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2963$as_echo_n "checking whether build environment is sane... " >&6; }
2964# Just in case
2965sleep 1
2966echo timestamp > conftest.file
2967# Reject unsafe characters in $srcdir or the absolute working directory
2968# name.  Accept space and tab only in the latter.
2969am_lf='
2970'
2971case `pwd` in
2972  *[\\\"\#\$\&\'\`$am_lf]*)
2973    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2974esac
2975case $srcdir in
2976  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2977    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2978esac
2979
2980# Do `set' in a subshell so we don't clobber the current shell's
2981# arguments.  Must try -L first in case configure is actually a
2982# symlink; some systems play weird games with the mod time of symlinks
2983# (eg FreeBSD returns the mod time of the symlink's containing
2984# directory).
2985if (
2986   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2987   if test "$*" = "X"; then
2988      # -L didn't work.
2989      set X `ls -t "$srcdir/configure" conftest.file`
2990   fi
2991   rm -f conftest.file
2992   if test "$*" != "X $srcdir/configure conftest.file" \
2993      && test "$*" != "X conftest.file $srcdir/configure"; then
2994
2995      # If neither matched, then we have a broken ls.  This can happen
2996      # if, for instance, CONFIG_SHELL is bash and it inherits a
2997      # broken ls alias from the environment.  This has actually
2998      # happened.  Such a system could not be considered "sane".
2999      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3000alias in your environment" "$LINENO" 5
3001   fi
3002
3003   test "$2" = conftest.file
3004   )
3005then
3006   # Ok.
3007   :
3008else
3009   as_fn_error "newly created file is older than distributed files!
3010Check your system clock" "$LINENO" 5
3011fi
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013$as_echo "yes" >&6; }
3014test "$program_prefix" != NONE &&
3015  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3016# Use a double $ so make ignores it.
3017test "$program_suffix" != NONE &&
3018  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3019# Double any \ or $.
3020# By default was `s,x,x', remove it if useless.
3021ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3022program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3023
3024# expand $ac_aux_dir to an absolute path
3025am_aux_dir=`cd $ac_aux_dir && pwd`
3026
3027if test x"${MISSING+set}" != xset; then
3028  case $am_aux_dir in
3029  *\ * | *\     *)
3030    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3031  *)
3032    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3033  esac
3034fi
3035# Use eval to expand $SHELL
3036if eval "$MISSING --run true"; then
3037  am_missing_run="$MISSING --run "
3038else
3039  am_missing_run=
3040  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3041$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3042fi
3043
3044if test x"${install_sh}" != xset; then
3045  case $am_aux_dir in
3046  *\ * | *\     *)
3047    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3048  *)
3049    install_sh="\${SHELL} $am_aux_dir/install-sh"
3050  esac
3051fi
3052
3053# Installed binaries are usually stripped using `strip' when the user
3054# run `make install-strip'.  However `strip' might not be the right
3055# tool to use in cross-compilation environments, therefore Automake
3056# will honor the `STRIP' environment variable to overrule this program.
3057if test "$cross_compiling" != no; then
3058  if test -n "$ac_tool_prefix"; then
3059  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3060set dummy ${ac_tool_prefix}strip; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if test "${ac_cv_prog_STRIP+set}" = set; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  if test -n "$STRIP"; then
3067  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072  IFS=$as_save_IFS
3073  test -z "$as_dir" && as_dir=.
3074    for ac_exec_ext in '' $ac_executable_extensions; do
3075  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078    break 2
3079  fi
3080done
3081  done
3082IFS=$as_save_IFS
3083
3084fi
3085fi
3086STRIP=$ac_cv_prog_STRIP
3087if test -n "$STRIP"; then
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3089$as_echo "$STRIP" >&6; }
3090else
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095
3096fi
3097if test -z "$ac_cv_prog_STRIP"; then
3098  ac_ct_STRIP=$STRIP
3099  # Extract the first word of "strip", so it can be a program name with args.
3100set dummy strip; ac_word=$2
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102$as_echo_n "checking for $ac_word... " >&6; }
3103if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  if test -n "$ac_ct_STRIP"; then
3107  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112  IFS=$as_save_IFS
3113  test -z "$as_dir" && as_dir=.
3114    for ac_exec_ext in '' $ac_executable_extensions; do
3115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116    ac_cv_prog_ac_ct_STRIP="strip"
3117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118    break 2
3119  fi
3120done
3121  done
3122IFS=$as_save_IFS
3123
3124fi
3125fi
3126ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3127if test -n "$ac_ct_STRIP"; then
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3129$as_echo "$ac_ct_STRIP" >&6; }
3130else
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132$as_echo "no" >&6; }
3133fi
3134
3135  if test "x$ac_ct_STRIP" = x; then
3136    STRIP=":"
3137  else
3138    case $cross_compiling:$ac_tool_warned in
3139yes:)
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142ac_tool_warned=yes ;;
3143esac
3144    STRIP=$ac_ct_STRIP
3145  fi
3146else
3147  STRIP="$ac_cv_prog_STRIP"
3148fi
3149
3150fi
3151INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3152
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3154$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3155if test -z "$MKDIR_P"; then
3156  if test "${ac_cv_path_mkdir+set}" = set; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3161do
3162  IFS=$as_save_IFS
3163  test -z "$as_dir" && as_dir=.
3164    for ac_prog in mkdir gmkdir; do
3165         for ac_exec_ext in '' $ac_executable_extensions; do
3166           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3167           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3168             'mkdir (GNU coreutils) '* | \
3169             'mkdir (coreutils) '* | \
3170             'mkdir (fileutils) '4.1*)
3171               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3172               break 3;;
3173           esac
3174         done
3175       done
3176  done
3177IFS=$as_save_IFS
3178
3179fi
3180
3181  test -d ./--version && rmdir ./--version
3182  if test "${ac_cv_path_mkdir+set}" = set; then
3183    MKDIR_P="$ac_cv_path_mkdir -p"
3184  else
3185    # As a last resort, use the slow shell script.  Don't cache a
3186    # value for MKDIR_P within a source directory, because that will
3187    # break other packages using the cache if that directory is
3188    # removed, or if the value is a relative name.
3189    MKDIR_P="$ac_install_sh -d"
3190  fi
3191fi
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3193$as_echo "$MKDIR_P" >&6; }
3194
3195mkdir_p="$MKDIR_P"
3196case $mkdir_p in
3197  [\\/$]* | ?:[\\/]*) ;;
3198  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3199esac
3200
3201for ac_prog in gawk mawk nawk awk
3202do
3203  # Extract the first word of "$ac_prog", so it can be a program name with args.
3204set dummy $ac_prog; ac_word=$2
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206$as_echo_n "checking for $ac_word... " >&6; }
3207if test "${ac_cv_prog_AWK+set}" = set; then :
3208  $as_echo_n "(cached) " >&6
3209else
3210  if test -n "$AWK"; then
3211  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3212else
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH
3215do
3216  IFS=$as_save_IFS
3217  test -z "$as_dir" && as_dir=.
3218    for ac_exec_ext in '' $ac_executable_extensions; do
3219  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220    ac_cv_prog_AWK="$ac_prog"
3221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222    break 2
3223  fi
3224done
3225  done
3226IFS=$as_save_IFS
3227
3228fi
3229fi
3230AWK=$ac_cv_prog_AWK
3231if test -n "$AWK"; then
3232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3233$as_echo "$AWK" >&6; }
3234else
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237fi
3238
3239
3240  test -n "$AWK" && break
3241done
3242
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3244$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3245set x ${MAKE-make}
3246ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3247if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3248  $as_echo_n "(cached) " >&6
3249else
3250  cat >conftest.make <<\_ACEOF
3251SHELL = /bin/sh
3252all:
3253        @echo '@@@%%%=$(MAKE)=@@@%%%'
3254_ACEOF
3255# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3256case `${MAKE-make} -f conftest.make 2>/dev/null` in
3257  *@@@%%%=?*=@@@%%%*)
3258    eval ac_cv_prog_make_${ac_make}_set=yes;;
3259  *)
3260    eval ac_cv_prog_make_${ac_make}_set=no;;
3261esac
3262rm -f conftest.make
3263fi
3264if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266$as_echo "yes" >&6; }
3267  SET_MAKE=
3268else
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270$as_echo "no" >&6; }
3271  SET_MAKE="MAKE=${MAKE-make}"
3272fi
3273
3274rm -rf .tst 2>/dev/null
3275mkdir .tst 2>/dev/null
3276if test -d .tst; then
3277  am__leading_dot=.
3278else
3279  am__leading_dot=_
3280fi
3281rmdir .tst 2>/dev/null
3282
3283if test "`cd $srcdir && pwd`" != "`pwd`"; then
3284  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3285  # is not polluted with repeated "-I."
3286  am__isrc=' -I$(srcdir)'
3287  # test to see if srcdir already configured
3288  if test -f $srcdir/config.status; then
3289    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3290  fi
3291fi
3292
3293# test whether we have cygpath
3294if test -z "$CYGPATH_W"; then
3295  if (cygpath --version) >/dev/null 2>/dev/null; then
3296    CYGPATH_W='cygpath -w'
3297  else
3298    CYGPATH_W=echo
3299  fi
3300fi
3301
3302
3303# Define the identity of the package.
3304 PACKAGE='adolc'
3305 VERSION='2.1.9-trunk'
3306
3307
3308cat >>confdefs.h <<_ACEOF
3309#define PACKAGE "$PACKAGE"
3310_ACEOF
3311
3312
3313cat >>confdefs.h <<_ACEOF
3314#define VERSION "$VERSION"
3315_ACEOF
3316
3317# Some tools Automake needs.
3318
3319ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3320
3321
3322AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3323
3324
3325AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3326
3327
3328AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3329
3330
3331MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3332
3333# We need awk for the "check" target.  The system "awk" is bad on
3334# some platforms.
3335# Always define AMTAR for backward compatibility.
3336
3337AMTAR=${AMTAR-"${am_missing_run}tar"}
3338
3339am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3340
3341
3342
3343
3344
3345
3346if test "x$CFLAGS" == x ; then
3347    ac_shell_cflags="not_set"
3348else
3349    ac_shell_cflags="$CFLAGS"
3350fi
3351if test "x$CXXFLAGS" == x ; then
3352    ac_shell_cxxflags="not_set"
3353else
3354    ac_shell_cxxflags="$CXXFLAGS"
3355fi
3356
3357# checks for programs
3358ac_ext=cpp
3359ac_cpp='$CXXCPP $CPPFLAGS'
3360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3363if test -z "$CXX"; then
3364  if test -n "$CCC"; then
3365    CXX=$CCC
3366  else
3367    if test -n "$ac_tool_prefix"; then
3368  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3369  do
3370    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3371set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
3374if test "${ac_cv_prog_CXX+set}" = set; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  if test -n "$CXX"; then
3378  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385    for ac_exec_ext in '' $ac_executable_extensions; do
3386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392  done
3393IFS=$as_save_IFS
3394
3395fi
3396fi
3397CXX=$ac_cv_prog_CXX
3398if test -n "$CXX"; then
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3400$as_echo "$CXX" >&6; }
3401else
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404fi
3405
3406
3407    test -n "$CXX" && break
3408  done
3409fi
3410if test -z "$CXX"; then
3411  ac_ct_CXX=$CXX
3412  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3413do
3414  # Extract the first word of "$ac_prog", so it can be a program name with args.
3415set dummy $ac_prog; ac_word=$2
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417$as_echo_n "checking for $ac_word... " >&6; }
3418if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3419  $as_echo_n "(cached) " >&6
3420else
3421  if test -n "$ac_ct_CXX"; then
3422  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3423else
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427  IFS=$as_save_IFS
3428  test -z "$as_dir" && as_dir=.
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431    ac_cv_prog_ac_ct_CXX="$ac_prog"
3432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433    break 2
3434  fi
3435done
3436  done
3437IFS=$as_save_IFS
3438
3439fi
3440fi
3441ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3442if test -n "$ac_ct_CXX"; then
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3444$as_echo "$ac_ct_CXX" >&6; }
3445else
3446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447$as_echo "no" >&6; }
3448fi
3449
3450
3451  test -n "$ac_ct_CXX" && break
3452done
3453
3454  if test "x$ac_ct_CXX" = x; then
3455    CXX="g++"
3456  else
3457    case $cross_compiling:$ac_tool_warned in
3458yes:)
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461ac_tool_warned=yes ;;
3462esac
3463    CXX=$ac_ct_CXX
3464  fi
3465fi
3466
3467  fi
3468fi
3469# Provide some information about the compiler.
3470$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3471set X $ac_compile
3472ac_compiler=$2
3473for ac_option in --version -v -V -qversion; do
3474  { { ac_try="$ac_compiler $ac_option >&5"
3475case "(($ac_try" in
3476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477  *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480$as_echo "$ac_try_echo"; } >&5
3481  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3482  ac_status=$?
3483  if test -s conftest.err; then
3484    sed '10a\
3485... rest of stderr output deleted ...
3486         10q' conftest.err >conftest.er1
3487    cat conftest.er1 >&5
3488  fi
3489  rm -f conftest.er1 conftest.err
3490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491  test $ac_status = 0; }
3492done
3493
3494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h.  */
3496
3497int
3498main ()
3499{
3500
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505ac_clean_files_save=$ac_clean_files
3506ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3507# Try to create an executable without -o first, disregard a.out.
3508# It will help us diagnose broken compilers, and finding out an intuition
3509# of exeext.
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3511$as_echo_n "checking whether the C++ compiler works... " >&6; }
3512ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3513
3514# The possible output files:
3515ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516
3517ac_rmfiles=
3518for ac_file in $ac_files
3519do
3520  case $ac_file in
3521    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3523  esac
3524done
3525rm -f $ac_rmfiles
3526
3527if { { ac_try="$ac_link_default"
3528case "(($ac_try" in
3529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530  *) ac_try_echo=$ac_try;;
3531esac
3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533$as_echo "$ac_try_echo"; } >&5
3534  (eval "$ac_link_default") 2>&5
3535  ac_status=$?
3536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537  test $ac_status = 0; }; then :
3538  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3539# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3540# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3541# so that the user can short-circuit this test for compilers unknown to
3542# Autoconf.
3543for ac_file in $ac_files ''
3544do
3545  test -f "$ac_file" || continue
3546  case $ac_file in
3547    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548        ;;
3549    [ab].out )
3550        # We found the default executable, but exeext='' is most
3551        # certainly right.
3552        break;;
3553    *.* )
3554        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3555        then :; else
3556           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557        fi
3558        # We set ac_cv_exeext here because the later test for it is not
3559        # safe: cross compilers may not add the suffix if given an `-o'
3560        # argument, so we may need to know it at that point already.
3561        # Even if this section looks crufty: it has the advantage of
3562        # actually working.
3563        break;;
3564    * )
3565        break;;
3566  esac
3567done
3568test "$ac_cv_exeext" = no && ac_cv_exeext=
3569
3570else
3571  ac_file=''
3572fi
3573if test -z "$ac_file"; then :
3574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575$as_echo "no" >&6; }
3576$as_echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581{ as_fn_set_status 77
3582as_fn_error "C++ compiler cannot create executables
3583See \`config.log' for more details." "$LINENO" 5; }; }
3584else
3585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3586$as_echo "yes" >&6; }
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3589$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3591$as_echo "$ac_file" >&6; }
3592ac_exeext=$ac_cv_exeext
3593
3594rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3595ac_clean_files=$ac_clean_files_save
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3597$as_echo_n "checking for suffix of executables... " >&6; }
3598if { { ac_try="$ac_link"
3599case "(($ac_try" in
3600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601  *) ac_try_echo=$ac_try;;
3602esac
3603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604$as_echo "$ac_try_echo"; } >&5
3605  (eval "$ac_link") 2>&5
3606  ac_status=$?
3607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608  test $ac_status = 0; }; then :
3609  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3610# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3611# work properly (i.e., refer to `conftest.exe'), while it won't with
3612# `rm'.
3613for ac_file in conftest.exe conftest conftest.*; do
3614  test -f "$ac_file" || continue
3615  case $ac_file in
3616    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3617    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618          break;;
3619    * ) break;;
3620  esac
3621done
3622else
3623  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625as_fn_error "cannot compute suffix of executables: cannot compile and link
3626See \`config.log' for more details." "$LINENO" 5; }
3627fi
3628rm -f conftest conftest$ac_cv_exeext
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3630$as_echo "$ac_cv_exeext" >&6; }
3631
3632rm -f conftest.$ac_ext
3633EXEEXT=$ac_cv_exeext
3634ac_exeext=$EXEEXT
3635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637#include <stdio.h>
3638int
3639main ()
3640{
3641FILE *f = fopen ("conftest.out", "w");
3642 return ferror (f) || fclose (f) != 0;
3643
3644  ;
3645  return 0;
3646}
3647_ACEOF
3648ac_clean_files="$ac_clean_files conftest.out"
3649# Check that the compiler produces executables we can run.  If not, either
3650# the compiler is broken, or we cross compile.
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3652$as_echo_n "checking whether we are cross compiling... " >&6; }
3653if test "$cross_compiling" != yes; then
3654  { { ac_try="$ac_link"
3655case "(($ac_try" in
3656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657  *) ac_try_echo=$ac_try;;
3658esac
3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660$as_echo "$ac_try_echo"; } >&5
3661  (eval "$ac_link") 2>&5
3662  ac_status=$?
3663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664  test $ac_status = 0; }
3665  if { ac_try='./conftest$ac_cv_exeext'
3666  { { case "(($ac_try" in
3667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668  *) ac_try_echo=$ac_try;;
3669esac
3670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671$as_echo "$ac_try_echo"; } >&5
3672  (eval "$ac_try") 2>&5
3673  ac_status=$?
3674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675  test $ac_status = 0; }; }; then
3676    cross_compiling=no
3677  else
3678    if test "$cross_compiling" = maybe; then
3679        cross_compiling=yes
3680    else
3681        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683as_fn_error "cannot run C++ compiled programs.
3684If you meant to cross compile, use \`--host'.
3685See \`config.log' for more details." "$LINENO" 5; }
3686    fi
3687  fi
3688fi
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3690$as_echo "$cross_compiling" >&6; }
3691
3692rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3693ac_clean_files=$ac_clean_files_save
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3695$as_echo_n "checking for suffix of object files... " >&6; }
3696if test "${ac_cv_objext+set}" = set; then :
3697  $as_echo_n "(cached) " >&6
3698else
3699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h.  */
3701
3702int
3703main ()
3704{
3705
3706  ;
3707  return 0;
3708}
3709_ACEOF
3710rm -f conftest.o conftest.obj
3711if { { ac_try="$ac_compile"
3712case "(($ac_try" in
3713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714  *) ac_try_echo=$ac_try;;
3715esac
3716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717$as_echo "$ac_try_echo"; } >&5
3718  (eval "$ac_compile") 2>&5
3719  ac_status=$?
3720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721  test $ac_status = 0; }; then :
3722  for ac_file in conftest.o conftest.obj conftest.*; do
3723  test -f "$ac_file" || continue;
3724  case $ac_file in
3725    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3726    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3727       break;;
3728  esac
3729done
3730else
3731  $as_echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736as_fn_error "cannot compute suffix of object files: cannot compile
3737See \`config.log' for more details." "$LINENO" 5; }
3738fi
3739rm -f conftest.$ac_cv_objext conftest.$ac_ext
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3742$as_echo "$ac_cv_objext" >&6; }
3743OBJEXT=$ac_cv_objext
3744ac_objext=$OBJEXT
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3746$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3747if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3748  $as_echo_n "(cached) " >&6
3749else
3750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h.  */
3752
3753int
3754main ()
3755{
3756#ifndef __GNUC__
3757       choke me
3758#endif
3759
3760  ;
3761  return 0;
3762}
3763_ACEOF
3764if ac_fn_cxx_try_compile "$LINENO"; then :
3765  ac_compiler_gnu=yes
3766else
3767  ac_compiler_gnu=no
3768fi
3769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3771
3772fi
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3774$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3775if test $ac_compiler_gnu = yes; then
3776  GXX=yes
3777else
3778  GXX=
3779fi
3780ac_test_CXXFLAGS=${CXXFLAGS+set}
3781ac_save_CXXFLAGS=$CXXFLAGS
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3783$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3784if test "${ac_cv_prog_cxx_g+set}" = set; then :
3785  $as_echo_n "(cached) " >&6
3786else
3787  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3788   ac_cxx_werror_flag=yes
3789   ac_cv_prog_cxx_g=no
3790   CXXFLAGS="-g"
3791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793
3794int
3795main ()
3796{
3797
3798  ;
3799  return 0;
3800}
3801_ACEOF
3802if ac_fn_cxx_try_compile "$LINENO"; then :
3803  ac_cv_prog_cxx_g=yes
3804else
3805  CXXFLAGS=""
3806      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808
3809int
3810main ()
3811{
3812
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817if ac_fn_cxx_try_compile "$LINENO"; then :
3818
3819else
3820  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3821         CXXFLAGS="-g"
3822         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h.  */
3824
3825int
3826main ()
3827{
3828
3829  ;
3830  return 0;
3831}
3832_ACEOF
3833if ac_fn_cxx_try_compile "$LINENO"; then :
3834  ac_cv_prog_cxx_g=yes
3835fi
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837fi
3838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839fi
3840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3842fi
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3844$as_echo "$ac_cv_prog_cxx_g" >&6; }
3845if test "$ac_test_CXXFLAGS" = set; then
3846  CXXFLAGS=$ac_save_CXXFLAGS
3847elif test $ac_cv_prog_cxx_g = yes; then
3848  if test "$GXX" = yes; then
3849    CXXFLAGS="-g -O2"
3850  else
3851    CXXFLAGS="-g"
3852  fi
3853else
3854  if test "$GXX" = yes; then
3855    CXXFLAGS="-O2"
3856  else
3857    CXXFLAGS=
3858  fi
3859fi
3860ac_ext=c
3861ac_cpp='$CPP $CPPFLAGS'
3862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865DEPDIR="${am__leading_dot}deps"
3866
3867ac_config_commands="$ac_config_commands depfiles"
3868
3869
3870am_make=${MAKE-make}
3871cat > confinc << 'END'
3872am__doit:
3873        @echo this is the am__doit target
3874.PHONY: am__doit
3875END
3876# If we don't find an include directive, just comment out the code.
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3878$as_echo_n "checking for style of include used by $am_make... " >&6; }
3879am__include="#"
3880am__quote=
3881_am_result=none
3882# First try GNU make style include.
3883echo "include confinc" > confmf
3884# Ignore all kinds of additional output from `make'.
3885case `$am_make -s -f confmf 2> /dev/null` in #(
3886*the\ am__doit\ target*)
3887  am__include=include
3888  am__quote=
3889  _am_result=GNU
3890  ;;
3891esac
3892# Now try BSD make style include.
3893if test "$am__include" = "#"; then
3894   echo '.include "confinc"' > confmf
3895   case `$am_make -s -f confmf 2> /dev/null` in #(
3896   *the\ am__doit\ target*)
3897     am__include=.include
3898     am__quote="\""
3899     _am_result=BSD
3900     ;;
3901   esac
3902fi
3903
3904
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3906$as_echo "$_am_result" >&6; }
3907rm -f confinc confmf
3908
3909# Check whether --enable-dependency-tracking was given.
3910if test "${enable_dependency_tracking+set}" = set; then :
3911  enableval=$enable_dependency_tracking;
3912fi
3913
3914if test "x$enable_dependency_tracking" != xno; then
3915  am_depcomp="$ac_aux_dir/depcomp"
3916  AMDEPBACKSLASH='\'
3917fi
3918 if test "x$enable_dependency_tracking" != xno; then
3919  AMDEP_TRUE=
3920  AMDEP_FALSE='#'
3921else
3922  AMDEP_TRUE='#'
3923  AMDEP_FALSE=
3924fi
3925
3926
3927
3928depcc="$CXX"  am_compiler_list=
3929
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3931$as_echo_n "checking dependency style of $depcc... " >&6; }
3932if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3933  $as_echo_n "(cached) " >&6
3934else
3935  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3936  # We make a subdir and do the tests there.  Otherwise we can end up
3937  # making bogus files that we don't know about and never remove.  For
3938  # instance it was reported that on HP-UX the gcc test will end up
3939  # making a dummy file named `D' -- because `-MD' means `put the output
3940  # in D'.
3941  mkdir conftest.dir
3942  # Copy depcomp to subdir because otherwise we won't find it if we're
3943  # using a relative directory.
3944  cp "$am_depcomp" conftest.dir
3945  cd conftest.dir
3946  # We will build objects and dependencies in a subdirectory because
3947  # it helps to detect inapplicable dependency modes.  For instance
3948  # both Tru64's cc and ICC support -MD to output dependencies as a
3949  # side effect of compilation, but ICC will put the dependencies in
3950  # the current directory while Tru64 will put them in the object
3951  # directory.
3952  mkdir sub
3953
3954  am_cv_CXX_dependencies_compiler_type=none
3955  if test "$am_compiler_list" = ""; then
3956     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3957  fi
3958  am__universal=false
3959  case " $depcc " in #(
3960     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3961     esac
3962
3963  for depmode in $am_compiler_list; do
3964    # Setup a source with many dependencies, because some compilers
3965    # like to wrap large dependency lists on column 80 (with \), and
3966    # we should not choose a depcomp mode which is confused by this.
3967    #
3968    # We need to recreate these files for each test, as the compiler may
3969    # overwrite some of them when testing with obscure command lines.
3970    # This happens at least with the AIX C compiler.
3971    : > sub/conftest.c
3972    for i in 1 2 3 4 5 6; do
3973      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3974      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3975      # Solaris 8's {/usr,}/bin/sh.
3976      touch sub/conftst$i.h
3977    done
3978    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3979
3980    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3981    # mode.  It turns out that the SunPro C++ compiler does not properly
3982    # handle `-M -o', and we need to detect this.  Also, some Intel
3983    # versions had trouble with output in subdirs
3984    am__obj=sub/conftest.${OBJEXT-o}
3985    am__minus_obj="-o $am__obj"
3986    case $depmode in
3987    gcc)
3988      # This depmode causes a compiler race in universal mode.
3989      test "$am__universal" = false || continue
3990      ;;
3991    nosideeffect)
3992      # after this tag, mechanisms are not by side-effect, so they'll
3993      # only be used when explicitly requested
3994      if test "x$enable_dependency_tracking" = xyes; then
3995        continue
3996      else
3997        break
3998      fi
3999      ;;
4000    msvisualcpp | msvcmsys)
4001      # This compiler won't grok `-c -o', but also, the minuso test has
4002      # not run yet.  These depmodes are late enough in the game, and
4003      # so weak that their functioning should not be impacted.
4004      am__obj=conftest.${OBJEXT-o}
4005      am__minus_obj=
4006      ;;
4007    none) break ;;
4008    esac
4009    if depmode=$depmode \
4010       source=sub/conftest.c object=$am__obj \
4011       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4012       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4013         >/dev/null 2>conftest.err &&
4014       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4015       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4016       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4017       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4018      # icc doesn't choke on unknown options, it will just issue warnings
4019      # or remarks (even with -Werror).  So we grep stderr for any message
4020      # that says an option was ignored or not supported.
4021      # When given -MP, icc 7.0 and 7.1 complain thusly:
4022      #   icc: Command line warning: ignoring option '-M'; no argument required
4023      # The diagnosis changed in icc 8.0:
4024      #   icc: Command line remark: option '-MP' not supported
4025      if (grep 'ignoring option' conftest.err ||
4026          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4027        am_cv_CXX_dependencies_compiler_type=$depmode
4028        break
4029      fi
4030    fi
4031  done
4032
4033  cd ..
4034  rm -rf conftest.dir
4035else
4036  am_cv_CXX_dependencies_compiler_type=none
4037fi
4038
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4041$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4042CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4043
4044 if
4045  test "x$enable_dependency_tracking" != xno \
4046  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4047  am__fastdepCXX_TRUE=
4048  am__fastdepCXX_FALSE='#'
4049else
4050  am__fastdepCXX_TRUE='#'
4051  am__fastdepCXX_FALSE=
4052fi
4053
4054
4055ac_ext=c
4056ac_cpp='$CPP $CPPFLAGS'
4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060if test -n "$ac_tool_prefix"; then
4061  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4062set dummy ${ac_tool_prefix}gcc; ac_word=$2
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064$as_echo_n "checking for $ac_word... " >&6; }
4065if test "${ac_cv_prog_CC+set}" = set; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  if test -n "$CC"; then
4069  ac_cv_prog_CC="$CC" # Let the user override the test.
4070else
4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074  IFS=$as_save_IFS
4075  test -z "$as_dir" && as_dir=.
4076    for ac_exec_ext in '' $ac_executable_extensions; do
4077  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080    break 2
4081  fi
4082done
4083  done
4084IFS=$as_save_IFS
4085
4086fi
4087fi
4088CC=$ac_cv_prog_CC
4089if test -n "$CC"; then
4090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091$as_echo "$CC" >&6; }
4092else
4093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
4095fi
4096
4097
4098fi
4099if test -z "$ac_cv_prog_CC"; then
4100  ac_ct_CC=$CC
4101  # Extract the first word of "gcc", so it can be a program name with args.
4102set dummy gcc; ac_word=$2
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104$as_echo_n "checking for $ac_word... " >&6; }
4105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4106  $as_echo_n "(cached) " >&6
4107else
4108  if test -n "$ac_ct_CC"; then
4109  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4110else
4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112for as_dir in $PATH
4113do
4114  IFS=$as_save_IFS
4115  test -z "$as_dir" && as_dir=.
4116    for ac_exec_ext in '' $ac_executable_extensions; do
4117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118    ac_cv_prog_ac_ct_CC="gcc"
4119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120    break 2
4121  fi
4122done
4123  done
4124IFS=$as_save_IFS
4125
4126fi
4127fi
4128ac_ct_CC=$ac_cv_prog_ac_ct_CC
4129if test -n "$ac_ct_CC"; then
4130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4131$as_echo "$ac_ct_CC" >&6; }
4132else
4133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134$as_echo "no" >&6; }
4135fi
4136
4137  if test "x$ac_ct_CC" = x; then
4138    CC=""
4139  else
4140    case $cross_compiling:$ac_tool_warned in
4141yes:)
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4144ac_tool_warned=yes ;;
4145esac
4146    CC=$ac_ct_CC
4147  fi
4148else
4149  CC="$ac_cv_prog_CC"
4150fi
4151
4152if test -z "$CC"; then
4153          if test -n "$ac_tool_prefix"; then
4154    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4155set dummy ${ac_tool_prefix}cc; ac_word=$2
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157$as_echo_n "checking for $ac_word... " >&6; }
4158if test "${ac_cv_prog_CC+set}" = set; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  if test -n "$CC"; then
4162  ac_cv_prog_CC="$CC" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167  IFS=$as_save_IFS
4168  test -z "$as_dir" && as_dir=.
4169    for ac_exec_ext in '' $ac_executable_extensions; do
4170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171    ac_cv_prog_CC="${ac_tool_prefix}cc"
4172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173    break 2
4174  fi
4175done
4176  done
4177IFS=$as_save_IFS
4178
4179fi
4180fi
4181CC=$ac_cv_prog_CC
4182if test -n "$CC"; then
4183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4184$as_echo "$CC" >&6; }
4185else
4186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187$as_echo "no" >&6; }
4188fi
4189
4190
4191  fi
4192fi
4193if test -z "$CC"; then
4194  # Extract the first word of "cc", so it can be a program name with args.
4195set dummy cc; ac_word=$2
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197$as_echo_n "checking for $ac_word... " >&6; }
4198if test "${ac_cv_prog_CC+set}" = set; then :
4199  $as_echo_n "(cached) " >&6
4200else
4201  if test -n "$CC"; then
4202  ac_cv_prog_CC="$CC" # Let the user override the test.
4203else
4204  ac_prog_rejected=no
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208  IFS=$as_save_IFS
4209  test -z "$as_dir" && as_dir=.
4210    for ac_exec_ext in '' $ac_executable_extensions; do
4211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4213       ac_prog_rejected=yes
4214       continue
4215     fi
4216    ac_cv_prog_CC="cc"
4217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218    break 2
4219  fi
4220done
4221  done
4222IFS=$as_save_IFS
4223
4224if test $ac_prog_rejected = yes; then
4225  # We found a bogon in the path, so make sure we never use it.
4226  set dummy $ac_cv_prog_CC
4227  shift
4228  if test $# != 0; then
4229    # We chose a different compiler from the bogus one.
4230    # However, it has the same basename, so the bogon will be chosen
4231    # first if we set CC to just the basename; use the full file name.
4232    shift
4233    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4234  fi
4235fi
4236fi
4237fi
4238CC=$ac_cv_prog_CC
4239if test -n "$CC"; then
4240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4241$as_echo "$CC" >&6; }
4242else
4243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244$as_echo "no" >&6; }
4245fi
4246
4247
4248fi
4249if test -z "$CC"; then
4250  if test -n "$ac_tool_prefix"; then
4251  for ac_prog in cl.exe
4252  do
4253    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256$as_echo_n "checking for $ac_word... " >&6; }
4257if test "${ac_cv_prog_CC+set}" = set; then :
4258  $as_echo_n "(cached) " >&6
4259else
4260  if test -n "$CC"; then
4261  ac_cv_prog_CC="$CC" # Let the user override the test.
4262else
4263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264for as_dir in $PATH
4265do
4266  IFS=$as_save_IFS
4267  test -z "$as_dir" && as_dir=.
4268    for ac_exec_ext in '' $ac_executable_extensions; do
4269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4270    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272    break 2
4273  fi
4274done
4275  done
4276IFS=$as_save_IFS
4277
4278fi
4279fi
4280CC=$ac_cv_prog_CC
4281if test -n "$CC"; then
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4283$as_echo "$CC" >&6; }
4284else
4285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286$as_echo "no" >&6; }
4287fi
4288
4289
4290    test -n "$CC" && break
4291  done
4292fi
4293if test -z "$CC"; then
4294  ac_ct_CC=$CC
4295  for ac_prog in cl.exe
4296do
4297  # Extract the first word of "$ac_prog", so it can be a program name with args.
4298set dummy $ac_prog; ac_word=$2
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300$as_echo_n "checking for $ac_word... " >&6; }
4301if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4302  $as_echo_n "(cached) " >&6
4303else
4304  if test -n "$ac_ct_CC"; then
4305  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4306else
4307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH
4309do
4310  IFS=$as_save_IFS
4311  test -z "$as_dir" && as_dir=.
4312    for ac_exec_ext in '' $ac_executable_extensions; do
4313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314    ac_cv_prog_ac_ct_CC="$ac_prog"
4315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316    break 2
4317  fi
4318done
4319  done
4320IFS=$as_save_IFS
4321
4322fi
4323fi
4324ac_ct_CC=$ac_cv_prog_ac_ct_CC
4325if test -n "$ac_ct_CC"; then
4326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4327$as_echo "$ac_ct_CC" >&6; }
4328else
4329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330$as_echo "no" >&6; }
4331fi
4332
4333
4334  test -n "$ac_ct_CC" && break
4335done
4336
4337  if test "x$ac_ct_CC" = x; then
4338    CC=""
4339  else
4340    case $cross_compiling:$ac_tool_warned in
4341yes:)
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4344ac_tool_warned=yes ;;
4345esac
4346    CC=$ac_ct_CC
4347  fi
4348fi
4349
4350fi
4351
4352
4353test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4355as_fn_error "no acceptable C compiler found in \$PATH
4356See \`config.log' for more details." "$LINENO" 5; }
4357
4358# Provide some information about the compiler.
4359$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4360set X $ac_compile
4361ac_compiler=$2
4362for ac_option in --version -v -V -qversion; do
4363  { { ac_try="$ac_compiler $ac_option >&5"
4364case "(($ac_try" in
4365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366  *) ac_try_echo=$ac_try;;
4367esac
4368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369$as_echo "$ac_try_echo"; } >&5
4370  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4371  ac_status=$?
4372  if test -s conftest.err; then
4373    sed '10a\
4374... rest of stderr output deleted ...
4375         10q' conftest.err >conftest.er1
4376    cat conftest.er1 >&5
4377  fi
4378  rm -f conftest.er1 conftest.err
4379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4380  test $ac_status = 0; }
4381done
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4384$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4385if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4386  $as_echo_n "(cached) " >&6
4387else
4388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h.  */
4390
4391int
4392main ()
4393{
4394#ifndef __GNUC__
4395       choke me
4396#endif
4397
4398  ;
4399  return 0;
4400}
4401_ACEOF
4402if ac_fn_c_try_compile "$LINENO"; then :
4403  ac_compiler_gnu=yes
4404else
4405  ac_compiler_gnu=no
4406fi
4407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408ac_cv_c_compiler_gnu=$ac_compiler_gnu
4409
4410fi
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4412$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4413if test $ac_compiler_gnu = yes; then
4414  GCC=yes
4415else
4416  GCC=
4417fi
4418ac_test_CFLAGS=${CFLAGS+set}
4419ac_save_CFLAGS=$CFLAGS
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4421$as_echo_n "checking whether $CC accepts -g... " >&6; }
4422if test "${ac_cv_prog_cc_g+set}" = set; then :
4423  $as_echo_n "(cached) " >&6
4424else
4425  ac_save_c_werror_flag=$ac_c_werror_flag
4426   ac_c_werror_flag=yes
4427   ac_cv_prog_cc_g=no
4428   CFLAGS="-g"
4429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430/* end confdefs.h.  */
4431
4432int
4433main ()
4434{
4435
4436  ;
4437  return 0;
4438}
4439_ACEOF
4440if ac_fn_c_try_compile "$LINENO"; then :
4441  ac_cv_prog_cc_g=yes
4442else
4443  CFLAGS=""
4444      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445/* end confdefs.h.  */
4446
4447int
4448main ()
4449{
4450
4451  ;
4452  return 0;
4453}
4454_ACEOF
4455if ac_fn_c_try_compile "$LINENO"; then :
4456
4457else
4458  ac_c_werror_flag=$ac_save_c_werror_flag
4459         CFLAGS="-g"
4460         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h.  */
4462
4463int
4464main ()
4465{
4466
4467  ;
4468  return 0;
4469}
4470_ACEOF
4471if ac_fn_c_try_compile "$LINENO"; then :
4472  ac_cv_prog_cc_g=yes
4473fi
4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475fi
4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477fi
4478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479   ac_c_werror_flag=$ac_save_c_werror_flag
4480fi
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4482$as_echo "$ac_cv_prog_cc_g" >&6; }
4483if test "$ac_test_CFLAGS" = set; then
4484  CFLAGS=$ac_save_CFLAGS
4485elif test $ac_cv_prog_cc_g = yes; then
4486  if test "$GCC" = yes; then
4487    CFLAGS="-g -O2"
4488  else
4489    CFLAGS="-g"
4490  fi
4491else
4492  if test "$GCC" = yes; then
4493    CFLAGS="-O2"
4494  else
4495    CFLAGS=
4496  fi
4497fi
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4499$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4500if test "${ac_cv_prog_cc_c89+set}" = set; then :
4501  $as_echo_n "(cached) " >&6
4502else
4503  ac_cv_prog_cc_c89=no
4504ac_save_CC=$CC
4505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506/* end confdefs.h.  */
4507#include <stdarg.h>
4508#include <stdio.h>
4509#include <sys/types.h>
4510#include <sys/stat.h>
4511/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4512struct buf { int x; };
4513FILE * (*rcsopen) (struct buf *, struct stat *, int);
4514static char *e (p, i)
4515     char **p;
4516     int i;
4517{
4518  return p[i];
4519}
4520static char *f (char * (*g) (char **, int), char **p, ...)
4521{
4522  char *s;
4523  va_list v;
4524  va_start (v,p);
4525  s = g (p, va_arg (v,int));
4526  va_end (v);
4527  return s;
4528}
4529
4530/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4531   function prototypes and stuff, but not '\xHH' hex character constants.
4532   These don't provoke an error unfortunately, instead are silently treated
4533   as 'x'.  The following induces an error, until -std is added to get
4534   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4535   array size at least.  It's necessary to write '\x00'==0 to get something
4536   that's true only with -std.  */
4537int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4538
4539/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4540   inside strings and character constants.  */
4541#define FOO(x) 'x'
4542int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4543
4544int test (int i, double x);
4545struct s1 {int (*f) (int a);};
4546struct s2 {int (*f) (double a);};
4547int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4548int argc;
4549char **argv;
4550int
4551main ()
4552{
4553return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4554  ;
4555  return 0;
4556}
4557_ACEOF
4558for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4559        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4560do
4561  CC="$ac_save_CC $ac_arg"
4562  if ac_fn_c_try_compile "$LINENO"; then :
4563  ac_cv_prog_cc_c89=$ac_arg
4564fi
4565rm -f core conftest.err conftest.$ac_objext
4566  test "x$ac_cv_prog_cc_c89" != "xno" && break
4567done
4568rm -f conftest.$ac_ext
4569CC=$ac_save_CC
4570
4571fi
4572# AC_CACHE_VAL
4573case "x$ac_cv_prog_cc_c89" in
4574  x)
4575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4576$as_echo "none needed" >&6; } ;;
4577  xno)
4578    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4579$as_echo "unsupported" >&6; } ;;
4580  *)
4581    CC="$CC $ac_cv_prog_cc_c89"
4582    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4583$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4584esac
4585if test "x$ac_cv_prog_cc_c89" != xno; then :
4586
4587fi
4588
4589ac_ext=c
4590ac_cpp='$CPP $CPPFLAGS'
4591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594
4595depcc="$CC"   am_compiler_list=
4596
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4598$as_echo_n "checking dependency style of $depcc... " >&6; }
4599if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4600  $as_echo_n "(cached) " >&6
4601else
4602  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4603  # We make a subdir and do the tests there.  Otherwise we can end up
4604  # making bogus files that we don't know about and never remove.  For
4605  # instance it was reported that on HP-UX the gcc test will end up
4606  # making a dummy file named `D' -- because `-MD' means `put the output
4607  # in D'.
4608  mkdir conftest.dir
4609  # Copy depcomp to subdir because otherwise we won't find it if we're
4610  # using a relative directory.
4611  cp "$am_depcomp" conftest.dir
4612  cd conftest.dir
4613  # We will build objects and dependencies in a subdirectory because
4614  # it helps to detect inapplicable dependency modes.  For instance
4615  # both Tru64's cc and ICC support -MD to output dependencies as a
4616  # side effect of compilation, but ICC will put the dependencies in
4617  # the current directory while Tru64 will put them in the object
4618  # directory.
4619  mkdir sub
4620
4621  am_cv_CC_dependencies_compiler_type=none
4622  if test "$am_compiler_list" = ""; then
4623     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4624  fi
4625  am__universal=false
4626  case " $depcc " in #(
4627     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4628     esac
4629
4630  for depmode in $am_compiler_list; do
4631    # Setup a source with many dependencies, because some compilers
4632    # like to wrap large dependency lists on column 80 (with \), and
4633    # we should not choose a depcomp mode which is confused by this.
4634    #
4635    # We need to recreate these files for each test, as the compiler may
4636    # overwrite some of them when testing with obscure command lines.
4637    # This happens at least with the AIX C compiler.
4638    : > sub/conftest.c
4639    for i in 1 2 3 4 5 6; do
4640      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4641      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4642      # Solaris 8's {/usr,}/bin/sh.
4643      touch sub/conftst$i.h
4644    done
4645    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4646
4647    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4648    # mode.  It turns out that the SunPro C++ compiler does not properly
4649    # handle `-M -o', and we need to detect this.  Also, some Intel
4650    # versions had trouble with output in subdirs
4651    am__obj=sub/conftest.${OBJEXT-o}
4652    am__minus_obj="-o $am__obj"
4653    case $depmode in
4654    gcc)
4655      # This depmode causes a compiler race in universal mode.
4656      test "$am__universal" = false || continue
4657      ;;
4658    nosideeffect)
4659      # after this tag, mechanisms are not by side-effect, so they'll
4660      # only be used when explicitly requested
4661      if test "x$enable_dependency_tracking" = xyes; then
4662        continue
4663      else
4664        break
4665      fi
4666      ;;
4667    msvisualcpp | msvcmsys)
4668      # This compiler won't grok `-c -o', but also, the minuso test has
4669      # not run yet.  These depmodes are late enough in the game, and
4670      # so weak that their functioning should not be impacted.
4671      am__obj=conftest.${OBJEXT-o}
4672      am__minus_obj=
4673      ;;
4674    none) break ;;
4675    esac
4676    if depmode=$depmode \
4677       source=sub/conftest.c object=$am__obj \
4678       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4679       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4680         >/dev/null 2>conftest.err &&
4681       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4682       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4683       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4684       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4685      # icc doesn't choke on unknown options, it will just issue warnings
4686      # or remarks (even with -Werror).  So we grep stderr for any message
4687      # that says an option was ignored or not supported.
4688      # When given -MP, icc 7.0 and 7.1 complain thusly:
4689      #   icc: Command line warning: ignoring option '-M'; no argument required
4690      # The diagnosis changed in icc 8.0:
4691      #   icc: Command line remark: option '-MP' not supported
4692      if (grep 'ignoring option' conftest.err ||
4693          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4694        am_cv_CC_dependencies_compiler_type=$depmode
4695        break
4696      fi
4697    fi
4698  done
4699
4700  cd ..
4701  rm -rf conftest.dir
4702else
4703  am_cv_CC_dependencies_compiler_type=none
4704fi
4705
4706fi
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4708$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4709CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4710
4711 if
4712  test "x$enable_dependency_tracking" != xno \
4713  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4714  am__fastdepCC_TRUE=
4715  am__fastdepCC_FALSE='#'
4716else
4717  am__fastdepCC_TRUE='#'
4718  am__fastdepCC_FALSE=
4719fi
4720
4721
4722ac_ext=c
4723ac_cpp='$CPP $CPPFLAGS'
4724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4728$as_echo_n "checking how to run the C preprocessor... " >&6; }
4729# On Suns, sometimes $CPP names a directory.
4730if test -n "$CPP" && test -d "$CPP"; then
4731  CPP=
4732fi
4733if test -z "$CPP"; then
4734  if test "${ac_cv_prog_CPP+set}" = set; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737      # Double quotes because CPP needs to be expanded
4738    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4739    do
4740      ac_preproc_ok=false
4741for ac_c_preproc_warn_flag in '' yes
4742do
4743  # Use a header file that comes with gcc, so configuring glibc
4744  # with a fresh cross-compiler works.
4745  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746  # <limits.h> exists even on freestanding compilers.
4747  # On the NeXT, cc -E runs the code through the compiler's parser,
4748  # not just through cpp. "Syntax error" is here to catch this case.
4749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750/* end confdefs.h.  */
4751#ifdef __STDC__
4752# include <limits.h>
4753#else
4754# include <assert.h>
4755#endif
4756                     Syntax error
4757_ACEOF
4758if ac_fn_c_try_cpp "$LINENO"; then :
4759
4760else
4761  # Broken: fails on valid input.
4762continue
4763fi
4764rm -f conftest.err conftest.$ac_ext
4765
4766  # OK, works on sane cases.  Now check whether nonexistent headers
4767  # can be detected and how.
4768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769/* end confdefs.h.  */
4770#include <ac_nonexistent.h>
4771_ACEOF
4772if ac_fn_c_try_cpp "$LINENO"; then :
4773  # Broken: success on invalid input.
4774continue
4775else
4776  # Passes both tests.
4777ac_preproc_ok=:
4778break
4779fi
4780rm -f conftest.err conftest.$ac_ext
4781
4782done
4783# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4784rm -f conftest.err conftest.$ac_ext
4785if $ac_preproc_ok; then :
4786  break
4787fi
4788
4789    done
4790    ac_cv_prog_CPP=$CPP
4791
4792fi
4793  CPP=$ac_cv_prog_CPP
4794else
4795  ac_cv_prog_CPP=$CPP
4796fi
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4798$as_echo "$CPP" >&6; }
4799ac_preproc_ok=false
4800for ac_c_preproc_warn_flag in '' yes
4801do
4802  # Use a header file that comes with gcc, so configuring glibc
4803  # with a fresh cross-compiler works.
4804  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4805  # <limits.h> exists even on freestanding compilers.
4806  # On the NeXT, cc -E runs the code through the compiler's parser,
4807  # not just through cpp. "Syntax error" is here to catch this case.
4808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h.  */
4810#ifdef __STDC__
4811# include <limits.h>
4812#else
4813# include <assert.h>
4814#endif
4815                     Syntax error
4816_ACEOF
4817if ac_fn_c_try_cpp "$LINENO"; then :
4818
4819else
4820  # Broken: fails on valid input.
4821continue
4822fi
4823rm -f conftest.err conftest.$ac_ext
4824
4825  # OK, works on sane cases.  Now check whether nonexistent headers
4826  # can be detected and how.
4827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828/* end confdefs.h.  */
4829#include <ac_nonexistent.h>
4830_ACEOF
4831if ac_fn_c_try_cpp "$LINENO"; then :
4832  # Broken: success on invalid input.
4833continue
4834else
4835  # Passes both tests.
4836ac_preproc_ok=:
4837break
4838fi
4839rm -f conftest.err conftest.$ac_ext
4840
4841done
4842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4843rm -f conftest.err conftest.$ac_ext
4844if $ac_preproc_ok; then :
4845
4846else
4847  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4849as_fn_error "C preprocessor \"$CPP\" fails sanity check
4850See \`config.log' for more details." "$LINENO" 5; }
4851fi
4852
4853ac_ext=c
4854ac_cpp='$CPP $CPPFLAGS'
4855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4861$as_echo_n "checking whether ln -s works... " >&6; }
4862LN_S=$as_ln_s
4863if test "$LN_S" = "ln -s"; then
4864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4865$as_echo "yes" >&6; }
4866else
4867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4868$as_echo "no, using $LN_S" >&6; }
4869fi
4870
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4872$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4873set x ${MAKE-make}
4874ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4875if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  cat >conftest.make <<\_ACEOF
4879SHELL = /bin/sh
4880all:
4881        @echo '@@@%%%=$(MAKE)=@@@%%%'
4882_ACEOF
4883# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4884case `${MAKE-make} -f conftest.make 2>/dev/null` in
4885  *@@@%%%=?*=@@@%%%*)
4886    eval ac_cv_prog_make_${ac_make}_set=yes;;
4887  *)
4888    eval ac_cv_prog_make_${ac_make}_set=no;;
4889esac
4890rm -f conftest.make
4891fi
4892if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4894$as_echo "yes" >&6; }
4895  SET_MAKE=
4896else
4897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898$as_echo "no" >&6; }
4899  SET_MAKE="MAKE=${MAKE-make}"
4900fi
4901
4902# Make sure we can run config.sub.
4903$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4904  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4905
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4907$as_echo_n "checking build system type... " >&6; }
4908if test "${ac_cv_build+set}" = set; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  ac_build_alias=$build_alias
4912test "x$ac_build_alias" = x &&
4913  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4914test "x$ac_build_alias" = x &&
4915  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4916ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4917  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4918
4919fi
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4921$as_echo "$ac_cv_build" >&6; }
4922case $ac_cv_build in
4923*-*-*) ;;
4924*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4925esac
4926build=$ac_cv_build
4927ac_save_IFS=$IFS; IFS='-'
4928set x $ac_cv_build
4929shift
4930build_cpu=$1
4931build_vendor=$2
4932shift; shift
4933# Remember, the first character of IFS is used to create $*,
4934# except with old shells:
4935build_os=$*
4936IFS=$ac_save_IFS
4937case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4938
4939
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4941$as_echo_n "checking host system type... " >&6; }
4942if test "${ac_cv_host+set}" = set; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  if test "x$host_alias" = x; then
4946  ac_cv_host=$ac_cv_build
4947else
4948  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4949    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4950fi
4951
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4954$as_echo "$ac_cv_host" >&6; }
4955case $ac_cv_host in
4956*-*-*) ;;
4957*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4958esac
4959host=$ac_cv_host
4960ac_save_IFS=$IFS; IFS='-'
4961set x $ac_cv_host
4962shift
4963host_cpu=$1
4964host_vendor=$2
4965shift; shift
4966# Remember, the first character of IFS is used to create $*,
4967# except with old shells:
4968host_os=$*
4969IFS=$ac_save_IFS
4970case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4971
4972
4973enable_win32_dll=yes
4974
4975case $host in
4976*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4977  if test -n "$ac_tool_prefix"; then
4978  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4979set dummy ${ac_tool_prefix}as; ac_word=$2
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; }
4982if test "${ac_cv_prog_AS+set}" = set; then :
4983  $as_echo_n "(cached) " >&6
4984else
4985  if test -n "$AS"; then
4986  ac_cv_prog_AS="$AS" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991  IFS=$as_save_IFS
4992  test -z "$as_dir" && as_dir=.
4993    for ac_exec_ext in '' $ac_executable_extensions; do
4994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995    ac_cv_prog_AS="${ac_tool_prefix}as"
4996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997    break 2
4998  fi
4999done
5000  done
5001IFS=$as_save_IFS
5002
5003fi
5004fi
5005AS=$ac_cv_prog_AS
5006if test -n "$AS"; then
5007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5008$as_echo "$AS" >&6; }
5009else
5010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011$as_echo "no" >&6; }
5012fi
5013
5014
5015fi
5016if test -z "$ac_cv_prog_AS"; then
5017  ac_ct_AS=$AS
5018  # Extract the first word of "as", so it can be a program name with args.
5019set dummy as; ac_word=$2
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021$as_echo_n "checking for $ac_word... " >&6; }
5022if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5023  $as_echo_n "(cached) " >&6
5024else
5025  if test -n "$ac_ct_AS"; then
5026  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5027else
5028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031  IFS=$as_save_IFS
5032  test -z "$as_dir" && as_dir=.
5033    for ac_exec_ext in '' $ac_executable_extensions; do
5034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035    ac_cv_prog_ac_ct_AS="as"
5036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037    break 2
5038  fi
5039done
5040  done
5041IFS=$as_save_IFS
5042
5043fi
5044fi
5045ac_ct_AS=$ac_cv_prog_ac_ct_AS
5046if test -n "$ac_ct_AS"; then
5047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5048$as_echo "$ac_ct_AS" >&6; }
5049else
5050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051$as_echo "no" >&6; }
5052fi
5053
5054  if test "x$ac_ct_AS" = x; then
5055    AS="false"
5056  else
5057    case $cross_compiling:$ac_tool_warned in
5058yes:)
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5061ac_tool_warned=yes ;;
5062esac
5063    AS=$ac_ct_AS
5064  fi
5065else
5066  AS="$ac_cv_prog_AS"
5067fi
5068
5069  if test -n "$ac_tool_prefix"; then
5070  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5071set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073$as_echo_n "checking for $ac_word... " >&6; }
5074if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  if test -n "$DLLTOOL"; then
5078  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5079else
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083  IFS=$as_save_IFS
5084  test -z "$as_dir" && as_dir=.
5085    for ac_exec_ext in '' $ac_executable_extensions; do
5086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089    break 2
5090  fi
5091done
5092  done
5093IFS=$as_save_IFS
5094
5095fi
5096fi
5097DLLTOOL=$ac_cv_prog_DLLTOOL
5098if test -n "$DLLTOOL"; then
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5100$as_echo "$DLLTOOL" >&6; }
5101else
5102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103$as_echo "no" >&6; }
5104fi
5105
5106
5107fi
5108if test -z "$ac_cv_prog_DLLTOOL"; then
5109  ac_ct_DLLTOOL=$DLLTOOL
5110  # Extract the first word of "dlltool", so it can be a program name with args.
5111set dummy dlltool; ac_word=$2
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  if test -n "$ac_ct_DLLTOOL"; then
5118  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123  IFS=$as_save_IFS
5124  test -z "$as_dir" && as_dir=.
5125    for ac_exec_ext in '' $ac_executable_extensions; do
5126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129    break 2
5130  fi
5131done
5132  done
5133IFS=$as_save_IFS
5134
5135fi
5136fi
5137ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5138if test -n "$ac_ct_DLLTOOL"; then
5139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5140$as_echo "$ac_ct_DLLTOOL" >&6; }
5141else
5142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
5144fi
5145
5146  if test "x$ac_ct_DLLTOOL" = x; then
5147    DLLTOOL="false"
5148  else
5149    case $cross_compiling:$ac_tool_warned in
5150yes:)
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153ac_tool_warned=yes ;;
5154esac
5155    DLLTOOL=$ac_ct_DLLTOOL
5156  fi
5157else
5158  DLLTOOL="$ac_cv_prog_DLLTOOL"
5159fi
5160
5161  if test -n "$ac_tool_prefix"; then
5162  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5163set dummy ${ac_tool_prefix}objdump; ac_word=$2
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165$as_echo_n "checking for $ac_word... " >&6; }
5166if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5167  $as_echo_n "(cached) " >&6
5168else
5169  if test -n "$OBJDUMP"; then
5170  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5171else
5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175  IFS=$as_save_IFS
5176  test -z "$as_dir" && as_dir=.
5177    for ac_exec_ext in '' $ac_executable_extensions; do
5178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181    break 2
5182  fi
5183done
5184  done
5185IFS=$as_save_IFS
5186
5187fi
5188fi
5189OBJDUMP=$ac_cv_prog_OBJDUMP
5190if test -n "$OBJDUMP"; then
5191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5192$as_echo "$OBJDUMP" >&6; }
5193else
5194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195$as_echo "no" >&6; }
5196fi
5197
5198
5199fi
5200if test -z "$ac_cv_prog_OBJDUMP"; then
5201  ac_ct_OBJDUMP=$OBJDUMP
5202  # Extract the first word of "objdump", so it can be a program name with args.
5203set dummy objdump; ac_word=$2
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205$as_echo_n "checking for $ac_word... " >&6; }
5206if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  if test -n "$ac_ct_OBJDUMP"; then
5210  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215  IFS=$as_save_IFS
5216  test -z "$as_dir" && as_dir=.
5217    for ac_exec_ext in '' $ac_executable_extensions; do
5218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221    break 2
5222  fi
5223done
5224  done
5225IFS=$as_save_IFS
5226
5227fi
5228fi
5229ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5230if test -n "$ac_ct_OBJDUMP"; then
5231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5232$as_echo "$ac_ct_OBJDUMP" >&6; }
5233else
5234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235$as_echo "no" >&6; }
5236fi
5237
5238  if test "x$ac_ct_OBJDUMP" = x; then
5239    OBJDUMP="false"
5240  else
5241    case $cross_compiling:$ac_tool_warned in
5242yes:)
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245ac_tool_warned=yes ;;
5246esac
5247    OBJDUMP=$ac_ct_OBJDUMP
5248  fi
5249else
5250  OBJDUMP="$ac_cv_prog_OBJDUMP"
5251fi
5252
5253  ;;
5254esac
5255
5256test -z "$AS" && AS=as
5257
5258
5259
5260
5261
5262test -z "$DLLTOOL" && DLLTOOL=dlltool
5263
5264
5265
5266
5267
5268test -z "$OBJDUMP" && OBJDUMP=objdump
5269
5270
5271
5272
5273
5274
5275
5276case `pwd` in
5277  *\ * | *\     *)
5278    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5279$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5280esac
5281
5282
5283
5284macro_version='2.2.6b'
5285macro_revision='1.3017'
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299ltmain="$ac_aux_dir/ltmain.sh"
5300
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5302$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5303if test "${ac_cv_path_SED+set}" = set; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5307     for ac_i in 1 2 3 4 5 6 7; do
5308       ac_script="$ac_script$as_nl$ac_script"
5309     done
5310     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5311     { ac_script=; unset ac_script;}
5312     if test -z "$SED"; then
5313  ac_path_SED_found=false
5314  # Loop through the user's path and test for each of PROGNAME-LIST
5315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318  IFS=$as_save_IFS
5319  test -z "$as_dir" && as_dir=.
5320    for ac_prog in sed gsed; do
5321    for ac_exec_ext in '' $ac_executable_extensions; do
5322      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5323      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5324# Check for GNU ac_path_SED and select it if it is found.
5325  # Check for GNU $ac_path_SED
5326case `"$ac_path_SED" --version 2>&1` in
5327*GNU*)
5328  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5329*)
5330  ac_count=0
5331  $as_echo_n 0123456789 >"conftest.in"
5332  while :
5333  do
5334    cat "conftest.in" "conftest.in" >"conftest.tmp"
5335    mv "conftest.tmp" "conftest.in"
5336    cp "conftest.in" "conftest.nl"
5337    $as_echo '' >> "conftest.nl"
5338    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5339    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5340    as_fn_arith $ac_count + 1 && ac_count=$as_val
5341    if test $ac_count -gt ${ac_path_SED_max-0}; then
5342      # Best one so far, save it but keep looking for a better one
5343      ac_cv_path_SED="$ac_path_SED"
5344      ac_path_SED_max=$ac_count
5345    fi
5346    # 10*(2^10) chars as input seems more than enough
5347    test $ac_count -gt 10 && break
5348  done
5349  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5350esac
5351
5352      $ac_path_SED_found && break 3
5353    done
5354  done
5355  done
5356IFS=$as_save_IFS
5357  if test -z "$ac_cv_path_SED"; then
5358    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5359  fi
5360else
5361  ac_cv_path_SED=$SED
5362fi
5363
5364fi
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5366$as_echo "$ac_cv_path_SED" >&6; }
5367 SED="$ac_cv_path_SED"
5368  rm -f conftest.sed
5369
5370test -z "$SED" && SED=sed
5371Xsed="$SED -e 1s/^X//"
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5384$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5385if test "${ac_cv_path_GREP+set}" = set; then :
5386  $as_echo_n "(cached) " >&6
5387else
5388  if test -z "$GREP"; then
5389  ac_path_GREP_found=false
5390  # Loop through the user's path and test for each of PROGNAME-LIST
5391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5393do
5394  IFS=$as_save_IFS
5395  test -z "$as_dir" && as_dir=.
5396    for ac_prog in grep ggrep; do
5397    for ac_exec_ext in '' $ac_executable_extensions; do
5398      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5399      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5400# Check for GNU ac_path_GREP and select it if it is found.
5401  # Check for GNU $ac_path_GREP
5402case `"$ac_path_GREP" --version 2>&1` in
5403*GNU*)
5404  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5405*)
5406  ac_count=0
5407  $as_echo_n 0123456789 >"conftest.in"
5408  while :
5409  do
5410    cat "conftest.in" "conftest.in" >"conftest.tmp"
5411    mv "conftest.tmp" "conftest.in"
5412    cp "conftest.in" "conftest.nl"
5413    $as_echo 'GREP' >> "conftest.nl"
5414    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5415    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5416    as_fn_arith $ac_count + 1 && ac_count=$as_val
5417    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5418      # Best one so far, save it but keep looking for a better one
5419      ac_cv_path_GREP="$ac_path_GREP"
5420      ac_path_GREP_max=$ac_count
5421    fi
5422    # 10*(2^10) chars as input seems more than enough
5423    test $ac_count -gt 10 && break
5424  done
5425  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5426esac
5427
5428      $ac_path_GREP_found && break 3
5429    done
5430  done
5431  done
5432IFS=$as_save_IFS
5433  if test -z "$ac_cv_path_GREP"; then
5434    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5435  fi
5436else
5437  ac_cv_path_GREP=$GREP
5438fi
5439
5440fi
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5442$as_echo "$ac_cv_path_GREP" >&6; }
5443 GREP="$ac_cv_path_GREP"
5444
5445
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5447$as_echo_n "checking for egrep... " >&6; }
5448if test "${ac_cv_path_EGREP+set}" = set; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5452   then ac_cv_path_EGREP="$GREP -E"
5453   else
5454     if test -z "$EGREP"; then
5455  ac_path_EGREP_found=false
5456  # Loop through the user's path and test for each of PROGNAME-LIST
5457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5459do
5460  IFS=$as_save_IFS
5461  test -z "$as_dir" && as_dir=.
5462    for ac_prog in egrep; do
5463    for ac_exec_ext in '' $ac_executable_extensions; do
5464      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5465      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5466# Check for GNU ac_path_EGREP and select it if it is found.
5467  # Check for GNU $ac_path_EGREP
5468case `"$ac_path_EGREP" --version 2>&1` in
5469*GNU*)
5470  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5471*)
5472  ac_count=0
5473  $as_echo_n 0123456789 >"conftest.in"
5474  while :
5475  do
5476    cat "conftest.in" "conftest.in" >"conftest.tmp"
5477    mv "conftest.tmp" "conftest.in"
5478    cp "conftest.in" "conftest.nl"
5479    $as_echo 'EGREP' >> "conftest.nl"
5480    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5481    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5482    as_fn_arith $ac_count + 1 && ac_count=$as_val
5483    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5484      # Best one so far, save it but keep looking for a better one
5485      ac_cv_path_EGREP="$ac_path_EGREP"
5486      ac_path_EGREP_max=$ac_count
5487    fi
5488    # 10*(2^10) chars as input seems more than enough
5489    test $ac_count -gt 10 && break
5490  done
5491  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5492esac
5493
5494      $ac_path_EGREP_found && break 3
5495    done
5496  done
5497  done
5498IFS=$as_save_IFS
5499  if test -z "$ac_cv_path_EGREP"; then
5500    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5501  fi
5502else
5503  ac_cv_path_EGREP=$EGREP
5504fi
5505
5506   fi
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5509$as_echo "$ac_cv_path_EGREP" >&6; }
5510 EGREP="$ac_cv_path_EGREP"
5511
5512
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5514$as_echo_n "checking for fgrep... " >&6; }
5515if test "${ac_cv_path_FGREP+set}" = set; then :
5516  $as_echo_n "(cached) " >&6
5517else
5518  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5519   then ac_cv_path_FGREP="$GREP -F"
5520   else
5521     if test -z "$FGREP"; then
5522  ac_path_FGREP_found=false
5523  # Loop through the user's path and test for each of PROGNAME-LIST
5524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5526do
5527  IFS=$as_save_IFS
5528  test -z "$as_dir" && as_dir=.
5529    for ac_prog in fgrep; do
5530    for ac_exec_ext in '' $ac_executable_extensions; do
5531      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5532      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5533# Check for GNU ac_path_FGREP and select it if it is found.
5534  # Check for GNU $ac_path_FGREP
5535case `"$ac_path_FGREP" --version 2>&1` in
5536*GNU*)
5537  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5538*)
5539  ac_count=0
5540  $as_echo_n 0123456789 >"conftest.in"
5541  while :
5542  do
5543    cat "conftest.in" "conftest.in" >"conftest.tmp"
5544    mv "conftest.tmp" "conftest.in"
5545    cp "conftest.in" "conftest.nl"
5546    $as_echo 'FGREP' >> "conftest.nl"
5547    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5548    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5549    as_fn_arith $ac_count + 1 && ac_count=$as_val
5550    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5551      # Best one so far, save it but keep looking for a better one
5552      ac_cv_path_FGREP="$ac_path_FGREP"
5553      ac_path_FGREP_max=$ac_count
5554    fi
5555    # 10*(2^10) chars as input seems more than enough
5556    test $ac_count -gt 10 && break
5557  done
5558  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5559esac
5560
5561      $ac_path_FGREP_found && break 3
5562    done
5563  done
5564  done
5565IFS=$as_save_IFS
5566  if test -z "$ac_cv_path_FGREP"; then
5567    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5568  fi
5569else
5570  ac_cv_path_FGREP=$FGREP
5571fi
5572
5573   fi
5574fi
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5576$as_echo "$ac_cv_path_FGREP" >&6; }
5577 FGREP="$ac_cv_path_FGREP"
5578
5579
5580test -z "$GREP" && GREP=grep
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600# Check whether --with-gnu-ld was given.
5601if test "${with_gnu_ld+set}" = set; then :
5602  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5603else
5604  with_gnu_ld=no
5605fi
5606
5607ac_prog=ld
5608if test "$GCC" = yes; then
5609  # Check if gcc -print-prog-name=ld gives a path.
5610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5611$as_echo_n "checking for ld used by $CC... " >&6; }
5612  case $host in
5613  *-*-mingw*)
5614    # gcc leaves a trailing carriage return which upsets mingw
5615    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5616  *)
5617    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5618  esac
5619  case $ac_prog in
5620    # Accept absolute paths.
5621    [\\/]* | ?:[\\/]*)
5622      re_direlt='/[^/][^/]*/\.\./'
5623      # Canonicalize the pathname of ld
5624      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5625      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5626        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5627      done
5628      test -z "$LD" && LD="$ac_prog"
5629      ;;
5630  "")
5631    # If it fails, then pretend we aren't using GCC.
5632    ac_prog=ld
5633    ;;
5634  *)
5635    # If it is relative, then search for the first ld in PATH.
5636    with_gnu_ld=unknown
5637    ;;
5638  esac
5639elif test "$with_gnu_ld" = yes; then
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5641$as_echo_n "checking for GNU ld... " >&6; }
5642else
5643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5644$as_echo_n "checking for non-GNU ld... " >&6; }
5645fi
5646if test "${lt_cv_path_LD+set}" = set; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649  if test -z "$LD"; then
5650  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5651  for ac_dir in $PATH; do
5652    IFS="$lt_save_ifs"
5653    test -z "$ac_dir" && ac_dir=.
5654    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5655      lt_cv_path_LD="$ac_dir/$ac_prog"
5656      # Check to see if the program is GNU ld.  I'd rather use --version,
5657      # but apparently some variants of GNU ld only accept -v.
5658      # Break only if it was the GNU/non-GNU ld that we prefer.
5659      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5660      *GNU* | *'with BFD'*)
5661        test "$with_gnu_ld" != no && break
5662        ;;
5663      *)
5664        test "$with_gnu_ld" != yes && break
5665        ;;
5666      esac
5667    fi
5668  done
5669  IFS="$lt_save_ifs"
5670else
5671  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5672fi
5673fi
5674
5675LD="$lt_cv_path_LD"
5676if test -n "$LD"; then
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5678$as_echo "$LD" >&6; }
5679else
5680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681$as_echo "no" >&6; }
5682fi
5683test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5685$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5686if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5687  $as_echo_n "(cached) " >&6
5688else
5689  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5690case `$LD -v 2>&1 </dev/null` in
5691*GNU* | *'with BFD'*)
5692  lt_cv_prog_gnu_ld=yes
5693  ;;
5694*)
5695  lt_cv_prog_gnu_ld=no
5696  ;;
5697esac
5698fi
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5700$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5701with_gnu_ld=$lt_cv_prog_gnu_ld
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5712$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5713if test "${lt_cv_path_NM+set}" = set; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  if test -n "$NM"; then
5717  # Let the user override the test.
5718  lt_cv_path_NM="$NM"
5719else
5720  lt_nm_to_check="${ac_tool_prefix}nm"
5721  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5722    lt_nm_to_check="$lt_nm_to_check nm"
5723  fi
5724  for lt_tmp_nm in $lt_nm_to_check; do
5725    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5726    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5727      IFS="$lt_save_ifs"
5728      test -z "$ac_dir" && ac_dir=.
5729      tmp_nm="$ac_dir/$lt_tmp_nm"
5730      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5731        # Check to see if the nm accepts a BSD-compat flag.
5732        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5733        #   nm: unknown option "B" ignored
5734        # Tru64's nm complains that /dev/null is an invalid object file
5735        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5736        */dev/null* | *'Invalid file or object type'*)
5737          lt_cv_path_NM="$tmp_nm -B"
5738          break
5739          ;;
5740        *)
5741          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5742          */dev/null*)
5743            lt_cv_path_NM="$tmp_nm -p"
5744            break
5745            ;;
5746          *)
5747            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5748            continue # so that we can try to find one that supports BSD flags
5749            ;;
5750          esac
5751          ;;
5752        esac
5753      fi
5754    done
5755    IFS="$lt_save_ifs"
5756  done
5757  : ${lt_cv_path_NM=no}
5758fi
5759fi
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5761$as_echo "$lt_cv_path_NM" >&6; }
5762if test "$lt_cv_path_NM" != "no"; then
5763  NM="$lt_cv_path_NM"
5764else
5765  # Didn't find any BSD compatible name lister, look for dumpbin.
5766  if test -n "$ac_tool_prefix"; then
5767  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5768  do
5769    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5770set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772$as_echo_n "checking for $ac_word... " >&6; }
5773if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  if test -n "$DUMPBIN"; then
5777  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782  IFS=$as_save_IFS
5783  test -z "$as_dir" && as_dir=.
5784    for ac_exec_ext in '' $ac_executable_extensions; do
5785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788    break 2
5789  fi
5790done
5791  done
5792IFS=$as_save_IFS
5793
5794fi
5795fi
5796DUMPBIN=$ac_cv_prog_DUMPBIN
5797if test -n "$DUMPBIN"; then
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5799$as_echo "$DUMPBIN" >&6; }
5800else
5801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802$as_echo "no" >&6; }
5803fi
5804
5805
5806    test -n "$DUMPBIN" && break
5807  done
5808fi
5809if test -z "$DUMPBIN"; then
5810  ac_ct_DUMPBIN=$DUMPBIN
5811  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5812do
5813  # Extract the first word of "$ac_prog", so it can be a program name with args.
5814set dummy $ac_prog; ac_word=$2
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816$as_echo_n "checking for $ac_word... " >&6; }
5817if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820  if test -n "$ac_ct_DUMPBIN"; then
5821  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826  IFS=$as_save_IFS
5827  test -z "$as_dir" && as_dir=.
5828    for ac_exec_ext in '' $ac_executable_extensions; do
5829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832    break 2
5833  fi
5834done
5835  done
5836IFS=$as_save_IFS
5837
5838fi
5839fi
5840ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5841if test -n "$ac_ct_DUMPBIN"; then
5842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5843$as_echo "$ac_ct_DUMPBIN" >&6; }
5844else
5845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846$as_echo "no" >&6; }
5847fi
5848
5849
5850  test -n "$ac_ct_DUMPBIN" && break
5851done
5852
5853  if test "x$ac_ct_DUMPBIN" = x; then
5854    DUMPBIN=":"
5855  else
5856    case $cross_compiling:$ac_tool_warned in
5857yes:)
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860ac_tool_warned=yes ;;
5861esac
5862    DUMPBIN=$ac_ct_DUMPBIN
5863  fi
5864fi
5865
5866
5867  if test "$DUMPBIN" != ":"; then
5868    NM="$DUMPBIN"
5869  fi
5870fi
5871test -z "$NM" && NM=nm
5872
5873
5874
5875
5876
5877
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5879$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5880if test "${lt_cv_nm_interface+set}" = set; then :
5881  $as_echo_n "(cached) " >&6
5882else
5883  lt_cv_nm_interface="BSD nm"
5884  echo "int some_variable = 0;" > conftest.$ac_ext
5885  (eval echo "\"\$as_me:5885: $ac_compile\"" >&5)
5886  (eval "$ac_compile" 2>conftest.err)
5887  cat conftest.err >&5
5888  (eval echo "\"\$as_me:5888: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5889  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5890  cat conftest.err >&5
5891  (eval echo "\"\$as_me:5891: output\"" >&5)
5892  cat conftest.out >&5
5893  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5894    lt_cv_nm_interface="MS dumpbin"
5895  fi
5896  rm -f conftest*
5897fi
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5899$as_echo "$lt_cv_nm_interface" >&6; }
5900
5901# find the maximum length of command line arguments
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5903$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5904if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5905  $as_echo_n "(cached) " >&6
5906else
5907    i=0
5908  teststring="ABCD"
5909
5910  case $build_os in
5911  msdosdjgpp*)
5912    # On DJGPP, this test can blow up pretty badly due to problems in libc
5913    # (any single argument exceeding 2000 bytes causes a buffer overrun
5914    # during glob expansion).  Even if it were fixed, the result of this
5915    # check would be larger than it should be.
5916    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5917    ;;
5918
5919  gnu*)
5920    # Under GNU Hurd, this test is not required because there is
5921    # no limit to the length of command line arguments.
5922    # Libtool will interpret -1 as no limit whatsoever
5923    lt_cv_sys_max_cmd_len=-1;
5924    ;;
5925
5926  cygwin* | mingw* | cegcc*)
5927    # On Win9x/ME, this test blows up -- it succeeds, but takes
5928    # about 5 minutes as the teststring grows exponentially.
5929    # Worse, since 9x/ME are not pre-emptively multitasking,
5930    # you end up with a "frozen" computer, even though with patience
5931    # the test eventually succeeds (with a max line length of 256k).
5932    # Instead, let's just punt: use the minimum linelength reported by
5933    # all of the supported platforms: 8192 (on NT/2K/XP).
5934    lt_cv_sys_max_cmd_len=8192;
5935    ;;
5936
5937  amigaos*)
5938    # On AmigaOS with pdksh, this test takes hours, literally.
5939    # So we just punt and use a minimum line length of 8192.
5940    lt_cv_sys_max_cmd_len=8192;
5941    ;;
5942
5943  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5944    # This has been around since 386BSD, at least.  Likely further.
5945    if test -x /sbin/sysctl; then
5946      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5947    elif test -x /usr/sbin/sysctl; then
5948      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5949    else
5950      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5951    fi
5952    # And add a safety zone
5953    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5954    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5955    ;;
5956
5957  interix*)
5958    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5959    lt_cv_sys_max_cmd_len=196608
5960    ;;
5961
5962  osf*)
5963    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5964    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5965    # nice to cause kernel panics so lets avoid the loop below.
5966    # First set a reasonable default.
5967    lt_cv_sys_max_cmd_len=16384
5968    #
5969    if test -x /sbin/sysconfig; then
5970      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5971        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5972      esac
5973    fi
5974    ;;
5975  sco3.2v5*)
5976    lt_cv_sys_max_cmd_len=102400
5977    ;;
5978  sysv5* | sco5v6* | sysv4.2uw2*)
5979    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5980    if test -n "$kargmax"; then
5981      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5982    else
5983      lt_cv_sys_max_cmd_len=32768
5984    fi
5985    ;;
5986  *)
5987    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5988    if test -n "$lt_cv_sys_max_cmd_len"; then
5989      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5990      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5991    else
5992      # Make teststring a little bigger before we do anything with it.
5993      # a 1K string should be a reasonable start.
5994      for i in 1 2 3 4 5 6 7 8 ; do
5995        teststring=$teststring$teststring
5996      done
5997      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5998      # If test is not a shell built-in, we'll probably end up computing a
5999      # maximum length that is only half of the actual maximum length, but
6000      # we can't tell.
6001      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6002                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6003              test $i != 17 # 1/2 MB should be enough
6004      do
6005        i=`expr $i + 1`
6006        teststring=$teststring$teststring
6007      done
6008      # Only check the string length outside the loop.
6009      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6010      teststring=
6011      # Add a significant safety factor because C++ compilers can tack on
6012      # massive amounts of additional arguments before passing them to the
6013      # linker.  It appears as though 1/2 is a usable value.
6014      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6015    fi
6016    ;;
6017  esac
6018
6019fi
6020
6021if test -n $lt_cv_sys_max_cmd_len ; then
6022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6023$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6024else
6025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6026$as_echo "none" >&6; }
6027fi
6028max_cmd_len=$lt_cv_sys_max_cmd_len
6029
6030
6031
6032
6033
6034
6035: ${CP="cp -f"}
6036: ${MV="mv -f"}
6037: ${RM="rm -f"}
6038
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6040$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6041# Try some XSI features
6042xsi_shell=no
6043( _lt_dummy="a/b/c"
6044  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6045      = c,a/b,, \
6046    && eval 'test $(( 1 + 1 )) -eq 2 \
6047    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6048  && xsi_shell=yes
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6050$as_echo "$xsi_shell" >&6; }
6051
6052
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6054$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6055lt_shell_append=no
6056( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6057    >/dev/null 2>&1 \
6058  && lt_shell_append=yes
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6060$as_echo "$lt_shell_append" >&6; }
6061
6062
6063if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6064  lt_unset=unset
6065else
6066  lt_unset=false
6067fi
6068
6069
6070
6071
6072
6073# test EBCDIC or ASCII
6074case `echo X|tr X '\101'` in
6075 A) # ASCII based system
6076    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6077  lt_SP2NL='tr \040 \012'
6078  lt_NL2SP='tr \015\012 \040\040'
6079  ;;
6080 *) # EBCDIC based system
6081  lt_SP2NL='tr \100 \n'
6082  lt_NL2SP='tr \r\n \100\100'
6083  ;;
6084esac
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6095$as_echo_n "checking for $LD option to reload object files... " >&6; }
6096if test "${lt_cv_ld_reload_flag+set}" = set; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  lt_cv_ld_reload_flag='-r'
6100fi
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6102$as_echo "$lt_cv_ld_reload_flag" >&6; }
6103reload_flag=$lt_cv_ld_reload_flag
6104case $reload_flag in
6105"" | " "*) ;;
6106*) reload_flag=" $reload_flag" ;;
6107esac
6108reload_cmds='$LD$reload_flag -o $output$reload_objs'
6109case $host_os in
6110  darwin*)
6111    if test "$GCC" = yes; then
6112      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6113    else
6114      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6115    fi
6116    ;;
6117esac
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127if test -n "$ac_tool_prefix"; then
6128  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6129set dummy ${ac_tool_prefix}objdump; ac_word=$2
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131$as_echo_n "checking for $ac_word... " >&6; }
6132if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  if test -n "$OBJDUMP"; then
6136  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6137else
6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141  IFS=$as_save_IFS
6142  test -z "$as_dir" && as_dir=.
6143    for ac_exec_ext in '' $ac_executable_extensions; do
6144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147    break 2
6148  fi
6149done
6150  done
6151IFS=$as_save_IFS
6152
6153fi
6154fi
6155OBJDUMP=$ac_cv_prog_OBJDUMP
6156if test -n "$OBJDUMP"; then
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6158$as_echo "$OBJDUMP" >&6; }
6159else
6160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161$as_echo "no" >&6; }
6162fi
6163
6164
6165fi
6166if test -z "$ac_cv_prog_OBJDUMP"; then
6167  ac_ct_OBJDUMP=$OBJDUMP
6168  # Extract the first word of "objdump", so it can be a program name with args.
6169set dummy objdump; ac_word=$2
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
6172if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  if test -n "$ac_ct_OBJDUMP"; then
6176  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181  IFS=$as_save_IFS
6182  test -z "$as_dir" && as_dir=.
6183    for ac_exec_ext in '' $ac_executable_extensions; do
6184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187    break 2
6188  fi
6189done
6190  done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6196if test -n "$ac_ct_OBJDUMP"; then
6197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6198$as_echo "$ac_ct_OBJDUMP" >&6; }
6199else
6200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201$as_echo "no" >&6; }
6202fi
6203
6204  if test "x$ac_ct_OBJDUMP" = x; then
6205    OBJDUMP="false"
6206  else
6207    case $cross_compiling:$ac_tool_warned in
6208yes:)
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211ac_tool_warned=yes ;;
6212esac
6213    OBJDUMP=$ac_ct_OBJDUMP
6214  fi
6215else
6216  OBJDUMP="$ac_cv_prog_OBJDUMP"
6217fi
6218
6219test -z "$OBJDUMP" && OBJDUMP=objdump
6220
6221
6222
6223
6224
6225
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6227$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6228if test "${lt_cv_deplibs_check_method+set}" = set; then :
6229  $as_echo_n "(cached) " >&6
6230else
6231  lt_cv_file_magic_cmd='$MAGIC_CMD'
6232lt_cv_file_magic_test_file=
6233lt_cv_deplibs_check_method='unknown'
6234# Need to set the preceding variable on all platforms that support
6235# interlibrary dependencies.
6236# 'none' -- dependencies not supported.
6237# `unknown' -- same as none, but documents that we really don't know.
6238# 'pass_all' -- all dependencies passed with no checks.
6239# 'test_compile' -- check by making test program.
6240# 'file_magic [[regex]]' -- check by looking for files in library path
6241# which responds to the $file_magic_cmd with a given extended regex.
6242# If you have `file' or equivalent on your system and you're not sure
6243# whether `pass_all' will *always* work, you probably want this one.
6244
6245case $host_os in
6246aix[4-9]*)
6247  lt_cv_deplibs_check_method=pass_all
6248  ;;
6249
6250beos*)
6251  lt_cv_deplibs_check_method=pass_all
6252  ;;
6253
6254bsdi[45]*)
6255  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6256  lt_cv_file_magic_cmd='/usr/bin/file -L'
6257  lt_cv_file_magic_test_file=/shlib/libc.so
6258  ;;
6259
6260cygwin*)
6261  # func_win32_libid is a shell function defined in ltmain.sh
6262  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6263  lt_cv_file_magic_cmd='func_win32_libid'
6264  ;;
6265
6266mingw* | pw32*)
6267  # Base MSYS/MinGW do not provide the 'file' command needed by
6268  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6269  # unless we find 'file', for example because we are cross-compiling.
6270  if ( file / ) >/dev/null 2>&1; then
6271    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6272    lt_cv_file_magic_cmd='func_win32_libid'
6273  else
6274    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6275    lt_cv_file_magic_cmd='$OBJDUMP -f'
6276  fi
6277  ;;
6278
6279cegcc)
6280  # use the weaker test based on 'objdump'. See mingw*.
6281  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6282  lt_cv_file_magic_cmd='$OBJDUMP -f'
6283  ;;
6284
6285darwin* | rhapsody*)
6286  lt_cv_deplibs_check_method=pass_all
6287  ;;
6288
6289freebsd* | dragonfly*)
6290  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6291    case $host_cpu in
6292    i*86 )
6293      # Not sure whether the presence of OpenBSD here was a mistake.
6294      # Let's accept both of them until this is cleared up.
6295      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6296      lt_cv_file_magic_cmd=/usr/bin/file
6297      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6298      ;;
6299    esac
6300  else
6301    lt_cv_deplibs_check_method=pass_all
6302  fi
6303  ;;
6304
6305gnu*)
6306  lt_cv_deplibs_check_method=pass_all
6307  ;;
6308
6309hpux10.20* | hpux11*)
6310  lt_cv_file_magic_cmd=/usr/bin/file
6311  case $host_cpu in
6312  ia64*)
6313    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6314    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6315    ;;
6316  hppa*64*)
6317    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6318    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6319    ;;
6320  *)
6321    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6322    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6323    ;;
6324  esac
6325  ;;
6326
6327interix[3-9]*)
6328  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6329  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6330  ;;
6331
6332irix5* | irix6* | nonstopux*)
6333  case $LD in
6334  *-32|*"-32 ") libmagic=32-bit;;
6335  *-n32|*"-n32 ") libmagic=N32;;
6336  *-64|*"-64 ") libmagic=64-bit;;
6337  *) libmagic=never-match;;
6338  esac
6339  lt_cv_deplibs_check_method=pass_all
6340  ;;
6341
6342# This must be Linux ELF.
6343linux* | k*bsd*-gnu)
6344  lt_cv_deplibs_check_method=pass_all
6345  ;;
6346
6347netbsd*)
6348  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6349    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6350  else
6351    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6352  fi
6353  ;;
6354
6355newos6*)
6356  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6357  lt_cv_file_magic_cmd=/usr/bin/file
6358  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6359  ;;
6360
6361*nto* | *qnx*)
6362  lt_cv_deplibs_check_method=pass_all
6363  ;;
6364
6365openbsd*)
6366  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6367    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6368  else
6369    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6370  fi
6371  ;;
6372
6373osf3* | osf4* | osf5*)
6374  lt_cv_deplibs_check_method=pass_all
6375  ;;
6376
6377rdos*)
6378  lt_cv_deplibs_check_method=pass_all
6379  ;;
6380
6381solaris*)
6382  lt_cv_deplibs_check_method=pass_all
6383  ;;
6384
6385sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6386  lt_cv_deplibs_check_method=pass_all
6387  ;;
6388
6389sysv4 | sysv4.3*)
6390  case $host_vendor in
6391  motorola)
6392    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]'
6393    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6394    ;;
6395  ncr)
6396    lt_cv_deplibs_check_method=pass_all
6397    ;;
6398  sequent)
6399    lt_cv_file_magic_cmd='/bin/file'
6400    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6401    ;;
6402  sni)
6403    lt_cv_file_magic_cmd='/bin/file'
6404    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6405    lt_cv_file_magic_test_file=/lib/libc.so
6406    ;;
6407  siemens)
6408    lt_cv_deplibs_check_method=pass_all
6409    ;;
6410  pc)
6411    lt_cv_deplibs_check_method=pass_all
6412    ;;
6413  esac
6414  ;;
6415
6416tpf*)
6417  lt_cv_deplibs_check_method=pass_all
6418  ;;
6419esac
6420
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6423$as_echo "$lt_cv_deplibs_check_method" >&6; }
6424file_magic_cmd=$lt_cv_file_magic_cmd
6425deplibs_check_method=$lt_cv_deplibs_check_method
6426test -z "$deplibs_check_method" && deplibs_check_method=unknown
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439if test -n "$ac_tool_prefix"; then
6440  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6441set dummy ${ac_tool_prefix}ar; ac_word=$2
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
6444if test "${ac_cv_prog_AR+set}" = set; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  if test -n "$AR"; then
6448  ac_cv_prog_AR="$AR" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453  IFS=$as_save_IFS
6454  test -z "$as_dir" && as_dir=.
6455    for ac_exec_ext in '' $ac_executable_extensions; do
6456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457    ac_cv_prog_AR="${ac_tool_prefix}ar"
6458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459    break 2
6460  fi
6461done
6462  done
6463IFS=$as_save_IFS
6464
6465fi
6466fi
6467AR=$ac_cv_prog_AR
6468if test -n "$AR"; then
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6470$as_echo "$AR" >&6; }
6471else
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473$as_echo "no" >&6; }
6474fi
6475
6476
6477fi
6478if test -z "$ac_cv_prog_AR"; then
6479  ac_ct_AR=$AR
6480  # Extract the first word of "ar", so it can be a program name with args.
6481set dummy ar; ac_word=$2
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483$as_echo_n "checking for $ac_word... " >&6; }
6484if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  if test -n "$ac_ct_AR"; then
6488  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493  IFS=$as_save_IFS
6494  test -z "$as_dir" && as_dir=.
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497    ac_cv_prog_ac_ct_AR="ar"
6498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507ac_ct_AR=$ac_cv_prog_ac_ct_AR
6508if test -n "$ac_ct_AR"; then
6509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6510$as_echo "$ac_ct_AR" >&6; }
6511else
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513$as_echo "no" >&6; }
6514fi
6515
6516  if test "x$ac_ct_AR" = x; then
6517    AR="false"
6518  else
6519    case $cross_compiling:$ac_tool_warned in
6520yes:)
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523ac_tool_warned=yes ;;
6524esac
6525    AR=$ac_ct_AR
6526  fi
6527else
6528  AR="$ac_cv_prog_AR"
6529fi
6530
6531test -z "$AR" && AR=ar
6532test -z "$AR_FLAGS" && AR_FLAGS=cru
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544if test -n "$ac_tool_prefix"; then
6545  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6546set dummy ${ac_tool_prefix}strip; ac_word=$2
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548$as_echo_n "checking for $ac_word... " >&6; }
6549if test "${ac_cv_prog_STRIP+set}" = set; then :
6550  $as_echo_n "(cached) " >&6
6551else
6552  if test -n "$STRIP"; then
6553  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6554else
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558  IFS=$as_save_IFS
6559  test -z "$as_dir" && as_dir=.
6560    for ac_exec_ext in '' $ac_executable_extensions; do
6561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564    break 2
6565  fi
6566done
6567  done
6568IFS=$as_save_IFS
6569
6570fi
6571fi
6572STRIP=$ac_cv_prog_STRIP
6573if test -n "$STRIP"; then
6574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6575$as_echo "$STRIP" >&6; }
6576else
6577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578$as_echo "no" >&6; }
6579fi
6580
6581
6582fi
6583if test -z "$ac_cv_prog_STRIP"; then
6584  ac_ct_STRIP=$STRIP
6585  # Extract the first word of "strip", so it can be a program name with args.
6586set dummy strip; ac_word=$2
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588$as_echo_n "checking for $ac_word... " >&6; }
6589if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6590  $as_echo_n "(cached) " >&6
6591else
6592  if test -n "$ac_ct_STRIP"; then
6593  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598  IFS=$as_save_IFS
6599  test -z "$as_dir" && as_dir=.
6600    for ac_exec_ext in '' $ac_executable_extensions; do
6601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602    ac_cv_prog_ac_ct_STRIP="strip"
6603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604    break 2
6605  fi
6606done
6607  done
6608IFS=$as_save_IFS
6609
6610fi
6611fi
6612ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6613if test -n "$ac_ct_STRIP"; then
6614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6615$as_echo "$ac_ct_STRIP" >&6; }
6616else
6617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618$as_echo "no" >&6; }
6619fi
6620
6621  if test "x$ac_ct_STRIP" = x; then
6622    STRIP=":"
6623  else
6624    case $cross_compiling:$ac_tool_warned in
6625yes:)
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628ac_tool_warned=yes ;;
6629esac
6630    STRIP=$ac_ct_STRIP
6631  fi
6632else
6633  STRIP="$ac_cv_prog_STRIP"
6634fi
6635
6636test -z "$STRIP" && STRIP=:
6637
6638
6639
6640
6641
6642
6643if test -n "$ac_tool_prefix"; then
6644  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6645set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647$as_echo_n "checking for $ac_word... " >&6; }
6648if test "${ac_cv_prog_RANLIB+set}" = set; then :
6649  $as_echo_n "(cached) " >&6
6650else
6651  if test -n "$RANLIB"; then
6652  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6653else
6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657  IFS=$as_save_IFS
6658  test -z "$as_dir" && as_dir=.
6659    for ac_exec_ext in '' $ac_executable_extensions; do
6660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663    break 2
6664  fi
6665done
6666  done
6667IFS=$as_save_IFS
6668
6669fi
6670fi
6671RANLIB=$ac_cv_prog_RANLIB
6672if test -n "$RANLIB"; then
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6674$as_echo "$RANLIB" >&6; }
6675else
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677$as_echo "no" >&6; }
6678fi
6679
6680
6681fi
6682if test -z "$ac_cv_prog_RANLIB"; then
6683  ac_ct_RANLIB=$RANLIB
6684  # Extract the first word of "ranlib", so it can be a program name with args.
6685set dummy ranlib; ac_word=$2
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687$as_echo_n "checking for $ac_word... " >&6; }
6688if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6689  $as_echo_n "(cached) " >&6
6690else
6691  if test -n "$ac_ct_RANLIB"; then
6692  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697  IFS=$as_save_IFS
6698  test -z "$as_dir" && as_dir=.
6699    for ac_exec_ext in '' $ac_executable_extensions; do
6700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701    ac_cv_prog_ac_ct_RANLIB="ranlib"
6702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703    break 2
6704  fi
6705done
6706  done
6707IFS=$as_save_IFS
6708
6709fi
6710fi
6711ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6712if test -n "$ac_ct_RANLIB"; then
6713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6714$as_echo "$ac_ct_RANLIB" >&6; }
6715else
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717$as_echo "no" >&6; }
6718fi
6719
6720  if test "x$ac_ct_RANLIB" = x; then
6721    RANLIB=":"
6722  else
6723    case $cross_compiling:$ac_tool_warned in
6724yes:)
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727ac_tool_warned=yes ;;
6728esac
6729    RANLIB=$ac_ct_RANLIB
6730  fi
6731else
6732  RANLIB="$ac_cv_prog_RANLIB"
6733fi
6734
6735test -z "$RANLIB" && RANLIB=:
6736
6737
6738
6739
6740
6741
6742# Determine commands to create old-style static archives.
6743old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6744old_postinstall_cmds='chmod 644 $oldlib'
6745old_postuninstall_cmds=
6746
6747if test -n "$RANLIB"; then
6748  case $host_os in
6749  openbsd*)
6750    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6751    ;;
6752  *)
6753    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6754    ;;
6755  esac
6756  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6757fi
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792# If no C compiler was specified, use CC.
6793LTCC=${LTCC-"$CC"}
6794
6795# If no C compiler flags were specified, use CFLAGS.
6796LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6797
6798# Allow CC to be a program name with arguments.
6799compiler=$CC
6800
6801
6802# Check for command to grab the raw symbol name followed by C symbol from nm.
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6804$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6805if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808
6809# These are sane defaults that work on at least a few old systems.
6810# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6811
6812# Character class describing NM global symbol codes.
6813symcode='[BCDEGRST]'
6814
6815# Regexp to match symbols that can be accessed directly from C.
6816sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6817
6818# Define system-specific variables.
6819case $host_os in
6820aix*)
6821  symcode='[BCDT]'
6822  ;;
6823cygwin* | mingw* | pw32* | cegcc*)
6824  symcode='[ABCDGISTW]'
6825  ;;
6826hpux*)
6827  if test "$host_cpu" = ia64; then
6828    symcode='[ABCDEGRST]'
6829  fi
6830  ;;
6831irix* | nonstopux*)
6832  symcode='[BCDEGRST]'
6833  ;;
6834osf*)
6835  symcode='[BCDEGQRST]'
6836  ;;
6837solaris*)
6838  symcode='[BDRT]'
6839  ;;
6840sco3.2v5*)
6841  symcode='[DT]'
6842  ;;
6843sysv4.2uw2*)
6844  symcode='[DT]'
6845  ;;
6846sysv5* | sco5v6* | unixware* | OpenUNIX*)
6847  symcode='[ABDT]'
6848  ;;
6849sysv4)
6850  symcode='[DFNSTU]'
6851  ;;
6852esac
6853
6854# If we're using GNU nm, then use its standard symbol codes.
6855case `$NM -V 2>&1` in
6856*GNU* | *'with BFD'*)
6857  symcode='[ABCDGIRSTW]' ;;
6858esac
6859
6860# Transform an extracted symbol line into a proper C declaration.
6861# Some systems (esp. on ia64) link data and code symbols differently,
6862# so use this general approach.
6863lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6864
6865# Transform an extracted symbol line into symbol name and symbol address
6866lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6867lt_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'"
6868
6869# Handle CRLF in mingw tool chain
6870opt_cr=
6871case $build_os in
6872mingw*)
6873  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6874  ;;
6875esac
6876
6877# Try without a prefix underscore, then with it.
6878for ac_symprfx in "" "_"; do
6879
6880  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6881  symxfrm="\\1 $ac_symprfx\\2 \\2"
6882
6883  # Write the raw and C identifiers.
6884  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6885    # Fake it for dumpbin and say T for any non-static function
6886    # and D for any global variable.
6887    # Also find C++ and __fastcall symbols from MSVC++,
6888    # which start with @ or ?.
6889    lt_cv_sys_global_symbol_pipe="$AWK '"\
6890"     {last_section=section; section=\$ 3};"\
6891"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6892"     \$ 0!~/External *\|/{next};"\
6893"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6894"     {if(hide[section]) next};"\
6895"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6896"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6897"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6898"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6899"     ' prfx=^$ac_symprfx"
6900  else
6901    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6902  fi
6903
6904  # Check to see that the pipe works correctly.
6905  pipe_works=no
6906
6907  rm -f conftest*
6908  cat > conftest.$ac_ext <<_LT_EOF
6909#ifdef __cplusplus
6910extern "C" {
6911#endif
6912char nm_test_var;
6913void nm_test_func(void);
6914void nm_test_func(void){}
6915#ifdef __cplusplus
6916}
6917#endif
6918int main(){nm_test_var='a';nm_test_func();return(0);}
6919_LT_EOF
6920
6921  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6922  (eval $ac_compile) 2>&5
6923  ac_status=$?
6924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925  test $ac_status = 0; }; then
6926    # Now try to grab the symbols.
6927    nlist=conftest.nm
6928    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6929  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6930  ac_status=$?
6931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932  test $ac_status = 0; } && test -s "$nlist"; then
6933      # Try sorting and uniquifying the output.
6934      if sort "$nlist" | uniq > "$nlist"T; then
6935        mv -f "$nlist"T "$nlist"
6936      else
6937        rm -f "$nlist"T
6938      fi
6939
6940      # Make sure that we snagged all the symbols we need.
6941      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6942        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6943          cat <<_LT_EOF > conftest.$ac_ext
6944#ifdef __cplusplus
6945extern "C" {
6946#endif
6947
6948_LT_EOF
6949          # Now generate the symbol file.
6950          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6951
6952          cat <<_LT_EOF >> conftest.$ac_ext
6953
6954/* The mapping between symbol names and symbols.  */
6955const struct {
6956  const char *name;
6957  void       *address;
6958}
6959lt__PROGRAM__LTX_preloaded_symbols[] =
6960{
6961  { "@PROGRAM@", (void *) 0 },
6962_LT_EOF
6963          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6964          cat <<\_LT_EOF >> conftest.$ac_ext
6965  {0, (void *) 0}
6966};
6967
6968/* This works around a problem in FreeBSD linker */
6969#ifdef FREEBSD_WORKAROUND
6970static const void *lt_preloaded_setup() {
6971  return lt__PROGRAM__LTX_preloaded_symbols;
6972}
6973#endif
6974
6975#ifdef __cplusplus
6976}
6977#endif
6978_LT_EOF
6979          # Now try linking the two files.
6980          mv conftest.$ac_objext conftstm.$ac_objext
6981          lt_save_LIBS="$LIBS"
6982          lt_save_CFLAGS="$CFLAGS"
6983          LIBS="conftstm.$ac_objext"
6984          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6985          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6986  (eval $ac_link) 2>&5
6987  ac_status=$?
6988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6989  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6990            pipe_works=yes
6991          fi
6992          LIBS="$lt_save_LIBS"
6993          CFLAGS="$lt_save_CFLAGS"
6994        else
6995          echo "cannot find nm_test_func in $nlist" >&5
6996        fi
6997      else
6998        echo "cannot find nm_test_var in $nlist" >&5
6999      fi
7000    else
7001      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7002    fi
7003  else
7004    echo "$progname: failed program was:" >&5
7005    cat conftest.$ac_ext >&5
7006  fi
7007  rm -rf conftest* conftst*
7008
7009  # Do not use the global_symbol_pipe unless it works.
7010  if test "$pipe_works" = yes; then
7011    break
7012  else
7013    lt_cv_sys_global_symbol_pipe=
7014  fi
7015done
7016
7017fi
7018
7019if test -z "$lt_cv_sys_global_symbol_pipe"; then
7020  lt_cv_sys_global_symbol_to_cdecl=
7021fi
7022if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7024$as_echo "failed" >&6; }
7025else
7026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7027$as_echo "ok" >&6; }
7028fi
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052# Check whether --enable-libtool-lock was given.
7053if test "${enable_libtool_lock+set}" = set; then :
7054  enableval=$enable_libtool_lock;
7055fi
7056
7057test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7058
7059# Some flags need to be propagated to the compiler or linker for good
7060# libtool support.
7061case $host in
7062ia64-*-hpux*)
7063  # Find out which ABI we are using.
7064  echo 'int i;' > conftest.$ac_ext
7065  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7066  (eval $ac_compile) 2>&5
7067  ac_status=$?
7068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069  test $ac_status = 0; }; then
7070    case `/usr/bin/file conftest.$ac_objext` in
7071      *ELF-32*)
7072        HPUX_IA64_MODE="32"
7073        ;;
7074      *ELF-64*)
7075        HPUX_IA64_MODE="64"
7076        ;;
7077    esac
7078  fi
7079  rm -rf conftest*
7080  ;;
7081*-*-irix6*)
7082  # Find out which ABI we are using.
7083  echo '#line 7083 "configure"' > conftest.$ac_ext
7084  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7085  (eval $ac_compile) 2>&5
7086  ac_status=$?
7087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088  test $ac_status = 0; }; then
7089    if test "$lt_cv_prog_gnu_ld" = yes; then
7090      case `/usr/bin/file conftest.$ac_objext` in
7091        *32-bit*)
7092          LD="${LD-ld} -melf32bsmip"
7093          ;;
7094        *N32*)
7095          LD="${LD-ld} -melf32bmipn32"
7096          ;;
7097        *64-bit*)
7098          LD="${LD-ld} -melf64bmip"
7099        ;;
7100      esac
7101    else
7102      case `/usr/bin/file conftest.$ac_objext` in
7103        *32-bit*)
7104          LD="${LD-ld} -32"
7105          ;;
7106        *N32*)
7107          LD="${LD-ld} -n32"
7108          ;;
7109        *64-bit*)
7110          LD="${LD-ld} -64"
7111          ;;
7112      esac
7113    fi
7114  fi
7115  rm -rf conftest*
7116  ;;
7117
7118x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7119s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7120  # Find out which ABI we are using.
7121  echo 'int i;' > conftest.$ac_ext
7122  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7123  (eval $ac_compile) 2>&5
7124  ac_status=$?
7125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7126  test $ac_status = 0; }; then
7127    case `/usr/bin/file conftest.o` in
7128      *32-bit*)
7129        case $host in
7130          x86_64-*kfreebsd*-gnu)
7131            LD="${LD-ld} -m elf_i386_fbsd"
7132            ;;
7133          x86_64-*linux*)
7134            LD="${LD-ld} -m elf_i386"
7135            ;;
7136          ppc64-*linux*|powerpc64-*linux*)
7137            LD="${LD-ld} -m elf32ppclinux"
7138            ;;
7139          s390x-*linux*)
7140            LD="${LD-ld} -m elf_s390"
7141            ;;
7142          sparc64-*linux*)
7143            LD="${LD-ld} -m elf32_sparc"
7144            ;;
7145        esac
7146        ;;
7147      *64-bit*)
7148        case $host in
7149          x86_64-*kfreebsd*-gnu)
7150            LD="${LD-ld} -m elf_x86_64_fbsd"
7151            ;;
7152          x86_64-*linux*)
7153            LD="${LD-ld} -m elf_x86_64"
7154            ;;
7155          ppc*-*linux*|powerpc*-*linux*)
7156            LD="${LD-ld} -m elf64ppc"
7157            ;;
7158          s390*-*linux*|s390*-*tpf*)
7159            LD="${LD-ld} -m elf64_s390"
7160            ;;
7161          sparc*-*linux*)
7162            LD="${LD-ld} -m elf64_sparc"
7163            ;;
7164        esac
7165        ;;
7166    esac
7167  fi
7168  rm -rf conftest*
7169  ;;
7170
7171*-*-sco3.2v5*)
7172  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7173  SAVE_CFLAGS="$CFLAGS"
7174  CFLAGS="$CFLAGS -belf"
7175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7176$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7177if test "${lt_cv_cc_needs_belf+set}" = set; then :
7178  $as_echo_n "(cached) " >&6
7179else
7180  ac_ext=c
7181ac_cpp='$CPP $CPPFLAGS'
7182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185
7186     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h.  */
7188
7189int
7190main ()
7191{
7192
7193  ;
7194  return 0;
7195}
7196_ACEOF
7197if ac_fn_c_try_link "$LINENO"; then :
7198  lt_cv_cc_needs_belf=yes
7199else
7200  lt_cv_cc_needs_belf=no
7201fi
7202rm -f core conftest.err conftest.$ac_objext \
7203    conftest$ac_exeext conftest.$ac_ext
7204     ac_ext=c
7205ac_cpp='$CPP $CPPFLAGS'
7206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208ac_compiler_gnu=$ac_cv_c_compiler_gnu
7209
7210fi
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7212$as_echo "$lt_cv_cc_needs_belf" >&6; }
7213  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7214    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7215    CFLAGS="$SAVE_CFLAGS"
7216  fi
7217  ;;
7218sparc*-*solaris*)
7219  # Find out which ABI we are using.
7220  echo 'int i;' > conftest.$ac_ext
7221  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7222  (eval $ac_compile) 2>&5
7223  ac_status=$?
7224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225  test $ac_status = 0; }; then
7226    case `/usr/bin/file conftest.o` in
7227    *64-bit*)
7228      case $lt_cv_prog_gnu_ld in
7229      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7230      *)
7231        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7232          LD="${LD-ld} -64"
7233        fi
7234        ;;
7235      esac
7236      ;;
7237    esac
7238  fi
7239  rm -rf conftest*
7240  ;;
7241esac
7242
7243need_locks="$enable_libtool_lock"
7244
7245
7246  case $host_os in
7247    rhapsody* | darwin*)
7248    if test -n "$ac_tool_prefix"; then
7249  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7250set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252$as_echo_n "checking for $ac_word... " >&6; }
7253if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  if test -n "$DSYMUTIL"; then
7257  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7258else
7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262  IFS=$as_save_IFS
7263  test -z "$as_dir" && as_dir=.
7264    for ac_exec_ext in '' $ac_executable_extensions; do
7265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268    break 2
7269  fi
7270done
7271  done
7272IFS=$as_save_IFS
7273
7274fi
7275fi
7276DSYMUTIL=$ac_cv_prog_DSYMUTIL
7277if test -n "$DSYMUTIL"; then
7278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7279$as_echo "$DSYMUTIL" >&6; }
7280else
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282$as_echo "no" >&6; }
7283fi
7284
7285
7286fi
7287if test -z "$ac_cv_prog_DSYMUTIL"; then
7288  ac_ct_DSYMUTIL=$DSYMUTIL
7289  # Extract the first word of "dsymutil", so it can be a program name with args.
7290set dummy dsymutil; ac_word=$2
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292$as_echo_n "checking for $ac_word... " >&6; }
7293if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  if test -n "$ac_ct_DSYMUTIL"; then
7297  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7298else
7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302  IFS=$as_save_IFS
7303  test -z "$as_dir" && as_dir=.
7304    for ac_exec_ext in '' $ac_executable_extensions; do
7305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308    break 2
7309  fi
7310done
7311  done
7312IFS=$as_save_IFS
7313
7314fi
7315fi
7316ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7317if test -n "$ac_ct_DSYMUTIL"; then
7318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7319$as_echo "$ac_ct_DSYMUTIL" >&6; }
7320else
7321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322$as_echo "no" >&6; }
7323fi
7324
7325  if test "x$ac_ct_DSYMUTIL" = x; then
7326    DSYMUTIL=":"
7327  else
7328    case $cross_compiling:$ac_tool_warned in
7329yes:)
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332ac_tool_warned=yes ;;
7333esac
7334    DSYMUTIL=$ac_ct_DSYMUTIL
7335  fi
7336else
7337  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7338fi
7339
7340    if test -n "$ac_tool_prefix"; then
7341  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7342set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344$as_echo_n "checking for $ac_word... " >&6; }
7345if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7346  $as_echo_n "(cached) " >&6
7347else
7348  if test -n "$NMEDIT"; then
7349  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7350else
7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354  IFS=$as_save_IFS
7355  test -z "$as_dir" && as_dir=.
7356    for ac_exec_ext in '' $ac_executable_extensions; do
7357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360    break 2
7361  fi
7362done
7363  done
7364IFS=$as_save_IFS
7365
7366fi
7367fi
7368NMEDIT=$ac_cv_prog_NMEDIT
7369if test -n "$NMEDIT"; then
7370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7371$as_echo "$NMEDIT" >&6; }
7372else
7373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374$as_echo "no" >&6; }
7375fi
7376
7377
7378fi
7379if test -z "$ac_cv_prog_NMEDIT"; then
7380  ac_ct_NMEDIT=$NMEDIT
7381  # Extract the first word of "nmedit", so it can be a program name with args.
7382set dummy nmedit; ac_word=$2
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384$as_echo_n "checking for $ac_word... " >&6; }
7385if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7386  $as_echo_n "(cached) " >&6
7387else
7388  if test -n "$ac_ct_NMEDIT"; then
7389  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7390else
7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394  IFS=$as_save_IFS
7395  test -z "$as_dir" && as_dir=.
7396    for ac_exec_ext in '' $ac_executable_extensions; do
7397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400    break 2
7401  fi
7402done
7403  done
7404IFS=$as_save_IFS
7405
7406fi
7407fi
7408ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7409if test -n "$ac_ct_NMEDIT"; then
7410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7411$as_echo "$ac_ct_NMEDIT" >&6; }
7412else
7413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414$as_echo "no" >&6; }
7415fi
7416
7417  if test "x$ac_ct_NMEDIT" = x; then
7418    NMEDIT=":"
7419  else
7420    case $cross_compiling:$ac_tool_warned in
7421yes:)
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424ac_tool_warned=yes ;;
7425esac
7426    NMEDIT=$ac_ct_NMEDIT
7427  fi
7428else
7429  NMEDIT="$ac_cv_prog_NMEDIT"
7430fi
7431
7432    if test -n "$ac_tool_prefix"; then
7433  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7434set dummy ${ac_tool_prefix}lipo; ac_word=$2
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436$as_echo_n "checking for $ac_word... " >&6; }
7437if test "${ac_cv_prog_LIPO+set}" = set; then :
7438  $as_echo_n "(cached) " >&6
7439else
7440  if test -n "$LIPO"; then
7441  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7442else
7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446  IFS=$as_save_IFS
7447  test -z "$as_dir" && as_dir=.
7448    for ac_exec_ext in '' $ac_executable_extensions; do
7449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452    break 2
7453  fi
7454done
7455  done
7456IFS=$as_save_IFS
7457
7458fi
7459fi
7460LIPO=$ac_cv_prog_LIPO
7461if test -n "$LIPO"; then
7462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7463$as_echo "$LIPO" >&6; }
7464else
7465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466$as_echo "no" >&6; }
7467fi
7468
7469
7470fi
7471if test -z "$ac_cv_prog_LIPO"; then
7472  ac_ct_LIPO=$LIPO
7473  # Extract the first word of "lipo", so it can be a program name with args.
7474set dummy lipo; ac_word=$2
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476$as_echo_n "checking for $ac_word... " >&6; }
7477if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7478  $as_echo_n "(cached) " >&6
7479else
7480  if test -n "$ac_ct_LIPO"; then
7481  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7482else
7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486  IFS=$as_save_IFS
7487  test -z "$as_dir" && as_dir=.
7488    for ac_exec_ext in '' $ac_executable_extensions; do
7489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490    ac_cv_prog_ac_ct_LIPO="lipo"
7491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492    break 2
7493  fi
7494done
7495  done
7496IFS=$as_save_IFS
7497
7498fi
7499fi
7500ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7501if test -n "$ac_ct_LIPO"; then
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7503$as_echo "$ac_ct_LIPO" >&6; }
7504else
7505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506$as_echo "no" >&6; }
7507fi
7508
7509  if test "x$ac_ct_LIPO" = x; then
7510    LIPO=":"
7511  else
7512    case $cross_compiling:$ac_tool_warned in
7513yes:)
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516ac_tool_warned=yes ;;
7517esac
7518    LIPO=$ac_ct_LIPO
7519  fi
7520else
7521  LIPO="$ac_cv_prog_LIPO"
7522fi
7523
7524    if test -n "$ac_tool_prefix"; then
7525  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7526set dummy ${ac_tool_prefix}otool; ac_word=$2
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528$as_echo_n "checking for $ac_word... " >&6; }
7529if test "${ac_cv_prog_OTOOL+set}" = set; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  if test -n "$OTOOL"; then
7533  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7534else
7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538  IFS=$as_save_IFS
7539  test -z "$as_dir" && as_dir=.
7540    for ac_exec_ext in '' $ac_executable_extensions; do
7541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544    break 2
7545  fi
7546done
7547  done
7548IFS=$as_save_IFS
7549
7550fi
7551fi
7552OTOOL=$ac_cv_prog_OTOOL
7553if test -n "$OTOOL"; then
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7555$as_echo "$OTOOL" >&6; }
7556else
7557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558$as_echo "no" >&6; }
7559fi
7560
7561
7562fi
7563if test -z "$ac_cv_prog_OTOOL"; then
7564  ac_ct_OTOOL=$OTOOL
7565  # Extract the first word of "otool", so it can be a program name with args.
7566set dummy otool; ac_word=$2
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568$as_echo_n "checking for $ac_word... " >&6; }
7569if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7570  $as_echo_n "(cached) " >&6
7571else
7572  if test -n "$ac_ct_OTOOL"; then
7573  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578  IFS=$as_save_IFS
7579  test -z "$as_dir" && as_dir=.
7580    for ac_exec_ext in '' $ac_executable_extensions; do
7581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582    ac_cv_prog_ac_ct_OTOOL="otool"
7583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584    break 2
7585  fi
7586done
7587  done
7588IFS=$as_save_IFS
7589
7590fi
7591fi
7592ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7593if test -n "$ac_ct_OTOOL"; then
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7595$as_echo "$ac_ct_OTOOL" >&6; }
7596else
7597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599fi
7600
7601  if test "x$ac_ct_OTOOL" = x; then
7602    OTOOL=":"
7603  else
7604    case $cross_compiling:$ac_tool_warned in
7605yes:)
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608ac_tool_warned=yes ;;
7609esac
7610    OTOOL=$ac_ct_OTOOL
7611  fi
7612else
7613  OTOOL="$ac_cv_prog_OTOOL"
7614fi
7615
7616    if test -n "$ac_tool_prefix"; then
7617  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7618set dummy ${ac_tool_prefix}otool64; ac_word=$2
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620$as_echo_n "checking for $ac_word... " >&6; }
7621if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7622  $as_echo_n "(cached) " >&6
7623else
7624  if test -n "$OTOOL64"; then
7625  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630  IFS=$as_save_IFS
7631  test -z "$as_dir" && as_dir=.
7632    for ac_exec_ext in '' $ac_executable_extensions; do
7633  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636    break 2
7637  fi
7638done
7639  done
7640IFS=$as_save_IFS
7641
7642fi
7643fi
7644OTOOL64=$ac_cv_prog_OTOOL64
7645if test -n "$OTOOL64"; then
7646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7647$as_echo "$OTOOL64" >&6; }
7648else
7649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
7652
7653
7654fi
7655if test -z "$ac_cv_prog_OTOOL64"; then
7656  ac_ct_OTOOL64=$OTOOL64
7657  # Extract the first word of "otool64", so it can be a program name with args.
7658set dummy otool64; ac_word=$2
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
7661if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7662  $as_echo_n "(cached) " >&6
7663else
7664  if test -n "$ac_ct_OTOOL64"; then
7665  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670  IFS=$as_save_IFS
7671  test -z "$as_dir" && as_dir=.
7672    for ac_exec_ext in '' $ac_executable_extensions; do
7673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674    ac_cv_prog_ac_ct_OTOOL64="otool64"
7675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676    break 2
7677  fi
7678done
7679  done
7680IFS=$as_save_IFS
7681
7682fi
7683fi
7684ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7685if test -n "$ac_ct_OTOOL64"; then
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7687$as_echo "$ac_ct_OTOOL64" >&6; }
7688else
7689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
7691fi
7692
7693  if test "x$ac_ct_OTOOL64" = x; then
7694    OTOOL64=":"
7695  else
7696    case $cross_compiling:$ac_tool_warned in
7697yes:)
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700ac_tool_warned=yes ;;
7701esac
7702    OTOOL64=$ac_ct_OTOOL64
7703  fi
7704else
7705  OTOOL64="$ac_cv_prog_OTOOL64"
7706fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7735$as_echo_n "checking for -single_module linker flag... " >&6; }
7736if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7737  $as_echo_n "(cached) " >&6
7738else
7739  lt_cv_apple_cc_single_mod=no
7740      if test -z "${LT_MULTI_MODULE}"; then
7741        # By default we will add the -single_module flag. You can override
7742        # by either setting the environment variable LT_MULTI_MODULE
7743        # non-empty at configure time, or by adding -multi_module to the
7744        # link flags.
7745        rm -rf libconftest.dylib*
7746        echo "int foo(void){return 1;}" > conftest.c
7747        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7748-dynamiclib -Wl,-single_module conftest.c" >&5
7749        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7750          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7751        _lt_result=$?
7752        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7753          lt_cv_apple_cc_single_mod=yes
7754        else
7755          cat conftest.err >&5
7756        fi
7757        rm -rf libconftest.dylib*
7758        rm -f conftest.*
7759      fi
7760fi
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7762$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7763    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7764$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7765if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  lt_cv_ld_exported_symbols_list=no
7769      save_LDFLAGS=$LDFLAGS
7770      echo "_main" > conftest.sym
7771      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7772      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773/* end confdefs.h.  */
7774
7775int
7776main ()
7777{
7778
7779  ;
7780  return 0;
7781}
7782_ACEOF
7783if ac_fn_c_try_link "$LINENO"; then :
7784  lt_cv_ld_exported_symbols_list=yes
7785else
7786  lt_cv_ld_exported_symbols_list=no
7787fi
7788rm -f core conftest.err conftest.$ac_objext \
7789    conftest$ac_exeext conftest.$ac_ext
7790        LDFLAGS="$save_LDFLAGS"
7791
7792fi
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7794$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7795    case $host_os in
7796    rhapsody* | darwin1.[012])
7797      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7798    darwin1.*)
7799      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7800    darwin*) # darwin 5.x on
7801      # if running on 10.5 or later, the deployment target defaults
7802      # to the OS version, if on x86, and 10.4, the deployment
7803      # target defaults to 10.4. Don't you love it?
7804      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7805        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7806          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7807        10.[012]*)
7808          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7809        10.*)
7810          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7811      esac
7812    ;;
7813  esac
7814    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7815      _lt_dar_single_mod='$single_module'
7816    fi
7817    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7818      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7819    else
7820      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7821    fi
7822    if test "$DSYMUTIL" != ":"; then
7823      _lt_dsymutil='~$DSYMUTIL $lib || :'
7824    else
7825      _lt_dsymutil=
7826    fi
7827    ;;
7828  esac
7829
7830
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7832$as_echo_n "checking for ANSI C header files... " >&6; }
7833if test "${ac_cv_header_stdc+set}" = set; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838#include <stdlib.h>
7839#include <stdarg.h>
7840#include <string.h>
7841#include <float.h>
7842
7843int
7844main ()
7845{
7846
7847  ;
7848  return 0;
7849}
7850_ACEOF
7851if ac_fn_c_try_compile "$LINENO"; then :
7852  ac_cv_header_stdc=yes
7853else
7854  ac_cv_header_stdc=no
7855fi
7856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857
7858if test $ac_cv_header_stdc = yes; then
7859  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h.  */
7862#include <string.h>
7863
7864_ACEOF
7865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7866  $EGREP "memchr" >/dev/null 2>&1; then :
7867
7868else
7869  ac_cv_header_stdc=no
7870fi
7871rm -f conftest*
7872
7873fi
7874
7875if test $ac_cv_header_stdc = yes; then
7876  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h.  */
7879#include <stdlib.h>
7880
7881_ACEOF
7882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7883  $EGREP "free" >/dev/null 2>&1; then :
7884
7885else
7886  ac_cv_header_stdc=no
7887fi
7888rm -f conftest*
7889
7890fi
7891
7892if test $ac_cv_header_stdc = yes; then
7893  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7894  if test "$cross_compiling" = yes; then :
7895  :
7896else
7897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h.  */
7899#include <ctype.h>
7900#include <stdlib.h>
7901#if ((' ' & 0x0FF) == 0x020)
7902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7904#else
7905# define ISLOWER(c) \
7906                   (('a' <= (c) && (c) <= 'i') \
7907                     || ('j' <= (c) && (c) <= 'r') \
7908                     || ('s' <= (c) && (c) <= 'z'))
7909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7910#endif
7911
7912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7913int
7914main ()
7915{
7916  int i;
7917  for (i = 0; i < 256; i++)
7918    if (XOR (islower (i), ISLOWER (i))
7919        || toupper (i) != TOUPPER (i))
7920      return 2;
7921  return 0;
7922}
7923_ACEOF
7924if ac_fn_c_try_run "$LINENO"; then :
7925
7926else
7927  ac_cv_header_stdc=no
7928fi
7929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7930  conftest.$ac_objext conftest.beam conftest.$ac_ext
7931fi
7932
7933fi
7934fi
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7936$as_echo "$ac_cv_header_stdc" >&6; }
7937if test $ac_cv_header_stdc = yes; then
7938
7939$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7940
7941fi
7942
7943# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7944for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7945                  inttypes.h stdint.h unistd.h
7946do :
7947  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7948ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7949"
7950eval as_val=\$$as_ac_Header
7951   if test "x$as_val" = x""yes; then :
7952  cat >>confdefs.h <<_ACEOF
7953#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7954_ACEOF
7955
7956fi
7957
7958done
7959
7960
7961for ac_header in dlfcn.h
7962do :
7963  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7964"
7965if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7966  cat >>confdefs.h <<_ACEOF
7967#define HAVE_DLFCN_H 1
7968_ACEOF
7969
7970fi
7971
7972done
7973
7974
7975
7976ac_ext=cpp
7977ac_cpp='$CXXCPP $CPPFLAGS'
7978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7981if test -z "$CXX"; then
7982  if test -n "$CCC"; then
7983    CXX=$CCC
7984  else
7985    if test -n "$ac_tool_prefix"; then
7986  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7987  do
7988    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7989set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
7992if test "${ac_cv_prog_CXX+set}" = set; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  if test -n "$CXX"; then
7996  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003    for ac_exec_ext in '' $ac_executable_extensions; do
8004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010  done
8011IFS=$as_save_IFS
8012
8013fi
8014fi
8015CXX=$ac_cv_prog_CXX
8016if test -n "$CXX"; then
8017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8018$as_echo "$CXX" >&6; }
8019else
8020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
8022fi
8023
8024
8025    test -n "$CXX" && break
8026  done
8027fi
8028if test -z "$CXX"; then
8029  ac_ct_CXX=$CXX
8030  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8031do
8032  # Extract the first word of "$ac_prog", so it can be a program name with args.
8033set dummy $ac_prog; ac_word=$2
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035$as_echo_n "checking for $ac_word... " >&6; }
8036if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8037  $as_echo_n "(cached) " >&6
8038else
8039  if test -n "$ac_ct_CXX"; then
8040  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8041else
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045  IFS=$as_save_IFS
8046  test -z "$as_dir" && as_dir=.
8047    for ac_exec_ext in '' $ac_executable_extensions; do
8048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049    ac_cv_prog_ac_ct_CXX="$ac_prog"
8050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051    break 2
8052  fi
8053done
8054  done
8055IFS=$as_save_IFS
8056
8057fi
8058fi
8059ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8060if test -n "$ac_ct_CXX"; then
8061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8062$as_echo "$ac_ct_CXX" >&6; }
8063else
8064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
8066fi
8067
8068
8069  test -n "$ac_ct_CXX" && break
8070done
8071
8072  if test "x$ac_ct_CXX" = x; then
8073    CXX="g++"
8074  else
8075    case $cross_compiling:$ac_tool_warned in
8076yes:)
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079ac_tool_warned=yes ;;
8080esac
8081    CXX=$ac_ct_CXX
8082  fi
8083fi
8084
8085  fi
8086fi
8087# Provide some information about the compiler.
8088$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8089set X $ac_compile
8090ac_compiler=$2
8091for ac_option in --version -v -V -qversion; do
8092  { { ac_try="$ac_compiler $ac_option >&5"
8093case "(($ac_try" in
8094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095  *) ac_try_echo=$ac_try;;
8096esac
8097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8098$as_echo "$ac_try_echo"; } >&5
8099  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8100  ac_status=$?
8101  if test -s conftest.err; then
8102    sed '10a\
8103... rest of stderr output deleted ...
8104         10q' conftest.err >conftest.er1
8105    cat conftest.er1 >&5
8106  fi
8107  rm -f conftest.er1 conftest.err
8108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8109  test $ac_status = 0; }
8110done
8111
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8113$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8114if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h.  */
8119
8120int
8121main ()
8122{
8123#ifndef __GNUC__
8124       choke me
8125#endif
8126
8127  ;
8128  return 0;
8129}
8130_ACEOF
8131if ac_fn_cxx_try_compile "$LINENO"; then :
8132  ac_compiler_gnu=yes
8133else
8134  ac_compiler_gnu=no
8135fi
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8138
8139fi
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8141$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8142if test $ac_compiler_gnu = yes; then
8143  GXX=yes
8144else
8145  GXX=
8146fi
8147ac_test_CXXFLAGS=${CXXFLAGS+set}
8148ac_save_CXXFLAGS=$CXXFLAGS
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8150$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8151if test "${ac_cv_prog_cxx_g+set}" = set; then :
8152  $as_echo_n "(cached) " >&6
8153else
8154  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8155   ac_cxx_werror_flag=yes
8156   ac_cv_prog_cxx_g=no
8157   CXXFLAGS="-g"
8158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h.  */
8160
8161int
8162main ()
8163{
8164
8165  ;
8166  return 0;
8167}
8168_ACEOF
8169if ac_fn_cxx_try_compile "$LINENO"; then :
8170  ac_cv_prog_cxx_g=yes
8171else
8172  CXXFLAGS=""
8173      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174/* end confdefs.h.  */
8175
8176int
8177main ()
8178{
8179
8180  ;
8181  return 0;
8182}
8183_ACEOF
8184if ac_fn_cxx_try_compile "$LINENO"; then :
8185
8186else
8187  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8188         CXXFLAGS="-g"
8189         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h.  */
8191
8192int
8193main ()
8194{
8195
8196  ;
8197  return 0;
8198}
8199_ACEOF
8200if ac_fn_cxx_try_compile "$LINENO"; then :
8201  ac_cv_prog_cxx_g=yes
8202fi
8203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204fi
8205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206fi
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8209fi
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8211$as_echo "$ac_cv_prog_cxx_g" >&6; }
8212if test "$ac_test_CXXFLAGS" = set; then
8213  CXXFLAGS=$ac_save_CXXFLAGS
8214elif test $ac_cv_prog_cxx_g = yes; then
8215  if test "$GXX" = yes; then
8216    CXXFLAGS="-g -O2"
8217  else
8218    CXXFLAGS="-g"
8219  fi
8220else
8221  if test "$GXX" = yes; then
8222    CXXFLAGS="-O2"
8223  else
8224    CXXFLAGS=
8225  fi
8226fi
8227ac_ext=c
8228ac_cpp='$CPP $CPPFLAGS'
8229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8231ac_compiler_gnu=$ac_cv_c_compiler_gnu
8232
8233depcc="$CXX"  am_compiler_list=
8234
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8236$as_echo_n "checking dependency style of $depcc... " >&6; }
8237if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8241  # We make a subdir and do the tests there.  Otherwise we can end up
8242  # making bogus files that we don't know about and never remove.  For
8243  # instance it was reported that on HP-UX the gcc test will end up
8244  # making a dummy file named `D' -- because `-MD' means `put the output
8245  # in D'.
8246  mkdir conftest.dir
8247  # Copy depcomp to subdir because otherwise we won't find it if we're
8248  # using a relative directory.
8249  cp "$am_depcomp" conftest.dir
8250  cd conftest.dir
8251  # We will build objects and dependencies in a subdirectory because
8252  # it helps to detect inapplicable dependency modes.  For instance
8253  # both Tru64's cc and ICC support -MD to output dependencies as a
8254  # side effect of compilation, but ICC will put the dependencies in
8255  # the current directory while Tru64 will put them in the object
8256  # directory.
8257  mkdir sub
8258
8259  am_cv_CXX_dependencies_compiler_type=none
8260  if test "$am_compiler_list" = ""; then
8261     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8262  fi
8263  am__universal=false
8264  case " $depcc " in #(
8265     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8266     esac
8267
8268  for depmode in $am_compiler_list; do
8269    # Setup a source with many dependencies, because some compilers
8270    # like to wrap large dependency lists on column 80 (with \), and
8271    # we should not choose a depcomp mode which is confused by this.
8272    #
8273    # We need to recreate these files for each test, as the compiler may
8274    # overwrite some of them when testing with obscure command lines.
8275    # This happens at least with the AIX C compiler.
8276    : > sub/conftest.c
8277    for i in 1 2 3 4 5 6; do
8278      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8279      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8280      # Solaris 8's {/usr,}/bin/sh.
8281      touch sub/conftst$i.h
8282    done
8283    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8284
8285    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8286    # mode.  It turns out that the SunPro C++ compiler does not properly
8287    # handle `-M -o', and we need to detect this.  Also, some Intel
8288    # versions had trouble with output in subdirs
8289    am__obj=sub/conftest.${OBJEXT-o}
8290    am__minus_obj="-o $am__obj"
8291    case $depmode in
8292    gcc)
8293      # This depmode causes a compiler race in universal mode.
8294      test "$am__universal" = false || continue
8295      ;;
8296    nosideeffect)
8297      # after this tag, mechanisms are not by side-effect, so they'll
8298      # only be used when explicitly requested
8299      if test "x$enable_dependency_tracking" = xyes; then
8300        continue
8301      else
8302        break
8303      fi
8304      ;;
8305    msvisualcpp | msvcmsys)
8306      # This compiler won't grok `-c -o', but also, the minuso test has
8307      # not run yet.  These depmodes are late enough in the game, and
8308      # so weak that their functioning should not be impacted.
8309      am__obj=conftest.${OBJEXT-o}
8310      am__minus_obj=
8311      ;;
8312    none) break ;;
8313    esac
8314    if depmode=$depmode \
8315       source=sub/conftest.c object=$am__obj \
8316       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8317       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8318         >/dev/null 2>conftest.err &&
8319       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8320       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8321       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8322       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8323      # icc doesn't choke on unknown options, it will just issue warnings
8324      # or remarks (even with -Werror).  So we grep stderr for any message
8325      # that says an option was ignored or not supported.
8326      # When given -MP, icc 7.0 and 7.1 complain thusly:
8327      #   icc: Command line warning: ignoring option '-M'; no argument required
8328      # The diagnosis changed in icc 8.0:
8329      #   icc: Command line remark: option '-MP' not supported
8330      if (grep 'ignoring option' conftest.err ||
8331          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8332        am_cv_CXX_dependencies_compiler_type=$depmode
8333        break
8334      fi
8335    fi
8336  done
8337
8338  cd ..
8339  rm -rf conftest.dir
8340else
8341  am_cv_CXX_dependencies_compiler_type=none
8342fi
8343
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8346$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8347CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8348
8349 if
8350  test "x$enable_dependency_tracking" != xno \
8351  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8352  am__fastdepCXX_TRUE=
8353  am__fastdepCXX_FALSE='#'
8354else
8355  am__fastdepCXX_TRUE='#'
8356  am__fastdepCXX_FALSE=
8357fi
8358
8359
8360if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8361    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8362    (test "X$CXX" != "Xg++"))) ; then
8363  ac_ext=cpp
8364ac_cpp='$CXXCPP $CPPFLAGS'
8365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8369$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8370if test -z "$CXXCPP"; then
8371  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8372  $as_echo_n "(cached) " >&6
8373else
8374      # Double quotes because CXXCPP needs to be expanded
8375    for CXXCPP in "$CXX -E" "/lib/cpp"
8376    do
8377      ac_preproc_ok=false
8378for ac_cxx_preproc_warn_flag in '' yes
8379do
8380  # Use a header file that comes with gcc, so configuring glibc
8381  # with a fresh cross-compiler works.
8382  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8383  # <limits.h> exists even on freestanding compilers.
8384  # On the NeXT, cc -E runs the code through the compiler's parser,
8385  # not just through cpp. "Syntax error" is here to catch this case.
8386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387/* end confdefs.h.  */
8388#ifdef __STDC__
8389# include <limits.h>
8390#else
8391# include <assert.h>
8392#endif
8393                     Syntax error
8394_ACEOF
8395if ac_fn_cxx_try_cpp "$LINENO"; then :
8396
8397else
8398  # Broken: fails on valid input.
8399continue
8400fi
8401rm -f conftest.err conftest.$ac_ext
8402
8403  # OK, works on sane cases.  Now check whether nonexistent headers
8404  # can be detected and how.
8405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406/* end confdefs.h.  */
8407#include <ac_nonexistent.h>
8408_ACEOF
8409if ac_fn_cxx_try_cpp "$LINENO"; then :
8410  # Broken: success on invalid input.
8411continue
8412else
8413  # Passes both tests.
8414ac_preproc_ok=:
8415break
8416fi
8417rm -f conftest.err conftest.$ac_ext
8418
8419done
8420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8421rm -f conftest.err conftest.$ac_ext
8422if $ac_preproc_ok; then :
8423  break
8424fi
8425
8426    done
8427    ac_cv_prog_CXXCPP=$CXXCPP
8428
8429fi
8430  CXXCPP=$ac_cv_prog_CXXCPP
8431else
8432  ac_cv_prog_CXXCPP=$CXXCPP
8433fi
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8435$as_echo "$CXXCPP" >&6; }
8436ac_preproc_ok=false
8437for ac_cxx_preproc_warn_flag in '' yes
8438do
8439  # Use a header file that comes with gcc, so configuring glibc
8440  # with a fresh cross-compiler works.
8441  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8442  # <limits.h> exists even on freestanding compilers.
8443  # On the NeXT, cc -E runs the code through the compiler's parser,
8444  # not just through cpp. "Syntax error" is here to catch this case.
8445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446/* end confdefs.h.  */
8447#ifdef __STDC__
8448# include <limits.h>
8449#else
8450# include <assert.h>
8451#endif
8452                     Syntax error
8453_ACEOF
8454if ac_fn_cxx_try_cpp "$LINENO"; then :
8455
8456else
8457  # Broken: fails on valid input.
8458continue
8459fi
8460rm -f conftest.err conftest.$ac_ext
8461
8462  # OK, works on sane cases.  Now check whether nonexistent headers
8463  # can be detected and how.
8464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465/* end confdefs.h.  */
8466#include <ac_nonexistent.h>
8467_ACEOF
8468if ac_fn_cxx_try_cpp "$LINENO"; then :
8469  # Broken: success on invalid input.
8470continue
8471else
8472  # Passes both tests.
8473ac_preproc_ok=:
8474break
8475fi
8476rm -f conftest.err conftest.$ac_ext
8477
8478done
8479# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8480rm -f conftest.err conftest.$ac_ext
8481if $ac_preproc_ok; then :
8482
8483else
8484  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8486_lt_caught_CXX_error=yes; }
8487fi
8488
8489ac_ext=c
8490ac_cpp='$CPP $CPPFLAGS'
8491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493ac_compiler_gnu=$ac_cv_c_compiler_gnu
8494
8495else
8496  _lt_caught_CXX_error=yes
8497fi
8498
8499
8500
8501
8502
8503# Set options
8504
8505
8506
8507        enable_dlopen=no
8508
8509
8510
8511            # Check whether --enable-shared was given.
8512if test "${enable_shared+set}" = set; then :
8513  enableval=$enable_shared; p=${PACKAGE-default}
8514    case $enableval in
8515    yes) enable_shared=yes ;;
8516    no) enable_shared=no ;;
8517    *)
8518      enable_shared=no
8519      # Look at the argument we got.  We use all the common list separators.
8520      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8521      for pkg in $enableval; do
8522        IFS="$lt_save_ifs"
8523        if test "X$pkg" = "X$p"; then
8524          enable_shared=yes
8525        fi
8526      done
8527      IFS="$lt_save_ifs"
8528      ;;
8529    esac
8530else
8531  enable_shared=yes
8532fi
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542  # Check whether --enable-static was given.
8543if test "${enable_static+set}" = set; then :
8544  enableval=$enable_static; p=${PACKAGE-default}
8545    case $enableval in
8546    yes) enable_static=yes ;;
8547    no) enable_static=no ;;
8548    *)
8549     enable_static=no
8550      # Look at the argument we got.  We use all the common list separators.
8551      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8552      for pkg in $enableval; do
8553        IFS="$lt_save_ifs"
8554        if test "X$pkg" = "X$p"; then
8555          enable_static=yes
8556        fi
8557      done
8558      IFS="$lt_save_ifs"
8559      ;;
8560    esac
8561else
8562  enable_static=yes
8563fi
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574# Check whether --with-pic was given.
8575if test "${with_pic+set}" = set; then :
8576  withval=$with_pic; pic_mode="$withval"
8577else
8578  pic_mode=default
8579fi
8580
8581
8582test -z "$pic_mode" && pic_mode=default
8583
8584
8585
8586
8587
8588
8589
8590  # Check whether --enable-fast-install was given.
8591if test "${enable_fast_install+set}" = set; then :
8592  enableval=$enable_fast_install; p=${PACKAGE-default}
8593    case $enableval in
8594    yes) enable_fast_install=yes ;;
8595    no) enable_fast_install=no ;;
8596    *)
8597      enable_fast_install=no
8598      # Look at the argument we got.  We use all the common list separators.
8599      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8600      for pkg in $enableval; do
8601        IFS="$lt_save_ifs"
8602        if test "X$pkg" = "X$p"; then
8603          enable_fast_install=yes
8604        fi
8605      done
8606      IFS="$lt_save_ifs"
8607      ;;
8608    esac
8609else
8610  enable_fast_install=yes
8611fi
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623# This can be used to rebuild libtool when needed
8624LIBTOOL_DEPS="$ltmain"
8625
8626# Always use our own libtool.
8627LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653test -z "$LN_S" && LN_S="ln -s"
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668if test -n "${ZSH_VERSION+set}" ; then
8669   setopt NO_GLOB_SUBST
8670fi
8671
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8673$as_echo_n "checking for objdir... " >&6; }
8674if test "${lt_cv_objdir+set}" = set; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677  rm -f .libs 2>/dev/null
8678mkdir .libs 2>/dev/null
8679if test -d .libs; then
8680  lt_cv_objdir=.libs
8681else
8682  # MS-DOS does not allow filenames that begin with a dot.
8683  lt_cv_objdir=_libs
8684fi
8685rmdir .libs 2>/dev/null
8686fi
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8688$as_echo "$lt_cv_objdir" >&6; }
8689objdir=$lt_cv_objdir
8690
8691
8692
8693
8694
8695cat >>confdefs.h <<_ACEOF
8696#define LT_OBJDIR "$lt_cv_objdir/"
8697_ACEOF
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715case $host_os in
8716aix3*)
8717  # AIX sometimes has problems with the GCC collect2 program.  For some
8718  # reason, if we set the COLLECT_NAMES environment variable, the problems
8719  # vanish in a puff of smoke.
8720  if test "X${COLLECT_NAMES+set}" != Xset; then
8721    COLLECT_NAMES=
8722    export COLLECT_NAMES
8723  fi
8724  ;;
8725esac
8726
8727# Sed substitution that helps us do robust quoting.  It backslashifies
8728# metacharacters that are still active within double-quoted strings.
8729sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8730
8731# Same as above, but do not quote variable references.
8732double_quote_subst='s/\(["`\\]\)/\\\1/g'
8733
8734# Sed substitution to delay expansion of an escaped shell variable in a
8735# double_quote_subst'ed string.
8736delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8737
8738# Sed substitution to delay expansion of an escaped single quote.
8739delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8740
8741# Sed substitution to avoid accidental globbing in evaled expressions
8742no_glob_subst='s/\*/\\\*/g'
8743
8744# Global variables:
8745ofile=libtool
8746can_build_shared=yes
8747
8748# All known linkers require a `.a' archive for static linking (except MSVC,
8749# which needs '.lib').
8750libext=a
8751
8752with_gnu_ld="$lt_cv_prog_gnu_ld"
8753
8754old_CC="$CC"
8755old_CFLAGS="$CFLAGS"
8756
8757# Set sane defaults for various variables
8758test -z "$CC" && CC=cc
8759test -z "$LTCC" && LTCC=$CC
8760test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8761test -z "$LD" && LD=ld
8762test -z "$ac_objext" && ac_objext=o
8763
8764for cc_temp in $compiler""; do
8765  case $cc_temp in
8766    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8767    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8768    \-*) ;;
8769    *) break;;
8770  esac
8771done
8772cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8773
8774
8775# Only perform the check for file, if the check method requires it
8776test -z "$MAGIC_CMD" && MAGIC_CMD=file
8777case $deplibs_check_method in
8778file_magic*)
8779  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8781$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8782if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8783  $as_echo_n "(cached) " >&6
8784else
8785  case $MAGIC_CMD in
8786[\\/*] |  ?:[\\/]*)
8787  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8788  ;;
8789*)
8790  lt_save_MAGIC_CMD="$MAGIC_CMD"
8791  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8792  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8793  for ac_dir in $ac_dummy; do
8794    IFS="$lt_save_ifs"
8795    test -z "$ac_dir" && ac_dir=.
8796    if test -f $ac_dir/${ac_tool_prefix}file; then
8797      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8798      if test -n "$file_magic_test_file"; then
8799        case $deplibs_check_method in
8800        "file_magic "*)
8801          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8802          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8803          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8804            $EGREP "$file_magic_regex" > /dev/null; then
8805            :
8806          else
8807            cat <<_LT_EOF 1>&2
8808
8809*** Warning: the command libtool uses to detect shared libraries,
8810*** $file_magic_cmd, produces output that libtool cannot recognize.
8811*** The result is that libtool may fail to recognize shared libraries
8812*** as such.  This will affect the creation of libtool libraries that
8813*** depend on shared libraries, but programs linked with such libtool
8814*** libraries will work regardless of this problem.  Nevertheless, you
8815*** may want to report the problem to your system manager and/or to
8816*** bug-libtool@gnu.org
8817
8818_LT_EOF
8819          fi ;;
8820        esac
8821      fi
8822      break
8823    fi
8824  done
8825  IFS="$lt_save_ifs"
8826  MAGIC_CMD="$lt_save_MAGIC_CMD"
8827  ;;
8828esac
8829fi
8830
8831MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8832if test -n "$MAGIC_CMD"; then
8833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8834$as_echo "$MAGIC_CMD" >&6; }
8835else
8836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837$as_echo "no" >&6; }
8838fi
8839
8840
8841
8842
8843
8844if test -z "$lt_cv_path_MAGIC_CMD"; then
8845  if test -n "$ac_tool_prefix"; then
8846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8847$as_echo_n "checking for file... " >&6; }
8848if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8849  $as_echo_n "(cached) " >&6
8850else
8851  case $MAGIC_CMD in
8852[\\/*] |  ?:[\\/]*)
8853  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8854  ;;
8855*)
8856  lt_save_MAGIC_CMD="$MAGIC_CMD"
8857  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8858  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8859  for ac_dir in $ac_dummy; do
8860    IFS="$lt_save_ifs"
8861    test -z "$ac_dir" && ac_dir=.
8862    if test -f $ac_dir/file; then
8863      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8864      if test -n "$file_magic_test_file"; then
8865        case $deplibs_check_method in
8866        "file_magic "*)
8867          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8868          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8869          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8870            $EGREP "$file_magic_regex" > /dev/null; then
8871            :
8872          else
8873            cat <<_LT_EOF 1>&2
8874
8875*** Warning: the command libtool uses to detect shared libraries,
8876*** $file_magic_cmd, produces output that libtool cannot recognize.
8877*** The result is that libtool may fail to recognize shared libraries
8878*** as such.  This will affect the creation of libtool libraries that
8879*** depend on shared libraries, but programs linked with such libtool
8880*** libraries will work regardless of this problem.  Nevertheless, you
8881*** may want to report the problem to your system manager and/or to
8882*** bug-libtool@gnu.org
8883
8884_LT_EOF
8885          fi ;;
8886        esac
8887      fi
8888      break
8889    fi
8890  done
8891  IFS="$lt_save_ifs"
8892  MAGIC_CMD="$lt_save_MAGIC_CMD"
8893  ;;
8894esac
8895fi
8896
8897MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8898if test -n "$MAGIC_CMD"; then
8899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8900$as_echo "$MAGIC_CMD" >&6; }
8901else
8902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903$as_echo "no" >&6; }
8904fi
8905
8906
8907  else
8908    MAGIC_CMD=:
8909  fi
8910fi
8911
8912  fi
8913  ;;
8914esac
8915
8916# Use C for the default configuration in the libtool script
8917
8918lt_save_CC="$CC"
8919ac_ext=c
8920ac_cpp='$CPP $CPPFLAGS'
8921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923ac_compiler_gnu=$ac_cv_c_compiler_gnu
8924
8925
8926# Source file extension for C test sources.
8927ac_ext=c
8928
8929# Object file extension for compiled C test sources.
8930objext=o
8931objext=$objext
8932
8933# Code to be used in simple compile tests
8934lt_simple_compile_test_code="int some_variable = 0;"
8935
8936# Code to be used in simple link tests
8937lt_simple_link_test_code='int main(){return(0);}'
8938
8939
8940
8941
8942
8943
8944
8945# If no C compiler was specified, use CC.
8946LTCC=${LTCC-"$CC"}
8947
8948# If no C compiler flags were specified, use CFLAGS.
8949LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8950
8951# Allow CC to be a program name with arguments.
8952compiler=$CC
8953
8954# Save the default compiler, since it gets overwritten when the other
8955# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8956compiler_DEFAULT=$CC
8957
8958# save warnings/boilerplate of simple test code
8959ac_outfile=conftest.$ac_objext
8960echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8961eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8962_lt_compiler_boilerplate=`cat conftest.err`
8963$RM conftest*
8964
8965ac_outfile=conftest.$ac_objext
8966echo "$lt_simple_link_test_code" >conftest.$ac_ext
8967eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8968_lt_linker_boilerplate=`cat conftest.err`
8969$RM -r conftest*
8970
8971
8972if test -n "$compiler"; then
8973
8974lt_prog_compiler_no_builtin_flag=
8975
8976if test "$GCC" = yes; then
8977  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8978
8979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8980$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8981if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8982  $as_echo_n "(cached) " >&6
8983else
8984  lt_cv_prog_compiler_rtti_exceptions=no
8985   ac_outfile=conftest.$ac_objext
8986   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8987   lt_compiler_flag="-fno-rtti -fno-exceptions"
8988   # Insert the option either (1) after the last *FLAGS variable, or
8989   # (2) before a word containing "conftest.", or (3) at the end.
8990   # Note that $ac_compile itself does not contain backslashes and begins
8991   # with a dollar sign (not a hyphen), so the echo should work correctly.
8992   # The option is referenced via a variable to avoid confusing sed.
8993   lt_compile=`echo "$ac_compile" | $SED \
8994   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8995   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8996   -e 's:$: $lt_compiler_flag:'`
8997   (eval echo "\"\$as_me:8997: $lt_compile\"" >&5)
8998   (eval "$lt_compile" 2>conftest.err)
8999   ac_status=$?
9000   cat conftest.err >&5
9001   echo "$as_me:9001: \$? = $ac_status" >&5
9002   if (exit $ac_status) && test -s "$ac_outfile"; then
9003     # The compiler can only warn and ignore the option if not recognized
9004     # So say no if there are warnings other than the usual output.
9005     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9006     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9007     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9008       lt_cv_prog_compiler_rtti_exceptions=yes
9009     fi
9010   fi
9011   $RM conftest*
9012
9013fi
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9015$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9016
9017if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9018    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9019else
9020    :
9021fi
9022
9023fi
9024
9025
9026
9027
9028
9029
9030  lt_prog_compiler_wl=
9031lt_prog_compiler_pic=
9032lt_prog_compiler_static=
9033
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9035$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9036
9037  if test "$GCC" = yes; then
9038    lt_prog_compiler_wl='-Wl,'
9039    lt_prog_compiler_static='-static'
9040
9041    case $host_os in
9042      aix*)
9043      # All AIX code is PIC.
9044      if test "$host_cpu" = ia64; then
9045        # AIX 5 now supports IA64 processor
9046        lt_prog_compiler_static='-Bstatic'
9047      fi
9048      ;;
9049
9050    amigaos*)
9051      case $host_cpu in
9052      powerpc)
9053            # see comment about AmigaOS4 .so support
9054            lt_prog_compiler_pic='-fPIC'
9055        ;;
9056      m68k)
9057            # FIXME: we need at least 68020 code to build shared libraries, but
9058            # adding the `-m68020' flag to GCC prevents building anything better,
9059            # like `-m68040'.
9060            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9061        ;;
9062      esac
9063      ;;
9064
9065    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9066      # PIC is the default for these OSes.
9067      ;;
9068
9069    mingw* | cygwin* | pw32* | os2* | cegcc*)
9070      # This hack is so that the source file can tell whether it is being
9071      # built for inclusion in a dll (and should export symbols for example).
9072      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9073      # (--disable-auto-import) libraries
9074      lt_prog_compiler_pic='-DDLL_EXPORT'
9075      ;;
9076
9077    darwin* | rhapsody*)
9078      # PIC is the default on this platform
9079      # Common symbols not allowed in MH_DYLIB files
9080      lt_prog_compiler_pic='-fno-common'
9081      ;;
9082
9083    hpux*)
9084      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9085      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9086      # sets the default TLS model and affects inlining.
9087      case $host_cpu in
9088      hppa*64*)
9089        # +Z the default
9090        ;;
9091      *)
9092        lt_prog_compiler_pic='-fPIC'
9093        ;;
9094      esac
9095      ;;
9096
9097    interix[3-9]*)
9098      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9099      # Instead, we relocate shared libraries at runtime.
9100      ;;
9101
9102    msdosdjgpp*)
9103      # Just because we use GCC doesn't mean we suddenly get shared libraries
9104      # on systems that don't support them.
9105      lt_prog_compiler_can_build_shared=no
9106      enable_shared=no
9107      ;;
9108
9109    *nto* | *qnx*)
9110      # QNX uses GNU C++, but need to define -shared option too, otherwise
9111      # it will coredump.
9112      lt_prog_compiler_pic='-fPIC -shared'
9113      ;;
9114
9115    sysv4*MP*)
9116      if test -d /usr/nec; then
9117        lt_prog_compiler_pic=-Kconform_pic
9118      fi
9119      ;;
9120
9121    *)
9122      lt_prog_compiler_pic='-fPIC'
9123      ;;
9124    esac
9125  else
9126    # PORTME Check for flag to pass linker flags through the system compiler.
9127    case $host_os in
9128    aix*)
9129      lt_prog_compiler_wl='-Wl,'
9130      if test "$host_cpu" = ia64; then
9131        # AIX 5 now supports IA64 processor
9132        lt_prog_compiler_static='-Bstatic'
9133      else
9134        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9135      fi
9136      ;;
9137
9138    mingw* | cygwin* | pw32* | os2* | cegcc*)
9139      # This hack is so that the source file can tell whether it is being
9140      # built for inclusion in a dll (and should export symbols for example).
9141      lt_prog_compiler_pic='-DDLL_EXPORT'
9142      ;;
9143
9144    hpux9* | hpux10* | hpux11*)
9145      lt_prog_compiler_wl='-Wl,'
9146      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9147      # not for PA HP-UX.
9148      case $host_cpu in
9149      hppa*64*|ia64*)
9150        # +Z the default
9151        ;;
9152      *)
9153        lt_prog_compiler_pic='+Z'
9154        ;;
9155      esac
9156      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9157      lt_prog_compiler_static='${wl}-a ${wl}archive'
9158      ;;
9159
9160    irix5* | irix6* | nonstopux*)
9161      lt_prog_compiler_wl='-Wl,'
9162      # PIC (with -KPIC) is the default.
9163      lt_prog_compiler_static='-non_shared'
9164      ;;
9165
9166    linux* | k*bsd*-gnu)
9167      case $cc_basename in
9168      # old Intel for x86_64 which still supported -KPIC.
9169      ecc*)
9170        lt_prog_compiler_wl='-Wl,'
9171        lt_prog_compiler_pic='-KPIC'
9172        lt_prog_compiler_static='-static'
9173        ;;
9174      # icc used to be incompatible with GCC.
9175      # ICC 10 doesn't accept -KPIC any more.
9176      icc* | ifort*)
9177        lt_prog_compiler_wl='-Wl,'
9178        lt_prog_compiler_pic='-fPIC'
9179        lt_prog_compiler_static='-static'
9180        ;;
9181      # Lahey Fortran 8.1.
9182      lf95*)
9183        lt_prog_compiler_wl='-Wl,'
9184        lt_prog_compiler_pic='--shared'
9185        lt_prog_compiler_static='--static'
9186        ;;
9187      pgcc* | pgf77* | pgf90* | pgf95*)
9188        # Portland Group compilers (*not* the Pentium gcc compiler,
9189        # which looks to be a dead project)
9190        lt_prog_compiler_wl='-Wl,'
9191        lt_prog_compiler_pic='-fpic'
9192        lt_prog_compiler_static='-Bstatic'
9193        ;;
9194      ccc*)
9195        lt_prog_compiler_wl='-Wl,'
9196        # All Alpha code is PIC.
9197        lt_prog_compiler_static='-non_shared'
9198        ;;
9199      xl*)
9200        # IBM XL C 8.0/Fortran 10.1 on PPC
9201        lt_prog_compiler_wl='-Wl,'
9202        lt_prog_compiler_pic='-qpic'
9203        lt_prog_compiler_static='-qstaticlink'
9204        ;;
9205      *)
9206        case `$CC -V 2>&1 | sed 5q` in
9207        *Sun\ C*)
9208          # Sun C 5.9
9209          lt_prog_compiler_pic='-KPIC'
9210          lt_prog_compiler_static='-Bstatic'
9211          lt_prog_compiler_wl='-Wl,'
9212          ;;
9213        *Sun\ F*)
9214          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9215          lt_prog_compiler_pic='-KPIC'
9216          lt_prog_compiler_static='-Bstatic'
9217          lt_prog_compiler_wl=''
9218          ;;
9219        esac
9220        ;;
9221      esac
9222      ;;
9223
9224    newsos6)
9225      lt_prog_compiler_pic='-KPIC'
9226      lt_prog_compiler_static='-Bstatic'
9227      ;;
9228
9229    *nto* | *qnx*)
9230      # QNX uses GNU C++, but need to define -shared option too, otherwise
9231      # it will coredump.
9232      lt_prog_compiler_pic='-fPIC -shared'
9233      ;;
9234
9235    osf3* | osf4* | osf5*)
9236      lt_prog_compiler_wl='-Wl,'
9237      # All OSF/1 code is PIC.
9238      lt_prog_compiler_static='-non_shared'
9239      ;;
9240
9241    rdos*)
9242      lt_prog_compiler_static='-non_shared'
9243      ;;
9244
9245    solaris*)
9246      lt_prog_compiler_pic='-KPIC'
9247      lt_prog_compiler_static='-Bstatic'
9248      case $cc_basename in
9249      f77* | f90* | f95*)
9250        lt_prog_compiler_wl='-Qoption ld ';;
9251      *)
9252        lt_prog_compiler_wl='-Wl,';;
9253      esac
9254      ;;
9255
9256    sunos4*)
9257      lt_prog_compiler_wl='-Qoption ld '
9258      lt_prog_compiler_pic='-PIC'
9259      lt_prog_compiler_static='-Bstatic'
9260      ;;
9261
9262    sysv4 | sysv4.2uw2* | sysv4.3*)
9263      lt_prog_compiler_wl='-Wl,'
9264      lt_prog_compiler_pic='-KPIC'
9265      lt_prog_compiler_static='-Bstatic'
9266      ;;
9267
9268    sysv4*MP*)
9269      if test -d /usr/nec ;then
9270        lt_prog_compiler_pic='-Kconform_pic'
9271        lt_prog_compiler_static='-Bstatic'
9272      fi
9273      ;;
9274
9275    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9276      lt_prog_compiler_wl='-Wl,'
9277      lt_prog_compiler_pic='-KPIC'
9278      lt_prog_compiler_static='-Bstatic'
9279      ;;
9280
9281    unicos*)
9282      lt_prog_compiler_wl='-Wl,'
9283      lt_prog_compiler_can_build_shared=no
9284      ;;
9285
9286    uts4*)
9287      lt_prog_compiler_pic='-pic'
9288      lt_prog_compiler_static='-Bstatic'
9289      ;;
9290
9291    *)
9292      lt_prog_compiler_can_build_shared=no
9293      ;;
9294    esac
9295  fi
9296
9297case $host_os in
9298  # For platforms which do not support PIC, -DPIC is meaningless:
9299  *djgpp*)
9300    lt_prog_compiler_pic=
9301    ;;
9302  *)
9303    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9304    ;;
9305esac
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9307$as_echo "$lt_prog_compiler_pic" >&6; }
9308
9309
9310
9311
9312
9313
9314#
9315# Check to make sure the PIC flag actually works.
9316#
9317if test -n "$lt_prog_compiler_pic"; then
9318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9319$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9320if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9321  $as_echo_n "(cached) " >&6
9322else
9323  lt_cv_prog_compiler_pic_works=no
9324   ac_outfile=conftest.$ac_objext
9325   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9326   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9327   # Insert the option either (1) after the last *FLAGS variable, or
9328   # (2) before a word containing "conftest.", or (3) at the end.
9329   # Note that $ac_compile itself does not contain backslashes and begins
9330   # with a dollar sign (not a hyphen), so the echo should work correctly.
9331   # The option is referenced via a variable to avoid confusing sed.
9332   lt_compile=`echo "$ac_compile" | $SED \
9333   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9334   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9335   -e 's:$: $lt_compiler_flag:'`
9336   (eval echo "\"\$as_me:9336: $lt_compile\"" >&5)
9337   (eval "$lt_compile" 2>conftest.err)
9338   ac_status=$?
9339   cat conftest.err >&5
9340   echo "$as_me:9340: \$? = $ac_status" >&5
9341   if (exit $ac_status) && test -s "$ac_outfile"; then
9342     # The compiler can only warn and ignore the option if not recognized
9343     # So say no if there are warnings other than the usual output.
9344     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9345     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9346     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9347       lt_cv_prog_compiler_pic_works=yes
9348     fi
9349   fi
9350   $RM conftest*
9351
9352fi
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9354$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9355
9356if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9357    case $lt_prog_compiler_pic in
9358     "" | " "*) ;;
9359     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9360     esac
9361else
9362    lt_prog_compiler_pic=
9363     lt_prog_compiler_can_build_shared=no
9364fi
9365
9366fi
9367
9368
9369
9370
9371
9372
9373#
9374# Check to make sure the static flag actually works.
9375#
9376wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9378$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9379if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9380  $as_echo_n "(cached) " >&6
9381else
9382  lt_cv_prog_compiler_static_works=no
9383   save_LDFLAGS="$LDFLAGS"
9384   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9385   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9386   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9387     # The linker can only warn and ignore the option if not recognized
9388     # So say no if there are warnings
9389     if test -s conftest.err; then
9390       # Append any errors to the config.log.
9391       cat conftest.err 1>&5
9392       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9393       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9394       if diff conftest.exp conftest.er2 >/dev/null; then
9395         lt_cv_prog_compiler_static_works=yes
9396       fi
9397     else
9398       lt_cv_prog_compiler_static_works=yes
9399     fi
9400   fi
9401   $RM -r conftest*
9402   LDFLAGS="$save_LDFLAGS"
9403
9404fi
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9406$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9407
9408if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9409    :
9410else
9411    lt_prog_compiler_static=
9412fi
9413
9414
9415
9416
9417
9418
9419
9420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9421$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9422if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9423  $as_echo_n "(cached) " >&6
9424else
9425  lt_cv_prog_compiler_c_o=no
9426   $RM -r conftest 2>/dev/null
9427   mkdir conftest
9428   cd conftest
9429   mkdir out
9430   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9431
9432   lt_compiler_flag="-o out/conftest2.$ac_objext"
9433   # Insert the option either (1) after the last *FLAGS variable, or
9434   # (2) before a word containing "conftest.", or (3) at the end.
9435   # Note that $ac_compile itself does not contain backslashes and begins
9436   # with a dollar sign (not a hyphen), so the echo should work correctly.
9437   lt_compile=`echo "$ac_compile" | $SED \
9438   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9439   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9440   -e 's:$: $lt_compiler_flag:'`
9441   (eval echo "\"\$as_me:9441: $lt_compile\"" >&5)
9442   (eval "$lt_compile" 2>out/conftest.err)
9443   ac_status=$?
9444   cat out/conftest.err >&5
9445   echo "$as_me:9445: \$? = $ac_status" >&5
9446   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9447   then
9448     # The compiler can only warn and ignore the option if not recognized
9449     # So say no if there are warnings
9450     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9451     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9452     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9453       lt_cv_prog_compiler_c_o=yes
9454     fi
9455   fi
9456   chmod u+w . 2>&5
9457   $RM conftest*
9458   # SGI C++ compiler will create directory out/ii_files/ for
9459   # template instantiation
9460   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9461   $RM out/* && rmdir out
9462   cd ..
9463   $RM -r conftest
9464   $RM conftest*
9465
9466fi
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9468$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9469
9470
9471
9472
9473
9474
9475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9476$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9477if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9478  $as_echo_n "(cached) " >&6
9479else
9480  lt_cv_prog_compiler_c_o=no
9481   $RM -r conftest 2>/dev/null
9482   mkdir conftest
9483   cd conftest
9484   mkdir out
9485   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9486
9487   lt_compiler_flag="-o out/conftest2.$ac_objext"
9488   # Insert the option either (1) after the last *FLAGS variable, or
9489   # (2) before a word containing "conftest.", or (3) at the end.
9490   # Note that $ac_compile itself does not contain backslashes and begins
9491   # with a dollar sign (not a hyphen), so the echo should work correctly.
9492   lt_compile=`echo "$ac_compile" | $SED \
9493   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9494   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9495   -e 's:$: $lt_compiler_flag:'`
9496   (eval echo "\"\$as_me:9496: $lt_compile\"" >&5)
9497   (eval "$lt_compile" 2>out/conftest.err)
9498   ac_status=$?
9499   cat out/conftest.err >&5
9500   echo "$as_me:9500: \$? = $ac_status" >&5
9501   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9502   then
9503     # The compiler can only warn and ignore the option if not recognized
9504     # So say no if there are warnings
9505     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9506     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9507     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9508       lt_cv_prog_compiler_c_o=yes
9509     fi
9510   fi
9511   chmod u+w . 2>&5
9512   $RM conftest*
9513   # SGI C++ compiler will create directory out/ii_files/ for
9514   # template instantiation
9515   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9516   $RM out/* && rmdir out
9517   cd ..
9518   $RM -r conftest
9519   $RM conftest*
9520
9521fi
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9523$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9524
9525
9526
9527
9528hard_links="nottested"
9529if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9530  # do not overwrite the value of need_locks provided by the user
9531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9532$as_echo_n "checking if we can lock with hard links... " >&6; }
9533  hard_links=yes
9534  $RM conftest*
9535  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9536  touch conftest.a
9537  ln conftest.a conftest.b 2>&5 || hard_links=no
9538  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9540$as_echo "$hard_links" >&6; }
9541  if test "$hard_links" = no; then
9542    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9543$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9544    need_locks=warn
9545  fi
9546else
9547  need_locks=no
9548fi
9549
9550
9551
9552
9553
9554
9555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9556$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9557
9558  runpath_var=
9559  allow_undefined_flag=
9560  always_export_symbols=no
9561  archive_cmds=
9562  archive_expsym_cmds=
9563  compiler_needs_object=no
9564  enable_shared_with_static_runtimes=no
9565  export_dynamic_flag_spec=
9566  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9567  hardcode_automatic=no
9568  hardcode_direct=no
9569  hardcode_direct_absolute=no
9570  hardcode_libdir_flag_spec=
9571  hardcode_libdir_flag_spec_ld=
9572  hardcode_libdir_separator=
9573  hardcode_minus_L=no
9574  hardcode_shlibpath_var=unsupported
9575  inherit_rpath=no
9576  link_all_deplibs=unknown
9577  module_cmds=
9578  module_expsym_cmds=
9579  old_archive_from_new_cmds=
9580  old_archive_from_expsyms_cmds=
9581  thread_safe_flag_spec=
9582  whole_archive_flag_spec=
9583  # include_expsyms should be a list of space-separated symbols to be *always*
9584  # included in the symbol list
9585  include_expsyms=
9586  # exclude_expsyms can be an extended regexp of symbols to exclude
9587  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9588  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9589  # as well as any symbol that contains `d'.
9590  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9591  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9592  # platforms (ab)use it in PIC code, but their linkers get confused if
9593  # the symbol is explicitly referenced.  Since portable code cannot
9594  # rely on this symbol name, it's probably fine to never include it in
9595  # preloaded symbol tables.
9596  # Exclude shared library initialization/finalization symbols.
9597  extract_expsyms_cmds=
9598
9599  case $host_os in
9600  cygwin* | mingw* | pw32* | cegcc*)
9601    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9602    # When not using gcc, we currently assume that we are using
9603    # Microsoft Visual C++.
9604    if test "$GCC" != yes; then
9605      with_gnu_ld=no
9606    fi
9607    ;;
9608  interix*)
9609    # we just hope/assume this is gcc and not c89 (= MSVC++)
9610    with_gnu_ld=yes
9611    ;;
9612  openbsd*)
9613    with_gnu_ld=no
9614    ;;
9615  esac
9616
9617  ld_shlibs=yes
9618  if test "$with_gnu_ld" = yes; then
9619    # If archive_cmds runs LD, not CC, wlarc should be empty
9620    wlarc='${wl}'
9621
9622    # Set some defaults for GNU ld with shared library support. These
9623    # are reset later if shared libraries are not supported. Putting them
9624    # here allows them to be overridden if necessary.
9625    runpath_var=LD_RUN_PATH
9626    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627    export_dynamic_flag_spec='${wl}--export-dynamic'
9628    # ancient GNU ld didn't support --whole-archive et. al.
9629    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9630      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9631    else
9632      whole_archive_flag_spec=
9633    fi
9634    supports_anon_versioning=no
9635    case `$LD -v 2>&1` in
9636      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9637      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9638      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9639      *\ 2.11.*) ;; # other 2.11 versions
9640      *) supports_anon_versioning=yes ;;
9641    esac
9642
9643    # See if GNU ld supports shared libraries.
9644    case $host_os in
9645    aix[3-9]*)
9646      # On AIX/PPC, the GNU linker is very broken
9647      if test "$host_cpu" != ia64; then
9648        ld_shlibs=no
9649        cat <<_LT_EOF 1>&2
9650
9651*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9652*** to be unable to reliably create shared libraries on AIX.
9653*** Therefore, libtool is disabling shared libraries support.  If you
9654*** really care for shared libraries, you may want to modify your PATH
9655*** so that a non-GNU linker is found, and then restart.
9656
9657_LT_EOF
9658      fi
9659      ;;
9660
9661    amigaos*)
9662      case $host_cpu in
9663      powerpc)
9664            # see comment about AmigaOS4 .so support
9665            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666            archive_expsym_cmds=''
9667        ;;
9668      m68k)
9669            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)'
9670            hardcode_libdir_flag_spec='-L$libdir'
9671            hardcode_minus_L=yes
9672        ;;
9673      esac
9674      ;;
9675
9676    beos*)
9677      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9678        allow_undefined_flag=unsupported
9679        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9680        # support --undefined.  This deserves some investigation.  FIXME
9681        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682      else
9683        ld_shlibs=no
9684      fi
9685      ;;
9686
9687    cygwin* | mingw* | pw32* | cegcc*)
9688      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9689      # as there is no search path for DLLs.
9690      hardcode_libdir_flag_spec='-L$libdir'
9691      allow_undefined_flag=unsupported
9692      always_export_symbols=no
9693      enable_shared_with_static_runtimes=yes
9694      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9695
9696      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9697        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9698        # If the export-symbols file already is a .def file (1st line
9699        # is EXPORTS), use it as is; otherwise, prepend...
9700        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9701          cp $export_symbols $output_objdir/$soname.def;
9702        else
9703          echo EXPORTS > $output_objdir/$soname.def;
9704          cat $export_symbols >> $output_objdir/$soname.def;
9705        fi~
9706        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9707      else
9708        ld_shlibs=no
9709      fi
9710      ;;
9711
9712    interix[3-9]*)
9713      hardcode_direct=no
9714      hardcode_shlibpath_var=no
9715      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9716      export_dynamic_flag_spec='${wl}-E'
9717      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9718      # Instead, shared libraries are loaded at an image base (0x10000000 by
9719      # default) and relocated if they conflict, which is a slow very memory
9720      # consuming and fragmenting process.  To avoid this, we pick a random,
9721      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9722      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9723      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9724      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'
9725      ;;
9726
9727    gnu* | linux* | tpf* | k*bsd*-gnu)
9728      tmp_diet=no
9729      if test "$host_os" = linux-dietlibc; then
9730        case $cc_basename in
9731          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9732        esac
9733      fi
9734      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9735         && test "$tmp_diet" = no
9736      then
9737        tmp_addflag=
9738        tmp_sharedflag='-shared'
9739        case $cc_basename,$host_cpu in
9740        pgcc*)                          # Portland Group C compiler
9741          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9742          tmp_addflag=' $pic_flag'
9743          ;;
9744        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9745          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9746          tmp_addflag=' $pic_flag -Mnomain' ;;
9747        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9748          tmp_addflag=' -i_dynamic' ;;
9749        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9750          tmp_addflag=' -i_dynamic -nofor_main' ;;
9751        ifc* | ifort*)                  # Intel Fortran compiler
9752          tmp_addflag=' -nofor_main' ;;
9753        lf95*)                          # Lahey Fortran 8.1
9754          whole_archive_flag_spec=
9755          tmp_sharedflag='--shared' ;;
9756        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9757          tmp_sharedflag='-qmkshrobj'
9758          tmp_addflag= ;;
9759        esac
9760        case `$CC -V 2>&1 | sed 5q` in
9761        *Sun\ C*)                       # Sun C 5.9
9762          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9763          compiler_needs_object=yes
9764          tmp_sharedflag='-G' ;;
9765        *Sun\ F*)                       # Sun Fortran 8.3
9766          tmp_sharedflag='-G' ;;
9767        esac
9768        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9769
9770        if test "x$supports_anon_versioning" = xyes; then
9771          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9772            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9773            echo "local: *; };" >> $output_objdir/$libname.ver~
9774            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9775        fi
9776
9777        case $cc_basename in
9778        xlf*)
9779          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9780          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9781          hardcode_libdir_flag_spec=
9782          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9783          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9784          if test "x$supports_anon_versioning" = xyes; then
9785            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9786              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9787              echo "local: *; };" >> $output_objdir/$libname.ver~
9788              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9789          fi
9790          ;;
9791        esac
9792      else
9793        ld_shlibs=no
9794      fi
9795      ;;
9796
9797    netbsd*)
9798      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9799        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9800        wlarc=
9801      else
9802        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9803        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9804      fi
9805      ;;
9806
9807    solaris*)
9808      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9809        ld_shlibs=no
9810        cat <<_LT_EOF 1>&2
9811
9812*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9813*** create shared libraries on Solaris systems.  Therefore, libtool
9814*** is disabling shared libraries support.  We urge you to upgrade GNU
9815*** binutils to release 2.9.1 or newer.  Another option is to modify
9816*** your PATH or compiler configuration so that the native linker is
9817*** used, and then restart.
9818
9819_LT_EOF
9820      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9821        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9823      else
9824        ld_shlibs=no
9825      fi
9826      ;;
9827
9828    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9829      case `$LD -v 2>&1` in
9830        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9831        ld_shlibs=no
9832        cat <<_LT_EOF 1>&2
9833
9834*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9835*** reliably create shared libraries on SCO systems.  Therefore, libtool
9836*** is disabling shared libraries support.  We urge you to upgrade GNU
9837*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9838*** your PATH or compiler configuration so that the native linker is
9839*** used, and then restart.
9840
9841_LT_EOF
9842        ;;
9843        *)
9844          # For security reasons, it is highly recommended that you always
9845          # use absolute paths for naming shared libraries, and exclude the
9846          # DT_RUNPATH tag from executables and libraries.  But doing so
9847          # requires that you compile everything twice, which is a pain.
9848          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9849            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852          else
9853            ld_shlibs=no
9854          fi
9855        ;;
9856      esac
9857      ;;
9858
9859    sunos4*)
9860      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9861      wlarc=
9862      hardcode_direct=yes
9863      hardcode_shlibpath_var=no
9864      ;;
9865
9866    *)
9867      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9868        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9869        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9870      else
9871        ld_shlibs=no
9872      fi
9873      ;;
9874    esac
9875
9876    if test "$ld_shlibs" = no; then
9877      runpath_var=
9878      hardcode_libdir_flag_spec=
9879      export_dynamic_flag_spec=
9880      whole_archive_flag_spec=
9881    fi
9882  else
9883    # PORTME fill in a description of your system's linker (not GNU ld)
9884    case $host_os in
9885    aix3*)
9886      allow_undefined_flag=unsupported
9887      always_export_symbols=yes
9888      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'
9889      # Note: this linker hardcodes the directories in LIBPATH if there
9890      # are no directories specified by -L.
9891      hardcode_minus_L=yes
9892      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9893        # Neither direct hardcoding nor static linking is supported with a
9894        # broken collect2.
9895        hardcode_direct=unsupported
9896      fi
9897      ;;
9898
9899    aix[4-9]*)
9900      if test "$host_cpu" = ia64; then
9901        # On IA64, the linker does run time linking by default, so we don't
9902        # have to do anything special.
9903        aix_use_runtimelinking=no
9904        exp_sym_flag='-Bexport'
9905        no_entry_flag=""
9906      else
9907        # If we're using GNU nm, then we don't want the "-C" option.
9908        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9909        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9910          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9911        else
9912          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'
9913        fi
9914        aix_use_runtimelinking=no
9915
9916        # Test if we are trying to use run time linking or normal
9917        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9918        # need to do runtime linking.
9919        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9920          for ld_flag in $LDFLAGS; do
9921          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9922            aix_use_runtimelinking=yes
9923            break
9924          fi
9925          done
9926          ;;
9927        esac
9928
9929        exp_sym_flag='-bexport'
9930        no_entry_flag='-bnoentry'
9931      fi
9932
9933      # When large executables or shared objects are built, AIX ld can
9934      # have problems creating the table of contents.  If linking a library
9935      # or program results in "error TOC overflow" add -mminimal-toc to
9936      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9937      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9938
9939      archive_cmds=''
9940      hardcode_direct=yes
9941      hardcode_direct_absolute=yes
9942      hardcode_libdir_separator=':'
9943      link_all_deplibs=yes
9944      file_list_spec='${wl}-f,'
9945
9946      if test "$GCC" = yes; then
9947        case $host_os in aix4.[012]|aix4.[012].*)
9948        # We only want to do this on AIX 4.2 and lower, the check
9949        # below for broken collect2 doesn't work under 4.3+
9950          collect2name=`${CC} -print-prog-name=collect2`
9951          if test -f "$collect2name" &&
9952           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9953          then
9954          # We have reworked collect2
9955          :
9956          else
9957          # We have old collect2
9958          hardcode_direct=unsupported
9959          # It fails to find uninstalled libraries when the uninstalled
9960          # path is not listed in the libpath.  Setting hardcode_minus_L
9961          # to unsupported forces relinking
9962          hardcode_minus_L=yes
9963          hardcode_libdir_flag_spec='-L$libdir'
9964          hardcode_libdir_separator=
9965          fi
9966          ;;
9967        esac
9968        shared_flag='-shared'
9969        if test "$aix_use_runtimelinking" = yes; then
9970          shared_flag="$shared_flag "'${wl}-G'
9971        fi
9972      else
9973        # not using gcc
9974        if test "$host_cpu" = ia64; then
9975        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9976        # chokes on -Wl,-G. The following line is correct:
9977          shared_flag='-G'
9978        else
9979          if test "$aix_use_runtimelinking" = yes; then
9980            shared_flag='${wl}-G'
9981          else
9982            shared_flag='${wl}-bM:SRE'
9983          fi
9984        fi
9985      fi
9986
9987      export_dynamic_flag_spec='${wl}-bexpall'
9988      # It seems that -bexpall does not export symbols beginning with
9989      # underscore (_), so it is better to generate a list of symbols to export.
9990      always_export_symbols=yes
9991      if test "$aix_use_runtimelinking" = yes; then
9992        # Warning - without using the other runtime loading flags (-brtl),
9993        # -berok will link without error, but may produce a broken library.
9994        allow_undefined_flag='-berok'
9995        # Determine the default libpath from the value encoded in an
9996        # empty executable.
9997        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998/* end confdefs.h.  */
9999
10000int
10001main ()
10002{
10003
10004  ;
10005  return 0;
10006}
10007_ACEOF
10008if ac_fn_c_try_link "$LINENO"; then :
10009
10010lt_aix_libpath_sed='
10011    /Import File Strings/,/^$/ {
10012        /^0/ {
10013            s/^0  *\(.*\)$/\1/
10014            p
10015        }
10016    }'
10017aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10018# Check for a 64-bit object if we didn't find anything.
10019if test -z "$aix_libpath"; then
10020  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10021fi
10022fi
10023rm -f core conftest.err conftest.$ac_objext \
10024    conftest$ac_exeext conftest.$ac_ext
10025if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10026
10027        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10028        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10029      else
10030        if test "$host_cpu" = ia64; then
10031          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10032          allow_undefined_flag="-z nodefs"
10033          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"
10034        else
10035         # Determine the default libpath from the value encoded in an
10036         # empty executable.
10037         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038/* end confdefs.h.  */
10039
10040int
10041main ()
10042{
10043
10044  ;
10045  return 0;
10046}
10047_ACEOF
10048if ac_fn_c_try_link "$LINENO"; then :
10049
10050lt_aix_libpath_sed='
10051    /Import File Strings/,/^$/ {
10052        /^0/ {
10053            s/^0  *\(.*\)$/\1/
10054            p
10055        }
10056    }'
10057aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10058# Check for a 64-bit object if we didn't find anything.
10059if test -z "$aix_libpath"; then
10060  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10061fi
10062fi
10063rm -f core conftest.err conftest.$ac_objext \
10064    conftest$ac_exeext conftest.$ac_ext
10065if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10066
10067         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10068          # Warning - without using the other run time loading flags,
10069          # -berok will link without error, but may produce a broken library.
10070          no_undefined_flag=' ${wl}-bernotok'
10071          allow_undefined_flag=' ${wl}-berok'
10072          # Exported symbols can be pulled into shared objects from archives
10073          whole_archive_flag_spec='$convenience'
10074          archive_cmds_need_lc=yes
10075          # This is similar to how AIX traditionally builds its shared libraries.
10076          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'
10077        fi
10078      fi
10079      ;;
10080
10081    amigaos*)
10082      case $host_cpu in
10083      powerpc)
10084            # see comment about AmigaOS4 .so support
10085            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086            archive_expsym_cmds=''
10087        ;;
10088      m68k)
10089            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)'
10090            hardcode_libdir_flag_spec='-L$libdir'
10091            hardcode_minus_L=yes
10092        ;;
10093      esac
10094      ;;
10095
10096    bsdi[45]*)
10097      export_dynamic_flag_spec=-rdynamic
10098      ;;
10099
10100    cygwin* | mingw* | pw32* | cegcc*)
10101      # When not using gcc, we currently assume that we are using
10102      # Microsoft Visual C++.
10103      # hardcode_libdir_flag_spec is actually meaningless, as there is
10104      # no search path for DLLs.
10105      hardcode_libdir_flag_spec=' '
10106      allow_undefined_flag=unsupported
10107      # Tell ltmain to make .lib files, not .a files.
10108      libext=lib
10109      # Tell ltmain to make .dll files, not .so files.
10110      shrext_cmds=".dll"
10111      # FIXME: Setting linknames here is a bad hack.
10112      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10113      # The linker will automatically build a .lib file if we build a DLL.
10114      old_archive_from_new_cmds='true'
10115      # FIXME: Should let the user specify the lib program.
10116      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10117      fix_srcfile_path='`cygpath -w "$srcfile"`'
10118      enable_shared_with_static_runtimes=yes
10119      ;;
10120
10121    darwin* | rhapsody*)
10122
10123
10124  archive_cmds_need_lc=no
10125  hardcode_direct=no
10126  hardcode_automatic=yes
10127  hardcode_shlibpath_var=unsupported
10128  whole_archive_flag_spec=''
10129  link_all_deplibs=yes
10130  allow_undefined_flag="$_lt_dar_allow_undefined"
10131  case $cc_basename in
10132     ifort*) _lt_dar_can_shared=yes ;;
10133     *) _lt_dar_can_shared=$GCC ;;
10134  esac
10135  if test "$_lt_dar_can_shared" = "yes"; then
10136    output_verbose_link_cmd=echo
10137    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10138    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10139    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}"
10140    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}"
10141
10142  else
10143  ld_shlibs=no
10144  fi
10145
10146      ;;
10147
10148    dgux*)
10149      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150      hardcode_libdir_flag_spec='-L$libdir'
10151      hardcode_shlibpath_var=no
10152      ;;
10153
10154    freebsd1*)
10155      ld_shlibs=no
10156      ;;
10157
10158    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10159    # support.  Future versions do this automatically, but an explicit c++rt0.o
10160    # does not break anything, and helps significantly (at the cost of a little
10161    # extra space).
10162    freebsd2.2*)
10163      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10164      hardcode_libdir_flag_spec='-R$libdir'
10165      hardcode_direct=yes
10166      hardcode_shlibpath_var=no
10167      ;;
10168
10169    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10170    freebsd2*)
10171      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10172      hardcode_direct=yes
10173      hardcode_minus_L=yes
10174      hardcode_shlibpath_var=no
10175      ;;
10176
10177    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10178    freebsd* | dragonfly*)
10179      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10180      hardcode_libdir_flag_spec='-R$libdir'
10181      hardcode_direct=yes
10182      hardcode_shlibpath_var=no
10183      ;;
10184
10185    hpux9*)
10186      if test "$GCC" = yes; then
10187        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10188      else
10189        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'
10190      fi
10191      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10192      hardcode_libdir_separator=:
10193      hardcode_direct=yes
10194
10195      # hardcode_minus_L: Not really in the search PATH,
10196      # but as the default location of the library.
10197      hardcode_minus_L=yes
10198      export_dynamic_flag_spec='${wl}-E'
10199      ;;
10200
10201    hpux10*)
10202      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10203        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10204      else
10205        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10206      fi
10207      if test "$with_gnu_ld" = no; then
10208        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10209        hardcode_libdir_flag_spec_ld='+b $libdir'
10210        hardcode_libdir_separator=:
10211        hardcode_direct=yes
10212        hardcode_direct_absolute=yes
10213        export_dynamic_flag_spec='${wl}-E'
10214        # hardcode_minus_L: Not really in the search PATH,
10215        # but as the default location of the library.
10216        hardcode_minus_L=yes
10217      fi
10218      ;;
10219
10220    hpux11*)
10221      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10222        case $host_cpu in
10223        hppa*64*)
10224          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10225          ;;
10226        ia64*)
10227          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10228          ;;
10229        *)
10230          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10231          ;;
10232        esac
10233      else
10234        case $host_cpu in
10235        hppa*64*)
10236          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10237          ;;
10238        ia64*)
10239          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10240          ;;
10241        *)
10242          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10243          ;;
10244        esac
10245      fi
10246      if test "$with_gnu_ld" = no; then
10247        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10248        hardcode_libdir_separator=:
10249
10250        case $host_cpu in
10251        hppa*64*|ia64*)
10252          hardcode_direct=no
10253          hardcode_shlibpath_var=no
10254          ;;
10255        *)
10256          hardcode_direct=yes
10257          hardcode_direct_absolute=yes
10258          export_dynamic_flag_spec='${wl}-E'
10259
10260          # hardcode_minus_L: Not really in the search PATH,
10261          # but as the default location of the library.
10262          hardcode_minus_L=yes
10263          ;;
10264        esac
10265      fi
10266      ;;
10267
10268    irix5* | irix6* | nonstopux*)
10269      if test "$GCC" = yes; then
10270        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10271        # Try to use the -exported_symbol ld option, if it does not
10272        # work, assume that -exports_file does not work either and
10273        # implicitly export all symbols.
10274        save_LDFLAGS="$LDFLAGS"
10275        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10276        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277/* end confdefs.h.  */
10278int foo(void) {}
10279_ACEOF
10280if ac_fn_c_try_link "$LINENO"; then :
10281  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10282
10283fi
10284rm -f core conftest.err conftest.$ac_objext \
10285    conftest$ac_exeext conftest.$ac_ext
10286        LDFLAGS="$save_LDFLAGS"
10287      else
10288        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10289        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10290      fi
10291      archive_cmds_need_lc='no'
10292      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10293      hardcode_libdir_separator=:
10294      inherit_rpath=yes
10295      link_all_deplibs=yes
10296      ;;
10297
10298    netbsd*)
10299      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10300        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10301      else
10302        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10303      fi
10304      hardcode_libdir_flag_spec='-R$libdir'
10305      hardcode_direct=yes
10306      hardcode_shlibpath_var=no
10307      ;;
10308
10309    newsos6)
10310      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10311      hardcode_direct=yes
10312      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10313      hardcode_libdir_separator=:
10314      hardcode_shlibpath_var=no
10315      ;;
10316
10317    *nto* | *qnx*)
10318      ;;
10319
10320    openbsd*)
10321      if test -f /usr/libexec/ld.so; then
10322        hardcode_direct=yes
10323        hardcode_shlibpath_var=no
10324        hardcode_direct_absolute=yes
10325        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10326          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10327          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10328          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10329          export_dynamic_flag_spec='${wl}-E'
10330        else
10331          case $host_os in
10332           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10333             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10334             hardcode_libdir_flag_spec='-R$libdir'
10335             ;;
10336           *)
10337             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10338             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10339             ;;
10340          esac
10341        fi
10342      else
10343        ld_shlibs=no
10344      fi
10345      ;;
10346
10347    os2*)
10348      hardcode_libdir_flag_spec='-L$libdir'
10349      hardcode_minus_L=yes
10350      allow_undefined_flag=unsupported
10351      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'
10352      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10353      ;;
10354
10355    osf3*)
10356      if test "$GCC" = yes; then
10357        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10358        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10359      else
10360        allow_undefined_flag=' -expect_unresolved \*'
10361        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10362      fi
10363      archive_cmds_need_lc='no'
10364      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365      hardcode_libdir_separator=:
10366      ;;
10367
10368    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10369      if test "$GCC" = yes; then
10370        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10371        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10372        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10373      else
10374        allow_undefined_flag=' -expect_unresolved \*'
10375        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10376        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~
10377        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10378
10379        # Both c and cxx compiler support -rpath directly
10380        hardcode_libdir_flag_spec='-rpath $libdir'
10381      fi
10382      archive_cmds_need_lc='no'
10383      hardcode_libdir_separator=:
10384      ;;
10385
10386    solaris*)
10387      no_undefined_flag=' -z defs'
10388      if test "$GCC" = yes; then
10389        wlarc='${wl}'
10390        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10391        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10392          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10393      else
10394        case `$CC -V 2>&1` in
10395        *"Compilers 5.0"*)
10396          wlarc=''
10397          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10399          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10400          ;;
10401        *)
10402          wlarc='${wl}'
10403          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10404          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10405          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10406          ;;
10407        esac
10408      fi
10409      hardcode_libdir_flag_spec='-R$libdir'
10410      hardcode_shlibpath_var=no
10411      case $host_os in
10412      solaris2.[0-5] | solaris2.[0-5].*) ;;
10413      *)
10414        # The compiler driver will combine and reorder linker options,
10415        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10416        # but is careful enough not to reorder.
10417        # Supported since Solaris 2.6 (maybe 2.5.1?)
10418        if test "$GCC" = yes; then
10419          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10420        else
10421          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10422        fi
10423        ;;
10424      esac
10425      link_all_deplibs=yes
10426      ;;
10427
10428    sunos4*)
10429      if test "x$host_vendor" = xsequent; then
10430        # Use $CC to link under sequent, because it throws in some extra .o
10431        # files that make .init and .fini sections work.
10432        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10433      else
10434        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10435      fi
10436      hardcode_libdir_flag_spec='-L$libdir'
10437      hardcode_direct=yes
10438      hardcode_minus_L=yes
10439      hardcode_shlibpath_var=no
10440      ;;
10441
10442    sysv4)
10443      case $host_vendor in
10444        sni)
10445          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446          hardcode_direct=yes # is this really true???
10447        ;;
10448        siemens)
10449          ## LD is ld it makes a PLAMLIB
10450          ## CC just makes a GrossModule.
10451          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10452          reload_cmds='$CC -r -o $output$reload_objs'
10453          hardcode_direct=no
10454        ;;
10455        motorola)
10456          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10457          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10458        ;;
10459      esac
10460      runpath_var='LD_RUN_PATH'
10461      hardcode_shlibpath_var=no
10462      ;;
10463
10464    sysv4.3*)
10465      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466      hardcode_shlibpath_var=no
10467      export_dynamic_flag_spec='-Bexport'
10468      ;;
10469
10470    sysv4*MP*)
10471      if test -d /usr/nec; then
10472        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10473        hardcode_shlibpath_var=no
10474        runpath_var=LD_RUN_PATH
10475        hardcode_runpath_var=yes
10476        ld_shlibs=yes
10477      fi
10478      ;;
10479
10480    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10481      no_undefined_flag='${wl}-z,text'
10482      archive_cmds_need_lc=no
10483      hardcode_shlibpath_var=no
10484      runpath_var='LD_RUN_PATH'
10485
10486      if test "$GCC" = yes; then
10487        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10488        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10489      else
10490        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10491        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10492      fi
10493      ;;
10494
10495    sysv5* | sco3.2v5* | sco5v6*)
10496      # Note: We can NOT use -z defs as we might desire, because we do not
10497      # link with -lc, and that would cause any symbols used from libc to
10498      # always be unresolved, which means just about no library would
10499      # ever link correctly.  If we're not using GNU ld we use -z text
10500      # though, which does catch some bad symbols but isn't as heavy-handed
10501      # as -z defs.
10502      no_undefined_flag='${wl}-z,text'
10503      allow_undefined_flag='${wl}-z,nodefs'
10504      archive_cmds_need_lc=no
10505      hardcode_shlibpath_var=no
10506      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10507      hardcode_libdir_separator=':'
10508      link_all_deplibs=yes
10509      export_dynamic_flag_spec='${wl}-Bexport'
10510      runpath_var='LD_RUN_PATH'
10511
10512      if test "$GCC" = yes; then
10513        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515      else
10516        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10517        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518      fi
10519      ;;
10520
10521    uts4*)
10522      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10523      hardcode_libdir_flag_spec='-L$libdir'
10524      hardcode_shlibpath_var=no
10525      ;;
10526
10527    *)
10528      ld_shlibs=no
10529      ;;
10530    esac
10531
10532    if test x$host_vendor = xsni; then
10533      case $host in
10534      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10535        export_dynamic_flag_spec='${wl}-Blargedynsym'
10536        ;;
10537      esac
10538    fi
10539  fi
10540
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10542$as_echo "$ld_shlibs" >&6; }
10543test "$ld_shlibs" = no && can_build_shared=no
10544
10545with_gnu_ld=$with_gnu_ld
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561#
10562# Do we need to explicitly link libc?
10563#
10564case "x$archive_cmds_need_lc" in
10565x|xyes)
10566  # Assume -lc should be added
10567  archive_cmds_need_lc=yes
10568
10569  if test "$enable_shared" = yes && test "$GCC" = yes; then
10570    case $archive_cmds in
10571    *'~'*)
10572      # FIXME: we may have to deal with multi-command sequences.
10573      ;;
10574    '$CC '*)
10575      # Test whether the compiler implicitly links with -lc since on some
10576      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10577      # to ld, don't add -lc before -lgcc.
10578      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10579$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10580      $RM conftest*
10581      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10582
10583      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10584  (eval $ac_compile) 2>&5
10585  ac_status=$?
10586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10587  test $ac_status = 0; } 2>conftest.err; then
10588        soname=conftest
10589        lib=conftest
10590        libobjs=conftest.$ac_objext
10591        deplibs=
10592        wl=$lt_prog_compiler_wl
10593        pic_flag=$lt_prog_compiler_pic
10594        compiler_flags=-v
10595        linker_flags=-v
10596        verstring=
10597        output_objdir=.
10598        libname=conftest
10599        lt_save_allow_undefined_flag=$allow_undefined_flag
10600        allow_undefined_flag=
10601        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10602  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10603  ac_status=$?
10604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10605  test $ac_status = 0; }
10606        then
10607          archive_cmds_need_lc=no
10608        else
10609          archive_cmds_need_lc=yes
10610        fi
10611        allow_undefined_flag=$lt_save_allow_undefined_flag
10612      else
10613        cat conftest.err 1>&5
10614      fi
10615      $RM conftest*
10616      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10617$as_echo "$archive_cmds_need_lc" >&6; }
10618      ;;
10619    esac
10620  fi
10621  ;;
10622esac
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10781$as_echo_n "checking dynamic linker characteristics... " >&6; }
10782
10783if test "$GCC" = yes; then
10784  case $host_os in
10785    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10786    *) lt_awk_arg="/^libraries:/" ;;
10787  esac
10788  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10789  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10790    # if the path contains ";" then we assume it to be the separator
10791    # otherwise default to the standard path separator (i.e. ":") - it is
10792    # assumed that no part of a normal pathname contains ";" but that should
10793    # okay in the real world where ";" in dirpaths is itself problematic.
10794    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10795  else
10796    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10797  fi
10798  # Ok, now we have the path, separated by spaces, we can step through it
10799  # and add multilib dir if necessary.
10800  lt_tmp_lt_search_path_spec=
10801  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10802  for lt_sys_path in $lt_search_path_spec; do
10803    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10804      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10805    else
10806      test -d "$lt_sys_path" && \
10807        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10808    fi
10809  done
10810  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10811BEGIN {RS=" "; FS="/|\n";} {
10812  lt_foo="";
10813  lt_count=0;
10814  for (lt_i = NF; lt_i > 0; lt_i--) {
10815    if ($lt_i != "" && $lt_i != ".") {
10816      if ($lt_i == "..") {
10817        lt_count++;
10818      } else {
10819        if (lt_count == 0) {
10820          lt_foo="/" $lt_i lt_foo;
10821        } else {
10822          lt_count--;
10823        }
10824      }
10825    }
10826  }
10827  if (lt_foo != "") { lt_freq[lt_foo]++; }
10828  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10829}'`
10830  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10831else
10832  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10833fi
10834library_names_spec=
10835libname_spec='lib$name'
10836soname_spec=
10837shrext_cmds=".so"
10838postinstall_cmds=
10839postuninstall_cmds=
10840finish_cmds=
10841finish_eval=
10842shlibpath_var=
10843shlibpath_overrides_runpath=unknown
10844version_type=none
10845dynamic_linker="$host_os ld.so"
10846sys_lib_dlsearch_path_spec="/lib /usr/lib"
10847need_lib_prefix=unknown
10848hardcode_into_libs=no
10849
10850# when you set need_version to no, make sure it does not cause -set_version
10851# flags to be left without arguments
10852need_version=unknown
10853
10854case $host_os in
10855aix3*)
10856  version_type=linux
10857  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10858  shlibpath_var=LIBPATH
10859
10860  # AIX 3 has no versioning support, so we append a major version to the name.
10861  soname_spec='${libname}${release}${shared_ext}$major'
10862  ;;
10863
10864aix[4-9]*)
10865  version_type=linux
10866  need_lib_prefix=no
10867  need_version=no
10868  hardcode_into_libs=yes
10869  if test "$host_cpu" = ia64; then
10870    # AIX 5 supports IA64
10871    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10872    shlibpath_var=LD_LIBRARY_PATH
10873  else
10874    # With GCC up to 2.95.x, collect2 would create an import file
10875    # for dependence libraries.  The import file would start with
10876    # the line `#! .'.  This would cause the generated library to
10877    # depend on `.', always an invalid library.  This was fixed in
10878    # development snapshots of GCC prior to 3.0.
10879    case $host_os in
10880      aix4 | aix4.[01] | aix4.[01].*)
10881      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10882           echo ' yes '
10883           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10884        :
10885      else
10886        can_build_shared=no
10887      fi
10888      ;;
10889    esac
10890    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10891    # soname into executable. Probably we can add versioning support to
10892    # collect2, so additional links can be useful in future.
10893    if test "$aix_use_runtimelinking" = yes; then
10894      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10895      # instead of lib<name>.a to let people know that these are not
10896      # typical AIX shared libraries.
10897      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898    else
10899      # We preserve .a as extension for shared libraries through AIX4.2
10900      # and later when we are not doing run time linking.
10901      library_names_spec='${libname}${release}.a $libname.a'
10902      soname_spec='${libname}${release}${shared_ext}$major'
10903    fi
10904    shlibpath_var=LIBPATH
10905  fi
10906  ;;
10907
10908amigaos*)
10909  case $host_cpu in
10910  powerpc)
10911    # Since July 2007 AmigaOS4 officially supports .so libraries.
10912    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10913    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914    ;;
10915  m68k)
10916    library_names_spec='$libname.ixlibrary $libname.a'
10917    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10918    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10919    ;;
10920  esac
10921  ;;
10922
10923beos*)
10924  library_names_spec='${libname}${shared_ext}'
10925  dynamic_linker="$host_os ld.so"
10926  shlibpath_var=LIBRARY_PATH
10927  ;;
10928
10929bsdi[45]*)
10930  version_type=linux
10931  need_version=no
10932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933</