+# look for getconf early as this affects just about everything
+AC_CHECK_PROG(HAVE_GETCONF, getconf, "yes", "no")
+if test $HAVE_GETCONF = "yes"; then
+ CFLAGS=$CFLAGS" "`getconf LFS_CFLAGS 2> /dev/null`
+ LDFLAGS=$LDFLAGS" "`getconf LFS_LDFLAGS 2> /dev/null`
+fi
+