source: branches/MPI/configure @ 253

Last change on this file since 253 was 246, checked in by kulshres, 8 years ago

version update

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

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