]> sigrok.org Git - libserialport.git/blobdiff - configure.ac
doc: Additional notes on sp_last_error_{code,message}.
[libserialport.git] / configure.ac
index aa55d436951e97c373ed073683fd7a418473e8e2..e569ee07f2dd296d8b4aa147929e8055f31efe15 100644 (file)
@@ -42,9 +42,6 @@ AM_INIT_AUTOMAKE([1.11 -Wall -Werror check-news])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 
-# Enable more compiler warnings.
-CFLAGS="$CFLAGS -std=c99 -Wall -Wextra -pedantic -Wmissing-prototypes -Wshadow"
-
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_CPP
@@ -75,10 +72,6 @@ AC_SUBST(SP_LIB_LDFLAGS)
 
 # Checks for libraries.
 
-# This variable collects the pkg-config names of all detected libs.
-# It is then used to construct the "Requires.private:" field in the
-# libserialport.pc file.
-SP_PKGLIBS=""
 SP_LIBS=""
 
 case $host_os in
@@ -93,7 +86,6 @@ case $host_os in
        AM_CONDITIONAL([WIN32], false)
        AM_CONDITIONAL([MACOSX], true)
        AM_CONDITIONAL([FREEBSD], false)
-       LDFLAGS="$LDFLAGS -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation"
        AC_CHECK_HEADER(IOKit/IOKitLib.h, [], [AC_MSG_ERROR([IOKit/IOKitLib.h not found])])
        ;;
 mingw* | cygwin*)
@@ -118,7 +110,6 @@ mingw* | cygwin*)
        AC_DEFINE(NO_PORT_METADATA,,[Port metadata is unavailable])
 esac
 
-AC_SUBST(SP_PKGLIBS)
 AC_SUBST(SP_LIBS)
 
 # Define size_t if not defined as standard.