--- Make.settings.in.orig	2009-11-05 13:34:56.000000000 +1100
+++ Make.settings.in	2017-10-27 21:09:07.000000000 +1100
@@ -26,19 +26,18 @@
   LIBDIR  = lib64
 else
   LIBDIR  = lib
+endif
 
-  ifeq ($(shell uname -s),Darwin)
+ifeq ($(shell uname -s),Darwin)
     DARWIN = 1
-    PATH = $(shell getconf PATH):/usr/local/bin:/opt/local/bin:/sw/bin
+    PATH = $(shell getconf PATH)
     export PATH
     LIBDIR  = lib
-    CFLAGS += -fPIC
-    CPPFLAGS += -I/usr/local/include -I/usr/include -I/opt/local/include -I/sw/include
-    LDFLAGS += -L/usr/local/lib -L/usr/lib -L/opt/local/lib -L/sw/lib -framework CoreFoundation -framework IOKit
+    CFLAGS += -fPIC -std=gnu99
+    LDFLAGS += -framework CoreFoundation -framework IOKit
     # Python needs .so but library should be .dylib
     #SHAREEXT = dylib
     LIBNAME=libiguanaIR.dylib
     SHAREARG = -dynamiclib
     OSSUPPORT = daemonosx.o
-  endif
 endif
