2002-03-08 01:06:21 -05:00
|
|
|
$OpenBSD: patch-configure_in,v 1.4 2002/03/08 06:06:21 drahn Exp $
|
|
|
|
--- configure.in.orig Sun Aug 15 17:29:43 1999
|
|
|
|
+++ configure.in Thu Mar 7 23:31:11 2002
|
|
|
|
@@ -1,28 +1,23 @@
|
|
|
|
AC_INIT(interface/interface.c)
|
2001-12-31 04:40:44 -05:00
|
|
|
|
2002-03-08 01:06:21 -05:00
|
|
|
-cp $srcdir/configure.guess $srcdir/config.guess
|
|
|
|
-cp $srcdir/configure.sub $srcdir/config.sub
|
|
|
|
-
|
2001-12-31 04:40:44 -05:00
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
|
|
|
-if test -z "$CC"; then
|
|
|
|
- AC_PROG_CC
|
|
|
|
-fi
|
|
|
|
+AC_PROG_CC
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
AC_CHECK_PROG(AR,ar,ar)
|
|
|
|
AC_CHECK_PROG(INSTALL,install,install)
|
2000-09-21 12:07:20 -04:00
|
|
|
|
|
|
|
if test -z "$GCC"; then
|
|
|
|
DEBUG="-g"
|
|
|
|
- OPT="-O"
|
2001-08-25 07:19:25 -04:00
|
|
|
+ OPT="-O ${COPTS}"
|
2000-09-21 12:07:20 -04:00
|
|
|
else
|
|
|
|
case $host in
|
|
|
|
- i?86-*-linux*)
|
|
|
|
+ i?86-*-*)
|
|
|
|
DEBUG="-g -Wall -fsigned-char"
|
|
|
|
- OPT="-O20 -ffast-math -fsigned-char -finline-functions";;
|
2001-08-25 07:19:25 -04:00
|
|
|
+ OPT="-O20 -ffast-math -fsigned-char -finline-functions ${COPTS}";;
|
2000-09-21 12:07:20 -04:00
|
|
|
*)
|
|
|
|
DEBUG="-g -Wall -fsigned-char"
|
|
|
|
- OPT="-O20 -fsigned-char";;
|
2001-08-25 07:19:25 -04:00
|
|
|
+ OPT="-O20 -fsigned-char ${COPTS}";;
|
2000-09-21 12:07:20 -04:00
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2002-03-08 01:06:21 -05:00
|
|
|
@@ -63,11 +58,14 @@ fi
|
2000-09-21 12:07:20 -04:00
|
|
|
AC_CHECK_HEADERS(linux/sbpcd.h, SBPCD_H="-DSBPCD_H='1' ")
|
|
|
|
AC_CHECK_HEADERS(linux/ucdrom.h, UCDROM_H="-DUCDROM_H='1' ")
|
|
|
|
|
|
|
|
+AC_CHECK_FUNCS(getopt_long, GETOPT_LONG="-DGETOPT_LONG='1' ")
|
|
|
|
+
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_C_CONST
|
|
|
|
|
|
|
|
AC_SUBST(SBPCD_H)
|
|
|
|
AC_SUBST(UCDROM_H)
|
|
|
|
+AC_SUBST(GETOPT_LONG)
|
|
|
|
AC_SUBST(TYPESIZES)
|
|
|
|
AC_SUBST(OPT)
|
|
|
|
AC_SUBST(DEBUG)
|