# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. AC_INIT(src/b.h) AM_SANITY_CHECK AM_INIT_AUTOMAKE(libb, 0.1) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE AC_PROG_CC AC_ISC_POSIX AC_PROG_RANLIB AC_PROG_LIBTOOL AC_PROG_INSTALL AM_PROG_CC_STDC AC_HEADER_STDC AC_HEADER_DIRENT AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],[enable debug (default=no)]), CFLAGS="$CFLAGS -DB_DEBUG", debug=no) CFLAGS="$CFLAGS -Wall -DB_INTERNAL" GTK_DOC_CHECK(1.0) # REDLAND AC_ARG_ENABLE(redland, AC_HELP_STRING([--enable-redland],[enable redland support (default=auto)]), redland=$enableval, redland=yes) if test "$redland" = yes; then AC_CHECK_HEADER(redland.h, REDLAND=yes, REDLAND=no) AC_CHECK_LIB(rdf,librdf_node_get_type, REDLAND=yes, REDLAND=no) if test "$REDLAND" = "yes"; then AM_CONDITIONAL(ENABLE_REDLAND, test "$REDLAND" = "yes") fi fi AC_OUTPUT([ Makefile src/Makefile test/Makefile utils/Makefile docs/Makefile redland/Makefile ])