Changeset a4ce365 for configure


Ignore:
Timestamp:
08/12/04 14:41:48 (17 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
4a988af
Parents:
dfef05d
Message:

i.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rdfef05d ra4ce365  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.53 for libtrace 2.0.1.
     3# Generated by GNU Autoconf 2.59 for libtrace 2.0.1.
    44#
    55# Report bugs to <libtrace@wand.net.nz>.
    66#
    7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
    8 # Free Software Foundation, Inc.
     7# Copyright (C) 2003 Free Software Foundation, Inc.
    98# This configure script is free software; the Free Software Foundation
    109# gives unlimited permission to copy, distribute and modify it.
    11 
    12 # Find the correct PATH separator.  Usually this is `:', but
    13 # DJGPP uses `;' like DOS.
    14 if test "X${PATH_SEPARATOR+set}" != Xset; then
    15   UNAME=${UNAME-`uname 2>/dev/null`}
    16   case X$UNAME in
    17     *-DOS) lt_cv_sys_path_separator=';' ;;
    18     *)     lt_cv_sys_path_separator=':' ;;
     10## --------------------- ##
     11## M4sh Initialization.  ##
     12## --------------------- ##
     13
     14# Be Bourne compatible
     15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     16  emulate sh
     17  NULLCMD=:
     18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     19  # is contrary to our usage.  Disable this feature.
     20  alias -g '${1+"$@"}'='"$@"'
     21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     22  set -o posix
     23fi
     24DUALCASE=1; export DUALCASE # for MKS sh
     25
     26# Support unset when possible.
     27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     28  as_unset=unset
     29else
     30  as_unset=false
     31fi
     32
     33
     34# Work around bugs in pre-3.0 UWIN ksh.
     35$as_unset ENV MAIL MAILPATH
     36PS1='$ '
     37PS2='> '
     38PS4='+ '
     39
     40# NLS nuisances.
     41for as_var in \
     42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     44  LC_TELEPHONE LC_TIME
     45do
     46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     47    eval $as_var=C; export $as_var
     48  else
     49    $as_unset $as_var
     50  fi
     51done
     52
     53# Required to use basename.
     54if expr a : '\(a\)' >/dev/null 2>&1; then
     55  as_expr=expr
     56else
     57  as_expr=false
     58fi
     59
     60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     61  as_basename=basename
     62else
     63  as_basename=false
     64fi
     65
     66
     67# Name of the executable.
     68as_me=`$as_basename "$0" ||
     69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     70         X"$0" : 'X\(//\)$' \| \
     71         X"$0" : 'X\(/\)$' \| \
     72         .     : '\(.\)' 2>/dev/null ||
     73echo X/"$0" |
     74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     75          /^X\/\(\/\/\)$/{ s//\1/; q; }
     76          /^X\/\(\/\).*/{ s//\1/; q; }
     77          s/.*/./; q'`
     78
     79
     80# PATH needs CR, and LINENO needs CR and PATH.
     81# Avoid depending upon Character Ranges.
     82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     85as_cr_digits='0123456789'
     86as_cr_alnum=$as_cr_Letters$as_cr_digits
     87
     88# The user is always right.
     89if test "${PATH_SEPARATOR+set}" != set; then
     90  echo "#! /bin/sh" >conf$$.sh
     91  echo  "exit 0"   >>conf$$.sh
     92  chmod +x conf$$.sh
     93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     94    PATH_SEPARATOR=';'
     95  else
     96    PATH_SEPARATOR=:
     97  fi
     98  rm -f conf$$.sh
     99fi
     100
     101
     102  as_lineno_1=$LINENO
     103  as_lineno_2=$LINENO
     104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     105  test "x$as_lineno_1" != "x$as_lineno_2" &&
     106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     107  # Find who we are.  Look in the path if we contain no path at all
     108  # relative or not.
     109  case $0 in
     110    *[\\/]* ) as_myself=$0 ;;
     111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     112for as_dir in $PATH
     113do
     114  IFS=$as_save_IFS
     115  test -z "$as_dir" && as_dir=.
     116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     117done
     118
     119       ;;
    19120  esac
    20   PATH_SEPARATOR=$lt_cv_sys_path_separator
    21 fi
     121  # We did not find ourselves, most probably we were run as `sh COMMAND'
     122  # in which case we are not to be found in the path.
     123  if test "x$as_myself" = x; then
     124    as_myself=$0
     125  fi
     126  if test ! -f "$as_myself"; then
     127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
     128   { (exit 1); exit 1; }; }
     129  fi
     130  case $CONFIG_SHELL in
     131  '')
     132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     134do
     135  IFS=$as_save_IFS
     136  test -z "$as_dir" && as_dir=.
     137  for as_base in sh bash ksh sh5; do
     138         case $as_dir in
     139         /*)
     140           if ("$as_dir/$as_base" -c '
     141  as_lineno_1=$LINENO
     142  as_lineno_2=$LINENO
     143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     144  test "x$as_lineno_1" != "x$as_lineno_2" &&
     145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     148             CONFIG_SHELL=$as_dir/$as_base
     149             export CONFIG_SHELL
     150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     151           fi;;
     152         esac
     153       done
     154done
     155;;
     156  esac
     157
     158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     159  # uniformly replaced by the line number.  The first 'sed' inserts a
     160  # line-number line before each line; the second 'sed' does the real
     161  # work.  The second script uses 'N' to pair each line-number line
     162  # with the numbered line, and appends trailing '-' during
     163  # substitution so that $LINENO is not a special case at line end.
     164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     166  sed '=' <$as_myself |
     167    sed '
     168      N
     169      s,$,-,
     170      : loop
     171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     172      t loop
     173      s,-$,,
     174      s,^['$as_cr_digits']*\n,,
     175    ' >$as_me.lineno &&
     176  chmod +x $as_me.lineno ||
     177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     178   { (exit 1); exit 1; }; }
     179
     180  # Don't try to exec as it changes $[0], causing all sort of problems
     181  # (the dirname of $[0] is not the place where we might find the
     182  # original and so on.  Autoconf is especially sensible to this).
     183  . ./$as_me.lineno
     184  # Exit status is that of the last command.
     185  exit
     186}
     187
     188
     189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     190  *c*,-n*) ECHO_N= ECHO_C='
     191' ECHO_T='      ' ;;
     192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     194esac
     195
     196if expr a : '\(a\)' >/dev/null 2>&1; then
     197  as_expr=expr
     198else
     199  as_expr=false
     200fi
     201
     202rm -f conf$$ conf$$.exe conf$$.file
     203echo >conf$$.file
     204if ln -s conf$$.file conf$$ 2>/dev/null; then
     205  # We could just check for DJGPP; but this test a) works b) is more generic
     206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     207  if test -f conf$$.exe; then
     208    # Don't use ln at all; we don't have any links
     209    as_ln_s='cp -p'
     210  else
     211    as_ln_s='ln -s'
     212  fi
     213elif ln conf$$.file conf$$ 2>/dev/null; then
     214  as_ln_s=ln
     215else
     216  as_ln_s='cp -p'
     217fi
     218rm -f conf$$ conf$$.exe conf$$.file
     219
     220if mkdir -p . 2>/dev/null; then
     221  as_mkdir_p=:
     222else
     223  test -d ./-p && rmdir ./-p
     224  as_mkdir_p=false
     225fi
     226
     227as_executable_p="test -f"
     228
     229# Sed expression to map a string onto a valid CPP name.
     230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     231
     232# Sed expression to map a string onto a valid variable name.
     233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     234
     235
     236# IFS
     237# We need space, tab and new line, in precisely that order.
     238as_nl='
     239'
     240IFS="   $as_nl"
     241
     242# CDPATH.
     243$as_unset CDPATH
     244
    22245
    23246
     
    39262  # Avoid inline document here, it may be left over
    40263  :
    41 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
     264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
    42265  # Yippee, $echo works!
    43266  :
     
    51274  shift
    52275  cat <<EOF
    53 
     276$*
    54277EOF
    55278  exit 0
     
    85308  # So, first we look for a working echo in the user's PATH.
    86309
    87   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    88311  for dir in $PATH /usr/ucb; do
     312    IFS="$lt_save_ifs"
    89313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    90314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
     
    95319    fi
    96320  done
    97   IFS="$save_ifs"
     321  IFS="$lt_save_ifs"
    98322
    99323  if test "X$echo" = Xecho; then
     
    169393
    170394
    171 if expr a : '\(a\)' >/dev/null 2>&1; then
    172   as_expr=expr
    173 else
    174   as_expr=false
    175 fi
    176 
    177 
    178 ## --------------------- ##
    179 ## M4sh Initialization.  ##
    180 ## --------------------- ##
    181 
    182 # Be Bourne compatible
    183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    184   emulate sh
    185   NULLCMD=:
    186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    187   set -o posix
    188 fi
    189 
    190 # NLS nuisances.
    191 # Support unset when possible.
    192 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    193   as_unset=unset
    194 else
    195   as_unset=false
    196 fi
    197 
    198 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
    199     { $as_unset LANG || test "${LANG+set}" != set; } ||
    200       { LANG=C; export LANG; }
    201 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
    202     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
    203       { LC_ALL=C; export LC_ALL; }
    204 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
    205     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
    206       { LC_TIME=C; export LC_TIME; }
    207 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
    208     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
    209       { LC_CTYPE=C; export LC_CTYPE; }
    210 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
    211     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
    212       { LANGUAGE=C; export LANGUAGE; }
    213 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
    214     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
    215       { LC_COLLATE=C; export LC_COLLATE; }
    216 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
    217     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
    218       { LC_NUMERIC=C; export LC_NUMERIC; }
    219 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
    220     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
    221       { LC_MESSAGES=C; export LC_MESSAGES; }
    222 
    223 
    224 # Name of the executable.
    225 as_me=`(basename "$0") 2>/dev/null ||
    226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    227          X"$0" : 'X\(//\)$' \| \
    228          X"$0" : 'X\(/\)$' \| \
    229          .     : '\(.\)' 2>/dev/null ||
    230 echo X/"$0" |
    231     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    232           /^X\/\(\/\/\)$/{ s//\1/; q; }
    233           /^X\/\(\/\).*/{ s//\1/; q; }
    234           s/.*/./; q'`
    235 
    236 # PATH needs CR, and LINENO needs CR and PATH.
    237 # Avoid depending upon Character Ranges.
    238 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    239 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    240 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    241 as_cr_digits='0123456789'
    242 as_cr_alnum=$as_cr_Letters$as_cr_digits
    243 
    244 # The user is always right.
    245 if test "${PATH_SEPARATOR+set}" != set; then
    246   echo "#! /bin/sh" >conftest.sh
    247   echo  "exit 0"   >>conftest.sh
    248   chmod +x conftest.sh
    249   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
    250     PATH_SEPARATOR=';'
    251   else
    252     PATH_SEPARATOR=:
    253   fi
    254   rm -f conftest.sh
    255 fi
    256 
    257 
    258   as_lineno_1=$LINENO
    259   as_lineno_2=$LINENO
    260   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    261   test "x$as_lineno_1" != "x$as_lineno_2" &&
    262   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    263   # Find who we are.  Look in the path if we contain no path at all
    264   # relative or not.
    265   case $0 in
    266     *[\\/]* ) as_myself=$0 ;;
    267     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    268 for as_dir in $PATH
    269 do
    270   IFS=$as_save_IFS
    271   test -z "$as_dir" && as_dir=.
    272   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    273 done
    274 
    275        ;;
    276   esac
    277   # We did not find ourselves, most probably we were run as `sh COMMAND'
    278   # in which case we are not to be found in the path.
    279   if test "x$as_myself" = x; then
    280     as_myself=$0
    281   fi
    282   if test ! -f "$as_myself"; then
    283     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
    284    { (exit 1); exit 1; }; }
    285   fi
    286   case $CONFIG_SHELL in
    287   '')
    288     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    290 do
    291   IFS=$as_save_IFS
    292   test -z "$as_dir" && as_dir=.
    293   for as_base in sh bash ksh sh5; do
    294          case $as_dir in
    295          /*)
    296            if ("$as_dir/$as_base" -c '
    297   as_lineno_1=$LINENO
    298   as_lineno_2=$LINENO
    299   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    300   test "x$as_lineno_1" != "x$as_lineno_2" &&
    301   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    302              CONFIG_SHELL=$as_dir/$as_base
    303              export CONFIG_SHELL
    304              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    305            fi;;
    306          esac
    307        done
    308 done
    309 ;;
    310   esac
    311 
    312   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    313   # uniformly replaced by the line number.  The first 'sed' inserts a
    314   # line-number line before each line; the second 'sed' does the real
    315   # work.  The second script uses 'N' to pair each line-number line
    316   # with the numbered line, and appends trailing '-' during
    317   # substitution so that $LINENO is not a special case at line end.
    318   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    319   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    320   sed '=' <$as_myself |
    321     sed '
    322       N
    323       s,$,-,
    324       : loop
    325       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    326       t loop
    327       s,-$,,
    328       s,^['$as_cr_digits']*\n,,
    329     ' >$as_me.lineno &&
    330   chmod +x $as_me.lineno ||
    331     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    332    { (exit 1); exit 1; }; }
    333 
    334   # Don't try to exec as it changes $[0], causing all sort of problems
    335   # (the dirname of $[0] is not the place where we might find the
    336   # original and so on.  Autoconf is especially sensible to this).
    337   . ./$as_me.lineno
    338   # Exit status is that of the last command.
    339   exit
    340 }
    341 
    342 
    343 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    344   *c*,-n*) ECHO_N= ECHO_C='
    345 ' ECHO_T='      ' ;;
    346   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    347   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    348 esac
    349 
    350 if expr a : '\(a\)' >/dev/null 2>&1; then
    351   as_expr=expr
    352 else
    353   as_expr=false
    354 fi
    355 
    356 rm -f conf$$ conf$$.exe conf$$.file
    357 echo >conf$$.file
    358 if ln -s conf$$.file conf$$ 2>/dev/null; then
    359   # We could just check for DJGPP; but this test a) works b) is more generic
    360   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    361   if test -f conf$$.exe; then
    362     # Don't use ln at all; we don't have any links
    363     as_ln_s='cp -p'
    364   else
    365     as_ln_s='ln -s'
    366   fi
    367 elif ln conf$$.file conf$$ 2>/dev/null; then
    368   as_ln_s=ln
    369 else
    370   as_ln_s='cp -p'
    371 fi
    372 rm -f conf$$ conf$$.exe conf$$.file
    373 
    374 as_executable_p="test -f"
    375 
    376 # Sed expression to map a string onto a valid CPP name.
    377 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    378 
    379 # Sed expression to map a string onto a valid variable name.
    380 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    381 
    382 
    383 # IFS
    384 # We need space, tab and new line, in precisely that order.
    385 as_nl='
    386 '
    387 IFS="   $as_nl"
    388 
    389 # CDPATH.
    390 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
    391 
     395
     396tagnames=${tagnames+${tagnames},}CXX
     397
     398tagnames=${tagnames+${tagnames},}F77
    392399
    393400# Name of the host.
     
    402409#
    403410ac_default_prefix=/usr/local
     411ac_config_libobj_dir=.
    404412cross_compiling=no
    405413subdirs=
     
    458466#endif"
    459467
     468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION EXEEXT OBJEXT ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM AWK SET_MAKE AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH DEPDIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC am__include am__quote CCDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBPCAP LIBPCAP_PATH LIBZ LIBZ_PATH LIBOBJS LTLIBOBJS'
     469ac_subst_files=''
    460470
    461471# Initialize some variables set by options.
     
    815825# Be sure to have absolute paths.
    816826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    817               localstatedir libdir includedir oldincludedir infodir mandir
     827              localstatedir libdir includedir oldincludedir infodir mandir
    818828do
    819829  eval ac_val=$`echo $ac_var`
     
    855865  ac_confdir=`(dirname "$0") 2>/dev/null ||
    856866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    857         X"$0" : 'X\(//\)[^/]' \| \
    858         X"$0" : 'X\(//\)$' \| \
    859         X"$0" : 'X\(/\)' \| \
    860         .     : '\(.\)' 2>/dev/null ||
     867        X"$0" : 'X\(//\)[^/]' \| \
     868        X"$0" : 'X\(//\)$' \| \
     869        X"$0" : 'X\(/\)' \| \
     870        .     : '\(.\)' 2>/dev/null ||
    861871echo X"$0" |
    862872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    881891  fi
    882892fi
     893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     895   { (exit 1); exit 1; }; }
    883896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    884897ac_env_build_alias_set=${build_alias+set}
     
    914927ac_cv_env_CPP_set=${CPP+set}
    915928ac_cv_env_CPP_value=$CPP
     929ac_env_CXX_set=${CXX+set}
     930ac_env_CXX_value=$CXX
     931ac_cv_env_CXX_set=${CXX+set}
     932ac_cv_env_CXX_value=$CXX
     933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     934ac_env_CXXFLAGS_value=$CXXFLAGS
     935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     937ac_env_CXXCPP_set=${CXXCPP+set}
     938ac_env_CXXCPP_value=$CXXCPP
     939ac_cv_env_CXXCPP_set=${CXXCPP+set}
     940ac_cv_env_CXXCPP_value=$CXXCPP
     941ac_env_F77_set=${F77+set}
     942ac_env_F77_value=$F77
     943ac_cv_env_F77_set=${F77+set}
     944ac_cv_env_F77_value=$F77
     945ac_env_FFLAGS_set=${FFLAGS+set}
     946ac_env_FFLAGS_value=$FFLAGS
     947ac_cv_env_FFLAGS_set=${FFLAGS+set}
     948ac_cv_env_FFLAGS_value=$FFLAGS
    916949
    917950#
     
    947980Installation directories:
    948981  --prefix=PREFIX         install architecture-independent files in PREFIX
    949                           [$ac_default_prefix]
     982                          [$ac_default_prefix]
    950983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    951                           [PREFIX]
     984                          [PREFIX]
    952985
    953986By default, \`make install' will install all the files in
     
    9971030  --disable-dependency-tracking Speeds up one-time builds
    9981031  --enable-dependency-tracking  Do not reject slow dependency extractors
    999   --enable-shared=PKGS  build shared libraries default=yes
    1000   --enable-static=PKGS  build static libraries default=yes
    1001   --enable-fast-install=PKGS  optimize for fast installation default=yes
     1032  --enable-shared[=PKGS]
     1033                          build shared libraries [default=yes]
     1034  --enable-static[=PKGS]
     1035                          build static libraries [default=yes]
     1036  --enable-fast-install[=PKGS]
     1037                          optimize for fast installation [default=yes]
    10021038  --disable-libtool-lock  avoid locking (might break parallel builds)
    10031039  --disable-largefile     omit support for large files
     
    10061042  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    10071043  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    1008   --with-gnu-ld           assume the C compiler uses GNU ld default=no
    1009   --with-pic              try to use only PIC/non-PIC objects default=use both
     1044  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
     1045  --with-pic              try to use only PIC/non-PIC objects [default=use
     1046                          both]
     1047  --with-tags[=TAGS]
     1048                          include additional configurations [automatic]
    10101049  --with-pcap             name of pcap library (default is pcap)
    10111050  --with-pcap-path        location of pcap library (default is /usr/lib)
     
    10211060              headers in a nonstandard directory <include dir>
    10221061  CPP         C preprocessor
     1062  CXX         C++ compiler command
     1063  CXXFLAGS    C++ compiler flags
     1064  CXXCPP      C++ preprocessor
     1065  F77         Fortran 77 compiler command
     1066  FFLAGS      Fortran 77 compiler flags
    10231067
    10241068Use these variables to override the choices made by `configure' or to help
     
    10591103    ac_top_srcdir=$ac_top_builddir$srcdir ;;
    10601104esac
    1061 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
    1062 # absolute.
    1063 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
    1064 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
    1065 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
    1066 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
     1105
     1106# Do not use `cd foo && pwd` to compute absolute paths, because
     1107# the directories may not exist.
     1108case `pwd` in
     1109.) ac_abs_builddir="$ac_dir";;
     1110*)
     1111  case "$ac_dir" in
     1112  .) ac_abs_builddir=`pwd`;;
     1113  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     1114  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     1115  esac;;
     1116esac
     1117case $ac_abs_builddir in
     1118.) ac_abs_top_builddir=${ac_top_builddir}.;;
     1119*)
     1120  case ${ac_top_builddir}. in
     1121  .) ac_abs_top_builddir=$ac_abs_builddir;;
     1122  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     1123  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     1124  esac;;
     1125esac
     1126case $ac_abs_builddir in
     1127.) ac_abs_srcdir=$ac_srcdir;;
     1128*)
     1129  case $ac_srcdir in
     1130  .) ac_abs_srcdir=$ac_abs_builddir;;
     1131  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     1132  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     1133  esac;;
     1134esac
     1135case $ac_abs_builddir in
     1136.) ac_abs_top_srcdir=$ac_top_srcdir;;
     1137*)
     1138  case $ac_top_srcdir in
     1139  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     1140  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     1141  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     1142  esac;;
     1143esac
    10671144
    10681145    cd $ac_dir
     
    10751152      $SHELL $ac_srcdir/configure  --help=recursive
    10761153    elif test -f $ac_srcdir/configure.ac ||
    1077            test -f $ac_srcdir/configure.in; then
     1154           test -f $ac_srcdir/configure.in; then
    10781155      echo
    10791156      $ac_configure --help
     
    10891166  cat <<\_ACEOF
    10901167libtrace configure 2.0.1
    1091 generated by GNU Autoconf 2.53
    1092 
    1093 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
    1094 Free Software Foundation, Inc.
     1168generated by GNU Autoconf 2.59
     1169
     1170Copyright (C) 2003 Free Software Foundation, Inc.
    10951171This configure script is free software; the Free Software Foundation
    10961172gives unlimited permission to copy, distribute and modify it.
     
    11041180
    11051181It was created by libtrace $as_me 2.0.1, which was
    1106 generated by GNU Autoconf 2.53.  Invocation command line was
     1182generated by GNU Autoconf 2.59.  Invocation command line was
    11071183
    11081184  $ $0 $@
     
    11561232# Keep a trace of the command line.
    11571233# Strip out --no-create and --no-recursion so they do not pile up.
     1234# Strip out --silent because we don't want to record it for future runs.
    11581235# Also quote any args containing shell meta-characters.
     1236# Make two passes to allow for proper duplicate-argument suppression.
    11591237ac_configure_args=
     1238ac_configure_args0=
     1239ac_configure_args1=
    11601240ac_sep=
    1161 for ac_arg
     1241ac_must_keep_next=false
     1242for ac_pass in 1 2
    11621243do
    1163   case $ac_arg in
    1164   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    1165   | --no-cr | --no-c | -n ) continue ;;
    1166   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    1167   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    1168     continue ;;
    1169   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1170     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    1171   esac
    1172   case " $ac_configure_args " in
    1173     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1174     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1175        ac_sep=" " ;;
    1176   esac
    1177   # Get rid of the leading space.
     1244  for ac_arg
     1245  do
     1246    case $ac_arg in
     1247    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1248    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1249    | -silent | --silent | --silen | --sile | --sil)
     1250      continue ;;
     1251    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1252      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1253    esac
     1254    case $ac_pass in
     1255    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1256    2)
     1257      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1258      if test $ac_must_keep_next = true; then
     1259        ac_must_keep_next=false # Got value, back to normal.
     1260      else
     1261        case $ac_arg in
     1262          *=* | --config-cache | -C | -disable-* | --disable-* \
     1263          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1264          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1265          | -with-* | --with-* | -without-* | --without-* | --x)
     1266            case "$ac_configure_args0 " in
     1267              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1268            esac
     1269            ;;
     1270          -* ) ac_must_keep_next=true ;;
     1271        esac
     1272      fi
     1273      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1274      # Get rid of the leading space.
     1275      ac_sep=" "
     1276      ;;
     1277    esac
     1278  done
    11781279done
     1280$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1281$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
    11791282
    11801283# When interrupted or exit'd, cleanup temporary files, and complete
     
    11871290  {
    11881291    echo
     1292
    11891293    cat <<\_ASBOX
    11901294## ---------------- ##
     
    11991303    *ac_space=\ *)
    12001304      sed -n \
    1201         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1202           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1305        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1306          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    12031307      ;;
    12041308    *)
    12051309      sed -n \
    1206         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1310        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    12071311      ;;
    12081312    esac;
    12091313}
    12101314    echo
     1315
     1316    cat <<\_ASBOX
     1317## ----------------- ##
     1318## Output variables. ##
     1319## ----------------- ##
     1320_ASBOX
     1321    echo
     1322    for ac_var in $ac_subst_vars
     1323    do
     1324      eval ac_val=$`echo $ac_var`
     1325      echo "$ac_var='"'"'$ac_val'"'"'"
     1326    done | sort
     1327    echo
     1328
     1329    if test -n "$ac_subst_files"; then
     1330      cat <<\_ASBOX
     1331## ------------- ##
     1332## Output files. ##
     1333## ------------- ##
     1334_ASBOX
     1335      echo
     1336      for ac_var in $ac_subst_files
     1337      do
     1338        eval ac_val=$`echo $ac_var`
     1339        echo "$ac_var='"'"'$ac_val'"'"'"
     1340      done | sort
     1341      echo
     1342    fi
     1343
    12111344    if test -s confdefs.h; then
    12121345      cat <<\_ASBOX
     
    12161349_ASBOX
    12171350      echo
    1218       sed "/^$/d" confdefs.h
     1351      sed "/^$/d" confdefs.h | sort
    12191352      echo
    12201353    fi
     
    12231356    echo "$as_me: exit $exit_status"
    12241357  } >&5
    1225   rm -f core core.* *.core &&
     1358  rm -f core *.core &&
    12261359  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    12271360    exit $exit_status
     
    13031436ac_cache_corrupted=false
    13041437for ac_var in `(set) 2>&1 |
    1305                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1438               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    13061439  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    13071440  eval ac_new_set=\$ac_env_${ac_var}_set
     
    13201453    *)
    13211454      if test "x$ac_old_val" != "x$ac_new_val"; then
    1322         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1455        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    13231456echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1324         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1457        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    13251458echo "$as_me:   former value:  $ac_old_val" >&2;}
    1326         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1459        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    13271460echo "$as_me:   current value: $ac_new_val" >&2;}
    1328         ac_cache_corrupted=:
     1461        ac_cache_corrupted=:
    13291462      fi;;
    13301463  esac
     
    13821515
    13831516
     1517
    13841518ac_aux_dir=
    13851519for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    14181552# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    14191553# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     1554# OS/2's system install, which has a completely different semantic
    14201555# ./install, which can be erroneously created by make from ./install.sh.
    14211556echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     
    14341569  ./ | .// | /cC/* | \
    14351570  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     1571  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    14361572  /usr/ucb/* ) ;;
    14371573  *)
     
    14411577    for ac_prog in ginstall scoinst install; do
    14421578      for ac_exec_ext in '' $ac_executable_extensions; do
    1443         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    1444           if test $ac_prog = install &&
    1445             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    1446             # AIX install.  It has an incompatible calling convention.
    1447             :
    1448           elif test $ac_prog = install &&
    1449             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    1450             # program-specific install script used by HP pwplus--don't use.
    1451             :
    1452           else
    1453             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    1454             break 3
    1455           fi
    1456         fi
     1579        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     1580          if test $ac_prog = install &&
     1581            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     1582            # AIX install.  It has an incompatible calling convention.
     1583            :
     1584          elif test $ac_prog = install &&
     1585            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     1586            # program-specific install script used by HP pwplus--don't use.
     1587            :
     1588          else
     1589            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     1590            break 3
     1591          fi
     1592        fi
    14571593      done
    14581594    done
     
    15971733done
    15981734
    1599 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1600 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
    1601 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
     1735echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     1736echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     1737set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    16021738if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    16031739  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    16051741  cat >conftest.make <<\_ACEOF
    16061742all:
    1607         @echo 'ac_maketemp="${MAKE}"'
     1743        @echo 'ac_maketemp="$(MAKE)"'
    16081744_ACEOF
    16091745# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     
    17221858
    17231859
    1724 AC_GNU_SOURCE
    1725 
    1726 
    1727 
    1728 
    1729                                                     ac_config_headers="$ac_config_headers config.h"
     1860
     1861cat >>confdefs.h <<\_ACEOF
     1862#define _GNU_SOURCE 1
     1863_ACEOF
     1864
     1865
     1866
     1867
     1868
     1869
     1870                                                              ac_config_headers="$ac_config_headers config.h"
    17301871
    17311872ac_ext=c
     
    19332074    # first if we set CC to just the basename; use the full file name.
    19342075    shift
    1935     set dummy "$as_dir/$ac_word" ${1+"$@"}
    1936     shift
    1937     ac_cv_prog_CC="$@"
     2076    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    19382077  fi
    19392078fi
     
    20402179
    20412180
    2042 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
    2043 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
     2181test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2182See \`config.log' for more details." >&5
     2183echo "$as_me: error: no acceptable C compiler found in \$PATH
     2184See \`config.log' for more details." >&2;}
    20442185   { (exit 1); exit 1; }; }
    20452186
     
    20652206
    20662207cat >conftest.$ac_ext <<_ACEOF
    2067 #line $LINENO "configure"
    2068 #include "confdefs.h"
    2069 
    2070 #ifdef F77_DUMMY_MAIN
    2071 #  ifdef __cplusplus
    2072      extern "C"
    2073 #  endif
    2074    int F77_DUMMY_MAIN() { return 1; }
    2075 #endif
     2208/* confdefs.h.  */
     2209_ACEOF
     2210cat confdefs.h >>conftest.$ac_ext
     2211cat >>conftest.$ac_ext <<_ACEOF
     2212/* end confdefs.h.  */
     2213
    20762214int
    20772215main ()
     
    20832221_ACEOF
    20842222ac_clean_files_save=$ac_clean_files
    2085 ac_clean_files="$ac_clean_files a.out a.exe"
     2223ac_clean_files="$ac_clean_files a.out a.exe b.out"
    20862224# Try to create an executable without -o first, disregard a.out.
    20872225# It will help us diagnose broken compilers, and finding out an intuition
    20882226# of exeext.
    2089 echo "$as_me:$LINENO: checking for C compiler default output" >&5
    2090 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
     2227echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     2228echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    20912229ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    20922230if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     
    21022240# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    21032241ac_cv_exeext=
    2104 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
    2105                 ls a.out conftest 2>/dev/null;
    2106                 ls a.* conftest.* 2>/dev/null`; do
     2242# b.out is created by i960 compilers.
     2243for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     2244do
     2245  test -f "$ac_file" || continue
    21072246  case $ac_file in
    2108     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
    2109     a.out ) # We found the default executable, but exeext='' is most
    2110             # certainly right.
    2111             break;;
    2112     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2113           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
    2114           export ac_cv_exeext
    2115           break;;
    2116     * ) break;;
     2247    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     2248        ;;
     2249    conftest.$ac_ext )
     2250        # This is the source file.
     2251        ;;
     2252    [ab].out )
     2253        # We found the default executable, but exeext='' is most
     2254        # certainly right.
     2255        break;;
     2256    *.* )
     2257        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2258        # FIXME: I believe we export ac_cv_exeext for Libtool,
     2259        # but it would be cool to find out if it's true.  Does anybody
     2260        # maintain Libtool? --akim.
     2261        export ac_cv_exeext
     2262        break;;
     2263    * )
     2264        break;;
    21172265  esac
    21182266done
    21192267else
    21202268  echo "$as_me: failed program was:" >&5
    2121 cat conftest.$ac_ext >&5
    2122 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
    2123 echo "$as_me: error: C compiler cannot create executables" >&2;}
     2269sed 's/^/| /' conftest.$ac_ext >&5
     2270
     2271{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
     2272See \`config.log' for more details." >&5
     2273echo "$as_me: error: C compiler cannot create executables
     2274See \`config.log' for more details." >&2;}
    21242275   { (exit 77); exit 77; }; }
    21252276fi
     
    21482299    else
    21492300        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    2150 If you meant to cross compile, use \`--host'." >&5
     2301If you meant to cross compile, use \`--host'.
     2302See \`config.log' for more details." >&5
    21512303echo "$as_me: error: cannot run C compiled programs.
    2152 If you meant to cross compile, use \`--host'." >&2;}
     2304If you meant to cross compile, use \`--host'.
     2305See \`config.log' for more details." >&2;}
    21532306   { (exit 1); exit 1; }; }
    21542307    fi
     
    21582311echo "${ECHO_T}yes" >&6
    21592312
    2160 rm -f a.out a.exe conftest$ac_cv_exeext
     2313rm -f a.out a.exe conftest$ac_cv_exeext b.out
    21612314ac_clean_files=$ac_clean_files_save
    21622315# Check the compiler produces executables we can run.  If not, either
     
    21782331# work properly (i.e., refer to `conftest.exe'), while it won't with
    21792332# `rm'.
    2180 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
     2333for ac_file in conftest.exe conftest conftest.*; do
     2334  test -f "$ac_file" || continue
    21812335  case $ac_file in
    2182     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     2336    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    21832337    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2184           export ac_cv_exeext
    2185           break;;
     2338          export ac_cv_exeext
     2339          break;;
    21862340    * ) break;;
    21872341  esac
    21882342done
    21892343else
    2190   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
    2191 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
     2344  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     2345See \`config.log' for more details." >&5
     2346echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     2347See \`config.log' for more details." >&2;}
    21922348   { (exit 1); exit 1; }; }
    21932349fi
     
    22062362else
    22072363  cat >conftest.$ac_ext <<_ACEOF
    2208 #line $LINENO "configure"
    2209 #include "confdefs.h"
    2210 
    2211 #ifdef F77_DUMMY_MAIN
    2212 #  ifdef __cplusplus
    2213      extern "C"
    2214 #  endif
    2215    int F77_DUMMY_MAIN() { return 1; }
    2216 #endif
     2364/* confdefs.h.  */
     2365_ACEOF
     2366cat confdefs.h >>conftest.$ac_ext
     2367cat >>conftest.$ac_ext <<_ACEOF
     2368/* end confdefs.h.  */
     2369
    22172370int
    22182371main ()
     
    22312384  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    22322385  case $ac_file in
    2233     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     2386    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
    22342387    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    22352388       break;;
     
    22382391else
    22392392  echo "$as_me: failed program was:" >&5
    2240 cat conftest.$ac_ext >&5
    2241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
    2242 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
     2393sed 's/^/| /' conftest.$ac_ext >&5
     2394
     2395{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     2396See \`config.log' for more details." >&5
     2397echo "$as_me: error: cannot compute suffix of object files: cannot compile
     2398See \`config.log' for more details." >&2;}
    22432399   { (exit 1); exit 1; }; }
    22442400fi
     
    22562412else
    22572413  cat >conftest.$ac_ext <<_ACEOF
    2258 #line $LINENO "configure"
    2259 #include "confdefs.h"
    2260 
    2261 #ifdef F77_DUMMY_MAIN
    2262 #  ifdef __cplusplus
    2263      extern "C"
    2264 #  endif
    2265    int F77_DUMMY_MAIN() { return 1; }
    2266 #endif
     2414/* confdefs.h.  */
     2415_ACEOF
     2416cat confdefs.h >>conftest.$ac_ext
     2417cat >>conftest.$ac_ext <<_ACEOF
     2418/* end confdefs.h.  */
     2419
    22672420int
    22682421main ()
     
    22782431rm -f conftest.$ac_objext
    22792432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2280   (eval $ac_compile) 2>&5
    2281   ac_status=$?
     2433  (eval $ac_compile) 2>conftest.er1
     2434  ac_status=$?
     2435  grep -v '^ *+' conftest.er1 >conftest.err
     2436  rm -f conftest.er1
     2437  cat conftest.err >&5
    22822438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22832439  (exit $ac_status); } &&
    2284          { ac_try='test -s conftest.$ac_objext'
     2440         { ac_try='test -z "$ac_c_werror_flag"
     2441                         || test ! -s conftest.err'
    22852442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22862443  (eval $ac_try) 2>&5
    22872444  ac_status=$?
    22882445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2446  (exit $ac_status); }; } &&
     2447         { ac_try='test -s conftest.$ac_objext'
     2448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2449  (eval $ac_try) 2>&5
     2450  ac_status=$?
     2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22892452  (exit $ac_status); }; }; then
    22902453  ac_compiler_gnu=yes
    22912454else
    22922455  echo "$as_me: failed program was:" >&5
    2293 cat conftest.$ac_ext >&5
     2456sed 's/^/| /' conftest.$ac_ext >&5
     2457
    22942458ac_compiler_gnu=no
    22952459fi
    2296 rm -f conftest.$ac_objext conftest.$ac_ext
     2460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    22972461ac_cv_c_compiler_gnu=$ac_compiler_gnu
    22982462
     
    23102474else
    23112475  cat >conftest.$ac_ext <<_ACEOF
    2312 #line $LINENO "configure"
    2313 #include "confdefs.h"
    2314 
    2315 #ifdef F77_DUMMY_MAIN
    2316 #  ifdef __cplusplus
    2317      extern "C"
    2318 #  endif
    2319    int F77_DUMMY_MAIN() { return 1; }
    2320 #endif
     2476/* confdefs.h.  */
     2477_ACEOF
     2478cat confdefs.h >>conftest.$ac_ext
     2479cat >>conftest.$ac_ext <<_ACEOF
     2480/* end confdefs.h.  */
     2481
    23212482int
    23222483main ()
     
    23292490rm -f conftest.$ac_objext
    23302491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2331   (eval $ac_compile) 2>&5
    2332   ac_status=$?
     2492  (eval $ac_compile) 2>conftest.er1
     2493  ac_status=$?
     2494  grep -v '^ *+' conftest.er1 >conftest.err
     2495  rm -f conftest.er1
     2496  cat conftest.err >&5
    23332497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23342498  (exit $ac_status); } &&
    2335          { ac_try='test -s conftest.$ac_objext'
     2499         { ac_try='test -z "$ac_c_werror_flag"
     2500                         || test ! -s conftest.err'
    23362501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23372502  (eval $ac_try) 2>&5
    23382503  ac_status=$?
    23392504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2505  (exit $ac_status); }; } &&
     2506         { ac_try='test -s conftest.$ac_objext'
     2507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2508  (eval $ac_try) 2>&5
     2509  ac_status=$?
     2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23402511  (exit $ac_status); }; }; then
    23412512  ac_cv_prog_cc_g=yes
    23422513else
    23432514  echo "$as_me: failed program was:" >&5
    2344 cat conftest.$ac_ext >&5
     2515sed 's/^/| /' conftest.$ac_ext >&5
     2516
    23452517ac_cv_prog_cc_g=no
    23462518fi
    2347 rm -f conftest.$ac_objext conftest.$ac_ext
     2519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    23482520fi
    23492521echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     
    23642536  fi
    23652537fi
     2538echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2539echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2540if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2541  echo $ECHO_N "(cached) $ECHO_C" >&6
     2542else
     2543  ac_cv_prog_cc_stdc=no
     2544ac_save_CC=$CC
     2545cat >conftest.$ac_ext <<_ACEOF
     2546/* confdefs.h.  */
     2547_ACEOF
     2548cat confdefs.h >>conftest.$ac_ext
     2549cat >>conftest.$ac_ext <<_ACEOF
     2550/* end confdefs.h.  */
     2551#include <stdarg.h>
     2552#include <stdio.h>
     2553#include <sys/types.h>
     2554#include <sys/stat.h>
     2555/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2556struct buf { int x; };
     2557FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2558static char *e (p, i)
     2559     char **p;
     2560     int i;
     2561{
     2562  return p[i];
     2563}
     2564static char *f (char * (*g) (char **, int), char **p, ...)
     2565{
     2566  char *s;
     2567  va_list v;
     2568  va_start (v,p);
     2569  s = g (p, va_arg (v,int));
     2570  va_end (v);
     2571  return s;
     2572}
     2573
     2574/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2575   function prototypes and stuff, but not '\xHH' hex character constants.
     2576   These don't provoke an error unfortunately, instead are silently treated
     2577   as 'x'.  The following induces an error, until -std1 is added to get
     2578   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2579   array size at least.  It's necessary to write '\x00'==0 to get something
     2580   that's true only with -std1.  */
     2581int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2582
     2583int test (int i, double x);
     2584struct s1 {int (*f) (int a);};
     2585struct s2 {int (*f) (double a);};
     2586int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2587int argc;
     2588char **argv;
     2589int
     2590main ()
     2591{
     2592return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2593  ;
     2594  return 0;
     2595}
     2596_ACEOF
     2597# Don't try gcc -ansi; that turns off useful extensions and
     2598# breaks some systems' header files.
     2599# AIX                   -qlanglvl=ansi
     2600# Ultrix and OSF/1      -std1
     2601# HP-UX 10.20 and later -Ae
     2602# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2603# SVR4                  -Xc -D__EXTENSIONS__
     2604for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2605do
     2606  CC="$ac_save_CC $ac_arg"
     2607  rm -f conftest.$ac_objext
     2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2609  (eval $ac_compile) 2>conftest.er1
     2610  ac_status=$?
     2611  grep -v '^ *+' conftest.er1 >conftest.err
     2612  rm -f conftest.er1
     2613  cat conftest.err >&5
     2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2615  (exit $ac_status); } &&
     2616         { ac_try='test -z "$ac_c_werror_flag"
     2617                         || test ! -s conftest.err'
     2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2619  (eval $ac_try) 2>&5
     2620  ac_status=$?
     2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2622  (exit $ac_status); }; } &&
     2623         { ac_try='test -s conftest.$ac_objext'
     2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2625  (eval $ac_try) 2>&5
     2626  ac_status=$?
     2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2628  (exit $ac_status); }; }; then
     2629  ac_cv_prog_cc_stdc=$ac_arg
     2630break
     2631else
     2632  echo "$as_me: failed program was:" >&5
     2633sed 's/^/| /' conftest.$ac_ext >&5
     2634
     2635fi
     2636rm -f conftest.err conftest.$ac_objext
     2637done
     2638rm -f conftest.$ac_ext conftest.$ac_objext
     2639CC=$ac_save_CC
     2640
     2641fi
     2642
     2643case "x$ac_cv_prog_cc_stdc" in
     2644  x|xno)
     2645    echo "$as_me:$LINENO: result: none needed" >&5
     2646echo "${ECHO_T}none needed" >&6 ;;
     2647  *)
     2648    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2649echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2650    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2651esac
     2652
    23662653# Some people use a C++ compiler to compile C.  Since we use `exit',
    23672654# in C++ we need to declare it.  In case someone uses the same compiler
     
    23752662rm -f conftest.$ac_objext
    23762663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2377   (eval $ac_compile) 2>&5
    2378   ac_status=$?
     2664  (eval $ac_compile) 2>conftest.er1
     2665  ac_status=$?
     2666  grep -v '^ *+' conftest.er1 >conftest.err
     2667  rm -f conftest.er1
     2668  cat conftest.err >&5
    23792669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23802670  (exit $ac_status); } &&
    2381          { ac_try='test -s conftest.$ac_objext'
     2671         { ac_try='test -z "$ac_c_werror_flag"
     2672                         || test ! -s conftest.err'
    23822673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23832674  (eval $ac_try) 2>&5
    23842675  ac_status=$?
    23852676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2677  (exit $ac_status); }; } &&
     2678         { ac_try='test -s conftest.$ac_objext'
     2679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2680  (eval $ac_try) 2>&5
     2681  ac_status=$?
     2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23862683  (exit $ac_status); }; }; then
    23872684  for ac_declaration in \
    2388    ''\
    2389    '#include <stdlib.h>' \
     2685   '' \
    23902686   'extern "C" void std::exit (int) throw (); using std::exit;' \
    23912687   'extern "C" void std::exit (int); using std::exit;' \
     
    23952691do
    23962692  cat >conftest.$ac_ext <<_ACEOF
    2397 #line $LINENO "configure"
    2398 #include "confdefs.h"
     2693/* confdefs.h.  */
     2694_ACEOF
     2695cat confdefs.h >>conftest.$ac_ext
     2696cat >>conftest.$ac_ext <<_ACEOF
     2697/* end confdefs.h.  */
     2698$ac_declaration
    23992699#include <stdlib.h>
    2400 $ac_declaration
    2401 #ifdef F77_DUMMY_MAIN
    2402 #  ifdef __cplusplus
    2403      extern "C"
    2404 #  endif
    2405    int F77_DUMMY_MAIN() { return 1; }
    2406 #endif
    24072700int
    24082701main ()
     
    24152708rm -f conftest.$ac_objext
    24162709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2417   (eval $ac_compile) 2>&5
    2418   ac_status=$?
     2710  (eval $ac_compile) 2>conftest.er1
     2711  ac_status=$?
     2712  grep -v '^ *+' conftest.er1 >conftest.err
     2713  rm -f conftest.er1
     2714  cat conftest.err >&5
    24192715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24202716  (exit $ac_status); } &&
    2421          { ac_try='test -s conftest.$ac_objext'
     2717         { ac_try='test -z "$ac_c_werror_flag"
     2718                         || test ! -s conftest.err'
    24222719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    24232720  (eval $ac_try) 2>&5
    24242721  ac_status=$?
    24252722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2723  (exit $ac_status); }; } &&
     2724         { ac_try='test -s conftest.$ac_objext'
     2725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2726  (eval $ac_try) 2>&5
     2727  ac_status=$?
     2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24262729  (exit $ac_status); }; }; then
    24272730  :
    24282731else
    24292732  echo "$as_me: failed program was:" >&5
    2430 cat conftest.$ac_ext >&5
     2733sed 's/^/| /' conftest.$ac_ext >&5
     2734
    24312735continue
    24322736fi
    2433 rm -f conftest.$ac_objext conftest.$ac_ext
     2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    24342738  cat >conftest.$ac_ext <<_ACEOF
    2435 #line $LINENO "configure"
    2436 #include "confdefs.h"
     2739/* confdefs.h.  */
     2740_ACEOF
     2741cat confdefs.h >>conftest.$ac_ext
     2742cat >>conftest.$ac_ext <<_ACEOF
     2743/* end confdefs.h.  */
    24372744$ac_declaration
    2438 #ifdef F77_DUMMY_MAIN
    2439 #  ifdef __cplusplus
    2440      extern "C"
    2441 #  endif
    2442    int F77_DUMMY_MAIN() { return 1; }
    2443 #endif
    24442745int
    24452746main ()
     
    24522753rm -f conftest.$ac_objext
    24532754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2454   (eval $ac_compile) 2>&5
    2455   ac_status=$?
     2755  (eval $ac_compile) 2>conftest.er1
     2756  ac_status=$?
     2757  grep -v '^ *+' conftest.er1 >conftest.err
     2758  rm -f conftest.er1
     2759  cat conftest.err >&5
    24562760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24572761  (exit $ac_status); } &&
    2458          { ac_try='test -s conftest.$ac_objext'
     2762         { ac_try='test -z "$ac_c_werror_flag"
     2763                         || test ! -s conftest.err'
    24592764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    24602765  (eval $ac_try) 2>&5
    24612766  ac_status=$?
    24622767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2768  (exit $ac_status); }; } &&
     2769         { ac_try='test -s conftest.$ac_objext'
     2770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2771  (eval $ac_try) 2>&5
     2772  ac_status=$?
     2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24632774  (exit $ac_status); }; }; then
    24642775  break
    24652776else
    24662777  echo "$as_me: failed program was:" >&5
    2467 cat conftest.$ac_ext >&5
    2468 fi
    2469 rm -f conftest.$ac_objext conftest.$ac_ext
     2778sed 's/^/| /' conftest.$ac_ext >&5
     2779
     2780fi
     2781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    24702782done
    24712783rm -f conftest*
     
    24782790else
    24792791  echo "$as_me: failed program was:" >&5
    2480 cat conftest.$ac_ext >&5
    2481 fi
    2482 rm -f conftest.$ac_objext conftest.$ac_ext
     2792sed 's/^/| /' conftest.$ac_ext >&5
     2793
     2794fi
     2795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    24832796ac_ext=c
    24842797ac_cpp='$CPP $CPPFLAGS'
     
    24872800ac_compiler_gnu=$ac_cv_c_compiler_gnu
    24882801
    2489 ac_config_commands="$ac_config_commands default-1"
     2802          ac_config_commands="$ac_config_commands default-1"
    24902803
    24912804am_make=${MAKE-make}
     
    26082921# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    26092922# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     2923# OS/2's system install, which has a completely different semantic
    26102924# ./install, which can be erroneously created by make from ./install.sh.
    26112925echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     
    26242938  ./ | .// | /cC/* | \
    26252939  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     2940  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    26262941  /usr/ucb/* ) ;;
    26272942  *)
     
    26312946    for ac_prog in ginstall scoinst install; do
    26322947      for ac_exec_ext in '' $ac_executable_extensions; do
    2633         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    2634           if test $ac_prog = install &&
    2635             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2636             # AIX install.  It has an incompatible calling convention.
    2637             :
    2638           elif test $ac_prog = install &&
    2639             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2640             # program-specific install script used by HP pwplus--don't use.
    2641             :
    2642           else
    2643             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    2644             break 3
    2645           fi
    2646         fi
     2948        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     2949          if test $ac_prog = install &&
     2950            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2951            # AIX install.  It has an incompatible calling convention.
     2952            :
     2953          elif test $ac_prog = install &&
     2954            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2955            # program-specific install script used by HP pwplus--don't use.
     2956            :
     2957          else
     2958            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     2959            break 3
     2960          fi
     2961        fi
    26472962      done
    26482963    done
     
    26782993  enableval="$enable_shared"
    26792994  p=${PACKAGE-default}
    2680 case $enableval in
    2681 yes) enable_shared=yes ;;
    2682 no) enable_shared=no ;;
    2683 *)
    2684   enable_shared=no
    2685   # Look at the argument we got.  We use all the common list separators.
    2686   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
    2687   for pkg in $enableval; do
    2688     if test "X$pkg" = "X$p"; then
    2689       enable_shared=yes
    2690     fi
    2691   done
    2692   IFS="$ac_save_ifs"
    2693   ;;
    2694 esac
     2995    case $enableval in
     2996    yes) enable_shared=yes ;;
     2997    no) enable_shared=no ;;
     2998    *)
     2999      enable_shared=no
     3000      # Look at the argument we got.  We use all the common list separators.
     3001      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     3002      for pkg in $enableval; do
     3003        IFS="$lt_save_ifs"
     3004        if test "X$pkg" = "X$p"; then
     3005          enable_shared=yes
     3006        fi
     3007      done
     3008      IFS="$lt_save_ifs"
     3009      ;;
     3010    esac
    26953011else
    26963012  enable_shared=yes
    26973013fi;
     3014
    26983015# Check whether --enable-static or --disable-static was given.
    26993016if test "${enable_static+set}" = set; then
    27003017  enableval="$enable_static"
    27013018  p=${PACKAGE-default}
    2702 case $enableval in
    2703 yes) enable_static=yes ;;
    2704 no) enable_static=no ;;
    2705 *)
    2706   enable_static=no
    2707   # Look at the argument we got.  We use all the common list separators.
    2708   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
    2709   for pkg in $enableval; do
    2710     if test "X$pkg" = "X$p"; then
    2711       enable_static=yes
    2712     fi
    2713   done
    2714   IFS="$ac_save_ifs"
    2715   ;;
    2716 esac
     3019    case $enableval in
     3020    yes) enable_static=yes ;;
     3021    no) enable_static=no ;;
     3022    *)
     3023     enable_static=no
     3024      # Look at the argument we got.  We use all the common list separators.
     3025      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     3026      for pkg in $enableval; do
     3027        IFS="$lt_save_ifs"
     3028        if test "X$pkg" = "X$p"; then
     3029          enable_static=yes
     3030        fi
     3031      done
     3032      IFS="$lt_save_ifs"
     3033      ;;
     3034    esac
    27173035else
    27183036  enable_static=yes
    27193037fi;
     3038
    27203039# Check whether --enable-fast-install or --disable-fast-install was given.
    27213040if test "${enable_fast_install+set}" = set; then
    27223041  enableval="$enable_fast_install"
    27233042  p=${PACKAGE-default}
    2724 case $enableval in
    2725 yes) enable_fast_install=yes ;;
    2726 no) enable_fast_install=no ;;
    2727 *)
    2728   enable_fast_install=no
    2729   # Look at the argument we got.  We use all the common list separators.
    2730   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
    2731   for pkg in $enableval; do
    2732     if test "X$pkg" = "X$p"; then
    2733       enable_fast_install=yes
    2734     fi
    2735   done
    2736   IFS="$ac_save_ifs"
    2737   ;;
    2738 esac
     3043    case $enableval in
     3044    yes) enable_fast_install=yes ;;
     3045    no) enable_fast_install=no ;;
     3046    *)
     3047      enable_fast_install=no
     3048      # Look at the argument we got.  We use all the common list separators.
     3049      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     3050      for pkg in $enableval; do
     3051        IFS="$lt_save_ifs"
     3052        if test "X$pkg" = "X$p"; then
     3053          enable_fast_install=yes
     3054        fi
     3055      done
     3056      IFS="$lt_save_ifs"
     3057      ;;
     3058    esac
    27393059else
    27403060  enable_fast_install=yes
    27413061fi;
     3062
    27423063# Make sure we can run config.sub.
    27433064$ac_config_sub sun4 >/dev/null 2>&1 ||
     
    27943115
    27953116
    2796 # Find the correct PATH separator.  Usually this is `:', but
    2797 # DJGPP uses `;' like DOS.
    2798 if test "X${PATH_SEPARATOR+set}" != Xset; then
    2799   UNAME=${UNAME-`uname 2>/dev/null`}
    2800   case X$UNAME in
    2801     *-DOS) lt_cv_sys_path_separator=';' ;;
    2802     *)     lt_cv_sys_path_separator=':' ;;
    2803   esac
    2804   PATH_SEPARATOR=$lt_cv_sys_path_separator
    2805 fi
     3117echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
     3118echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
     3119if test "${lt_cv_path_SED+set}" = set; then
     3120  echo $ECHO_N "(cached) $ECHO_C" >&6
     3121else
     3122  # Loop through the user's path and test for sed and gsed.
     3123# Then use that list of sed's as ones to test for truncation.
     3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3125for as_dir in $PATH
     3126do
     3127  IFS=$as_save_IFS
     3128  test -z "$as_dir" && as_dir=.
     3129  for lt_ac_prog in sed gsed; do
     3130    for ac_exec_ext in '' $ac_executable_extensions; do
     3131      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
     3132        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
     3133      fi
     3134    done
     3135  done
     3136done
     3137lt_ac_max=0
     3138lt_ac_count=0
     3139# Add /usr/xpg4/bin/sed as it is typically found on Solaris
     3140# along with /bin/sed that truncates output.
     3141for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
     3142  test ! -f $lt_ac_sed && break
     3143  cat /dev/null > conftest.in
     3144  lt_ac_count=0
     3145  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
     3146  # Check for GNU sed and select it if it is found.
     3147  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
     3148    lt_cv_path_SED=$lt_ac_sed
     3149    break
     3150  fi
     3151  while true; do
     3152    cat conftest.in conftest.in >conftest.tmp
     3153    mv conftest.tmp conftest.in
     3154    cp conftest.in conftest.nl
     3155    echo >>conftest.nl
     3156    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
     3157    cmp -s conftest.out conftest.nl || break
     3158    # 10000 chars as input seems more than enough
     3159    test $lt_ac_count -gt 10 && break
     3160    lt_ac_count=`expr $lt_ac_count + 1`
     3161    if test $lt_ac_count -gt $lt_ac_max; then
     3162      lt_ac_max=$lt_ac_count
     3163      lt_cv_path_SED=$lt_ac_sed
     3164    fi
     3165  done
     3166done
     3167SED=$lt_cv_path_SED
     3168
     3169fi
     3170
     3171echo "$as_me:$LINENO: result: $SED" >&5
     3172echo "${ECHO_T}$SED" >&6
     3173
     3174echo "$as_me:$LINENO: checking for egrep" >&5
     3175echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3176if test "${ac_cv_prog_egrep+set}" = set; then
     3177  echo $ECHO_N "(cached) $ECHO_C" >&6
     3178else
     3179  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3180    then ac_cv_prog_egrep='grep -E'
     3181    else ac_cv_prog_egrep='egrep'
     3182    fi
     3183fi
     3184echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3185echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3186 EGREP=$ac_cv_prog_egrep
     3187
    28063188
    28073189
     
    28163198if test "$GCC" = yes; then
    28173199  # Check if gcc -print-prog-name=ld gives a path.
    2818   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
    2819 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
     3200  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
     3201echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
    28203202  case $host in
    28213203  *-*-mingw*)
     
    28273209  case $ac_prog in
    28283210    # Accept absolute paths.
    2829     [\\/]* | [A-Za-z]:[\\/]*)
     3211    [\\/]* | ?:[\\/]*)
    28303212      re_direlt='/[^/][^/]*/\.\./'
    2831       # Canonicalize the path of ld
    2832       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
     3213      # Canonicalize the pathname of ld
     3214      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
    28333215      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
    2834         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
     3216        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
    28353217      done
    28363218      test -z "$LD" && LD="$ac_prog"
     
    28563238else
    28573239  if test -z "$LD"; then
    2858   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     3240  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    28593241  for ac_dir in $PATH; do
     3242    IFS="$lt_save_ifs"
    28603243    test -z "$ac_dir" && ac_dir=.
    28613244    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
     
    28643247      # but apparently some GNU ld's only accept -v.
    28653248      # Break only if it was the GNU/non-GNU ld that we prefer.
    2866       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
     3249      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
     3250      *GNU* | *'with BFD'*)
    28673251        test "$with_gnu_ld" != no && break
    2868       else
     3252        ;;
     3253      *)
    28693254        test "$with_gnu_ld" != yes && break
    2870       fi
     3255        ;;
     3256      esac
    28713257    fi
    28723258  done
    2873   IFS="$ac_save_ifs"
     3259  IFS="$lt_save_ifs"
    28743260else
    28753261  lt_cv_path_LD="$LD" # Let the user override the test with a path.
     
    28943280else
    28953281  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
    2896 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
     3282case `$LD -v 2>&1 </dev/null` in
     3283*GNU* | *'with BFD'*)
    28973284  lt_cv_prog_gnu_ld=yes
    2898 else
     3285  ;;
     3286*)
    28993287  lt_cv_prog_gnu_ld=no
    2900 fi
     3288  ;;
     3289esac
    29013290fi
    29023291echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
     
    29153304echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
    29163305reload_flag=$lt_cv_ld_reload_flag
    2917 test -n "$reload_flag" && reload_flag=" $reload_flag"
     3306case $reload_flag in
     3307"" | " "*) ;;
     3308*) reload_flag=" $reload_flag" ;;
     3309esac
     3310reload_cmds='$LD$reload_flag -o $output$reload_objs'
    29183311
    29193312echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
     
    29263319  lt_cv_path_NM="$NM"
    29273320else
    2928   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     3321  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    29293322  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
     3323    IFS="$lt_save_ifs"
    29303324    test -z "$ac_dir" && ac_dir=.
    2931     tmp_nm=$ac_dir/${ac_tool_prefix}nm
    2932     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
     3325    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
     3326    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
    29333327      # Check to see if the nm accepts a BSD-compat flag.
    29343328      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
    29353329      #   nm: unknown option "B" ignored
    29363330      # Tru64's nm complains that /dev/null is an invalid object file
    2937       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
     3331      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
     3332      */dev/null* | *'Invalid file or object type'*)
    29383333        lt_cv_path_NM="$tmp_nm -B"
    29393334        break
    2940       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
    2941         lt_cv_path_NM="$tmp_nm -p"
    2942         break
    2943       else
    2944         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
    2945         continue # so that we can try to find one that supports BSD flags
    2946       fi
     3335        ;;
     3336      *)
     3337        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
     3338        */dev/null*)
     3339          lt_cv_path_NM="$tmp_nm -p"
     3340          break
     3341          ;;
     3342        *)
     3343          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
     3344          continue # so that we can try to find one that supports BSD flags
     3345          ;;
     3346        esac
     3347      esac
    29473348    fi
    29483349  done
    2949   IFS="$ac_save_ifs"
     3350  IFS="$lt_save_ifs"
    29503351  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
    29513352fi
    29523353fi
    2953 
     3354echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
     3355echo "${ECHO_T}$lt_cv_path_NM" >&6
    29543356NM="$lt_cv_path_NM"
    2955 echo "$as_me:$LINENO: result: $NM" >&5
    2956 echo "${ECHO_T}$NM" >&6
    29573357
    29583358echo "$as_me:$LINENO: checking whether ln -s works" >&5
     
    29673367fi
    29683368
    2969 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
    2970 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
     3369echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
     3370echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
    29713371if test "${lt_cv_deplibs_check_method+set}" = set; then
    29723372  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    29823382# 'test_compile' -- check by making test program.
    29833383# 'file_magic [[regex]]' -- check by looking for files in library path
    2984 # which responds to the $file_magic_cmd with a given egrep regex.
     3384# which responds to the $file_magic_cmd with a given extended regex.
    29853385# If you have `file' or equivalent on your system and you're not sure
    29863386# whether `pass_all' will *always* work, you probably want this one.
     
    30013401  ;;
    30023402
    3003 cygwin* | mingw* | pw32*)
     3403cygwin*)
     3404  # win32_libid is a shell function defined in ltmain.sh
     3405  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     3406  lt_cv_file_magic_cmd='win32_libid'
     3407  ;;
     3408
     3409mingw* | pw32*)
     3410  # Base MSYS/MinGW do not provide the 'file' command needed by
     3411  # win32_libid shell function, so use a weaker test based on 'objdump'.
    30043412  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    30053413  lt_cv_file_magic_cmd='$OBJDUMP -f'
     
    30073415
    30083416darwin* | rhapsody*)
    3009   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
    3010   lt_cv_file_magic_cmd='/usr/bin/file -L'
    3011   case "$host_os" in
    3012   rhapsody* | darwin1.[012])
    3013     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
    3014     ;;
    3015   *) # Darwin 1.3 on
    3016     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
    3017     ;;
    3018   esac
     3417  lt_cv_deplibs_check_method=pass_all
    30193418  ;;
    30203419
    3021 freebsd*)
     3420freebsd* | kfreebsd*-gnu)
    30223421  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    30233422    case $host_cpu in
     
    30393438  ;;
    30403439
    3041 hpux10.20*|hpux11*)
    3042   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
     3440hpux10.20* | hpux11*)
    30433441  lt_cv_file_magic_cmd=/usr/bin/file
    3044   lt_cv_file_magic_test_file=/usr/lib/libc.sl
    3045   ;;
    3046 
    3047 irix5* | irix6* | nonstopux*)
    3048   case $host_os in
    3049   irix5* | nonstopux*)
    3050     # this will be overridden with pass_all, but let us keep it just in case
    3051     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
     3442  case "$host_cpu" in
     3443  ia64*)
     3444    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
     3445    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
     3446    ;;
     3447  hppa*64*)
     3448    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]'
     3449    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    30523450    ;;
    30533451  *)
    3054     case $LD in
    3055     *-32|*"-32 ") libmagic=32-bit;;
    3056     *-n32|*"-n32 ") libmagic=N32;;
    3057     *-64|*"-64 ") libmagic=64-bit;;
    3058     *) libmagic=never-match;;
    3059     esac
    3060     # this will be overridden with pass_all, but let us keep it just in case
    3061     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
     3452    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
     3453    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    30623454    ;;
    30633455  esac
    3064   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
     3456  ;;
     3457
     3458irix5* | irix6* | nonstopux*)
     3459  case $LD in
     3460  *-32|*"-32 ") libmagic=32-bit;;
     3461  *-n32|*"-n32 ") libmagic=N32;;
     3462  *-64|*"-64 ") libmagic=64-bit;;
     3463  *) libmagic=never-match;;
     3464  esac
    30653465  lt_cv_deplibs_check_method=pass_all
    30663466  ;;
    30673467
    30683468# This must be Linux ELF.
    3069 linux-gnu*)
     3469linux*)
     3470  case $host_cpu in
     3471  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
     3472    lt_cv_deplibs_check_method=pass_all ;;
     3473  *)
     3474    # glibc up to 2.1.1 does not perform some relocations on ARM
     3475    # this will be overridden with pass_all, but let us keep it just in case
     3476    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
     3477  esac
     3478  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
    30703479  lt_cv_deplibs_check_method=pass_all
    3071   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
    30723480  ;;
    30733481
    30743482netbsd*)
    30753483  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    3076     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
     3484    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
    30773485  else
    3078     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
     3486    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
    30793487  fi
    30803488  ;;
     
    30843492  lt_cv_file_magic_cmd=/usr/bin/file
    30853493  lt_cv_file_magic_test_file=/usr/lib/libnls.so
     3494  ;;
     3495
     3496nto-qnx*)
     3497  lt_cv_deplibs_check_method=unknown
    30863498  ;;
    30873499
     
    30973509
    30983510osf3* | osf4* | osf5*)
    3099   # this will be overridden with pass_all, but let us keep it just in case
    3100   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
    3101   lt_cv_file_magic_test_file=/shlib/libc.so
    31023511  lt_cv_deplibs_check_method=pass_all
    31033512  ;;
     
    31083517
    31093518solaris*)
    3110   lt_cv_deplibs_check_method=pass_all
    3111   lt_cv_file_magic_test_file=/lib/libc.so
    3112   ;;
    3113 
    3114 sysv5uw[78]* | sysv4*uw2*)
    31153519  lt_cv_deplibs_check_method=pass_all
    31163520  ;;
     
    31343538    lt_cv_file_magic_test_file=/lib/libc.so
    31353539    ;;
     3540  siemens)
     3541    lt_cv_deplibs_check_method=pass_all
     3542    ;;
    31363543  esac
     3544  ;;
     3545
     3546sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
     3547  lt_cv_deplibs_check_method=pass_all
    31373548  ;;
    31383549esac
     
    31433554file_magic_cmd=$lt_cv_file_magic_cmd
    31443555deplibs_check_method=$lt_cv_deplibs_check_method
    3145 
    3146 
    3147 
    3148 
     3556test -z "$deplibs_check_method" && deplibs_check_method=unknown
     3557
     3558
     3559
     3560
     3561# If no C compiler was specified, use CC.
     3562LTCC=${LTCC-"$CC"}
     3563
     3564# Allow CC to be a program name with arguments.
     3565compiler=$CC
     3566
     3567
     3568# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
     3569if test "${enable_libtool_lock+set}" = set; then
     3570  enableval="$enable_libtool_lock"
     3571
     3572fi;
     3573test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
     3574
     3575# Some flags need to be propagated to the compiler or linker for good
     3576# libtool support.
     3577case $host in
     3578ia64-*-hpux*)
     3579  # Find out which ABI we are using.
     3580  echo 'int i;' > conftest.$ac_ext
     3581  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3582  (eval $ac_compile) 2>&5
     3583  ac_status=$?
     3584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3585  (exit $ac_status); }; then
     3586    case `/usr/bin/file conftest.$ac_objext` in
     3587    *ELF-32*)
     3588      HPUX_IA64_MODE="32"
     3589      ;;
     3590    *ELF-64*)
     3591      HPUX_IA64_MODE="64"
     3592      ;;
     3593    esac
     3594  fi
     3595  rm -rf conftest*
     3596  ;;
     3597*-*-irix6*)
     3598  # Find out which ABI we are using.
     3599  echo '#line 3599 "configure"' > conftest.$ac_ext
     3600  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3601  (eval $ac_compile) 2>&5
     3602  ac_status=$?
     3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3604  (exit $ac_status); }; then
     3605   if test "$lt_cv_prog_gnu_ld" = yes; then
     3606    case `/usr/bin/file conftest.$ac_objext` in
     3607    *32-bit*)
     3608      LD="${LD-ld} -melf32bsmip"
     3609      ;;
     3610    *N32*)
     3611      LD="${LD-ld} -melf32bmipn32"
     3612      ;;
     3613    *64-bit*)
     3614      LD="${LD-ld} -melf64bmip"
     3615      ;;
     3616    esac
     3617   else
     3618    case `/usr/bin/file conftest.$ac_objext` in
     3619    *32-bit*)
     3620      LD="${LD-ld} -32"
     3621      ;;
     3622    *N32*)
     3623      LD="${LD-ld} -n32"
     3624      ;;
     3625    *64-bit*)
     3626      LD="${LD-ld} -64"
     3627      ;;
     3628    esac
     3629   fi
     3630  fi
     3631  rm -rf conftest*
     3632  ;;
     3633
     3634x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
     3635  # Find out which ABI we are using.
     3636  echo 'int i;' > conftest.$ac_ext
     3637  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3638  (eval $ac_compile) 2>&5
     3639  ac_status=$?
     3640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3641  (exit $ac_status); }; then
     3642    case "`/usr/bin/file conftest.o`" in
     3643    *32-bit*)
     3644      case $host in
     3645        x86_64-*linux*)
     3646          LD="${LD-ld} -m elf_i386"
     3647          ;;
     3648        ppc64-*linux*|powerpc64-*linux*)
     3649          LD="${LD-ld} -m elf32ppclinux"
     3650          ;;
     3651        s390x-*linux*)
     3652          LD="${LD-ld} -m elf_s390"
     3653          ;;
     3654        sparc64-*linux*)
     3655          LD="${LD-ld} -m elf32_sparc"
     3656          ;;
     3657      esac
     3658      ;;
     3659    *64-bit*)
     3660      case $host in
     3661        x86_64-*linux*)
     3662          LD="${LD-ld} -m elf_x86_64"
     3663          ;;
     3664        ppc*-*linux*|powerpc*-*linux*)
     3665          LD="${LD-ld} -m elf64ppc"
     3666          ;;
     3667        s390*-*linux*)
     3668          LD="${LD-ld} -m elf64_s390"
     3669          ;;
     3670        sparc*-*linux*)
     3671          LD="${LD-ld} -m elf64_sparc"
     3672          ;;
     3673      esac
     3674      ;;
     3675    esac
     3676  fi
     3677  rm -rf conftest*
     3678  ;;
     3679
     3680*-*-linux*)
     3681  # Test if the compiler is 64bit
     3682  echo 'int i;' > conftest.$ac_ext
     3683  lt_cv_cc_64bit_output=no
     3684  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3685  (eval $ac_compile) 2>&5
     3686  ac_status=$?
     3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3688  (exit $ac_status); }; then
     3689    case `/usr/bin/file conftest.$ac_objext` in
     3690    *"ELF 64"*)
     3691      lt_cv_cc_64bit_output=yes
     3692      ;;
     3693    esac
     3694  fi
     3695  rm -rf conftest*
     3696  ;;
     3697
     3698*-*-sco3.2v5*)
     3699  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
     3700  SAVE_CFLAGS="$CFLAGS"
     3701  CFLAGS="$CFLAGS -belf"
     3702  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
     3703echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
     3704if test "${lt_cv_cc_needs_belf+set}" = set; then
     3705  echo $ECHO_N "(cached) $ECHO_C" >&6
     3706else
     3707  ac_ext=c
     3708ac_cpp='$CPP $CPPFLAGS'
     3709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3711ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3712
     3713     cat >conftest.$ac_ext <<_ACEOF
     3714/* confdefs.h.  */
     3715_ACEOF
     3716cat confdefs.h >>conftest.$ac_ext
     3717cat >>conftest.$ac_ext <<_ACEOF
     3718/* end confdefs.h.  */
     3719
     3720int
     3721main ()
     3722{
     3723
     3724  ;
     3725  return 0;
     3726}
     3727_ACEOF
     3728rm -f conftest.$ac_objext conftest$ac_exeext
     3729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3730  (eval $ac_link) 2>conftest.er1
     3731  ac_status=$?
     3732  grep -v '^ *+' conftest.er1 >conftest.err
     3733  rm -f conftest.er1
     3734  cat conftest.err >&5
     3735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3736  (exit $ac_status); } &&
     3737         { ac_try='test -z "$ac_c_werror_flag"
     3738                         || test ! -s conftest.err'
     3739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3740  (eval $ac_try) 2>&5
     3741  ac_status=$?
     3742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3743  (exit $ac_status); }; } &&
     3744         { ac_try='test -s conftest$ac_exeext'
     3745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3746  (eval $ac_try) 2>&5
     3747  ac_status=$?
     3748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3749  (exit $ac_status); }; }; then
     3750  lt_cv_cc_needs_belf=yes
     3751else
     3752  echo "$as_me: failed program was:" >&5
     3753sed 's/^/| /' conftest.$ac_ext >&5
     3754
     3755lt_cv_cc_needs_belf=no
     3756fi
     3757rm -f conftest.err conftest.$ac_objext \
     3758      conftest$ac_exeext conftest.$ac_ext
     3759     ac_ext=c
     3760ac_cpp='$CPP $CPPFLAGS'
     3761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3763ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3764
     3765fi
     3766echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
     3767echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
     3768  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
     3769    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
     3770    CFLAGS="$SAVE_CFLAGS"
     3771  fi
     3772  ;;
     3773
     3774esac
     3775
     3776need_locks="$enable_libtool_lock"
     3777
     3778
     3779ac_ext=c
     3780ac_cpp='$CPP $CPPFLAGS'
     3781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3783ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3784echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     3785echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     3786# On Suns, sometimes $CPP names a directory.
     3787if test -n "$CPP" && test -d "$CPP"; then
     3788  CPP=
     3789fi
     3790if test -z "$CPP"; then
     3791  if test "${ac_cv_prog_CPP+set}" = set; then
     3792  echo $ECHO_N "(cached) $ECHO_C" >&6
     3793else
     3794      # Double quotes because CPP needs to be expanded
     3795    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     3796    do
     3797      ac_preproc_ok=false
     3798for ac_c_preproc_warn_flag in '' yes
     3799do
     3800  # Use a header file that comes with gcc, so configuring glibc
     3801  # with a fresh cross-compiler works.
     3802  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3803  # <limits.h> exists even on freestanding compilers.
     3804  # On the NeXT, cc -E runs the code through the compiler's parser,
     3805  # not just through cpp. "Syntax error" is here to catch this case.
     3806  cat >conftest.$ac_ext <<_ACEOF
     3807/* confdefs.h.  */
     3808_ACEOF
     3809cat confdefs.h >>conftest.$ac_ext
     3810cat >>conftest.$ac_ext <<_ACEOF
     3811/* end confdefs.h.  */
     3812#ifdef __STDC__
     3813# include <limits.h>
     3814#else
     3815# include <assert.h>
     3816#endif
     3817                     Syntax error
     3818_ACEOF
     3819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3820  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3821  ac_status=$?
     3822  grep -v '^ *+' conftest.er1 >conftest.err
     3823  rm -f conftest.er1
     3824  cat conftest.err >&5
     3825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3826  (exit $ac_status); } >/dev/null; then
     3827  if test -s conftest.err; then
     3828    ac_cpp_err=$ac_c_preproc_warn_flag
     3829    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3830  else
     3831    ac_cpp_err=
     3832  fi
     3833else
     3834  ac_cpp_err=yes
     3835fi
     3836if test -z "$ac_cpp_err"; then
     3837  :
     3838else
     3839  echo "$as_me: failed program was:" >&5
     3840sed 's/^/| /' conftest.$ac_ext >&5
     3841
     3842  # Broken: fails on valid input.
     3843continue
     3844fi
     3845rm -f conftest.err conftest.$ac_ext
     3846
     3847  # OK, works on sane cases.  Now check whether non-existent headers
     3848  # can be detected and how.
     3849  cat >conftest.$ac_ext <<_ACEOF
     3850/* confdefs.h.  */
     3851_ACEOF
     3852cat confdefs.h >>conftest.$ac_ext
     3853cat >>conftest.$ac_ext <<_ACEOF
     3854/* end confdefs.h.  */
     3855#include <ac_nonexistent.h>
     3856_ACEOF
     3857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3858  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3859  ac_status=$?
     3860  grep -v '^ *+' conftest.er1 >conftest.err
     3861  rm -f conftest.er1
     3862  cat conftest.err >&5
     3863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3864  (exit $ac_status); } >/dev/null; then
     3865  if test -s conftest.err; then
     3866    ac_cpp_err=$ac_c_preproc_warn_flag
     3867    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3868  else
     3869    ac_cpp_err=
     3870  fi
     3871else
     3872  ac_cpp_err=yes
     3873fi
     3874if test -z "$ac_cpp_err"; then
     3875  # Broken: success on invalid input.
     3876continue
     3877else
     3878  echo "$as_me: failed program was:" >&5
     3879sed 's/^/| /' conftest.$ac_ext >&5
     3880
     3881  # Passes both tests.
     3882ac_preproc_ok=:
     3883break
     3884fi
     3885rm -f conftest.err conftest.$ac_ext
     3886
     3887done
     3888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3889rm -f conftest.err conftest.$ac_ext
     3890if $ac_preproc_ok; then
     3891  break
     3892fi
     3893
     3894    done
     3895    ac_cv_prog_CPP=$CPP
     3896
     3897fi
     3898  CPP=$ac_cv_prog_CPP
     3899else
     3900  ac_cv_prog_CPP=$CPP
     3901fi
     3902echo "$as_me:$LINENO: result: $CPP" >&5
     3903echo "${ECHO_T}$CPP" >&6
     3904ac_preproc_ok=false
     3905for ac_c_preproc_warn_flag in '' yes
     3906do
     3907  # Use a header file that comes with gcc, so configuring glibc
     3908  # with a fresh cross-compiler works.
     3909  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3910  # <limits.h> exists even on freestanding compilers.
     3911  # On the NeXT, cc -E runs the code through the compiler's parser,
     3912  # not just through cpp. "Syntax error" is here to catch this case.
     3913  cat >conftest.$ac_ext <<_ACEOF
     3914/* confdefs.h.  */
     3915_ACEOF
     3916cat confdefs.h >>conftest.$ac_ext
     3917cat >>conftest.$ac_ext <<_ACEOF
     3918/* end confdefs.h.  */
     3919#ifdef __STDC__
     3920# include <limits.h>
     3921#else
     3922# include <assert.h>
     3923#endif
     3924                     Syntax error
     3925_ACEOF
     3926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3927  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3928  ac_status=$?
     3929  grep -v '^ *+' conftest.er1 >conftest.err
     3930  rm -f conftest.er1
     3931  cat conftest.err >&5
     3932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3933  (exit $ac_status); } >/dev/null; then
     3934  if test -s conftest.err; then
     3935    ac_cpp_err=$ac_c_preproc_warn_flag
     3936    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3937  else
     3938    ac_cpp_err=
     3939  fi
     3940else
     3941  ac_cpp_err=yes
     3942fi
     3943if test -z "$ac_cpp_err"; then
     3944  :
     3945else
     3946  echo "$as_me: failed program was:" >&5
     3947sed 's/^/| /' conftest.$ac_ext >&5
     3948
     3949  # Broken: fails on valid input.
     3950continue
     3951fi
     3952rm -f conftest.err conftest.$ac_ext
     3953
     3954  # OK, works on sane cases.  Now check whether non-existent headers
     3955  # can be detected and how.
     3956  cat >conftest.$ac_ext <<_ACEOF
     3957/* confdefs.h.  */
     3958_ACEOF
     3959cat confdefs.h >>conftest.$ac_ext
     3960cat >>conftest.$ac_ext <<_ACEOF
     3961/* end confdefs.h.  */
     3962#include <ac_nonexistent.h>
     3963_ACEOF
     3964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3965  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3966  ac_status=$?
     3967  grep -v '^ *+' conftest.er1 >conftest.err
     3968  rm -f conftest.er1
     3969  cat conftest.err >&5
     3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3971  (exit $ac_status); } >/dev/null; then
     3972  if test -s conftest.err; then
     3973    ac_cpp_err=$ac_c_preproc_warn_flag
     3974    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3975  else
     3976    ac_cpp_err=
     3977  fi
     3978else
     3979  ac_cpp_err=yes
     3980fi
     3981if test -z "$ac_cpp_err"; then
     3982  # Broken: success on invalid input.
     3983continue
     3984else
     3985  echo "$as_me: failed program was:" >&5
     3986sed 's/^/| /' conftest.$ac_ext >&5
     3987
     3988  # Passes both tests.
     3989ac_preproc_ok=:
     3990break
     3991fi
     3992rm -f conftest.err conftest.$ac_ext
     3993
     3994done
     3995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3996rm -f conftest.err conftest.$ac_ext
     3997if $ac_preproc_ok; then
     3998  :
     3999else
     4000  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     4001See \`config.log' for more details." >&5
     4002echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     4003See \`config.log' for more details." >&2;}
     4004   { (exit 1); exit 1; }; }
     4005fi
     4006
     4007ac_ext=c
     4008ac_cpp='$CPP $CPPFLAGS'
     4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4012
     4013
     4014echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     4015echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     4016if test "${ac_cv_header_stdc+set}" = set; then
     4017  echo $ECHO_N "(cached) $ECHO_C" >&6
     4018else
     4019  cat >conftest.$ac_ext <<_ACEOF
     4020/* confdefs.h.  */
     4021_ACEOF
     4022cat confdefs.h >>conftest.$ac_ext
     4023cat >>conftest.$ac_ext <<_ACEOF
     4024/* end confdefs.h.  */
     4025#include <stdlib.h>
     4026#include <stdarg.h>
     4027#include <string.h>
     4028#include <float.h>
     4029
     4030int
     4031main ()
     4032{
     4033
     4034  ;
     4035  return 0;
     4036}
     4037_ACEOF
     4038rm -f conftest.$ac_objext
     4039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4040  (eval $ac_compile) 2>conftest.er1
     4041  ac_status=$?
     4042  grep -v '^ *+' conftest.er1 >conftest.err
     4043  rm -f conftest.er1
     4044  cat conftest.err >&5
     4045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4046  (exit $ac_status); } &&
     4047         { ac_try='test -z "$ac_c_werror_flag"
     4048                         || test ! -s conftest.err'
     4049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4050  (eval $ac_try) 2>&5
     4051  ac_status=$?
     4052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4053  (exit $ac_status); }; } &&
     4054         { ac_try='test -s conftest.$ac_objext'
     4055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4056  (eval $ac_try) 2>&5
     4057  ac_status=$?
     4058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4059  (exit $ac_status); }; }; then
     4060  ac_cv_header_stdc=yes
     4061else
     4062  echo "$as_me: failed program was:" >&5
     4063sed 's/^/| /' conftest.$ac_ext >&5
     4064
     4065ac_cv_header_stdc=no
     4066fi
     4067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4068
     4069if test $ac_cv_header_stdc = yes; then
     4070  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     4071  cat >conftest.$ac_ext <<_ACEOF
     4072/* confdefs.h.  */
     4073_ACEOF
     4074cat confdefs.h >>conftest.$ac_ext
     4075cat >>conftest.$ac_ext <<_ACEOF
     4076/* end confdefs.h.  */
     4077#include <string.h>
     4078
     4079_ACEOF
     4080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4081  $EGREP "memchr" >/dev/null 2>&1; then
     4082  :
     4083else
     4084  ac_cv_header_stdc=no
     4085fi
     4086rm -f conftest*
     4087
     4088fi
     4089
     4090if test $ac_cv_header_stdc = yes; then
     4091  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     4092  cat >conftest.$ac_ext <<_ACEOF
     4093/* confdefs.h.  */
     4094_ACEOF
     4095cat confdefs.h >>conftest.$ac_ext
     4096cat >>conftest.$ac_ext <<_ACEOF
     4097/* end confdefs.h.  */
     4098#include <stdlib.h>
     4099
     4100_ACEOF
     4101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4102  $EGREP "free" >/dev/null 2>&1; then
     4103  :
     4104else
     4105  ac_cv_header_stdc=no
     4106fi
     4107rm -f conftest*
     4108
     4109fi
     4110
     4111if test $ac_cv_header_stdc = yes; then
     4112  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     4113  if test "$cross_compiling" = yes; then
     4114  :
     4115else
     4116  cat >conftest.$ac_ext <<_ACEOF
     4117/* confdefs.h.  */
     4118_ACEOF
     4119cat confdefs.h >>conftest.$ac_ext
     4120cat >>conftest.$ac_ext <<_ACEOF
     4121/* end confdefs.h.  */
     4122#include <ctype.h>
     4123#if ((' ' & 0x0FF) == 0x020)
     4124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     4125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4126#else
     4127# define ISLOWER(c) \
     4128                   (('a' <= (c) && (c) <= 'i') \
     4129                     || ('j' <= (c) && (c) <= 'r') \
     4130                     || ('s' <= (c) && (c) <= 'z'))
     4131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     4132#endif
     4133
     4134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     4135int
     4136main ()
     4137{
     4138  int i;
     4139  for (i = 0; i < 256; i++)
     4140    if (XOR (islower (i), ISLOWER (i))
     4141        || toupper (i) != TOUPPER (i))
     4142      exit(2);
     4143  exit (0);
     4144}
     4145_ACEOF
     4146rm -f conftest$ac_exeext
     4147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4148  (eval $ac_link) 2>&5
     4149  ac_status=$?
     4150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4151  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4153  (eval $ac_try) 2>&5
     4154  ac_status=$?
     4155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4156  (exit $ac_status); }; }; then
     4157  :
     4158else
     4159  echo "$as_me: program exited with status $ac_status" >&5
     4160echo "$as_me: failed program was:" >&5
     4161sed 's/^/| /' conftest.$ac_ext >&5
     4162
     4163( exit $ac_status )
     4164ac_cv_header_stdc=no
     4165fi
     4166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4167fi
     4168fi
     4169fi
     4170echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     4171echo "${ECHO_T}$ac_cv_header_stdc" >&6
     4172if test $ac_cv_header_stdc = yes; then
     4173
     4174cat >>confdefs.h <<\_ACEOF
     4175#define STDC_HEADERS 1
     4176_ACEOF
     4177
     4178fi
     4179
     4180# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     4181
     4182
     4183
     4184
     4185
     4186
     4187
     4188
     4189
     4190for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     4191                  inttypes.h stdint.h unistd.h
     4192do
     4193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4194echo "$as_me:$LINENO: checking for $ac_header" >&5
     4195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4196if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4197  echo $ECHO_N "(cached) $ECHO_C" >&6
     4198else
     4199  cat >conftest.$ac_ext <<_ACEOF
     4200/* confdefs.h.  */
     4201_ACEOF
     4202cat confdefs.h >>conftest.$ac_ext
     4203cat >>conftest.$ac_ext <<_ACEOF
     4204/* end confdefs.h.  */
     4205$ac_includes_default
     4206
     4207#include <$ac_header>
     4208_ACEOF
     4209rm -f conftest.$ac_objext
     4210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4211  (eval $ac_compile) 2>conftest.er1
     4212  ac_status=$?
     4213  grep -v '^ *+' conftest.er1 >conftest.err
     4214  rm -f conftest.er1
     4215  cat conftest.err >&5
     4216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4217  (exit $ac_status); } &&
     4218         { ac_try='test -z "$ac_c_werror_flag"
     4219                         || test ! -s conftest.err'
     4220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4221  (eval $ac_try) 2>&5
     4222  ac_status=$?
     4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4224  (exit $ac_status); }; } &&
     4225         { ac_try='test -s conftest.$ac_objext'
     4226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4227  (eval $ac_try) 2>&5
     4228  ac_status=$?
     4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4230  (exit $ac_status); }; }; then
     4231  eval "$as_ac_Header=yes"
     4232else
     4233  echo "$as_me: failed program was:" >&5
     4234sed 's/^/| /' conftest.$ac_ext >&5
     4235
     4236eval "$as_ac_Header=no"
     4237fi
     4238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4239fi
     4240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4242if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4243  cat >>confdefs.h <<_ACEOF
     4244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4245_ACEOF
     4246
     4247fi
     4248
     4249done
     4250
     4251
     4252
     4253for ac_header in dlfcn.h
     4254do
     4255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4256if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4257  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4259if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4260  echo $ECHO_N "(cached) $ECHO_C" >&6
     4261fi
     4262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4264else
     4265  # Is the header compilable?
     4266echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4268cat >conftest.$ac_ext <<_ACEOF
     4269/* confdefs.h.  */
     4270_ACEOF
     4271cat confdefs.h >>conftest.$ac_ext
     4272cat >>conftest.$ac_ext <<_ACEOF
     4273/* end confdefs.h.  */
     4274$ac_includes_default
     4275#include <$ac_header>
     4276_ACEOF
     4277rm -f conftest.$ac_objext
     4278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4279  (eval $ac_compile) 2>conftest.er1
     4280  ac_status=$?
     4281  grep -v '^ *+' conftest.er1 >conftest.err
     4282  rm -f conftest.er1
     4283  cat conftest.err >&5
     4284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4285  (exit $ac_status); } &&
     4286         { ac_try='test -z "$ac_c_werror_flag"
     4287                         || test ! -s conftest.err'
     4288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4289  (eval $ac_try) 2>&5
     4290  ac_status=$?
     4291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4292  (exit $ac_status); }; } &&
     4293         { ac_try='test -s conftest.$ac_objext'
     4294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4295  (eval $ac_try) 2>&5
     4296  ac_status=$?
     4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4298  (exit $ac_status); }; }; then
     4299  ac_header_compiler=yes
     4300else
     4301  echo "$as_me: failed program was:" >&5
     4302sed 's/^/| /' conftest.$ac_ext >&5
     4303
     4304ac_header_compiler=no
     4305fi
     4306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4308echo "${ECHO_T}$ac_header_compiler" >&6
     4309
     4310# Is the header present?
     4311echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4313cat >conftest.$ac_ext <<_ACEOF
     4314/* confdefs.h.  */
     4315_ACEOF
     4316cat confdefs.h >>conftest.$ac_ext
     4317cat >>conftest.$ac_ext <<_ACEOF
     4318/* end confdefs.h.  */
     4319#include <$ac_header>
     4320_ACEOF
     4321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4322  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4323  ac_status=$?
     4324  grep -v '^ *+' conftest.er1 >conftest.err
     4325  rm -f conftest.er1
     4326  cat conftest.err >&5
     4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4328  (exit $ac_status); } >/dev/null; then
     4329  if test -s conftest.err; then
     4330    ac_cpp_err=$ac_c_preproc_warn_flag
     4331    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4332  else
     4333    ac_cpp_err=
     4334  fi
     4335else
     4336  ac_cpp_err=yes
     4337fi
     4338if test -z "$ac_cpp_err"; then
     4339  ac_header_preproc=yes
     4340else
     4341  echo "$as_me: failed program was:" >&5
     4342sed 's/^/| /' conftest.$ac_ext >&5
     4343
     4344  ac_header_preproc=no
     4345fi
     4346rm -f conftest.err conftest.$ac_ext
     4347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4348echo "${ECHO_T}$ac_header_preproc" >&6
     4349
     4350# So?  What about this header?
     4351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4352  yes:no: )
     4353    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4355    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4357    ac_header_preproc=yes
     4358    ;;
     4359  no:yes:* )
     4360    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4362    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4363echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4364    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4366    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4367echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4368    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4370    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4372    (
     4373      cat <<\_ASBOX
     4374## ----------------------------------- ##
     4375## Report this to libtrace@wand.net.nz ##
     4376## ----------------------------------- ##
     4377_ASBOX
     4378    ) |
     4379      sed "s/^/$as_me: WARNING:     /" >&2
     4380    ;;
     4381esac
     4382echo "$as_me:$LINENO: checking for $ac_header" >&5
     4383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4384if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4385  echo $ECHO_N "(cached) $ECHO_C" >&6
     4386else
     4387  eval "$as_ac_Header=\$ac_header_preproc"
     4388fi
     4389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4391
     4392fi
     4393if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4394  cat >>confdefs.h <<_ACEOF
     4395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4396_ACEOF
     4397
     4398fi
     4399
     4400done
     4401
     4402ac_ext=cc
     4403ac_cpp='$CXXCPP $CPPFLAGS'
     4404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     4407if test -n "$ac_tool_prefix"; then
     4408  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     4409  do
     4410    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     4411set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     4412echo "$as_me:$LINENO: checking for $ac_word" >&5
     4413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4414if test "${ac_cv_prog_CXX+set}" = set; then
     4415  echo $ECHO_N "(cached) $ECHO_C" >&6
     4416else
     4417  if test -n "$CXX"; then
     4418  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     4419else
     4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4421for as_dir in $PATH
     4422do
     4423  IFS=$as_save_IFS
     4424  test -z "$as_dir" && as_dir=.
     4425  for ac_exec_ext in '' $ac_executable_extensions; do
     4426  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4427    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     4428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4429    break 2
     4430  fi
     4431done
     4432done
     4433
     4434fi
     4435fi
     4436CXX=$ac_cv_prog_CXX
     4437if test -n "$CXX"; then
     4438  echo "$as_me:$LINENO: result: $CXX" >&5
     4439echo "${ECHO_T}$CXX" >&6
     4440else
     4441  echo "$as_me:$LINENO: result: no" >&5
     4442echo "${ECHO_T}no" >&6
     4443fi
     4444
     4445    test -n "$CXX" && break
     4446  done
     4447fi
     4448if test -z "$CXX"; then
     4449  ac_ct_CXX=$CXX
     4450  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     4451do
     4452  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4453set dummy $ac_prog; ac_word=$2
     4454echo "$as_me:$LINENO: checking for $ac_word" >&5
     4455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4456if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     4457  echo $ECHO_N "(cached) $ECHO_C" >&6
     4458else
     4459  if test -n "$ac_ct_CXX"; then
     4460  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     4461else
     4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4463for as_dir in $PATH
     4464do
     4465  IFS=$as_save_IFS
     4466  test -z "$as_dir" && as_dir=.
     4467  for ac_exec_ext in '' $ac_executable_extensions; do
     4468  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4469    ac_cv_prog_ac_ct_CXX="$ac_prog"
     4470    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4471    break 2
     4472  fi
     4473done
     4474done
     4475
     4476fi
     4477fi
     4478ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     4479if test -n "$ac_ct_CXX"; then
     4480  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     4481echo "${ECHO_T}$ac_ct_CXX" >&6
     4482else
     4483  echo "$as_me:$LINENO: result: no" >&5
     4484echo "${ECHO_T}no" >&6
     4485fi
     4486
     4487  test -n "$ac_ct_CXX" && break
     4488done
     4489test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     4490
     4491  CXX=$ac_ct_CXX
     4492fi
     4493
     4494
     4495# Provide some information about the compiler.
     4496echo "$as_me:$LINENO:" \
     4497     "checking for C++ compiler version" >&5
     4498ac_compiler=`set X $ac_compile; echo $2`
     4499{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     4500  (eval $ac_compiler --version </dev/null >&5) 2>&5
     4501  ac_status=$?
     4502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4503  (exit $ac_status); }
     4504{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     4505  (eval $ac_compiler -v </dev/null >&5) 2>&5
     4506  ac_status=$?
     4507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4508  (exit $ac_status); }
     4509{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     4510  (eval $ac_compiler -V </dev/null >&5) 2>&5
     4511  ac_status=$?
     4512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4513  (exit $ac_status); }
     4514
     4515echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     4516echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     4517if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     4518  echo $ECHO_N "(cached) $ECHO_C" >&6
     4519else
     4520  cat >conftest.$ac_ext <<_ACEOF
     4521/* confdefs.h.  */
     4522_ACEOF
     4523cat confdefs.h >>conftest.$ac_ext
     4524cat >>conftest.$ac_ext <<_ACEOF
     4525/* end confdefs.h.  */
     4526
     4527int
     4528main ()
     4529{
     4530#ifndef __GNUC__
     4531       choke me
     4532#endif
     4533
     4534  ;
     4535  return 0;
     4536}
     4537_ACEOF
     4538rm -f conftest.$ac_objext
     4539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4540  (eval $ac_compile) 2>conftest.er1
     4541  ac_status=$?
     4542  grep -v '^ *+' conftest.er1 >conftest.err
     4543  rm -f conftest.er1
     4544  cat conftest.err >&5
     4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4546  (exit $ac_status); } &&
     4547         { ac_try='test -z "$ac_cxx_werror_flag"
     4548                         || test ! -s conftest.err'
     4549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4550  (eval $ac_try) 2>&5
     4551  ac_status=$?
     4552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4553  (exit $ac_status); }; } &&
     4554         { ac_try='test -s conftest.$ac_objext'
     4555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4556  (eval $ac_try) 2>&5
     4557  ac_status=$?
     4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4559  (exit $ac_status); }; }; then
     4560  ac_compiler_gnu=yes
     4561else
     4562  echo "$as_me: failed program was:" >&5
     4563sed 's/^/| /' conftest.$ac_ext >&5
     4564
     4565ac_compiler_gnu=no
     4566fi
     4567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4568ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     4569
     4570fi
     4571echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     4572echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     4573GXX=`test $ac_compiler_gnu = yes && echo yes`
     4574ac_test_CXXFLAGS=${CXXFLAGS+set}
     4575ac_save_CXXFLAGS=$CXXFLAGS
     4576CXXFLAGS="-g"
     4577echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     4578echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     4579if test "${ac_cv_prog_cxx_g+set}" = set; then
     4580  echo $ECHO_N "(cached) $ECHO_C" >&6
     4581else
     4582  cat >conftest.$ac_ext <<_ACEOF
     4583/* confdefs.h.  */
     4584_ACEOF
     4585cat confdefs.h >>conftest.$ac_ext
     4586cat >>conftest.$ac_ext <<_ACEOF
     4587/* end confdefs.h.  */
     4588
     4589int
     4590main ()
     4591{
     4592
     4593  ;
     4594  return 0;
     4595}
     4596_ACEOF
     4597rm -f conftest.$ac_objext
     4598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4599  (eval $ac_compile) 2>conftest.er1
     4600  ac_status=$?
     4601  grep -v '^ *+' conftest.er1 >conftest.err
     4602  rm -f conftest.er1
     4603  cat conftest.err >&5
     4604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4605  (exit $ac_status); } &&
     4606         { ac_try='test -z "$ac_cxx_werror_flag"
     4607                         || test ! -s conftest.err'
     4608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4609  (eval $ac_try) 2>&5
     4610  ac_status=$?
     4611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4612  (exit $ac_status); }; } &&
     4613         { ac_try='test -s conftest.$ac_objext'
     4614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4615  (eval $ac_try) 2>&5
     4616  ac_status=$?
     4617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4618  (exit $ac_status); }; }; then
     4619  ac_cv_prog_cxx_g=yes
     4620else
     4621  echo "$as_me: failed program was:" >&5
     4622sed 's/^/| /' conftest.$ac_ext >&5
     4623
     4624ac_cv_prog_cxx_g=no
     4625fi
     4626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4627fi
     4628echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     4629echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     4630if test "$ac_test_CXXFLAGS" = set; then
     4631  CXXFLAGS=$ac_save_CXXFLAGS
     4632elif test $ac_cv_prog_cxx_g = yes; then
     4633  if test "$GXX" = yes; then
     4634    CXXFLAGS="-g -O2"
     4635  else
     4636    CXXFLAGS="-g"
     4637  fi
     4638else
     4639  if test "$GXX" = yes; then
     4640    CXXFLAGS="-O2"
     4641  else
     4642    CXXFLAGS=
     4643  fi
     4644fi
     4645for ac_declaration in \
     4646   '' \
     4647   'extern "C" void std::exit (int) throw (); using std::exit;' \
     4648   'extern "C" void std::exit (int); using std::exit;' \
     4649   'extern "C" void exit (int) throw ();' \
     4650   'extern "C" void exit (int);' \
     4651   'void exit (int);'
     4652do
     4653  cat >conftest.$ac_ext <<_ACEOF
     4654/* confdefs.h.  */
     4655_ACEOF
     4656cat confdefs.h >>conftest.$ac_ext
     4657cat >>conftest.$ac_ext <<_ACEOF
     4658/* end confdefs.h.  */
     4659$ac_declaration
     4660#include <stdlib.h>
     4661int
     4662main ()
     4663{
     4664exit (42);
     4665  ;
     4666  return 0;
     4667}
     4668_ACEOF
     4669rm -f conftest.$ac_objext
     4670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4671  (eval $ac_compile) 2>conftest.er1
     4672  ac_status=$?
     4673  grep -v '^ *+' conftest.er1 >conftest.err
     4674  rm -f conftest.er1
     4675  cat conftest.err >&5
     4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4677  (exit $ac_status); } &&
     4678         { ac_try='test -z "$ac_cxx_werror_flag"
     4679                         || test ! -s conftest.err'
     4680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4681  (eval $ac_try) 2>&5
     4682  ac_status=$?
     4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4684  (exit $ac_status); }; } &&
     4685         { ac_try='test -s conftest.$ac_objext'
     4686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4687  (eval $ac_try) 2>&5
     4688  ac_status=$?
     4689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4690  (exit $ac_status); }; }; then
     4691  :
     4692else
     4693  echo "$as_me: failed program was:" >&5
     4694sed 's/^/| /' conftest.$ac_ext >&5
     4695
     4696continue
     4697fi
     4698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4699  cat >conftest.$ac_ext <<_ACEOF
     4700/* confdefs.h.  */
     4701_ACEOF
     4702cat confdefs.h >>conftest.$ac_ext
     4703cat >>conftest.$ac_ext <<_ACEOF
     4704/* end confdefs.h.  */
     4705$ac_declaration
     4706int
     4707main ()
     4708{
     4709exit (42);
     4710  ;
     4711  return 0;
     4712}
     4713_ACEOF
     4714rm -f conftest.$ac_objext
     4715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4716  (eval $ac_compile) 2>conftest.er1
     4717  ac_status=$?
     4718  grep -v '^ *+' conftest.er1 >conftest.err
     4719  rm -f conftest.er1
     4720  cat conftest.err >&5
     4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4722  (exit $ac_status); } &&
     4723         { ac_try='test -z "$ac_cxx_werror_flag"
     4724                         || test ! -s conftest.err'
     4725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4726  (eval $ac_try) 2>&5
     4727  ac_status=$?
     4728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4729  (exit $ac_status); }; } &&
     4730         { ac_try='test -s conftest.$ac_objext'
     4731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4732  (eval $ac_try) 2>&5
     4733  ac_status=$?
     4734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4735  (exit $ac_status); }; }; then
     4736  break
     4737else
     4738  echo "$as_me: failed program was:" >&5
     4739sed 's/^/| /' conftest.$ac_ext >&5
     4740
     4741fi
     4742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4743done
     4744rm -f conftest*
     4745if test -n "$ac_declaration"; then
     4746  echo '#ifdef __cplusplus' >>confdefs.h
     4747  echo $ac_declaration      >>confdefs.h
     4748  echo '#endif'             >>confdefs.h
     4749fi
     4750
     4751ac_ext=cc
     4752ac_cpp='$CXXCPP $CPPFLAGS'
     4753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     4756
     4757depcc="$CXX"  am_compiler_list=
     4758
     4759echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     4760echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     4761if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
     4762  echo $ECHO_N "(cached) $ECHO_C" >&6
     4763else
     4764  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     4765  # We make a subdir and do the tests there.  Otherwise we can end up
     4766  # making bogus files that we don't know about and never remove.  For
     4767  # instance it was reported that on HP-UX the gcc test will end up
     4768  # making a dummy file named `D' -- because `-MD' means `put the output
     4769  # in D'.
     4770  mkdir conftest.dir
     4771  # Copy depcomp to subdir because otherwise we won't find it if we're
     4772  # using a relative directory.
     4773  cp "$am_depcomp" conftest.dir
     4774  cd conftest.dir
     4775
     4776  am_cv_CXX_dependencies_compiler_type=none
     4777  if test "$am_compiler_list" = ""; then
     4778     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     4779  fi
     4780  for depmode in $am_compiler_list; do
     4781    # We need to recreate these files for each test, as the compiler may
     4782    # overwrite some of them when testing with obscure command lines.
     4783    # This happens at least with the AIX C compiler.
     4784    echo '#include "conftest.h"' > conftest.c
     4785    echo 'int i;' > conftest.h
     4786    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
     4787
     4788    case $depmode in
     4789    nosideeffect)
     4790      # after this tag, mechanisms are not by side-effect, so they'll
     4791      # only be used when explicitly requested
     4792      if test "x$enable_dependency_tracking" = xyes; then
     4793        continue
     4794      else
     4795        break
     4796      fi
     4797      ;;
     4798    none) break ;;
     4799    esac
     4800    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     4801    # mode.  It turns out that the SunPro C++ compiler does not properly
     4802    # handle `-M -o', and we need to detect this.
     4803    if depmode=$depmode \
     4804       source=conftest.c object=conftest.o \
     4805       depfile=conftest.Po tmpdepfile=conftest.TPo \
     4806       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
     4807       grep conftest.h conftest.Po > /dev/null 2>&1 &&
     4808       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     4809      am_cv_CXX_dependencies_compiler_type=$depmode
     4810      break
     4811    fi
     4812  done
     4813
     4814  cd ..
     4815  rm -rf conftest.dir
     4816else
     4817  am_cv_CXX_dependencies_compiler_type=none
     4818fi
     4819
     4820fi
     4821echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
     4822echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
     4823CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
     4824
     4825
     4826ac_ext=cc
     4827ac_cpp='$CXXCPP $CPPFLAGS'
     4828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     4831echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
     4832echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
     4833if test -z "$CXXCPP"; then
     4834  if test "${ac_cv_prog_CXXCPP+set}" = set; then
     4835  echo $ECHO_N "(cached) $ECHO_C" >&6
     4836else
     4837      # Double quotes because CXXCPP needs to be expanded
     4838    for CXXCPP in "$CXX -E" "/lib/cpp"
     4839    do
     4840      ac_preproc_ok=false
     4841for ac_cxx_preproc_warn_flag in '' yes
     4842do
     4843  # Use a header file that comes with gcc, so configuring glibc
     4844  # with a fresh cross-compiler works.
     4845  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     4846  # <limits.h> exists even on freestanding compilers.
     4847  # On the NeXT, cc -E runs the code through the compiler's parser,
     4848  # not just through cpp. "Syntax error" is here to catch this case.
     4849  cat >conftest.$ac_ext <<_ACEOF
     4850/* confdefs.h.  */
     4851_ACEOF
     4852cat confdefs.h >>conftest.$ac_ext
     4853cat >>conftest.$ac_ext <<_ACEOF
     4854/* end confdefs.h.  */
     4855#ifdef __STDC__
     4856# include <limits.h>
     4857#else
     4858# include <assert.h>
     4859#endif
     4860                     Syntax error
     4861_ACEOF
     4862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4863  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4864  ac_status=$?
     4865  grep -v '^ *+' conftest.er1 >conftest.err
     4866  rm -f conftest.er1
     4867  cat conftest.err >&5
     4868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4869  (exit $ac_status); } >/dev/null; then
     4870  if test -s conftest.err; then
     4871    ac_cpp_err=$ac_cxx_preproc_warn_flag
     4872    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     4873  else
     4874    ac_cpp_err=
     4875  fi
     4876else
     4877  ac_cpp_err=yes
     4878fi
     4879if test -z "$ac_cpp_err"; then
     4880  :
     4881else
     4882  echo "$as_me: failed program was:" >&5
     4883sed 's/^/| /' conftest.$ac_ext >&5
     4884
     4885  # Broken: fails on valid input.
     4886continue
     4887fi
     4888rm -f conftest.err conftest.$ac_ext
     4889
     4890  # OK, works on sane cases.  Now check whether non-existent headers
     4891  # can be detected and how.
     4892  cat >conftest.$ac_ext <<_ACEOF
     4893/* confdefs.h.  */
     4894_ACEOF
     4895cat confdefs.h >>conftest.$ac_ext
     4896cat >>conftest.$ac_ext <<_ACEOF
     4897/* end confdefs.h.  */
     4898#include <ac_nonexistent.h>
     4899_ACEOF
     4900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4901  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4902  ac_status=$?
     4903  grep -v '^ *+' conftest.er1 >conftest.err
     4904  rm -f conftest.er1
     4905  cat conftest.err >&5
     4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4907  (exit $ac_status); } >/dev/null; then
     4908  if test -s conftest.err; then
     4909    ac_cpp_err=$ac_cxx_preproc_warn_flag
     4910    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     4911  else
     4912    ac_cpp_err=
     4913  fi
     4914else
     4915  ac_cpp_err=yes
     4916fi
     4917if test -z "$ac_cpp_err"; then
     4918  # Broken: success on invalid input.
     4919continue
     4920else
     4921  echo "$as_me: failed program was:" >&5
     4922sed 's/^/| /' conftest.$ac_ext >&5
     4923
     4924  # Passes both tests.
     4925ac_preproc_ok=:
     4926break
     4927fi
     4928rm -f conftest.err conftest.$ac_ext
     4929
     4930done
     4931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     4932rm -f conftest.err conftest.$ac_ext
     4933if $ac_preproc_ok; then
     4934  break
     4935fi
     4936
     4937    done
     4938    ac_cv_prog_CXXCPP=$CXXCPP
     4939
     4940fi
     4941  CXXCPP=$ac_cv_prog_CXXCPP
     4942else
     4943  ac_cv_prog_CXXCPP=$CXXCPP
     4944fi
     4945echo "$as_me:$LINENO: result: $CXXCPP" >&5
     4946echo "${ECHO_T}$CXXCPP" >&6
     4947ac_preproc_ok=false
     4948for ac_cxx_preproc_warn_flag in '' yes
     4949do
     4950  # Use a header file that comes with gcc, so configuring glibc
     4951  # with a fresh cross-compiler works.
     4952  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     4953  # <limits.h> exists even on freestanding compilers.
     4954  # On the NeXT, cc -E runs the code through the compiler's parser,
     4955  # not just through cpp. "Syntax error" is here to catch this case.
     4956  cat >conftest.$ac_ext <<_ACEOF
     4957/* confdefs.h.  */
     4958_ACEOF
     4959cat confdefs.h >>conftest.$ac_ext
     4960cat >>conftest.$ac_ext <<_ACEOF
     4961/* end confdefs.h.  */
     4962#ifdef __STDC__
     4963# include <limits.h>
     4964#else
     4965# include <assert.h>
     4966#endif
     4967                     Syntax error
     4968_ACEOF
     4969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4970  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4971  ac_status=$?
     4972  grep -v '^ *+' conftest.er1 >conftest.err
     4973  rm -f conftest.er1
     4974  cat conftest.err >&5
     4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4976  (exit $ac_status); } >/dev/null; then
     4977  if test -s conftest.err; then
     4978    ac_cpp_err=$ac_cxx_preproc_warn_flag
     4979    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     4980  else
     4981    ac_cpp_err=
     4982  fi
     4983else
     4984  ac_cpp_err=yes
     4985fi
     4986if test -z "$ac_cpp_err"; then
     4987  :
     4988else
     4989  echo "$as_me: failed program was:" >&5
     4990sed 's/^/| /' conftest.$ac_ext >&5
     4991
     4992  # Broken: fails on valid input.
     4993continue
     4994fi
     4995rm -f conftest.err conftest.$ac_ext
     4996
     4997  # OK, works on sane cases.  Now check whether non-existent headers
     4998  # can be detected and how.
     4999  cat >conftest.$ac_ext <<_ACEOF
     5000/* confdefs.h.  */
     5001_ACEOF
     5002cat confdefs.h >>conftest.$ac_ext
     5003cat >>conftest.$ac_ext <<_ACEOF
     5004/* end confdefs.h.  */
     5005#include <ac_nonexistent.h>
     5006_ACEOF
     5007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5008  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5009  ac_status=$?
     5010  grep -v '^ *+' conftest.er1 >conftest.err
     5011  rm -f conftest.er1
     5012  cat conftest.err >&5
     5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5014  (exit $ac_status); } >/dev/null; then
     5015  if test -s conftest.err; then
     5016    ac_cpp_err=$ac_cxx_preproc_warn_flag
     5017    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     5018  else
     5019    ac_cpp_err=
     5020  fi
     5021else
     5022  ac_cpp_err=yes
     5023fi
     5024if test -z "$ac_cpp_err"; then
     5025  # Broken: success on invalid input.
     5026continue
     5027else
     5028  echo "$as_me: failed program was:" >&5
     5029sed 's/^/| /' conftest.$ac_ext >&5
     5030
     5031  # Passes both tests.
     5032ac_preproc_ok=:
     5033break
     5034fi
     5035rm -f conftest.err conftest.$ac_ext
     5036
     5037done
     5038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     5039rm -f conftest.err conftest.$ac_ext
     5040if $ac_preproc_ok; then
     5041  :
     5042else
     5043  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     5044See \`config.log' for more details." >&5
     5045echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     5046See \`config.log' for more details." >&2;}
     5047   { (exit 1); exit 1; }; }
     5048fi
     5049
     5050ac_ext=cc
     5051ac_cpp='$CXXCPP $CPPFLAGS'
     5052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     5055
     5056
     5057ac_ext=f
     5058ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5059ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5060ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5061if test -n "$ac_tool_prefix"; then
     5062  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
     5063  do
     5064    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     5065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     5066echo "$as_me:$LINENO: checking for $ac_word" >&5
     5067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5068if test "${ac_cv_prog_F77+set}" = set; then
     5069  echo $ECHO_N "(cached) $ECHO_C" >&6
     5070else
     5071  if test -n "$F77"; then
     5072  ac_cv_prog_F77="$F77" # Let the user override the test.
     5073else
     5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5075for as_dir in $PATH
     5076do
     5077  IFS=$as_save_IFS
     5078  test -z "$as_dir" && as_dir=.
     5079  for ac_exec_ext in '' $ac_executable_extensions; do
     5080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5081    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     5082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5083    break 2
     5084  fi
     5085done
     5086done
     5087
     5088fi
     5089fi
     5090F77=$ac_cv_prog_F77
     5091if test -n "$F77"; then
     5092  echo "$as_me:$LINENO: result: $F77" >&5
     5093echo "${ECHO_T}$F77" >&6
     5094else
     5095  echo "$as_me:$LINENO: result: no" >&5
     5096echo "${ECHO_T}no" >&6
     5097fi
     5098
     5099    test -n "$F77" && break
     5100  done
     5101fi
     5102if test -z "$F77"; then
     5103  ac_ct_F77=$F77
     5104  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
     5105do
     5106  # Extract the first word of "$ac_prog", so it can be a program name with args.
     5107set dummy $ac_prog; ac_word=$2
     5108echo "$as_me:$LINENO: checking for $ac_word" >&5
     5109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5110if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     5111  echo $ECHO_N "(cached) $ECHO_C" >&6
     5112else
     5113  if test -n "$ac_ct_F77"; then
     5114  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     5115else
     5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5117for as_dir in $PATH
     5118do
     5119  IFS=$as_save_IFS
     5120  test -z "$as_dir" && as_dir=.
     5121  for ac_exec_ext in '' $ac_executable_extensions; do
     5122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5123    ac_cv_prog_ac_ct_F77="$ac_prog"
     5124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5125    break 2
     5126  fi
     5127done
     5128done
     5129
     5130fi
     5131fi
     5132ac_ct_F77=$ac_cv_prog_ac_ct_F77
     5133if test -n "$ac_ct_F77"; then
     5134  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
     5135echo "${ECHO_T}$ac_ct_F77" >&6
     5136else
     5137  echo "$as_me:$LINENO: result: no" >&5
     5138echo "${ECHO_T}no" >&6
     5139fi
     5140
     5141  test -n "$ac_ct_F77" && break
     5142done
     5143
     5144  F77=$ac_ct_F77
     5145fi
     5146
     5147
     5148# Provide some information about the compiler.
     5149echo "$as_me:5149:" \
     5150     "checking for Fortran 77 compiler version" >&5
     5151ac_compiler=`set X $ac_compile; echo $2`
     5152{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     5153  (eval $ac_compiler --version </dev/null >&5) 2>&5
     5154  ac_status=$?
     5155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5156  (exit $ac_status); }
     5157{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     5158  (eval $ac_compiler -v </dev/null >&5) 2>&5
     5159  ac_status=$?
     5160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5161  (exit $ac_status); }
     5162{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     5163  (eval $ac_compiler -V </dev/null >&5) 2>&5
     5164  ac_status=$?
     5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5166  (exit $ac_status); }
     5167rm -f a.out
     5168
     5169# If we don't use `.F' as extension, the preprocessor is not run on the
     5170# input file.  (Note that this only needs to work for GNU compilers.)
     5171ac_save_ext=$ac_ext
     5172ac_ext=F
     5173echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
     5174echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
     5175if test "${ac_cv_f77_compiler_gnu+set}" = set; then
     5176  echo $ECHO_N "(cached) $ECHO_C" >&6
     5177else
     5178  cat >conftest.$ac_ext <<_ACEOF
     5179      program main
     5180#ifndef __GNUC__
     5181       choke me
     5182#endif
     5183
     5184      end
     5185_ACEOF
     5186rm -f conftest.$ac_objext
     5187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5188  (eval $ac_compile) 2>conftest.er1
     5189  ac_status=$?
     5190  grep -v '^ *+' conftest.er1 >conftest.err
     5191  rm -f conftest.er1
     5192  cat conftest.err >&5
     5193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5194  (exit $ac_status); } &&
     5195         { ac_try='test -z "$ac_f77_werror_flag"
     5196                         || test ! -s conftest.err'
     5197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5198  (eval $ac_try) 2>&5
     5199  ac_status=$?
     5200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5201  (exit $ac_status); }; } &&
     5202         { ac_try='test -s conftest.$ac_objext'
     5203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5204  (eval $ac_try) 2>&5
     5205  ac_status=$?
     5206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5207  (exit $ac_status); }; }; then
     5208  ac_compiler_gnu=yes
     5209else
     5210  echo "$as_me: failed program was:" >&5
     5211sed 's/^/| /' conftest.$ac_ext >&5
     5212
     5213ac_compiler_gnu=no
     5214fi
     5215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5216ac_cv_f77_compiler_gnu=$ac_compiler_gnu
     5217
     5218fi
     5219echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
     5220echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
     5221ac_ext=$ac_save_ext
     5222ac_test_FFLAGS=${FFLAGS+set}
     5223ac_save_FFLAGS=$FFLAGS
     5224FFLAGS=
     5225echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
     5226echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
     5227if test "${ac_cv_prog_f77_g+set}" = set; then
     5228  echo $ECHO_N "(cached) $ECHO_C" >&6
     5229else
     5230  FFLAGS=-g
     5231cat >conftest.$ac_ext <<_ACEOF
     5232      program main
     5233
     5234      end
     5235_ACEOF
     5236rm -f conftest.$ac_objext
     5237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5238  (eval $ac_compile) 2>conftest.er1
     5239  ac_status=$?
     5240  grep -v '^ *+' conftest.er1 >conftest.err
     5241  rm -f conftest.er1
     5242  cat conftest.err >&5
     5243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5244  (exit $ac_status); } &&
     5245         { ac_try='test -z "$ac_f77_werror_flag"
     5246                         || test ! -s conftest.err'
     5247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5248  (eval $ac_try) 2>&5
     5249  ac_status=$?
     5250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5251  (exit $ac_status); }; } &&
     5252         { ac_try='test -s conftest.$ac_objext'
     5253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5254  (eval $ac_try) 2>&5
     5255  ac_status=$?
     5256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5257  (exit $ac_status); }; }; then
     5258  ac_cv_prog_f77_g=yes
     5259else
     5260  echo "$as_me: failed program was:" >&5
     5261sed 's/^/| /' conftest.$ac_ext >&5
     5262
     5263ac_cv_prog_f77_g=no
     5264fi
     5265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5266
     5267fi
     5268echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
     5269echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
     5270if test "$ac_test_FFLAGS" = set; then
     5271  FFLAGS=$ac_save_FFLAGS
     5272elif test $ac_cv_prog_f77_g = yes; then
     5273  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     5274    FFLAGS="-g -O2"
     5275  else
     5276    FFLAGS="-g"
     5277  fi
     5278else
     5279  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     5280    FFLAGS="-O2"
     5281  else
     5282    FFLAGS=
     5283  fi
     5284fi
     5285
     5286G77=`test $ac_compiler_gnu = yes && echo yes`
     5287ac_ext=c
     5288ac_cpp='$CPP $CPPFLAGS'
     5289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5291ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5292
     5293
     5294
     5295# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
     5296
     5297# find the maximum length of command line arguments
     5298echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
     5299echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
     5300if test "${lt_cv_sys_max_cmd_len+set}" = set; then
     5301  echo $ECHO_N "(cached) $ECHO_C" >&6
     5302else
     5303    i=0
     5304  testring="ABCD"
     5305
     5306  case $build_os in
     5307  msdosdjgpp*)
     5308    # On DJGPP, this test can blow up pretty badly due to problems in libc
     5309    # (any single argument exceeding 2000 bytes causes a buffer overrun
     5310    # during glob expansion).  Even if it were fixed, the result of this
     5311    # check would be larger than it should be.
     5312    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
     5313    ;;
     5314
     5315  gnu*)
     5316    # Under GNU Hurd, this test is not required because there is
     5317    # no limit to the length of command line arguments.
     5318    # Libtool will interpret -1 as no limit whatsoever
     5319    lt_cv_sys_max_cmd_len=-1;
     5320    ;;
     5321
     5322  cygwin* | mingw*)
     5323    # On Win9x/ME, this test blows up -- it succeeds, but takes
     5324    # about 5 minutes as the teststring grows exponentially.
     5325    # Worse, since 9x/ME are not pre-emptively multitasking,
     5326    # you end up with a "frozen" computer, even though with patience
     5327    # the test eventually succeeds (with a max line length of 256k).
     5328    # Instead, let's just punt: use the minimum linelength reported by
     5329    # all of the supported platforms: 8192 (on NT/2K/XP).
     5330    lt_cv_sys_max_cmd_len=8192;
     5331    ;;
     5332
     5333  amigaos*)
     5334    # On AmigaOS with pdksh, this test takes hours, literally.
     5335    # So we just punt and use a minimum line length of 8192.
     5336    lt_cv_sys_max_cmd_len=8192;
     5337    ;;
     5338
     5339 *)
     5340    # If test is not a shell built-in, we'll probably end up computing a
     5341    # maximum length that is only half of the actual maximum length, but
     5342    # we can't tell.
     5343    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
     5344               = "XX$testring") >/dev/null 2>&1 &&
     5345            new_result=`expr "X$testring" : ".*" 2>&1` &&
     5346            lt_cv_sys_max_cmd_len=$new_result &&
     5347            test $i != 17 # 1/2 MB should be enough
     5348    do
     5349      i=`expr $i + 1`
     5350      testring=$testring$testring
     5351    done
     5352    testring=
     5353    # Add a significant safety factor because C++ compilers can tack on massive
     5354    # amounts of additional arguments before passing them to the linker.
     5355    # It appears as though 1/2 is a usable value.
     5356    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     5357    ;;
     5358  esac
     5359
     5360fi
     5361
     5362if test -n $lt_cv_sys_max_cmd_len ; then
     5363  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
     5364echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
     5365else
     5366  echo "$as_me:$LINENO: result: none" >&5
     5367echo "${ECHO_T}none" >&6
     5368fi
    31495369
    31505370
     
    31525372
    31535373# Check for command to grab the raw symbol name followed by C symbol from nm.
    3154 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
    3155 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
     5374echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
     5375echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
    31565376if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
    31575377  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    31715391
    31725392# Transform an extracted symbol line into a proper C declaration
    3173 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
     5393lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
    31745394
    31755395# Transform an extracted symbol line into symbol name and symbol address
    3176 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     5396lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    31775397
    31785398# Define system-specific variables.
     
    31855405  ;;
    31865406hpux*) # Its linker distinguishes data from code symbols
    3187   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    3188   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     5407  if test "$host_cpu" = ia64; then
     5408    symcode='[ABCDEGRST]'
     5409  fi
     5410  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     5411  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    31895412  ;;
    31905413irix* | nonstopux*)
    31915414  symcode='[BCDEGRST]'
    31925415  ;;
     5416osf*)
     5417  symcode='[BCDEGQRST]'
     5418  ;;
    31935419solaris* | sysv5*)
    3194   symcode='[BDT]'
     5420  symcode='[BDRT]'
    31955421  ;;
    31965422sysv4)
     
    32015427# Handle CRLF in mingw tool chain
    32025428opt_cr=
    3203 case $host_os in
     5429case $build_os in
    32045430mingw*)
    32055431  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
     
    32085434
    32095435# If we're using GNU nm, then use its standard symbol codes.
    3210 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
    3211   symcode='[ABCDGISTW]'
    3212 fi
     5436case `$NM -V 2>&1` in
     5437*GNU* | *'with BFD'*)
     5438  symcode='[ABCDGIRSTW]' ;;
     5439esac
    32135440
    32145441# Try without a prefix undercore, then with it.
     
    32165443
    32175444  # Write the raw and C identifiers.
    3218 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
     5445  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
    32195446
    32205447  # Check to see that the pipe works correctly.
    32215448  pipe_works=no
     5449
    32225450  rm -f conftest*
    32235451  cat > conftest.$ac_ext <<EOF
     
    32535481
    32545482      # Make sure that we snagged all the symbols we need.
    3255       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
    3256         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
     5483      if grep ' nm_test_var$' "$nlist" >/dev/null; then
     5484        if grep ' nm_test_func$' "$nlist" >/dev/null; then
    32575485          cat <<EOF > conftest.$ac_ext
    32585486#ifdef __cplusplus
     
    32625490EOF
    32635491          # Now generate the symbol file.
    3264           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
     5492          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
    32655493
    32665494          cat <<EOF >> conftest.$ac_ext
    32675495#if defined (__STDC__) && __STDC__
    3268 # define lt_ptr void *
     5496# define lt_ptr_t void *
    32695497#else
    3270 # define lt_ptr char *
     5498# define lt_ptr_t char *
    32715499# define const
    32725500#endif
     
    32755503const struct {
    32765504  const char *name;
    3277   lt_ptr address;
     5505  lt_ptr_t address;
    32785506}
    32795507lt_preloaded_symbols[] =
    32805508{
    32815509EOF
    3282           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
     5510          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
    32835511          cat <<\EOF >> conftest.$ac_ext
    3284   {0, (lt_ptr) 0}
     5512  {0, (lt_ptr_t) 0}
    32855513};
    32865514
     
    32915519          # Now try linking the two files.
    32925520          mv conftest.$ac_objext conftstm.$ac_objext
    3293           save_LIBS="$LIBS"
    3294           save_CFLAGS="$CFLAGS"
     5521          lt_save_LIBS="$LIBS"
     5522          lt_save_CFLAGS="$CFLAGS"
    32955523          LIBS="conftstm.$ac_objext"
    3296           CFLAGS="$CFLAGS$no_builtin_flag"
     5524          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
    32975525          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    32985526  (eval $ac_link) 2>&5
    32995527  ac_status=$?
    33005528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3301   (exit $ac_status); } && test -s conftest; then
     5529  (exit $ac_status); } && test -s conftest${ac_exeext}; then
    33025530            pipe_works=yes
    33035531          fi
    3304           LIBS="$save_LIBS"
    3305           CFLAGS="$save_CFLAGS"
     5532          LIBS="$lt_save_LIBS"
     5533          CFLAGS="$lt_save_CFLAGS"
    33065534        else
    33075535          echo "cannot find nm_test_func in $nlist" >&5
     
    33295557fi
    33305558
    3331 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
    33325559if test -z "$lt_cv_sys_global_symbol_pipe"; then
    3333   global_symbol_to_cdecl=
    3334   global_symbol_to_c_name_address=
    3335 else
    3336   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
    3337   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
    3338 fi
    3339 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
    3340 then
     5560  lt_cv_sys_global_symbol_to_cdecl=
     5561fi
     5562if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
    33415563  echo "$as_me:$LINENO: result: failed" >&5
    33425564echo "${ECHO_T}failed" >&6
     
    33465568fi
    33475569
    3348 ac_ext=c
    3349 ac_cpp='$CPP $CPPFLAGS'
    3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3353 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    3354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    3355 # On Suns, sometimes $CPP names a directory.
    3356 if test -n "$CPP" && test -d "$CPP"; then
    3357   CPP=
    3358 fi
    3359 if test -z "$CPP"; then
    3360   if test "${ac_cv_prog_CPP+set}" = set; then
     5570echo "$as_me:$LINENO: checking for objdir" >&5
     5571echo $ECHO_N "checking for objdir... $ECHO_C" >&6
     5572if test "${lt_cv_objdir+set}" = set; then
    33615573  echo $ECHO_N "(cached) $ECHO_C" >&6
    33625574else
    3363       # Double quotes because CPP needs to be expanded
    3364     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    3365     do
    3366       ac_preproc_ok=false
    3367 for ac_c_preproc_warn_flag in '' yes
    3368 do
    3369   # Use a header file that comes with gcc, so configuring glibc
    3370   # with a fresh cross-compiler works.
    3371   # On the NeXT, cc -E runs the code through the compiler's parser,
    3372   # not just through cpp. "Syntax error" is here to catch this case.
    3373   cat >conftest.$ac_ext <<_ACEOF
    3374 #line $LINENO "configure"
    3375 #include "confdefs.h"
    3376 #include <assert.h>
    3377                      Syntax error
    3378 _ACEOF
    3379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3381   ac_status=$?
    3382   egrep -v '^ *\+' conftest.er1 >conftest.err
    3383   rm -f conftest.er1
    3384   cat conftest.err >&5
    3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3386   (exit $ac_status); } >/dev/null; then
    3387   if test -s conftest.err; then
    3388     ac_cpp_err=$ac_c_preproc_warn_flag
    3389   else
    3390     ac_cpp_err=
    3391   fi
    3392 else
    3393   ac_cpp_err=yes
    3394 fi
    3395 if test -z "$ac_cpp_err"; then
    3396   :
    3397 else
    3398   echo "$as_me: failed program was:" >&5
    3399   cat conftest.$ac_ext >&5
    3400   # Broken: fails on valid input.
    3401 continue
    3402 fi
    3403 rm -f conftest.err conftest.$ac_ext
    3404 
    3405   # OK, works on sane cases.  Now check whether non-existent headers
    3406   # can be detected and how.
    3407   cat >conftest.$ac_ext <<_ACEOF
    3408 #line $LINENO "configure"
    3409 #include "confdefs.h"
    3410 #include <ac_nonexistent.h>
    3411 _ACEOF
    3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3414   ac_status=$?
    3415   egrep -v '^ *\+' conftest.er1 >conftest.err
    3416   rm -f conftest.er1
    3417   cat conftest.err >&5
    3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3419   (exit $ac_status); } >/dev/null; then
    3420   if test -s conftest.err; then
    3421     ac_cpp_err=$ac_c_preproc_warn_flag
    3422   else
    3423     ac_cpp_err=
    3424   fi
    3425 else
    3426   ac_cpp_err=yes
    3427 fi
    3428 if test -z "$ac_cpp_err"; then
    3429   # Broken: success on invalid input.
    3430 continue
    3431 else
    3432   echo "$as_me: failed program was:" >&5
    3433   cat conftest.$ac_ext >&5
    3434   # Passes both tests.
    3435 ac_preproc_ok=:
    3436 break
    3437 fi
    3438 rm -f conftest.err conftest.$ac_ext
    3439 
    3440 done
    3441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3442 rm -f conftest.err conftest.$ac_ext
    3443 if $ac_preproc_ok; then
    3444   break
    3445 fi
    3446 
    3447     done
    3448     ac_cv_prog_CPP=$CPP
    3449 
    3450 fi
    3451   CPP=$ac_cv_prog_CPP
    3452 else
    3453   ac_cv_prog_CPP=$CPP
    3454 fi
    3455 echo "$as_me:$LINENO: result: $CPP" >&5
    3456 echo "${ECHO_T}$CPP" >&6
    3457 ac_preproc_ok=false
    3458 for ac_c_preproc_warn_flag in '' yes
    3459 do
    3460   # Use a header file that comes with gcc, so configuring glibc
    3461   # with a fresh cross-compiler works.
    3462   # On the NeXT, cc -E runs the code through the compiler's parser,
    3463   # not just through cpp. "Syntax error" is here to catch this case.
    3464   cat >conftest.$ac_ext <<_ACEOF
    3465 #line $LINENO "configure"
    3466 #include "confdefs.h"
    3467 #include <assert.h>
    3468                      Syntax error
    3469 _ACEOF
    3470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3472   ac_status=$?
    3473   egrep -v '^ *\+' conftest.er1 >conftest.err
    3474   rm -f conftest.er1
    3475   cat conftest.err >&5
    3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3477   (exit $ac_status); } >/dev/null; then
    3478   if test -s conftest.err; then
    3479     ac_cpp_err=$ac_c_preproc_warn_flag
    3480   else
    3481     ac_cpp_err=
    3482   fi
    3483 else
    3484   ac_cpp_err=yes
    3485 fi
    3486 if test -z "$ac_cpp_err"; then
    3487   :
    3488 else
    3489   echo "$as_me: failed program was:" >&5
    3490   cat conftest.$ac_ext >&5
    3491   # Broken: fails on valid input.
    3492 continue
    3493 fi
    3494 rm -f conftest.err conftest.$ac_ext
    3495 
    3496   # OK, works on sane cases.  Now check whether non-existent headers
    3497   # can be detected and how.
    3498   cat >conftest.$ac_ext <<_ACEOF
    3499 #line $LINENO "configure"
    3500 #include "confdefs.h"
    3501 #include <ac_nonexistent.h>
    3502 _ACEOF
    3503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3504   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3505   ac_status=$?
    3506   egrep -v '^ *\+' conftest.er1 >conftest.err
    3507   rm -f conftest.er1
    3508   cat conftest.err >&5
    3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3510   (exit $ac_status); } >/dev/null; then
    3511   if test -s conftest.err; then
    3512     ac_cpp_err=$ac_c_preproc_warn_flag
    3513   else
    3514     ac_cpp_err=
    3515   fi
    3516 else
    3517   ac_cpp_err=yes
    3518 fi
    3519 if test -z "$ac_cpp_err"; then
    3520   # Broken: success on invalid input.
    3521 continue
    3522 else
    3523   echo "$as_me: failed program was:" >&5
    3524   cat conftest.$ac_ext >&5
    3525   # Passes both tests.
    3526 ac_preproc_ok=:
    3527 break
    3528 fi
    3529 rm -f conftest.err conftest.$ac_ext
    3530 
    3531 done
    3532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3533 rm -f conftest.err conftest.$ac_ext
    3534 if $ac_preproc_ok; then
    3535   :
    3536 else
    3537   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
    3538 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
    3539    { (exit 1); exit 1; }; }
    3540 fi
    3541 
    3542 ac_ext=c
    3543 ac_cpp='$CPP $CPPFLAGS'
    3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3547 
    3548 
    3549 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3551 if test "${ac_cv_header_stdc+set}" = set; then
    3552   echo $ECHO_N "(cached) $ECHO_C" >&6
    3553 else
    3554   cat >conftest.$ac_ext <<_ACEOF
    3555 #line $LINENO "configure"
    3556 #include "confdefs.h"
    3557 #include <stdlib.h>
    3558 #include <stdarg.h>
    3559 #include <string.h>
    3560 #include <float.h>
    3561 
    3562 _ACEOF
    3563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3565   ac_status=$?
    3566   egrep -v '^ *\+' conftest.er1 >conftest.err
    3567   rm -f conftest.er1
    3568   cat conftest.err >&5
    3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3570   (exit $ac_status); } >/dev/null; then
    3571   if test -s conftest.err; then
    3572     ac_cpp_err=$ac_c_preproc_warn_flag
    3573   else
    3574     ac_cpp_err=
    3575   fi
    3576 else
    3577   ac_cpp_err=yes
    3578 fi
    3579 if test -z "$ac_cpp_err"; then
    3580   ac_cv_header_stdc=yes
    3581 else
    3582   echo "$as_me: failed program was:" >&5
    3583   cat conftest.$ac_ext >&5
    3584   ac_cv_header_stdc=no
    3585 fi
    3586 rm -f conftest.err conftest.$ac_ext
    3587 
    3588 if test $ac_cv_header_stdc = yes; then
    3589   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3590   cat >conftest.$ac_ext <<_ACEOF
    3591 #line $LINENO "configure"
    3592 #include "confdefs.h"
    3593 #include <string.h>
    3594 
    3595 _ACEOF
    3596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3597   egrep "memchr" >/dev/null 2>&1; then
    3598   :
    3599 else
    3600   ac_cv_header_stdc=no
    3601 fi
    3602 rm -f conftest*
    3603 
    3604 fi
    3605 
    3606 if test $ac_cv_header_stdc = yes; then
    3607   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3608   cat >conftest.$ac_ext <<_ACEOF
    3609 #line $LINENO "configure"
    3610 #include "confdefs.h"
    3611 #include <stdlib.h>
    3612 
    3613 _ACEOF
    3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3615   egrep "free" >/dev/null 2>&1; then
    3616   :
    3617 else
    3618   ac_cv_header_stdc=no
    3619 fi
    3620 rm -f conftest*
    3621 
    3622 fi
    3623 
    3624 if test $ac_cv_header_stdc = yes; then
    3625   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3626   if test "$cross_compiling" = yes; then
    3627   :
    3628 else
    3629   cat >conftest.$ac_ext <<_ACEOF
    3630 #line $LINENO "configure"
    3631 #include "confdefs.h"
    3632 #include <ctype.h>
    3633 #if ((' ' & 0x0FF) == 0x020)
    3634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    3635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    3636 #else
    3637 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
    3638                      || ('j' <= (c) && (c) <= 'r') \
    3639                      || ('s' <= (c) && (c) <= 'z'))
    3640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    3641 #endif
    3642 
    3643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    3644 int
    3645 main ()
    3646 {
    3647   int i;
    3648   for (i = 0; i < 256; i++)
    3649     if (XOR (islower (i), ISLOWER (i))
    3650         || toupper (i) != TOUPPER (i))
    3651       exit(2);
    3652   exit (0);
    3653 }
    3654 _ACEOF
    3655 rm -f conftest$ac_exeext
    3656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3657   (eval $ac_link) 2>&5
    3658   ac_status=$?
    3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3662   (eval $ac_try) 2>&5
    3663   ac_status=$?
    3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3665   (exit $ac_status); }; }; then
    3666   :
    3667 else
    3668   echo "$as_me: program exited with status $ac_status" >&5
    3669 echo "$as_me: failed program was:" >&5
    3670 cat conftest.$ac_ext >&5
    3671 ( exit $ac_status )
    3672 ac_cv_header_stdc=no
    3673 fi
    3674 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3675 fi
    3676 fi
    3677 fi
    3678 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3679 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    3680 if test $ac_cv_header_stdc = yes; then
    3681 
    3682 cat >>confdefs.h <<\_ACEOF
    3683 #define STDC_HEADERS 1
    3684 _ACEOF
    3685 
    3686 fi
    3687 
    3688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    3689 
    3690 
    3691 
    3692 
    3693 
    3694 
    3695 
    3696 
    3697 
    3698 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    3699                   inttypes.h stdint.h unistd.h
    3700 do
    3701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3702 echo "$as_me:$LINENO: checking for $ac_header" >&5
    3703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3705   echo $ECHO_N "(cached) $ECHO_C" >&6
    3706 else
    3707   cat >conftest.$ac_ext <<_ACEOF
    3708 #line $LINENO "configure"
    3709 #include "confdefs.h"
    3710 $ac_includes_default
    3711 
    3712 #include <$ac_header>
    3713 _ACEOF
    3714 rm -f conftest.$ac_objext
    3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3716   (eval $ac_compile) 2>&5
    3717   ac_status=$?
    3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3719   (exit $ac_status); } &&
    3720          { ac_try='test -s conftest.$ac_objext'
    3721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3722   (eval $ac_try) 2>&5
    3723   ac_status=$?
    3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3725   (exit $ac_status); }; }; then
    3726   eval "$as_ac_Header=yes"
    3727 else
    3728   echo "$as_me: failed program was:" >&5
    3729 cat conftest.$ac_ext >&5
    3730 eval "$as_ac_Header=no"
    3731 fi
    3732 rm -f conftest.$ac_objext conftest.$ac_ext
    3733 fi
    3734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    3735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    3736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    3737   cat >>confdefs.h <<_ACEOF
    3738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    3739 _ACEOF
    3740 
    3741 fi
    3742 
    3743 done
    3744 
    3745 
    3746 
    3747 for ac_header in dlfcn.h
    3748 do
    3749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3751   echo "$as_me:$LINENO: checking for $ac_header" >&5
    3752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3754   echo $ECHO_N "(cached) $ECHO_C" >&6
    3755 fi
    3756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    3757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    3758 else
    3759   # Is the header compilable?
    3760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    3761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    3762 cat >conftest.$ac_ext <<_ACEOF
    3763 #line $LINENO "configure"
    3764 #include "confdefs.h"
    3765 $ac_includes_default
    3766 #include <$ac_header>
    3767 _ACEOF
    3768 rm -f conftest.$ac_objext
    3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3770   (eval $ac_compile) 2>&5
    3771   ac_status=$?
    3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3773   (exit $ac_status); } &&
    3774          { ac_try='test -s conftest.$ac_objext'
    3775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3776   (eval $ac_try) 2>&5
    3777   ac_status=$?
    3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3779   (exit $ac_status); }; }; then
    3780   ac_header_compiler=yes
    3781 else
    3782   echo "$as_me: failed program was:" >&5
    3783 cat conftest.$ac_ext >&5
    3784 ac_header_compiler=no
    3785 fi
    3786 rm -f conftest.$ac_objext conftest.$ac_ext
    3787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    3788 echo "${ECHO_T}$ac_header_compiler" >&6
    3789 
    3790 # Is the header present?
    3791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    3792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    3793 cat >conftest.$ac_ext <<_ACEOF
    3794 #line $LINENO "configure"
    3795 #include "confdefs.h"
    3796 #include <$ac_header>
    3797 _ACEOF
    3798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3800   ac_status=$?
    3801   egrep -v '^ *\+' conftest.er1 >conftest.err
    3802   rm -f conftest.er1
    3803   cat conftest.err >&5
    3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3805   (exit $ac_status); } >/dev/null; then
    3806   if test -s conftest.err; then
    3807     ac_cpp_err=$ac_c_preproc_warn_flag
    3808   else
    3809     ac_cpp_err=
    3810   fi
    3811 else
    3812   ac_cpp_err=yes
    3813 fi
    3814 if test -z "$ac_cpp_err"; then
    3815   ac_header_preproc=yes
    3816 else
    3817   echo "$as_me: failed program was:" >&5
    3818   cat conftest.$ac_ext >&5
    3819   ac_header_preproc=no
    3820 fi
    3821 rm -f conftest.err conftest.$ac_ext
    3822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    3823 echo "${ECHO_T}$ac_header_preproc" >&6
    3824 
    3825 # So?  What about this header?
    3826 case $ac_header_compiler:$ac_header_preproc in
    3827   yes:no )
    3828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    3829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    3830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    3831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
    3832   no:yes )
    3833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    3834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    3835     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
    3836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    3837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    3838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
    3839 esac
    3840 echo "$as_me:$LINENO: checking for $ac_header" >&5
    3841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    3842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    3843   echo $ECHO_N "(cached) $ECHO_C" >&6
    3844 else
    3845   eval "$as_ac_Header=$ac_header_preproc"
    3846 fi
    3847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    3848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    3849 
    3850 fi
    3851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    3852   cat >>confdefs.h <<_ACEOF
    3853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    3854 _ACEOF
    3855 
    3856 fi
    3857 
    3858 done
    3859 
    3860 
    3861 
    3862 
    3863 
    3864 # Only perform the check for file, if the check method requires it
    3865 case $deplibs_check_method in
    3866 file_magic*)
    3867   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    3868     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
    3869 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
    3870 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
    3871   echo $ECHO_N "(cached) $ECHO_C" >&6
    3872 else
    3873   case $MAGIC_CMD in
    3874   /*)
    3875   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
    3876   ;;
    3877   ?:/*)
    3878   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
    3879   ;;
    3880   *)
    3881   ac_save_MAGIC_CMD="$MAGIC_CMD"
    3882   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    3883   ac_dummy="/usr/bin:$PATH"
    3884   for ac_dir in $ac_dummy; do
    3885     test -z "$ac_dir" && ac_dir=.
    3886     if test -f $ac_dir/${ac_tool_prefix}file; then
    3887       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
    3888       if test -n "$file_magic_test_file"; then
    3889         case $deplibs_check_method in
    3890         "file_magic "*)
    3891           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
    3892           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    3893           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
    3894             egrep "$file_magic_regex" > /dev/null; then
    3895             :
    3896           else
    3897             cat <<EOF 1>&2
    3898 
    3899 *** Warning: the command libtool uses to detect shared libraries,
    3900 *** $file_magic_cmd, produces output that libtool cannot recognize.
    3901 *** The result is that libtool may fail to recognize shared libraries
    3902 *** as such.  This will affect the creation of libtool libraries that
    3903 *** depend on shared libraries, but programs linked with such libtool
    3904 *** libraries will work regardless of this problem.  Nevertheless, you
    3905 *** may want to report the problem to your system manager and/or to
    3906 *** bug-libtool@gnu.org
    3907 
    3908 EOF
    3909           fi ;;
    3910         esac
    3911       fi
    3912       break
    3913     fi
    3914   done
    3915   IFS="$ac_save_ifs"
    3916   MAGIC_CMD="$ac_save_MAGIC_CMD"
    3917   ;;
    3918 esac
    3919 fi
    3920 
    3921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    3922 if test -n "$MAGIC_CMD"; then
    3923   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
    3924 echo "${ECHO_T}$MAGIC_CMD" >&6
    3925 else
    3926   echo "$as_me:$LINENO: result: no" >&5
    3927 echo "${ECHO_T}no" >&6
    3928 fi
    3929 
    3930 if test -z "$lt_cv_path_MAGIC_CMD"; then
    3931   if test -n "$ac_tool_prefix"; then
    3932     echo "$as_me:$LINENO: checking for file" >&5
    3933 echo $ECHO_N "checking for file... $ECHO_C" >&6
    3934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
    3935   echo $ECHO_N "(cached) $ECHO_C" >&6
    3936 else
    3937   case $MAGIC_CMD in
    3938   /*)
    3939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
    3940   ;;
    3941   ?:/*)
    3942   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
    3943   ;;
    3944   *)
    3945   ac_save_MAGIC_CMD="$MAGIC_CMD"
    3946   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    3947   ac_dummy="/usr/bin:$PATH"
    3948   for ac_dir in $ac_dummy; do
    3949     test -z "$ac_dir" && ac_dir=.
    3950     if test -f $ac_dir/file; then
    3951       lt_cv_path_MAGIC_CMD="$ac_dir/file"
    3952       if test -n "$file_magic_test_file"; then
    3953         case $deplibs_check_method in
    3954         "file_magic "*)
    3955           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
    3956           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    3957           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
    3958             egrep "$file_magic_regex" > /dev/null; then
    3959             :
    3960           else
    3961             cat <<EOF 1>&2
    3962 
    3963 *** Warning: the command libtool uses to detect shared libraries,
    3964 *** $file_magic_cmd, produces output that libtool cannot recognize.
    3965 *** The result is that libtool may fail to recognize shared libraries
    3966 *** as such.  This will affect the creation of libtool libraries that
    3967 *** depend on shared libraries, but programs linked with such libtool
    3968 *** libraries will work regardless of this problem.  Nevertheless, you
    3969 *** may want to report the problem to your system manager and/or to
    3970 *** bug-libtool@gnu.org
    3971 
    3972 EOF
    3973           fi ;;
    3974         esac
    3975       fi
    3976       break
    3977     fi
    3978   done
    3979   IFS="$ac_save_ifs"
    3980   MAGIC_CMD="$ac_save_MAGIC_CMD"
    3981   ;;
    3982 esac
    3983 fi
    3984 
    3985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    3986 if test -n "$MAGIC_CMD"; then
    3987   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
    3988 echo "${ECHO_T}$MAGIC_CMD" >&6
    3989 else
    3990   echo "$as_me:$LINENO: result: no" >&5
    3991 echo "${ECHO_T}no" >&6
    3992 fi
    3993 
    3994   else
    3995     MAGIC_CMD=:
    3996   fi
    3997 fi
    3998 
     5575  rm -f .libs 2>/dev/null
     5576mkdir .libs 2>/dev/null
     5577if test -d .libs; then
     5578  lt_cv_objdir=.libs
     5579else
     5580  # MS-DOS does not allow filenames that begin with a dot.
     5581  lt_cv_objdir=_libs
     5582fi
     5583rmdir .libs 2>/dev/null
     5584fi
     5585echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
     5586echo "${ECHO_T}$lt_cv_objdir" >&6
     5587objdir=$lt_cv_objdir
     5588
     5589
     5590
     5591
     5592
     5593case $host_os in
     5594aix3*)
     5595  # AIX sometimes has problems with the GCC collect2 program.  For some
     5596  # reason, if we set the COLLECT_NAMES environment variable, the problems
     5597  # vanish in a puff of smoke.
     5598  if test "X${COLLECT_NAMES+set}" != Xset; then
     5599    COLLECT_NAMES=
     5600    export COLLECT_NAMES
    39995601  fi
    40005602  ;;
    40015603esac
     5604
     5605# Sed substitution that helps us do robust quoting.  It backslashifies
     5606# metacharacters that are still active within double-quoted strings.
     5607Xsed='sed -e s/^X//'
     5608sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
     5609
     5610# Same as above, but do not quote variable references.
     5611double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
     5612
     5613# Sed substitution to delay expansion of an escaped shell variable in a
     5614# double_quote_subst'ed string.
     5615delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     5616
     5617# Sed substitution to avoid accidental globbing in evaled expressions
     5618no_glob_subst='s/\*/\\\*/g'
     5619
     5620# Constants:
     5621rm="rm -f"
     5622
     5623# Global variables:
     5624default_ofile=libtool
     5625can_build_shared=yes
     5626
     5627# All known linkers require a `.a' archive for static linking (except M$VC,
     5628# which needs '.lib').
     5629libext=a
     5630ltmain="$ac_aux_dir/ltmain.sh"
     5631ofile="$default_ofile"
     5632with_gnu_ld="$lt_cv_prog_gnu_ld"
     5633
     5634if test -n "$ac_tool_prefix"; then
     5635  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
     5636set dummy ${ac_tool_prefix}ar; ac_word=$2
     5637echo "$as_me:$LINENO: checking for $ac_word" >&5
     5638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5639if test "${ac_cv_prog_AR+set}" = set; then
     5640  echo $ECHO_N "(cached) $ECHO_C" >&6
     5641else
     5642  if test -n "$AR"; then
     5643  ac_cv_prog_AR="$AR" # Let the user override the test.
     5644else
     5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5646for as_dir in $PATH
     5647do
     5648  IFS=$as_save_IFS
     5649  test -z "$as_dir" && as_dir=.
     5650  for ac_exec_ext in '' $ac_executable_extensions; do
     5651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5652    ac_cv_prog_AR="${ac_tool_prefix}ar"
     5653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5654    break 2
     5655  fi
     5656done
     5657done
     5658
     5659fi
     5660fi
     5661AR=$ac_cv_prog_AR
     5662if test -n "$AR"; then
     5663  echo "$as_me:$LINENO: result: $AR" >&5
     5664echo "${ECHO_T}$AR" >&6
     5665else
     5666  echo "$as_me:$LINENO: result: no" >&5
     5667echo "${ECHO_T}no" >&6
     5668fi
     5669
     5670fi
     5671if test -z "$ac_cv_prog_AR"; then
     5672  ac_ct_AR=$AR
     5673  # Extract the first word of "ar", so it can be a program name with args.
     5674set dummy ar; ac_word=$2
     5675echo "$as_me:$LINENO: checking for $ac_word" >&5
     5676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5677if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
     5678  echo $ECHO_N "(cached) $ECHO_C" >&6
     5679else
     5680  if test -n "$ac_ct_AR"; then
     5681  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
     5682else
     5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5684for as_dir in $PATH
     5685do
     5686  IFS=$as_save_IFS
     5687  test -z "$as_dir" && as_dir=.
     5688  for ac_exec_ext in '' $ac_executable_extensions; do
     5689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5690    ac_cv_prog_ac_ct_AR="ar"
     5691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5692    break 2
     5693  fi
     5694done
     5695done
     5696
     5697  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
     5698fi
     5699fi
     5700ac_ct_AR=$ac_cv_prog_ac_ct_AR
     5701if test -n "$ac_ct_AR"; then
     5702  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
     5703echo "${ECHO_T}$ac_ct_AR" >&6
     5704else
     5705  echo "$as_me:$LINENO: result: no" >&5
     5706echo "${ECHO_T}no" >&6
     5707fi
     5708
     5709  AR=$ac_ct_AR
     5710else
     5711  AR="$ac_cv_prog_AR"
     5712fi
    40025713
    40035714if test -n "$ac_tool_prefix"; then
     
    41625873
    41635874
    4164 enable_dlopen=no
    4165 enable_win32_dll=no
    4166 
    4167 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
    4168 if test "${enable_libtool_lock+set}" = set; then
    4169   enableval="$enable_libtool_lock"
    4170 
    4171 fi;
    4172 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
    4173 
    4174 # Some flags need to be propagated to the compiler or linker for good
    4175 # libtool support.
    4176 case $host in
    4177 *-*-irix6*)
    4178   # Find out which ABI we are using.
    4179   echo '#line 4179 "configure"' > conftest.$ac_ext
    4180   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4181   (eval $ac_compile) 2>&5
    4182   ac_status=$?
    4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4184   (exit $ac_status); }; then
    4185     case `/usr/bin/file conftest.$ac_objext` in
    4186     *32-bit*)
    4187       LD="${LD-ld} -32"
    4188       ;;
    4189     *N32*)
    4190       LD="${LD-ld} -n32"
    4191       ;;
    4192     *64-bit*)
    4193       LD="${LD-ld} -64"
    4194       ;;
    4195     esac
    4196   fi
    4197   rm -rf conftest*
    4198   ;;
    4199 
    4200 *-*-sco3.2v5*)
    4201   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
    4202   SAVE_CFLAGS="$CFLAGS"
    4203   CFLAGS="$CFLAGS -belf"
    4204   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
    4205 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
    4206 if test "${lt_cv_cc_needs_belf+set}" = set; then
    4207   echo $ECHO_N "(cached) $ECHO_C" >&6
    4208 else
    4209 
    4210 
    4211      ac_ext=c
    4212 ac_cpp='$CPP $CPPFLAGS'
    4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4216 
    4217      cat >conftest.$ac_ext <<_ACEOF
    4218 #line $LINENO "configure"
    4219 #include "confdefs.h"
    4220 
    4221 #ifdef F77_DUMMY_MAIN
    4222 #  ifdef __cplusplus
    4223      extern "C"
    4224 #  endif
    4225    int F77_DUMMY_MAIN() { return 1; }
    4226 #endif
    4227 int
    4228 main ()
    4229 {
    4230 
    4231   ;
    4232   return 0;
    4233 }
    4234 _ACEOF
    4235 rm -f conftest.$ac_objext conftest$ac_exeext
    4236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4237   (eval $ac_link) 2>&5
    4238   ac_status=$?
    4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4240   (exit $ac_status); } &&
    4241          { ac_try='test -s conftest$ac_exeext'
    4242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4243   (eval $ac_try) 2>&5
    4244   ac_status=$?
    4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4246   (exit $ac_status); }; }; then
    4247   lt_cv_cc_needs_belf=yes
    4248 else
    4249   echo "$as_me: failed program was:" >&5
    4250 cat conftest.$ac_ext >&5
    4251 lt_cv_cc_needs_belf=no
    4252 fi
    4253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4254      ac_ext=c
    4255 ac_cpp='$CPP $CPPFLAGS'
    4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4259 
    4260 fi
    4261 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
    4262 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
    4263   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    4264     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    4265     CFLAGS="$SAVE_CFLAGS"
    4266   fi
    4267   ;;
    4268 
    4269 
    4270 esac
    4271 
    4272 # Sed substitution that helps us do robust quoting.  It backslashifies
    4273 # metacharacters that are still active within double-quoted strings.
    4274 Xsed='sed -e s/^X//'
    4275 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
    4276 
    4277 # Same as above, but do not quote variable references.
    4278 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
    4279 
    4280 # Sed substitution to delay expansion of an escaped shell variable in a
    4281 # double_quote_subst'ed string.
    4282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    4283 
    4284 # Constants:
    4285 rm="rm -f"
    4286 
    4287 # Global variables:
    4288 default_ofile=libtool
    4289 can_build_shared=yes
    4290 
    4291 # All known linkers require a `.a' archive for static linking (except M$VC,
    4292 # which needs '.lib').
    4293 libext=a
    4294 ltmain="$ac_aux_dir/ltmain.sh"
    4295 ofile="$default_ofile"
    4296 with_gnu_ld="$lt_cv_prog_gnu_ld"
    4297 need_locks="$enable_libtool_lock"
    4298 
    42995875old_CC="$CC"
    43005876old_CFLAGS="$CFLAGS"
     
    43055881test -z "$AS" && AS=as
    43065882test -z "$CC" && CC=cc
     5883test -z "$LTCC" && LTCC=$CC
    43075884test -z "$DLLTOOL" && DLLTOOL=dlltool
    43085885test -z "$LD" && LD=ld
     
    43105887test -z "$MAGIC_CMD" && MAGIC_CMD=file
    43115888test -z "$NM" && NM=nm
     5889test -z "$SED" && SED=sed
    43125890test -z "$OBJDUMP" && OBJDUMP=objdump
    43135891test -z "$RANLIB" && RANLIB=:
    43145892test -z "$STRIP" && STRIP=:
    43155893test -z "$ac_objext" && ac_objext=o
    4316 
    4317 if test x"$host" != x"$build"; then
    4318   ac_tool_prefix=${host_alias}-
    4319 else
    4320   ac_tool_prefix=
    4321 fi
    4322 
    4323 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
    4324 case $host_os in
    4325 linux-gnu*) ;;
    4326 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
    4327 esac
    4328 
    4329 case $host_os in
    4330 aix3*)
    4331   # AIX sometimes has problems with the GCC collect2 program.  For some
    4332   # reason, if we set the COLLECT_NAMES environment variable, the problems
    4333   # vanish in a puff of smoke.
    4334   if test "X${COLLECT_NAMES+set}" != Xset; then
    4335     COLLECT_NAMES=
    4336     export COLLECT_NAMES
    4337   fi
    4338   ;;
    4339 esac
    43405894
    43415895# Determine commands to create old-style static archives.
     
    43565910fi
    43575911
    4358 # Allow CC to be a program name with arguments.
    4359 set dummy $CC
    4360 compiler="$2"
    4361 
    4362 echo "$as_me:$LINENO: checking for objdir" >&5
    4363 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
    4364 rm -f .libs 2>/dev/null
    4365 mkdir .libs 2>/dev/null
    4366 if test -d .libs; then
    4367   objdir=.libs
    4368 else
    4369   # MS-DOS does not allow filenames that begin with a dot.
    4370   objdir=_libs
    4371 fi
    4372 rmdir .libs 2>/dev/null
    4373 echo "$as_me:$LINENO: result: $objdir" >&5
    4374 echo "${ECHO_T}$objdir" >&6
    4375 
     5912# Only perform the check for file, if the check method requires it
     5913case $deplibs_check_method in
     5914file_magic*)
     5915  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
     5916    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
     5917echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
     5918if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
     5919  echo $ECHO_N "(cached) $ECHO_C" >&6
     5920else
     5921  case $MAGIC_CMD in
     5922[\\/*] |  ?:[\\/]*)
     5923  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     5924  ;;
     5925*)
     5926  lt_save_MAGIC_CMD="$MAGIC_CMD"
     5927  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     5928  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
     5929  for ac_dir in $ac_dummy; do
     5930    IFS="$lt_save_ifs"
     5931    test -z "$ac_dir" && ac_dir=.
     5932    if test -f $ac_dir/${ac_tool_prefix}file; then
     5933      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
     5934      if test -n "$file_magic_test_file"; then
     5935        case $deplibs_check_method in
     5936        "file_magic "*)
     5937          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
     5938          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     5939          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     5940            $EGREP "$file_magic_regex" > /dev/null; then
     5941            :
     5942          else
     5943            cat <<EOF 1>&2
     5944
     5945*** Warning: the command libtool uses to detect shared libraries,
     5946*** $file_magic_cmd, produces output that libtool cannot recognize.
     5947*** The result is that libtool may fail to recognize shared libraries
     5948*** as such.  This will affect the creation of libtool libraries that
     5949*** depend on shared libraries, but programs linked with such libtool
     5950*** libraries will work regardless of this problem.  Nevertheless, you
     5951*** may want to report the problem to your system manager and/or to
     5952*** bug-libtool@gnu.org
     5953
     5954EOF
     5955          fi ;;
     5956        esac
     5957      fi
     5958      break
     5959    fi
     5960  done
     5961  IFS="$lt_save_ifs"
     5962  MAGIC_CMD="$lt_save_MAGIC_CMD"
     5963  ;;
     5964esac
     5965fi
     5966
     5967MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     5968if test -n "$MAGIC_CMD"; then
     5969  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
     5970echo "${ECHO_T}$MAGIC_CMD" >&6
     5971else
     5972  echo "$as_me:$LINENO: result: no" >&5
     5973echo "${ECHO_T}no" >&6
     5974fi
     5975
     5976if test -z "$lt_cv_path_MAGIC_CMD"; then
     5977  if test -n "$ac_tool_prefix"; then
     5978    echo "$as_me:$LINENO: checking for file" >&5
     5979echo $ECHO_N "checking for file... $ECHO_C" >&6
     5980if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
     5981  echo $ECHO_N "(cached) $ECHO_C" >&6
     5982else
     5983  case $MAGIC_CMD in
     5984[\\/*] |  ?:[\\/]*)
     5985  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     5986  ;;
     5987*)
     5988  lt_save_MAGIC_CMD="$MAGIC_CMD"
     5989  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     5990  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
     5991  for ac_dir in $ac_dummy; do
     5992    IFS="$lt_save_ifs"
     5993    test -z "$ac_dir" && ac_dir=.
     5994    if test -f $ac_dir/file; then
     5995      lt_cv_path_MAGIC_CMD="$ac_dir/file"
     5996      if test -n "$file_magic_test_file"; then
     5997        case $deplibs_check_method in
     5998        "file_magic "*)
     5999          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
     6000          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     6001          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     6002            $EGREP "$file_magic_regex" > /dev/null; then
     6003            :
     6004          else
     6005            cat <<EOF 1>&2
     6006
     6007*** Warning: the command libtool uses to detect shared libraries,
     6008*** $file_magic_cmd, produces output that libtool cannot recognize.
     6009*** The result is that libtool may fail to recognize shared libraries
     6010*** as such.  This will affect the creation of libtool libraries that
     6011*** depend on shared libraries, but programs linked with such libtool
     6012*** libraries will work regardless of this problem.  Nevertheless, you
     6013*** may want to report the problem to your system manager and/or to
     6014*** bug-libtool@gnu.org
     6015
     6016EOF
     6017          fi ;;
     6018        esac
     6019      fi
     6020      break
     6021    fi
     6022  done
     6023  IFS="$lt_save_ifs"
     6024  MAGIC_CMD="$lt_save_MAGIC_CMD"
     6025  ;;
     6026esac
     6027fi
     6028
     6029MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     6030if test -n "$MAGIC_CMD"; then
     6031  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
     6032echo "${ECHO_T}$MAGIC_CMD" >&6
     6033else
     6034  echo "$as_me:$LINENO: result: no" >&5
     6035echo "${ECHO_T}no" >&6
     6036fi
     6037
     6038  else
     6039    MAGIC_CMD=:
     6040  fi
     6041fi
     6042
     6043  fi
     6044  ;;
     6045esac
     6046
     6047enable_dlopen=no
     6048enable_win32_dll=no
     6049
     6050# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
     6051if test "${enable_libtool_lock+set}" = set; then
     6052  enableval="$enable_libtool_lock"
     6053
     6054fi;
     6055test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
    43766056
    43776057
     
    43856065test -z "$pic_mode" && pic_mode=default
    43866066
    4387 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
    4388 # in isolation, and that seeing it set (from the cache) indicates that
    4389 # the associated values are set (in the cache) correctly too.
     6067# Use C for the default configuration in the libtool script
     6068tagname=
     6069lt_save_CC="$CC"
     6070ac_ext=c
     6071ac_cpp='$CPP $CPPFLAGS'
     6072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6074ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6075
     6076
     6077# Source file extension for C test sources.
     6078ac_ext=c
     6079
     6080# Object file extension for compiled C test sources.
     6081objext=o
     6082objext=$objext
     6083
     6084# Code to be used in simple compile tests
     6085lt_simple_compile_test_code="int some_variable = 0;\n"
     6086
     6087# Code to be used in simple link tests
     6088lt_simple_link_test_code='int main(){return(0);}\n'
     6089
     6090
     6091# If no C compiler was specified, use CC.
     6092LTCC=${LTCC-"$CC"}
     6093
     6094# Allow CC to be a program name with arguments.
     6095compiler=$CC
     6096
     6097
     6098#
     6099# Check for any special shared library compilation flags.
     6100#
     6101lt_prog_cc_shlib=
     6102if test "$GCC" = no; then
     6103  case $host_os in
     6104  sco3.2v5*)
     6105    lt_prog_cc_shlib='-belf'
     6106    ;;
     6107  esac
     6108fi
     6109if test -n "$lt_prog_cc_shlib"; then
     6110  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
     6111echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
     6112  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
     6113  else
     6114    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
     6115echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
     6116    lt_cv_prog_cc_can_build_shared=no
     6117  fi
     6118fi
     6119
     6120
     6121#
     6122# Check to make sure the static flag actually works.
     6123#
     6124echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
     6125echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
     6126if test "${lt_prog_compiler_static_works+set}" = set; then
     6127  echo $ECHO_N "(cached) $ECHO_C" >&6
     6128else
     6129  lt_prog_compiler_static_works=no
     6130   save_LDFLAGS="$LDFLAGS"
     6131   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
     6132   printf "$lt_simple_link_test_code" > conftest.$ac_ext
     6133   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     6134     # The compiler can only warn and ignore the option if not recognized
     6135     # So say no if there are warnings
     6136     if test -s conftest.err; then
     6137       # Append any errors to the config.log.
     6138       cat conftest.err 1>&5
     6139     else
     6140       lt_prog_compiler_static_works=yes
     6141     fi
     6142   fi
     6143   $rm conftest*
     6144   LDFLAGS="$save_LDFLAGS"
     6145
     6146fi
     6147echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
     6148echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
     6149
     6150if test x"$lt_prog_compiler_static_works" = xyes; then
     6151    :
     6152else
     6153    lt_prog_compiler_static=
     6154fi
     6155
     6156
     6157
     6158
     6159lt_prog_compiler_no_builtin_flag=
     6160
     6161if test "$GCC" = yes; then
     6162  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
     6163
     6164
     6165echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
     6166echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
     6167if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
     6168  echo $ECHO_N "(cached) $ECHO_C" >&6
     6169else
     6170  lt_cv_prog_compiler_rtti_exceptions=no
     6171  ac_outfile=conftest.$ac_objext
     6172   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     6173   lt_compiler_flag="-fno-rtti -fno-exceptions"
     6174   # Insert the option either (1) after the last *FLAGS variable, or
     6175   # (2) before a word containing "conftest.", or (3) at the end.
     6176   # Note that $ac_compile itself does not contain backslashes and begins
     6177   # with a dollar sign (not a hyphen), so the echo should work correctly.
     6178   # The option is referenced via a variable to avoid confusing sed.
     6179   lt_compile=`echo "$ac_compile" | $SED \
     6180   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
     6181   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     6182   -e 's:$: $lt_compiler_flag:'`
     6183   (eval echo "\"\$as_me:6183: $lt_compile\"" >&5)
     6184   (eval "$lt_compile" 2>conftest.err)
     6185   ac_status=$?
     6186   cat conftest.err >&5
     6187   echo "$as_me:6187: \$? = $ac_status" >&5
     6188   if (exit $ac_status) && test -s "$ac_outfile"; then
     6189     # The compiler can only warn and ignore the option if not recognized
     6190     # So say no if there are warnings
     6191     if test ! -s conftest.err; then
     6192       lt_cv_prog_compiler_rtti_exceptions=yes
     6193     fi
     6194   fi
     6195   $rm conftest*
     6196
     6197fi
     6198echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
     6199echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
     6200
     6201if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
     6202    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
     6203else
     6204    :
     6205fi
     6206
     6207fi
     6208
     6209lt_prog_compiler_wl=
     6210lt_prog_compiler_pic=
     6211lt_prog_compiler_static=
     6212
    43906213echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
    43916214echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
    4392 if test "${lt_cv_prog_cc_pic+set}" = set; then
    4393   echo $ECHO_N "(cached) $ECHO_C" >&6
    4394 else
    4395    lt_cv_prog_cc_pic=
    4396   lt_cv_prog_cc_shlib=
    4397   lt_cv_prog_cc_wl=
    4398   lt_cv_prog_cc_static=
    4399   lt_cv_prog_cc_no_builtin=
    4400   lt_cv_prog_cc_can_build_shared=$can_build_shared
    44016215
    44026216  if test "$GCC" = yes; then
    4403     lt_cv_prog_cc_wl='-Wl,'
    4404     lt_cv_prog_cc_static='-static'
     6217    lt_prog_compiler_wl='-Wl,'
     6218    lt_prog_compiler_static='-static'
    44056219
    44066220    case $host_os in
    4407     aix*)
    4408       # Below there is a dirty hack to force normal static linking with -ldl
    4409       # The problem is because libdl dynamically linked with both libc and
    4410       # libC (AIX C++ library), which obviously doesn't included in libraries
    4411       # list by gcc. This cause undefined symbols with -static flags.
    4412       # This hack allows C programs to be linked with "-static -ldl", but
    4413       # not sure about C++ programs.
    4414       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
    4415       ;;
     6221      aix*)
     6222      # All AIX code is PIC.
     6223      if test "$host_cpu" = ia64; then
     6224        # AIX 5 now supports IA64 processor
     6225        lt_prog_compiler_static='-Bstatic'
     6226      fi
     6227      ;;
     6228
    44166229    amigaos*)
    44176230      # FIXME: we need at least 68020 code to build shared libraries, but
    44186231      # adding the `-m68020' flag to GCC prevents building anything better,
    44196232      # like `-m68040'.
    4420       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
    4421       ;;
    4422     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     6233      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
     6234      ;;
     6235
     6236    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    44236237      # PIC is the default for these OSes.
    44246238      ;;
     6239
     6240    mingw* | pw32* | os2*)
     6241      # This hack is so that the source file can tell whether it is being
     6242      # built for inclusion in a dll (and should export symbols for example).
     6243      lt_prog_compiler_pic='-DDLL_EXPORT'
     6244      ;;
     6245
    44256246    darwin* | rhapsody*)
    44266247      # PIC is the default on this platform
    44276248      # Common symbols not allowed in MH_DYLIB files
    4428       lt_cv_prog_cc_pic='-fno-common'
    4429       ;;
    4430     cygwin* | mingw* | pw32* | os2*)
     6249      lt_prog_compiler_pic='-fno-common'
     6250      ;;
     6251
     6252    msdosdjgpp*)
     6253      # Just because we use GCC doesn't mean we suddenly get shared libraries
     6254      # on systems that don't support them.
     6255      lt_prog_compiler_can_build_shared=no
     6256      enable_shared=no
     6257      ;;
     6258
     6259    sysv4*MP*)
     6260      if test -d /usr/nec; then
     6261        lt_prog_compiler_pic=-Kconform_pic
     6262      fi
     6263      ;;
     6264
     6265    hpux*)
     6266      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
     6267      # not for PA HP-UX.
     6268      case "$host_cpu" in
     6269      hppa*64*|ia64*)
     6270        # +Z the default
     6271        ;;
     6272      *)
     6273        lt_prog_compiler_pic='-fPIC'
     6274        ;;
     6275      esac
     6276      ;;
     6277
     6278    *)
     6279      lt_prog_compiler_pic='-fPIC'
     6280      ;;
     6281    esac
     6282  else
     6283    # PORTME Check for flag to pass linker flags through the system compiler.
     6284    case $host_os in
     6285    aix*)
     6286      lt_prog_compiler_wl='-Wl,'
     6287      if test "$host_cpu" = ia64; then
     6288        # AIX 5 now supports IA64 processor
     6289        lt_prog_compiler_static='-Bstatic'
     6290      else
     6291        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
     6292      fi
     6293      ;;
     6294
     6295    mingw* | pw32* | os2*)
    44316296      # This hack is so that the source file can tell whether it is being
    44326297      # built for inclusion in a dll (and should export symbols for example).
    4433       lt_cv_prog_cc_pic='-DDLL_EXPORT'
    4434       ;;
    4435     sysv4*MP*)
    4436       if test -d /usr/nec; then
    4437          lt_cv_prog_cc_pic=-Kconform_pic
    4438       fi
    4439       ;;
    4440     *)
    4441       lt_cv_prog_cc_pic='-fPIC'
    4442       ;;
    4443     esac
    4444   else
    4445     # PORTME Check for PIC flags for the system compiler.
    4446     case $host_os in
    4447     aix3* | aix4* | aix5*)
    4448       lt_cv_prog_cc_wl='-Wl,'
    4449       # All AIX code is PIC.
    4450       if test "$host_cpu" = ia64; then
    4451         # AIX 5 now supports IA64 processor
    4452         lt_cv_prog_cc_static='-Bstatic'
    4453       else
    4454         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
    4455       fi
     6298      lt_prog_compiler_pic='-DDLL_EXPORT'
    44566299      ;;
    44576300
    44586301    hpux9* | hpux10* | hpux11*)
    4459       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
    4460       lt_cv_prog_cc_wl='-Wl,'
    4461       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
    4462       lt_cv_prog_cc_pic='+Z'
     6302      lt_prog_compiler_wl='-Wl,'
     6303      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
     6304      # not for PA HP-UX.
     6305      case "$host_cpu" in
     6306      hppa*64*|ia64*)
     6307        # +Z the default
     6308        ;;
     6309      *)
     6310        lt_prog_compiler_pic='+Z'
     6311        ;;
     6312      esac
     6313      # Is there a better lt_prog_compiler_static that works with the bundled CC?
     6314      lt_prog_compiler_static='${wl}-a ${wl}archive'
    44636315      ;;
    44646316
    44656317    irix5* | irix6* | nonstopux*)
    4466       lt_cv_prog_cc_wl='-Wl,'
    4467       lt_cv_prog_cc_static='-non_shared'
     6318      lt_prog_compiler_wl='-Wl,'
    44686319      # PIC (with -KPIC) is the default.
    4469       ;;
    4470 
    4471     cygwin* | mingw* | pw32* | os2*)
    4472       # This hack is so that the source file can tell whether it is being
    4473       # built for inclusion in a dll (and should export symbols for example).
    4474       lt_cv_prog_cc_pic='-DDLL_EXPORT'
     6320      lt_prog_compiler_static='-non_shared'
    44756321      ;;
    44766322
    44776323    newsos6)
    4478       lt_cv_prog_cc_pic='-KPIC'
    4479       lt_cv_prog_cc_static='-Bstatic'
     6324      lt_prog_compiler_pic='-KPIC'
     6325      lt_prog_compiler_static='-Bstatic'
     6326      ;;
     6327
     6328    linux*)
     6329      case $CC in
     6330      icc* | ecc*)
     6331        lt_prog_compiler_wl='-Wl,'
     6332        lt_prog_compiler_pic='-KPIC'
     6333        lt_prog_compiler_static='-static'
     6334        ;;
     6335      ccc*)
     6336        lt_prog_compiler_wl='-Wl,'
     6337        # All Alpha code is PIC.
     6338        lt_prog_compiler_static='-non_shared'
     6339        ;;
     6340      esac
    44806341      ;;
    44816342
    44826343    osf3* | osf4* | osf5*)
     6344      lt_prog_compiler_wl='-Wl,'
    44836345      # All OSF/1 code is PIC.
    4484       lt_cv_prog_cc_wl='-Wl,'
    4485       lt_cv_prog_cc_static='-non_shared'
     6346      lt_prog_compiler_static='-non_shared'
    44866347      ;;
    44876348
    44886349    sco3.2v5*)
    4489       lt_cv_prog_cc_pic='-Kpic'
    4490       lt_cv_prog_cc_static='-dn'
    4491       lt_cv_prog_cc_shlib='-belf'
     6350      lt_prog_compiler_pic='-Kpic'
     6351      lt_prog_compiler_static='-dn'
    44926352      ;;
    44936353
    44946354    solaris*)
    4495       lt_cv_prog_cc_pic='-KPIC'
    4496       lt_cv_prog_cc_static='-Bstatic'
    4497       lt_cv_prog_cc_wl='-Wl,'
     6355      lt_prog_compiler_wl='-Wl,'
     6356      lt_prog_compiler_pic='-KPIC'
     6357      lt_prog_compiler_static='-Bstatic'
    44986358      ;;
    44996359
    45006360    sunos4*)
    4501       lt_cv_prog_cc_pic='-PIC'
    4502       lt_cv_prog_cc_static='-Bstatic'
    4503       lt_cv_prog_cc_wl='-Qoption ld '
     6361      lt_prog_compiler_wl='-Qoption ld '
     6362      lt_prog_compiler_pic='-PIC'
     6363      lt_prog_compiler_static='-Bstatic'
    45046364      ;;
    45056365
    45066366    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    4507       lt_cv_prog_cc_pic='-KPIC'
    4508       lt_cv_prog_cc_static='-Bstatic'
    4509       if test "x$host_vendor" = xsni; then
    4510         lt_cv_prog_cc_wl='-LD'
    4511       else
    4512         lt_cv_prog_cc_wl='-Wl,'
    4513       fi
    4514       ;;
    4515 
    4516     uts4*)
    4517       lt_cv_prog_cc_pic='-pic'
    4518       lt_cv_prog_cc_static='-Bstatic'
     6367      lt_prog_compiler_wl='-Wl,'
     6368      lt_prog_compiler_pic='-KPIC'
     6369      lt_prog_compiler_static='-Bstatic'
    45196370      ;;
    45206371
    45216372    sysv4*MP*)
    45226373      if test -d /usr/nec ;then
    4523         lt_cv_prog_cc_pic='-Kconform_pic'
    4524         lt_cv_prog_cc_static='-Bstatic'
     6374        lt_prog_compiler_pic='-Kconform_pic'
     6375        lt_prog_compiler_static='-Bstatic'
    45256376      fi
    45266377      ;;
    45276378
     6379    uts4*)
     6380      lt_prog_compiler_pic='-pic'
     6381      lt_prog_compiler_static='-Bstatic'
     6382      ;;
     6383
    45286384    *)
    4529       lt_cv_prog_cc_can_build_shared=no
     6385      lt_prog_compiler_can_build_shared=no
    45306386      ;;
    45316387    esac
    45326388  fi
    45336389
    4534 fi
    4535 
    4536 if test -z "$lt_cv_prog_cc_pic"; then
    4537   echo "$as_me:$LINENO: result: none" >&5
    4538 echo "${ECHO_T}none" >&6
    4539 else
    4540   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
    4541 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
    4542 
    4543   # Check to make sure the pic_flag actually works.
    4544   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
    4545 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
    4546   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
     6390echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
     6391echo "${ECHO_T}$lt_prog_compiler_pic" >&6
     6392
     6393#
     6394# Check to make sure the PIC flag actually works.
     6395#
     6396if test -n "$lt_prog_compiler_pic"; then
     6397
     6398echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
     6399echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
     6400if test "${lt_prog_compiler_pic_works+set}" = set; then
    45476401  echo $ECHO_N "(cached) $ECHO_C" >&6
    45486402else
    4549       save_CFLAGS="$CFLAGS"
    4550     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
    4551     cat >conftest.$ac_ext <<_ACEOF
    4552 #line $LINENO "configure"
    4553 #include "confdefs.h"
    4554 
    4555 #ifdef F77_DUMMY_MAIN
    4556 #  ifdef __cplusplus
    4557      extern "C"
    4558 #  endif
    4559    int F77_DUMMY_MAIN() { return 1; }
    4560 #endif
    4561 int
    4562 main ()
    4563 {
    4564 
    4565   ;
    4566   return 0;
    4567 }
    4568 _ACEOF
    4569 rm -f conftest.$ac_objext
    4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4571   (eval $ac_compile) 2>&5
    4572   ac_status=$?
    4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4574   (exit $ac_status); } &&
    4575          { ac_try='test -s conftest.$ac_objext'
    4576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4577   (eval $ac_try) 2>&5
    4578   ac_status=$?
    4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4580   (exit $ac_status); }; }; then
    4581         case $host_os in
    4582       hpux9* | hpux10* | hpux11*)
    4583         # On HP-UX, both CC and GCC only warn that PIC is supported... then
    4584         # they create non-PIC objects.  So, if there were any warnings, we
    4585         # assume that PIC is not supported.
    4586         if test -s conftest.err; then
    4587           lt_cv_prog_cc_pic_works=no
    4588         else
    4589           lt_cv_prog_cc_pic_works=yes
    4590         fi
    4591         ;;
    4592       *)
    4593         lt_cv_prog_cc_pic_works=yes
    4594         ;;
    4595       esac
    4596 
    4597 else
    4598   echo "$as_me: failed program was:" >&5
    4599 cat conftest.$ac_ext >&5
    4600       lt_cv_prog_cc_pic_works=no
    4601 
    4602 fi
    4603 rm -f conftest.$ac_objext conftest.$ac_ext
    4604     CFLAGS="$save_CFLAGS"
    4605 
    4606 fi
    4607 
    4608 
    4609   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
    4610     lt_cv_prog_cc_pic=
    4611     lt_cv_prog_cc_can_build_shared=no
    4612   else
    4613     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
    4614   fi
    4615 
    4616   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
    4617 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
    4618 fi
    4619 
    4620 # Check for any special shared library compilation flags.
    4621 if test -n "$lt_cv_prog_cc_shlib"; then
    4622   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
    4623 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
    4624   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
    4625   else
    4626    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
    4627 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
    4628     lt_cv_prog_cc_can_build_shared=no
    4629   fi
    4630 fi
    4631 
    4632 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
    4633 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
    4634 if test "${lt_cv_prog_cc_static_works+set}" = set; then
    4635   echo $ECHO_N "(cached) $ECHO_C" >&6
    4636 else
    4637     lt_cv_prog_cc_static_works=no
    4638   save_LDFLAGS="$LDFLAGS"
    4639   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
    4640   cat >conftest.$ac_ext <<_ACEOF
    4641 #line $LINENO "configure"
    4642 #include "confdefs.h"
    4643 
    4644 #ifdef F77_DUMMY_MAIN
    4645 #  ifdef __cplusplus
    4646      extern "C"
    4647 #  endif
    4648    int F77_DUMMY_MAIN() { return 1; }
    4649 #endif
    4650 int
    4651 main ()
    4652 {
    4653 
    4654   ;
    4655   return 0;
    4656 }
    4657 _ACEOF
    4658 rm -f conftest.$ac_objext conftest$ac_exeext
    4659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4660   (eval $ac_link) 2>&5
    4661   ac_status=$?
    4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4663   (exit $ac_status); } &&
    4664          { ac_try='test -s conftest$ac_exeext'
    4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4666   (eval $ac_try) 2>&5
    4667   ac_status=$?
    4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4669   (exit $ac_status); }; }; then
    4670   lt_cv_prog_cc_static_works=yes
    4671 else
    4672   echo "$as_me: failed program was:" >&5
    4673 cat conftest.$ac_ext >&5
    4674 fi
    4675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4676   LDFLAGS="$save_LDFLAGS"
    4677 
    4678 fi
    4679 
    4680 
    4681 # Belt *and* braces to stop my trousers falling down:
    4682 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
    4683 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
    4684 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
    4685 
    4686 pic_flag="$lt_cv_prog_cc_pic"
    4687 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
    4688 wl="$lt_cv_prog_cc_wl"
    4689 link_static_flag="$lt_cv_prog_cc_static"
    4690 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
    4691 can_build_shared="$lt_cv_prog_cc_can_build_shared"
    4692 
    4693 
    4694 # Check to see if options -o and -c are simultaneously supported by compiler
     6403  lt_prog_compiler_pic_works=no
     6404  ac_outfile=conftest.$ac_objext
     6405   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     6406   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
     6407   # Insert the option either (1) after the last *FLAGS variable, or
     6408   # (2) before a word containing "conftest.", or (3) at the end.
     6409   # Note that $ac_compile itself does not contain backslashes and begins
     6410   # with a dollar sign (not a hyphen), so the echo should work correctly.
     6411   # The option is referenced via a variable to avoid confusing sed.
     6412   lt_compile=`echo "$ac_compile" | $SED \
     6413   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
     6414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     6415   -e 's:$: $lt_compiler_flag:'`
     6416   (eval echo "\"\$as_me:6416: $lt_compile\"" >&5)
     6417   (eval "$lt_compile" 2>conftest.err)
     6418   ac_status=$?
     6419   cat conftest.err >&5
     6420   echo "$as_me:6420: \$? = $ac_status" >&5
     6421   if (exit $ac_status) && test -s "$ac_outfile"; then
     6422     # The compiler can only warn and ignore the option if not recognized
     6423     # So say no if there are warnings
     6424     if test ! -s conftest.err; then
     6425       lt_prog_compiler_pic_works=yes
     6426     fi
     6427   fi
     6428   $rm conftest*
     6429
     6430fi
     6431echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
     6432echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
     6433
     6434if test x"$lt_prog_compiler_pic_works" = xyes; then
     6435    case $lt_prog_compiler_pic in
     6436     "" | " "*) ;;
     6437     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     6438     esac
     6439else
     6440    lt_prog_compiler_pic=
     6441     lt_prog_compiler_can_build_shared=no
     6442fi
     6443
     6444fi
     6445case "$host_os" in
     6446  # For platforms which do not support PIC, -DPIC is meaningless:
     6447  *djgpp*)
     6448    lt_prog_compiler_pic=
     6449    ;;
     6450  *)
     6451    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
     6452    ;;
     6453esac
     6454
    46956455echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    46966456echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
    4697 if test "${lt_cv_compiler_c_o+set}" = set; then
     6457if test "${lt_cv_prog_compiler_c_o+set}" = set; then
    46986458  echo $ECHO_N "(cached) $ECHO_C" >&6
    46996459else
    4700 
    4701 $rm -r conftest 2>/dev/null
    4702 mkdir conftest
    4703 cd conftest
    4704 echo "int some_variable = 0;" > conftest.$ac_ext
    4705 mkdir out
    4706 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
    4707 # that will create temporary files in the current directory regardless of
    4708 # the output directory.  Thus, making CWD read-only will cause this test
    4709 # to fail, enabling locking or at least warning the user not to do parallel
    4710 # builds.
    4711 chmod -w .
    4712 save_CFLAGS="$CFLAGS"
    4713 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
    4714 compiler_c_o=no
    4715 if { (eval echo configure:4715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
    4716   # The compiler can only warn and ignore the option if not recognized
    4717   # So say no if there are warnings
    4718   if test -s out/conftest.err; then
    4719     lt_cv_compiler_c_o=no
    4720   else
    4721     lt_cv_compiler_c_o=yes
    4722   fi
    4723 else
    4724   # Append any errors to the config.log.
    4725   cat out/conftest.err 1>&5
    4726   lt_cv_compiler_c_o=no
    4727 fi
    4728 CFLAGS="$save_CFLAGS"
    4729 chmod u+w .
    4730 $rm conftest* out/*
    4731 rmdir out
    4732 cd ..
    4733 rmdir conftest
    4734 $rm -r conftest 2>/dev/null
    4735 
    4736 fi
    4737 
    4738 compiler_c_o=$lt_cv_compiler_c_o
    4739 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
    4740 echo "${ECHO_T}$compiler_c_o" >&6
    4741 
    4742 if test x"$compiler_c_o" = x"yes"; then
    4743   # Check to see if we can write to a .lo
    4744   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
    4745 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
    4746   if test "${lt_cv_compiler_o_lo+set}" = set; then
    4747   echo $ECHO_N "(cached) $ECHO_C" >&6
    4748 else
    4749 
    4750   lt_cv_compiler_o_lo=no
    4751   save_CFLAGS="$CFLAGS"
    4752   CFLAGS="$CFLAGS -c -o conftest.lo"
    4753   save_objext="$ac_objext"
    4754   ac_objext=lo
    4755   cat >conftest.$ac_ext <<_ACEOF
    4756 #line $LINENO "configure"
    4757 #include "confdefs.h"
    4758 
    4759 #ifdef F77_DUMMY_MAIN
    4760 #  ifdef __cplusplus
    4761      extern "C"
    4762 #  endif
    4763    int F77_DUMMY_MAIN() { return 1; }
    4764 #endif
    4765 int
    4766 main ()
    4767 {
    4768 int some_variable = 0;
    4769   ;
    4770   return 0;
    4771 }
    4772 _ACEOF
    4773 rm -f conftest.$ac_objext
    4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4775   (eval $ac_compile) 2>&5
    4776   ac_status=$?
    4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4778   (exit $ac_status); } &&
    4779          { ac_try='test -s conftest.$ac_objext'
    4780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4781   (eval $ac_try) 2>&5
    4782   ac_status=$?
    4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4784   (exit $ac_status); }; }; then
    4785       # The compiler can only warn and ignore the option if not recognized
    4786     # So say no if there are warnings
    4787     if test -s conftest.err; then
    4788       lt_cv_compiler_o_lo=no
    4789     else
    4790       lt_cv_compiler_o_lo=yes
    4791     fi
    4792 
    4793 else
    4794   echo "$as_me: failed program was:" >&5
    4795 cat conftest.$ac_ext >&5
    4796 fi
    4797 rm -f conftest.$ac_objext conftest.$ac_ext
    4798   ac_objext="$save_objext"
    4799   CFLAGS="$save_CFLAGS"
    4800 
    4801 fi
    4802 
    4803   compiler_o_lo=$lt_cv_compiler_o_lo
    4804   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
    4805 echo "${ECHO_T}$compiler_o_lo" >&6
    4806 else
    4807   compiler_o_lo=no
    4808 fi
    4809 
    4810 # Check to see if we can do hard links to lock some files if needed
     6460  lt_cv_prog_compiler_c_o=no
     6461   $rm -r conftest 2>/dev/null
     6462   mkdir conftest
     6463   cd conftest
     6464   mkdir out
     6465   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     6466
     6467   lt_compiler_flag="-o out/conftest2.$ac_objext"
     6468   # Insert the option either (1) after the last *FLAGS variable, or
     6469   # (2) before a word containing "conftest.", or (3) at the end.
     6470   # Note that $ac_compile itself does not contain backslashes and begins
     6471   # with a dollar sign (not a hyphen), so the echo should work correctly.
     6472   lt_compile=`echo "$ac_compile" | $SED \
     6473   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
     6474   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     6475   -e 's:$: $lt_compiler_flag:'`
     6476   (eval echo "\"\$as_me:6476: $lt_compile\"" >&5)
     6477   (eval "$lt_compile" 2>out/conftest.err)
     6478   ac_status=$?
     6479   cat out/conftest.err >&5
     6480   echo "$as_me:6480: \$? = $ac_status" >&5
     6481   if (exit $ac_status) && test -s out/conftest2.$ac_objext
     6482   then
     6483     # The compiler can only warn and ignore the option if not recognized
     6484     # So say no if there are warnings
     6485     if test ! -s out/conftest.err; then
     6486       lt_cv_prog_compiler_c_o=yes
     6487     fi
     6488   fi
     6489   chmod u+w .
     6490   $rm conftest*
     6491   # SGI C++ compiler will create directory out/ii_files/ for
     6492   # template instantiation
     6493   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
     6494   $rm out/* && rmdir out
     6495   cd ..
     6496   rmdir conftest
     6497   $rm conftest*
     6498
     6499fi
     6500echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
     6501echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
     6502
     6503
    48116504hard_links="nottested"
    4812 if test "$compiler_c_o" = no && test "$need_locks" != no; then
     6505if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
    48136506  # do not overwrite the value of need_locks provided by the user
    48146507  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
     
    48316524fi
    48326525
    4833 if test "$GCC" = yes; then
    4834   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
    4835   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
    4836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
    4837   echo "int some_variable = 0;" > conftest.$ac_ext
    4838   save_CFLAGS="$CFLAGS"
    4839   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
    4840   compiler_rtti_exceptions=no
    4841   cat >conftest.$ac_ext <<_ACEOF
    4842 #line $LINENO "configure"
    4843 #include "confdefs.h"
    4844 
    4845 #ifdef F77_DUMMY_MAIN
    4846 #  ifdef __cplusplus
    4847      extern "C"
    4848 #  endif
    4849    int F77_DUMMY_MAIN() { return 1; }
    4850 #endif
    4851 int
    4852 main ()
    4853 {
    4854 int some_variable = 0;
    4855   ;
    4856   return 0;
    4857 }
    4858 _ACEOF
    4859 rm -f conftest.$ac_objext
    4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4861   (eval $ac_compile) 2>&5
    4862   ac_status=$?
    4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4864   (exit $ac_status); } &&
    4865          { ac_try='test -s conftest.$ac_objext'
    4866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4867   (eval $ac_try) 2>&5
    4868   ac_status=$?
    4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4870   (exit $ac_status); }; }; then
    4871       # The compiler can only warn and ignore the option if not recognized
    4872     # So say no if there are warnings
    4873     if test -s conftest.err; then
    4874       compiler_rtti_exceptions=no
    4875     else
    4876       compiler_rtti_exceptions=yes
     6526echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
     6527echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
     6528
     6529  runpath_var=
     6530  allow_undefined_flag=
     6531  enable_shared_with_static_runtimes=no
     6532  archive_cmds=
     6533  archive_expsym_cmds=
     6534  old_archive_From_new_cmds=
     6535  old_archive_from_expsyms_cmds=
     6536  export_dynamic_flag_spec=
     6537  whole_archive_flag_spec=
     6538  thread_safe_flag_spec=
     6539  hardcode_libdir_flag_spec=
     6540  hardcode_libdir_flag_spec_ld=
     6541  hardcode_libdir_separator=
     6542  hardcode_direct=no
     6543  hardcode_minus_L=no
     6544  hardcode_shlibpath_var=unsupported
     6545  link_all_deplibs=unknown
     6546  hardcode_automatic=no
     6547  module_cmds=
     6548  module_expsym_cmds=
     6549  always_export_symbols=no
     6550  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     6551  # include_expsyms should be a list of space-separated symbols to be *always*
     6552  # included in the symbol list
     6553  include_expsyms=
     6554  # exclude_expsyms can be an extended regexp of symbols to exclude
     6555  # it will be wrapped by ` (' and `)$', so one must not match beginning or
     6556  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
     6557  # as well as any symbol that contains `d'.
     6558  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
     6559  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
     6560  # platforms (ab)use it in PIC code, but their linkers get confused if
     6561  # the symbol is explicitly referenced.  Since portable code cannot
     6562  # rely on this symbol name, it's probably fine to never include it in
     6563  # preloaded symbol tables.
     6564  extract_expsyms_cmds=
     6565
     6566  case $host_os in
     6567  cygwin* | mingw* | pw32*)
     6568    # FIXME: the MSVC++ port hasn't been tested in a loooong time
     6569    # When not using gcc, we currently assume that we are using
     6570    # Microsoft Visual C++.
     6571    if test "$GCC" != yes; then
     6572      with_gnu_ld=no
    48776573    fi
    4878 
    4879 else
    4880   echo "$as_me: failed program was:" >&5
    4881 cat conftest.$ac_ext >&5
    4882 fi
    4883 rm -f conftest.$ac_objext conftest.$ac_ext
    4884   CFLAGS="$save_CFLAGS"
    4885   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
    4886 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
    4887 
    4888   if test "$compiler_rtti_exceptions" = "yes"; then
    4889     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
    4890   else
    4891     no_builtin_flag=' -fno-builtin'
    4892   fi
    4893 fi
    4894 
    4895 # See if the linker supports building shared libraries.
    4896 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
    4897 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
    4898 
    4899 allow_undefined_flag=
    4900 no_undefined_flag=
    4901 need_lib_prefix=unknown
    4902 need_version=unknown
    4903 # when you set need_version to no, make sure it does not cause -set_version
    4904 # flags to be left without arguments
    4905 archive_cmds=
    4906 archive_expsym_cmds=
    4907 old_archive_from_new_cmds=
    4908 old_archive_from_expsyms_cmds=
    4909 export_dynamic_flag_spec=
    4910 whole_archive_flag_spec=
    4911 thread_safe_flag_spec=
    4912 hardcode_into_libs=no
    4913 hardcode_libdir_flag_spec=
    4914 hardcode_libdir_separator=
    4915 hardcode_direct=no
    4916 hardcode_minus_L=no
    4917 hardcode_shlibpath_var=unsupported
    4918 runpath_var=
    4919 link_all_deplibs=unknown
    4920 always_export_symbols=no
    4921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
    4922 # include_expsyms should be a list of space-separated symbols to be *always*
    4923 # included in the symbol list
    4924 include_expsyms=
    4925 # exclude_expsyms can be an egrep regular expression of symbols to exclude
    4926 # it will be wrapped by ` (' and `)$', so one must not match beginning or
    4927 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
    4928 # as well as any symbol that contains `d'.
    4929 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
    4930 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
    4931 # platforms (ab)use it in PIC code, but their linkers get confused if
    4932 # the symbol is explicitly referenced.  Since portable code cannot
    4933 # rely on this symbol name, it's probably fine to never include it in
    4934 # preloaded symbol tables.
    4935 extract_expsyms_cmds=
    4936 
    4937 case $host_os in
    4938 cygwin* | mingw* | pw32*)
    4939   # FIXME: the MSVC++ port hasn't been tested in a loooong time
    4940   # When not using gcc, we currently assume that we are using
    4941   # Microsoft Visual C++.
    4942   if test "$GCC" != yes; then
     6574    ;;
     6575  openbsd*)
    49436576    with_gnu_ld=no
    4944   fi
    4945   ;;
    4946 openbsd*)
    4947   with_gnu_ld=no
    4948   ;;
    4949 esac
    4950 
    4951 ld_shlibs=yes
    4952 if test "$with_gnu_ld" = yes; then
    4953   # If archive_cmds runs LD, not CC, wlarc should be empty
    4954   wlarc='${wl}'
    4955 
    4956   # See if GNU ld supports shared libraries.
    4957   case $host_os in
    4958   aix3* | aix4* | aix5*)
    4959     # On AIX, the GNU linker is very broken
    4960     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
    4961     ld_shlibs=no
    4962     cat <<EOF 1>&2
     6577    ;;
     6578  esac
     6579
     6580  ld_shlibs=yes
     6581  if test "$with_gnu_ld" = yes; then
     6582    # If archive_cmds runs LD, not CC, wlarc should be empty
     6583    wlarc='${wl}'
     6584
     6585    # See if GNU ld supports shared libraries.
     6586    case $host_os in
     6587    aix3* | aix4* | aix5*)
     6588      # On AIX/PPC, the GNU linker is very broken
     6589      if test "$host_cpu" != ia64; then
     6590        ld_shlibs=no
     6591        cat <<EOF 1>&2
    49636592
    49646593*** Warning: the GNU linker, at least up to release 2.9.1, is reported
     
    49696598
    49706599EOF
    4971     ;;
    4972 
    4973   amigaos*)
    4974     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)'
    4975     hardcode_libdir_flag_spec='-L$libdir'
    4976     hardcode_minus_L=yes
    4977 
    4978     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
    4979     # that the semantics of dynamic libraries on AmigaOS, at least up
    4980     # to version 4, is to share data among multiple programs linked
    4981     # with the same dynamic library.  Since this doesn't match the
    4982     # behavior of shared libraries on other platforms, we can use
    4983     # them.
    4984     ld_shlibs=no
    4985     ;;
    4986 
    4987   beos*)
    4988     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     6600      fi
     6601      ;;
     6602
     6603    amigaos*)
     6604      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)'
     6605      hardcode_libdir_flag_spec='-L$libdir'
     6606      hardcode_minus_L=yes
     6607
     6608      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
     6609      # that the semantics of dynamic libraries on AmigaOS, at least up
     6610      # to version 4, is to share data among multiple programs linked
     6611      # with the same dynamic library.  Since this doesn't match the
     6612      # behavior of shared libraries on other platforms, we can't use
     6613      # them.
     6614      ld_shlibs=no
     6615      ;;
     6616
     6617    beos*)
     6618      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     6619        allow_undefined_flag=unsupported
     6620        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     6621        # support --undefined.  This deserves some investigation.  FIXME
     6622        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6623      else
     6624        ld_shlibs=no
     6625      fi
     6626      ;;
     6627
     6628    cygwin* | mingw* | pw32*)
     6629      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
     6630      # as there is no search path for DLLs.
     6631      hardcode_libdir_flag_spec='-L$libdir'
    49896632      allow_undefined_flag=unsupported
    4990       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
    4991       # support --undefined.  This deserves some investigation.  FIXME
    4992       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    4993     else
    4994       ld_shlibs=no
    4995     fi
    4996     ;;
    4997 
    4998   cygwin* | mingw* | pw32*)
    4999     # hardcode_libdir_flag_spec is actually meaningless, as there is
    5000     # no search path for DLLs.
    5001     hardcode_libdir_flag_spec='-L$libdir'
    5002     allow_undefined_flag=unsupported
    5003     always_export_symbols=yes
    5004 
    5005     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
    5006       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
    5007       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
    5008       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
    5009       else $CC -o impgen impgen.c ; fi)~
    5010       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
    5011 
    5012     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
    5013 
    5014     # cygwin and mingw dlls have different entry points and sets of symbols
    5015     # to exclude.
    5016     # FIXME: what about values for MSVC?
    5017     dll_entry=__cygwin_dll_entry@12
    5018     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
    5019     case $host_os in
    5020     mingw*)
    5021       # mingw values
    5022       dll_entry=_DllMainCRTStartup@12
    5023       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
    5024       ;;
    5025     esac
    5026 
    5027     # mingw and cygwin differ, and it's simplest to just exclude the union
    5028     # of the two symbol sets.
    5029     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
    5030 
    5031     # recent cygwin and mingw systems supply a stub DllMain which the user
    5032     # can override, but on older systems we have to supply one (in ltdll.c)
    5033     if test "x$lt_cv_need_dllmain" = "xyes"; then
    5034       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
    5035       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
    5036         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
    5037     else
    5038       ltdll_obj=
    5039       ltdll_cmds=
    5040     fi
    5041 
    5042     # Extract the symbol export list from an `--export-all' def file,
    5043     # then regenerate the def file from the symbol export list, so that
    5044     # the compiled dll only exports the symbol export list.
    5045     # Be careful not to strip the DATA tag left be newer dlltools.
    5046     export_symbols_cmds="$ltdll_cmds"'
    5047       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
    5048       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
    5049 
    5050     # If the export-symbols file already is a .def file (1st line
    5051     # is EXPORTS), use it as is.
    5052     # If DATA tags from a recent dlltool are present, honour them!
    5053     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
    5054         cp $export_symbols $output_objdir/$soname-def;
     6633      always_export_symbols=no
     6634      enable_shared_with_static_runtimes=yes
     6635      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
     6636
     6637      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
     6638        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     6639        # If the export-symbols file already is a .def file (1st line
     6640        # is EXPORTS), use it as is; otherwise, prepend...
     6641        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6642          cp $export_symbols $output_objdir/$soname.def;
     6643        else
     6644          echo EXPORTS > $output_objdir/$soname.def;
     6645          cat $export_symbols >> $output_objdir/$soname.def;
     6646        fi~
     6647        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
    50556648      else
    5056         echo EXPORTS > $output_objdir/$soname-def;
    5057         _lt_hint=1;
    5058         cat $export_symbols | while read symbol; do
    5059          set dummy \$symbol;
    5060          case \$# in
    5061            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
    5062            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
    5063          esac;
    5064          _lt_hint=`expr 1 + \$_lt_hint`;
    5065         done;
    5066       fi~
    5067       '"$ltdll_cmds"'
    5068       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
    5069       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
    5070       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
    5071       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
    5072       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
    5073     ;;
    5074 
    5075   netbsd*)
    5076     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    5077       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    5078       wlarc=
    5079     else
    5080       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5081       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    5082     fi
    5083     ;;
    5084 
    5085   solaris* | sysv5*)
    5086     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
    5087       ld_shlibs=no
    5088       cat <<EOF 1>&2
     6649        ld_shlibs=no
     6650      fi
     6651      ;;
     6652
     6653    netbsd*)
     6654      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     6655        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     6656        wlarc=
     6657      else
     6658        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6659        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     6660      fi
     6661      ;;
     6662
     6663    solaris* | sysv5*)
     6664      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
     6665        ld_shlibs=no
     6666        cat <<EOF 1>&2
    50896667
    50906668*** Warning: The releases 2.8.* of the GNU linker cannot reliably
     
    50966674
    50976675EOF
    5098     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
    5099       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5100       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     6676      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     6677        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6678        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     6679      else
     6680        ld_shlibs=no
     6681      fi
     6682      ;;
     6683
     6684    sunos4*)
     6685      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     6686      wlarc=
     6687      hardcode_direct=yes
     6688      hardcode_shlibpath_var=no
     6689      ;;
     6690
     6691  linux*)
     6692    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     6693        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6694        archive_cmds="$tmp_archive_cmds"
     6695      supports_anon_versioning=no
     6696      case `$LD -v 2>/dev/null` in
     6697        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
     6698        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
     6699        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
     6700        *\ 2.11.*) ;; #