Skip to content

Commit

Permalink
Update configure.ac
Browse files Browse the repository at this point in the history
Using `autoupdate`
  • Loading branch information
glebm committed Sep 11, 2023
1 parent 2cf61eb commit f7e293c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ Makefile.in
/missing
/py-compile
/stamp-h1
/confdefs.h
/configure~
/config.h.in~
/configure.ac~
15 changes: 8 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# the autoconf initilization.
AC_INIT(libmpq, 0.4.2, [[email protected]], [libmpq])
AC_INIT([libmpq],[0.4.2],[[email protected]],[libmpq])
AC_SUBST(LIBMPQ_ABI, [1:0:0])

# detect the canonical host and target build environment.
AC_CANONICAL_SYSTEM
AC_CANONICAL_TARGET

# initialize autoconf and automake system.
AM_INIT_AUTOMAKE([no-dependencies])
AC_CONFIG_HEADERS([config.h:config.h.in])

# notices.
AC_PREREQ(2.53)
AC_PREREQ([2.71])
AC_REVISION($Revision: 1.6 $)

# checking for programs.
AC_PROG_LIBTOOL
LT_INIT
AC_PROG_MAKE_SET
AC_PROG_CC
AC_SYS_LARGEFILE
Expand Down Expand Up @@ -57,11 +57,11 @@ AC_CHECK_HEADER([bzlib.h], [], [AC_MSG_ERROR([*** bzlib.h is required, install b
AC_CHECK_LIB([bz2], [BZ2_bzDecompressInit], [], [AC_MSG_ERROR([*** BZ2_bzDecompressInit is required, install bzip2 library files])])

# When we're running gcc 4 or greater, compile with -fvisibility=hidden.
AC_TRY_COMPILE([
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#if !defined(__GNUC__) || (__GNUC__ < 4)
#error not gcc4
#endif
], [], [CFLAGS="$CFLAGS -fvisibility=hidden"])
]], [[]])],[CFLAGS="$CFLAGS -fvisibility=hidden"],[])

# find python for binding
AM_PATH_PYTHON([2.4],,[:])
Expand All @@ -72,7 +72,7 @@ AC_CONFIG_FILES([libmpq.pc])
AC_CONFIG_FILES([libmpq-config],[chmod +x libmpq-config])

# creating files.
AC_OUTPUT([
AC_CONFIG_FILES([
Makefile
libmpq/Makefile
bindings/Makefile
Expand All @@ -83,3 +83,4 @@ doc/man1/Makefile
doc/man3/Makefile
tools/Makefile
])
AC_OUTPUT

0 comments on commit f7e293c

Please sign in to comment.