source: trunk/configure @ 450

Last change on this file since 450 was 450, checked in by awalther, 6 years ago

extend tensor driver address(..) for unsorted arguments, renaming to tensor_address to avoid conflicts

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