Author: metze Date: 2006-07-26 10:20:47 +0000 (Wed, 26 Jul 2006) New Revision: 62
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=smb-build&rev=62 Log: rename configure.in to configure.ac metze Added: trunk/configure.ac Removed: trunk/configure.in Modified: trunk/ Changeset: Property changes on: trunk ___________________________________________________________________ Name: bzr:revprop:branch-nick + /trunk Copied: trunk/configure.ac (from rev 61, trunk/configure.in) =================================================================== --- trunk/configure.in 2006-07-04 19:37:52 UTC (rev 61) +++ trunk/configure.ac 2006-07-26 10:20:47 UTC (rev 62) @@ -0,0 +1,61 @@ +dnl -*- mode: m4-mode -*- +dnl Process this file with autoconf to produce a configure script. + +dnl disabled 2.53 requirement - we do work with 2.52 on suse 7.3 for example +dnl AC_PREREQ(2.53) + +AC_INIT(include/includes.h) +AC_CONFIG_HEADER(include/config.h) + +sinclude(build/m4/env.m4) +sinclude(build/m4/rewrite.m4) + +sinclude(lib/replace/win32.m4) + +ALLLIBS_LIBS="$LIBS" +ALLLIBS_CFLAGS="$CFLAGS" +ALLLIBS_CPPFLAGS="$CPPFLAGS" +ALLLIBS_LDFLAGS="$LDFLAGS" + +SMB_EXT_LIB_ENABLE(ALLLIBS,YES) + +SMB_EXT_LIB(ALLLIBS, + [${ALLLIBS_LIBS}], + [${ALLLIBS_CFLAGS}], + [${ALLLIBS_CPPFLAGS}], + [${ALLLIBS_LDFLAGS}]) + +AC_DEFINE_UNQUOTED(STRING_STATIC_MODULES, "$string_static_modules", [String list of builtin modules]) + +################################################# +# do extra things if we are running insure + +if test "${ac_cv_prog_CC}" = "insure"; then + CPPFLAGS="$CPPFLAGS -D__INSURE__" +fi + +################################################# +# add DEVELOPER_CFLAGS only for the real build +CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}" + +################################################# +# final configure stuff + +AC_MSG_CHECKING([configure summary]) +AC_TRY_RUN([#include "${srcdir-.}/build/tests/summary.c"], + AC_MSG_RESULT(yes), + AC_MSG_ERROR([summary failure. Aborting config]); exit 1;, + AC_MSG_WARN([cannot run when cross-compiling])) + +builddir=`pwd` +AC_SUBST(builddir) + +dnl Remove -L/usr/lib/? from LDFLAGS and LIBS +LIB_REMOVE_USR_LIB(LDFLAGS) +LIB_REMOVE_USR_LIB(LIBS) + +dnl Remove -I/usr/include/? from CFLAGS and CPPFLAGS +CFLAGS_REMOVE_USR_INCLUDE(CFLAGS) +CFLAGS_REMOVE_USR_INCLUDE(CPPFLAGS) + +SMB_AC_OUTPUT(Makefile) Deleted: trunk/configure.in =================================================================== --- trunk/configure.in 2006-07-04 19:37:52 UTC (rev 61) +++ trunk/configure.in 2006-07-26 10:20:47 UTC (rev 62) @@ -1,61 +0,0 @@ -dnl -*- mode: m4-mode -*- -dnl Process this file with autoconf to produce a configure script. - -dnl disabled 2.53 requirement - we do work with 2.52 on suse 7.3 for example -dnl AC_PREREQ(2.53) - -AC_INIT(include/includes.h) -AC_CONFIG_HEADER(include/config.h) - -sinclude(build/m4/env.m4) -sinclude(build/m4/rewrite.m4) - -sinclude(lib/replace/win32.m4) - -ALLLIBS_LIBS="$LIBS" -ALLLIBS_CFLAGS="$CFLAGS" -ALLLIBS_CPPFLAGS="$CPPFLAGS" -ALLLIBS_LDFLAGS="$LDFLAGS" - -SMB_EXT_LIB_ENABLE(ALLLIBS,YES) - -SMB_EXT_LIB(ALLLIBS, - [${ALLLIBS_LIBS}], - [${ALLLIBS_CFLAGS}], - [${ALLLIBS_CPPFLAGS}], - [${ALLLIBS_LDFLAGS}]) - -AC_DEFINE_UNQUOTED(STRING_STATIC_MODULES, "$string_static_modules", [String list of builtin modules]) - -################################################# -# do extra things if we are running insure - -if test "${ac_cv_prog_CC}" = "insure"; then - CPPFLAGS="$CPPFLAGS -D__INSURE__" -fi - -################################################# -# add DEVELOPER_CFLAGS only for the real build -CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}" - -################################################# -# final configure stuff - -AC_MSG_CHECKING([configure summary]) -AC_TRY_RUN([#include "${srcdir-.}/build/tests/summary.c"], - AC_MSG_RESULT(yes), - AC_MSG_ERROR([summary failure. Aborting config]); exit 1;, - AC_MSG_WARN([cannot run when cross-compiling])) - -builddir=`pwd` -AC_SUBST(builddir) - -dnl Remove -L/usr/lib/? from LDFLAGS and LIBS -LIB_REMOVE_USR_LIB(LDFLAGS) -LIB_REMOVE_USR_LIB(LIBS) - -dnl Remove -I/usr/include/? from CFLAGS and CPPFLAGS -CFLAGS_REMOVE_USR_INCLUDE(CFLAGS) -CFLAGS_REMOVE_USR_INCLUDE(CPPFLAGS) - -SMB_AC_OUTPUT(Makefile)
