openbsd-ports/audio/cdparanoia/patches/patch-configure_in

53 lines
1.2 KiB
Plaintext
Raw Normal View History

$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
-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)
if test -z "$GCC"; then
DEBUG="-g"
- OPT="-O"
+ OPT="-O ${COPTS}"
else
case $host in
- i?86-*-linux*)
+ i?86-*-*)
DEBUG="-g -Wall -fsigned-char"
- OPT="-O20 -ffast-math -fsigned-char -finline-functions";;
+ OPT="-O20 -ffast-math -fsigned-char -finline-functions ${COPTS}";;
*)
DEBUG="-g -Wall -fsigned-char"
- OPT="-O20 -fsigned-char";;
+ OPT="-O20 -fsigned-char ${COPTS}";;
esac
fi
@@ -63,11 +58,14 @@ fi
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)