Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: acsite.m4
===================================================================
--- acsite.m4	(nonexistent)
+++ acsite.m4	(revision 5)
@@ -0,0 +1,54 @@
+dnl -------------------------------------------------------- -*- autoconf -*-
+dnl Licensed to the Apache Software Foundation (ASF) under one or more
+dnl contributor license agreements.  See the NOTICE file distributed with
+dnl this work for additional information regarding copyright ownership.
+dnl The ASF licenses this file to You under the Apache License, Version 2.0
+dnl (the "License"); you may not use this file except in compliance with
+dnl the License.  You may obtain a copy of the License at
+dnl
+dnl     http://www.apache.org/licenses/LICENSE-2.0
+dnl
+dnl Unless required by applicable law or agreed to in writing, software
+dnl distributed under the License is distributed on an "AS IS" BASIS,
+dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+dnl See the License for the specific language governing permissions and
+dnl limitations under the License.
+
+dnl
+dnl APU_CONFIG module
+dnl
+
+dnl
+dnl SERF_CHECK_APU_CONFIG: compile backends for apr-util.
+dnl
+AC_DEFUN([SERF_CHECK_APU_CONFIG], [
+  serf_have_apu_config=0
+
+  old_libs="$LIBS"
+  old_cppflags="$CPPFLAGS"
+  old_ldflags="$LDFLAGS"
+
+  AC_PATH_PROG([APU_CONFIG],[apu-1-config])
+  if test "x$APU_CONFIG" != 'x'; then
+    if test "`$APU_CONFIG --includedir`" != "/usr/include"; then
+      apu_CPPFLAGS="-I`$APU_CONFIG --includedir`"
+    fi
+    apu_LDFLAGS="`$APU_CONFIG --ldflags | sed -e 's/-l[[^ ]]\+//g' | tr -s ' '`"
+    apu_LIBS="`$APU_CONFIG --link-ld --libs | sed -e 's/-L[[^ ]]\+//g' | tr -s ' '`"
+  fi
+
+  AC_CHECK_HEADERS([apr-1/apr.h apr-1/apu.h], [serf_have_apu=1], [serf_have_apu=0; break])
+  if test "$serf_have_apu" = "1" && test "x$APU_CONFIG" != 'x'; then
+    AC_SUBST(APR_CFLAGS, [$apu_CPPFLAGS])
+    AC_SUBST(APR_LDFLAGS, [$apu_LDFLAGS])
+    AC_SUBST(APR_LIBS, [$apu_LIBS])
+  fi
+
+  AC_SUBST(serf_have_apu)
+  AC_DEFINE_UNQUOTED([SERF_HAVE_APR_UTIL], [$serf_have_apu], [Define if the apr and apr-util are installed])
+
+  LIBS="$old_libs"
+  CPPFLAGS="$old_cppflags"
+  LDFLAGS="$old_ldflags"
+])
+dnl