It's '=' not '=='

This commit is contained in:
rocky
2003-06-10 01:19:15 +00:00
parent 7478a9b412
commit bd1b462183

View File

@@ -15,7 +15,7 @@ dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
dnl 02111-1307, USA. dnl 02111-1307, USA.
AC_REVISION([$Id: configure.ac,v 1.27 2003/06/08 13:08:37 rocky Exp $])dnl AC_REVISION([$Id: configure.ac,v 1.28 2003/06/10 01:19:15 rocky Exp $])dnl
AC_INIT(lib/cdio.c) AC_INIT(lib/cdio.c)
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(libcdio, 0.61) AM_INIT_AUTOMAKE(libcdio, 0.61)
@@ -29,6 +29,8 @@ enable_cdinfo="${withval}", enable_cdinfo=yes)
dnl Checks for programs. dnl Checks for programs.
AC_PROG_CC AC_PROG_CC
cd_drivers='bin/cue NRG '
if test "x$GCC" != "xyes" if test "x$GCC" != "xyes"
then then
echo "*** non GNU CC compiler detected." echo "*** non GNU CC compiler detected."
@@ -62,7 +64,7 @@ dnl We use a diff in regression testing
AC_PATH_PROG(DIFF, diff, no) AC_PATH_PROG(DIFF, diff, no)
DIFF_OPTS= DIFF_OPTS=
if test "$DIFF" == no ; then if test "$DIFF" = no ; then
AC_PATH_PROG(DIFF, cmp, no) AC_PATH_PROG(DIFF, cmp, no)
else else
dnl Try for GNU diff options. dnl Try for GNU diff options.
@@ -198,8 +200,9 @@ struct cdrom_generic_command test;
int has_timeout=sizeof(test.timeout);], int has_timeout=sizeof(test.timeout);],
[AC_DEFINE([HAVE_LINUX_CDROM_TIMEOUT], [1], [AC_DEFINE([HAVE_LINUX_CDROM_TIMEOUT], [1],
[Define 1 if timeout is in cdrom_generic_command struct])]) [Define 1 if timeout is in cdrom_generic_command struct])])
AC_DEFINE([HAVE_LINUX_CDROM], [1], AC_DEFINE([HAVE_LINUX_CDROM], [1],
[Define 1 if you have Linux-type CD-ROM support]) [Define 1 if you have Linux-type CD-ROM support])
cd_drivers="${cd_drivers}GNU/Linux "
fi fi
;; ;;
bsdi*) bsdi*)
@@ -208,26 +211,31 @@ int has_timeout=sizeof(test.timeout);],
AC_DEFINE([HAVE_BSDI_CDROM], [1], AC_DEFINE([HAVE_BSDI_CDROM], [1],
[Define 1 if you have BSDI-type CD-ROM support]) [Define 1 if you have BSDI-type CD-ROM support])
LIBS="$LIBS -ldvd" LIBS="$LIBS -ldvd"
cd_drivers="${cd_drivers}BSDI "
fi fi
;; ;;
sunos*|sun*|solaris*) sunos*|sun*|solaris*)
AC_CHECK_HEADERS(sys/cdio.h) AC_CHECK_HEADERS(sys/cdio.h)
AC_DEFINE([HAVE_SOLARIS_CDROM], [1], AC_DEFINE([HAVE_SOLARIS_CDROM], [1],
[Define 1 if you have Solaris CD-ROM support]) [Define 1 if you have Solaris CD-ROM support])
cd_drivers="${cd_drivers}Solaris "
;; ;;
cygwin*) cygwin*)
AC_DEFINE([HAVE_WIN32_CDROM], [1], LIBS="$LIBS -mcygwin"
[Define 1 if you have cywin MinGW CD-ROM support])
LIBS="$LIBS -lwinmm -mwindows"
AC_DEFINE([CYGWIN], [1], AC_DEFINE([CYGWIN], [1],
[Define 1 if you are compiling using cygwin]) [Define 1 if you are compiling using cygwin])
AC_DEFINE([HAVE_WIN32_CDROM], [1],
[Define 1 if you have MinGW CD-ROM support])
LIBS="$LIBS -lwinmm -mcygwin"
cd_drivers="${cd_drivers}MinGW "
;; ;;
mingw*) mingw*)
AC_DEFINE([MINGW32], [1], AC_DEFINE([MINGW32], [1],
[Define 1 if you are compiling using MinGW]) [Define 1 if you are compiling using MinGW])
AC_DEFINE([HAVE_WIN32_CDROM], [1], AC_DEFINE([HAVE_WIN32_CDROM], [1],
[Define 1 if you have cywin MinGW CD-ROM support]) [Define 1 if you have MinGW CD-ROM support])
LIBS="$LIBS -lwinmm -mwindows" LIBS="$LIBS -lwinmm -mwindows"
cd_drivers="${cd_drivers}MinGW "
;; ;;
*) *)
AC_MSG_WARN(Don't have OS CD-reading support for ${host_os}...) AC_MSG_WARN(Don't have OS CD-reading support for ${host_os}...)
@@ -292,3 +300,4 @@ AC_OUTPUT([ \
test/Makefile \ test/Makefile \
]) ])
echo "Using CD-ROM drivers: $cd_drivers"