Annotation of gnutrition/configure.ac, revision 1.1
1.1 ! asm 1: # SPDX-License-Identifier: GPL-3.0-or-later
! 2: #
! 3: # $Id$
! 4: #
! 5: # configure.ac for GNUtrition
! 6: #
! 7: # Copyright (C) 2026 Free Software Foundation, Inc.
! 8: #
! 9: # Author: Jason Self <jself@gnu.org>
! 10: # Anton McClure <asm@gnu.org>
! 11:
! 12: AC_INIT([gnutrition], m4_esyscmd_s([./version.sh]), [bug-gnutrition@gnu.org], [gnutrition], [http://www.gnu.org/software/gnutrition/])
! 13: AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
! 14:
! 15: # Checks for programs.
! 16: AC_PROG_CC
! 17:
! 18: # Use C99.
! 19: CFLAGS="${CFLAGS:-} -D_POSIX_C_SOURCE=200809L -std=c99"
! 20:
! 21: # Checks for header files.
! 22: AC_CHECK_HEADERS([stdio.h stdlib.h string.h ctype.h errno.h getopt.h libgen.h locale.h])
! 23:
! 24: # Checks for library functions.
! 25: AC_CHECK_FUNCS([strdup strerror getopt_long setlocale])
! 26:
! 27: # Check for math library.
! 28: AC_CHECK_LIB([m], [fmod])
! 29:
! 30: # Check for SQLite3.
! 31: PKG_CHECK_MODULES([SQLITE3], [sqlite3])
! 32:
! 33: # Check for ncurses.
! 34: PKG_CHECK_MODULES([NCURSES], [ncurses])
! 35:
! 36: # Optional: GTK 3 for the GUI binary.
! 37: PKG_CHECK_MODULES([GTK], [gtk+-3.0], [have_gtk=yes], [have_gtk=no])
! 38:
! 39: # Optional: GIO 2 for D-Bus support in the GUI binary.
! 40: PKG_CHECK_MODULES([GIO], [gio-2.0], [have_gio=yes], [have_gio=no])
! 41:
! 42: AM_CONDITIONAL([BUILD_GTK], [test "x$have_gtk" = xyes -a "x$have_gio" = xyes])
! 43:
! 44: AC_CONFIG_FILES([Makefile])
! 45: AC_CONFIG_HEADERS([config.h])
! 46: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>