X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot-firefox.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=e15f1fb575ffe3f80802557aca142fbea75bfef1;hp=0000000000000000000000000000000000000000;hb=3dd30c1cb60608e936d6734b29eb9c01a67cbac6;hpb=5d9cdc0dceeac06331368710d6b406a9491da2fb diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..e15f1fb --- /dev/null +++ b/configure.ac @@ -0,0 +1,24 @@ +AC_PREREQ(2.66) +AC_INIT([firefox-moonshot],[0.0.1], +[bugs@project-moonshot.org], [Moonshot Firefox extension]) +AM_INIT_AUTOMAKE([1.11 foreign]) +AC_PROG_CXX +AC_PROG_RANLIB + +PKG_CHECK_MODULES(XUL, libxul) +MOZ_SDKDIR=`pkg-config libxul --variable sdkdir` +MOZ_IDLDIR=`pkg-config libxul --variable idldir` +# We need to override cflags for unstable APIs +XUL_CFLAGS=`pkg-config --cflags libxul --define-variable=includetype=unstable` +AC_SUBST([MOZ_IDLDIR]) +AC_SUBST([MOZ_SDKDIR]) +AC_PATH_PROG([XPIDL], [xpidl], false, [$MOZ_SDKDIR/bin$PATH_SEPARATOR$PATH]) +if [ $XPIDL = "false" ] ;then + AC_ERROR([Couldn't find xpidl]) +fi + +AC_CHECK_LIB([gssapi_krb5], [gss_init_sec_context]) + +AC_CHECK_HEADERS(gssapi.h gssapi_ext.h) +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT