X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=configure.in;h=e0b811f8681f0ea07f1900dcdeda143b7791702d;hb=fe1aeed5aa76aaefcbff66c7d60768d8f83c7748;hp=3ee8ffdea083f8f73edca6ab2096f2333811931a;hpb=0692f76bf8fc57354a303afdf1d447a1734b84cd;p=freeglut diff --git a/configure.in b/configure.in index 3ee8ffd..e0b811f 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(Makefile.am) -AM_INIT_AUTOMAKE(freeglut,2.0.0) +AM_INIT_AUTOMAKE(freeglut,2.2.0) AM_CONFIG_HEADER(config.h) dnl Checks for programs. @@ -35,15 +35,39 @@ dnl Checks for library functions. AC_CHECK_LIBM AC_SUBST(LIBM) +dnl Build time configuration + +AC_ARG_ENABLE(replace-glut, +[ --disable-replace-glut Coexist with existing glut library]) +if test "x$enable_replace_glut" != xno +then + LIBRARY=glut + HEADER=glut.h +else + LIBRARY=freeglut + HEADER= +fi +AC_SUBST(LIBRARY) +AC_SUBST(HEADER) + +AC_ARG_ENABLE(warnings, +[ --enable-warnings Enable gcc compiler warnings], +if test "x$GCC" == xyes +then + CFLAGS="$CFLAGS -Wall -Wno-parentheses -Werror" +fi) + AC_OUTPUT(\ Makefile \ doc/Makefile \ progs/Makefile \ progs/demos/Makefile \ + progs/demos/CallbackMaker/Makefile \ progs/demos/Fractals/Makefile \ progs/demos/Fractals_random/Makefile \ progs/demos/Lorenz/Makefile \ progs/demos/One/Makefile \ + progs/demos/shapes/Makefile \ src/Makefile \ include/Makefile \ include/GL/Makefile \