Index: configure
--- configure.orig
+++ configure
@@ -1150,7 +1150,7 @@ do
     ac_prev=sysconfdir ;;
   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
-    sysconfdir=$ac_optarg ;;
+    sysconfdir=$ac_optarg/nagios ;;
 
   -target | --target | --targe | --targ | --tar | --ta | --t)
     ac_prev=target_alias ;;
@@ -6719,7 +6719,7 @@ cat >>confdefs.h <<_ACEOF
 #define DEFAULT_NAGIOS_GROUP "$nagios_grp"
 _ACEOF
 
-INSTALL_OPTS="-o $nagios_user -g $nagios_grp"
+INSTALL_OPTS=""
 
 
 
@@ -7148,7 +7148,7 @@ $as_echo_n "checking for gdImagePng in -lgd (order 1).
   $as_echo_n "(cached) " >&6
 else
   ac_save_LIBS="$LIBS"
-	LIBS="-lgd -lttf -lpng -ljpeg -lz -lm $LIBS"
+	LIBS="-lgd -lfontconfig -lfreetype -lpng -ljpeg -lz -lm $LIBS"
 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 	/* Override any gcc2 internal prototype to avoid an error.  */
@@ -7179,8 +7179,9 @@ fi
 $as_echo "yes" >&6; }
 
 			GDLIBFOUND=yes
-			GDLIBS="-lgd -lttf -lpng -ljpeg -lz -lm"
+ 			GDLIBS="-lgd -lfontconfig -lfreetype -lpng -ljpeg -lz -lm"
 
+
 	else
 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
@@ -7700,7 +7701,7 @@ $as_echo_n "checking for linker flags for loadable mod
 		;;
 		*bsd*)
 			MOD_LDFLAGS="-shared"
-			MOD_CFLAGS="-fPIC"
+			MOD_CFLAGS="-fPIC -DPIC"
 		;;
 		*)
 			# assume GNU linker and ELF
