view kpathsea/configure.in @ 2331:798a4d06ba7d

[project @ 1996-07-19 01:52:57 by jwe] Initial revision
author jwe
date Fri, 19 Jul 1996 01:57:38 +0000
parents
children a5a300c61159
line wrap: on
line source

dnl Process this file with autoconf to produce a configure script.
AC_INIT(pathsearch.c)

AC_CANONICAL_HOST
if test -z "$host"; then
  host=unknown
fi
target_host_type=$host
canonical_host_type=$host

### Enable creation of shared libraries.  Currently only works with
### gcc on some systems.

AC_ARG_ENABLE(shared,
  [  --shared                create shared libraries (not all systems)],
  [if test $enableval = no; then SHARED_LIBS=false; else SHARED_LIBS=true; fi],
  SHARED_LIBS=false)
AC_SUBST(SHARED_LIBS)

if $SHARED_LIBS; then
  CPICFLAG=-fPIC
  SHLEXT=so
  case "$canonical_host_type" in
    alpha-dec-osf*)
      CPICFLAG=
    ;;
    rs6000-ibm-aix*)
      CPICFLAG=
    ;;
    hppa*-hp-hpux*)
      SHLEXT=sl
    ;;
  esac
else
  CPICFLAG=
  SHLEXT=
fi
AC_MSG_RESULT([defining CPICFLAG to be $CPICFLAG])
AC_MSG_RESULT([defining SHLEXT to be $SHLEXT])
AC_SUBST(CPICFLAG)
AC_SUBST(SHLEXT)

sinclude(common.ac)

AC_OUTPUT(Makefile)