Welcome to little lamb

Code » comain » commit 4ca50bc

configure: Use proper sysdeps w/ internal skalibs

author Olivier Brunel
2023-01-25 21:45:59 UTC
committer Olivier Brunel
2023-01-25 21:45:59 UTC
parent 9dc77a77ef390d5ca9207b2ae9fbd48f83b64c22

configure: Use proper sysdeps w/ internal skalibs

Make sure to use skalibs' sysdeps from the internal directory when used,
instead of looking into the system.

Also needed when there's no system installation of skalibs.

configure +6 -0

diff --git a/configure b/configure
index 94819fa..f18de16 100755
--- a/configure
+++ b/configure
@@ -266,6 +266,10 @@ vpath lib$library.a $vpatha"
             if test -e "$dep/configure"; then
                 BUILD_DEPS="$BUILD_DEPS $depname.built"
             fi
+
+            if test $depname = "skalibs"; then
+                sysdeps="$depname/sysdeps.cfg"
+            fi
         fi
         COMMON_CPPFLAGS="$COMMON_CPPFLAGS -isystem $path"
     fi
@@ -362,6 +366,7 @@ trycmd AR "ar"
 trycmd RANLIB "$RANLIB"
 trycmd RANLIB "ranlib"
 
+echo " => Checking sysdeps... $sysdeps"
 echon "  -> Checking target.."
 if test -z "$target" ; then
     target=$($CC -dumpmachine 2>/dev/null) || target=unknown
@@ -374,6 +379,7 @@ if test "x$target" != "x$(cat $sysdeps/target)"; then
     error 2 "target $target does not match the contents of $sysdeps/target ($(cat $sysdeps/target))"
 fi
 
+echo " => Testing C compiler..."
 tryflag CFLAGS -std=c99
 tryflag CFLAGS -fomit-frame-pointer
 tryflag CFLAGS -fno-exceptions