 # Local configure fragment for sysdeps/unix/sysv/linux.

# On Syllable, the default is to use libio instead of stdio.
test $stdio = default && stdio=libio

# Don't bother trying to generate any glue code to be compatible with the
# existing system library, because we are the only system library.
inhibit_glue=yes

#Compiling libc for Syllable without thread support whould be a crime.
DEFINES="$DEFINES -D_LIBC_REENTRANT -D_THREAD_SAFE"
#Syllable has a 64 bit native file-system, and off_t is 64 bit
#DEFINES="$DEFINES -D_FILE_OFFSET_BITS=64"
SYSINCLUDES="-I/ainc/"
static=no
profile=no

# When the installation prefix is "/usr" we have to place
# shared library objects and the configuration files no the
# boot disk's system directories.

# in /lib and /etc.
if test "$prefix" = "/usr"; then
  libc_cv_slibdir="/system/libs"
  libc_cv_sysconfdir="/etc"
  libc_cv_rootsbindir="/usr/sbin"
fi


# Check whether `ldconfig' sources are available.  This will go away as soon
# as ldconfig is available in GNU libc.
#if test -f $srcdir/elf/ldconfig.c; then
#  has_ldconfig=yes
#fi

# We need some extensions to the `ldd' script.

#case "$machine" in
#  i[3456]86* | m68* | sparc/sparc32)
#    ldd_rewrite_script=../sysdeps/unix/sysv/linux/ldd-rewrite.sed
#    ;;
#  *)
#    ;;
#esac


if test $host = $build; then
  # If $prefix/include/{net,scsi} are symlinks, make install will
  # clobber what they're linked to (probably a kernel tree).
  # test -L ought to work on all Linux boxes.
  if test "x$prefix" != xNONE; then
    ac_prefix=$prefix
  else
    ac_prefix=$ac_default_prefix
  fi
  echo $ac_n "checking for symlinks in ${ac_prefix}/include""... $ac_c" 1>&6
echo "configure:131: checking for symlinks in ${ac_prefix}/include" >&5
  ac_message=
  if test -L ${ac_prefix}/include/net; then
    ac_message="$ac_message
   ${ac_prefix}/include/net is a symlink"
  fi
  if test -L ${ac_prefix}/include/scsi; then
    ac_message="$ac_message
   ${ac_prefix}/include/scsi is a symlink"
  fi
  if test -n "$ac_message"; then
    { echo "configure: error: $ac_message
\`make install' will destroy the target of the link(s).
Delete the links and re-run configure, or better still, move the entire
${ac_prefix}/include directory out of the way." 1>&2; exit 1; }
  else
    echo "$ac_t""ok" 1>&6
  fi
fi
