chiark / gitweb /
Changed description.
[userv.git] / configure
index 8b020fcf8c7fbd0b571ebbe8bc81e8796d9c4a7c..013782f86c8cfe80ba0da56024d027f9d01fd147 100755 (executable)
--- a/configure
+++ b/configure
@@ -856,13 +856,15 @@ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
 
+CFLAGS="$CFLAGS -D_GNU_SOURCE"
+
 echo $ac_n "checking for EPROTO""... $ac_c" 1>&6
-echo "configure:861: checking for EPROTO" >&5
+echo "configure:863: checking for EPROTO" >&5
 if eval "test \"`echo '$''{'userv_cv_hdr_eproto'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 866 "configure"
+#line 868 "configure"
 #include "confdefs.h"
 
 #include <errno.h>
@@ -903,20 +905,20 @@ fi
 
 
  echo $ac_n "checking your C compiler""... $ac_c" 1>&6
-echo "configure:907: checking your C compiler" >&5
+echo "configure:909: checking your C compiler" >&5
  if eval "test \"`echo '$''{'dpkg_cv_c_works'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   
   cat > conftest.$ac_ext <<EOF
-#line 913 "configure"
+#line 915 "configure"
 #include "confdefs.h"
 #include <string.h>
 int main() {
 strcmp("a","b")
 ; return 0; }
 EOF
-if { (eval echo configure:920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   dpkg_cv_c_works=yes
 else
@@ -941,20 +943,20 @@ fi
 
 
  echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6
-echo "configure:945: checking __attribute__((,,))" >&5
+echo "configure:947: checking __attribute__((,,))" >&5
  if eval "test \"`echo '$''{'dpkg_cv_c_attribute_supported'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   
   cat > conftest.$ac_ext <<EOF
-#line 951 "configure"
+#line 953 "configure"
 #include "confdefs.h"
 
 int main() {
 extern int testfunction(int x) __attribute__((,,))
 ; return 0; }
 EOF
-if { (eval echo configure:958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   dpkg_cv_c_attribute_supported=yes
 else
@@ -976,20 +978,20 @@ EOF
 
   
  echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6
-echo "configure:980: checking __attribute__((noreturn))" >&5
+echo "configure:982: checking __attribute__((noreturn))" >&5
  if eval "test \"`echo '$''{'dpkg_cv_c_attribute_noreturn'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   
   cat > conftest.$ac_ext <<EOF
-#line 986 "configure"
+#line 988 "configure"
 #include "confdefs.h"
 
 int main() {
 extern int testfunction(int x) __attribute__((noreturn))
 ; return 0; }
 EOF
-if { (eval echo configure:993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   dpkg_cv_c_attribute_noreturn=yes
 else
@@ -1016,20 +1018,20 @@ EOF
 
   
  echo $ac_n "checking __attribute__((unused))""... $ac_c" 1>&6
-echo "configure:1020: checking __attribute__((unused))" >&5
+echo "configure:1022: checking __attribute__((unused))" >&5
  if eval "test \"`echo '$''{'dpkg_cv_c_attribute_unused'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   
   cat > conftest.$ac_ext <<EOF
-#line 1026 "configure"
+#line 1028 "configure"
 #include "confdefs.h"
 
 int main() {
 extern int testfunction(int x) __attribute__((unused))
 ; return 0; }
 EOF
-if { (eval echo configure:1033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   dpkg_cv_c_attribute_unused=yes
 else
@@ -1056,20 +1058,20 @@ EOF
 
   
  echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6
-echo "configure:1060: checking __attribute__((format...))" >&5
+echo "configure:1062: checking __attribute__((format...))" >&5
  if eval "test \"`echo '$''{'dpkg_cv_attribute_format'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   
   cat > conftest.$ac_ext <<EOF
-#line 1066 "configure"
+#line 1068 "configure"
 #include "confdefs.h"
 
 int main() {
 extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
 ; return 0; }
 EOF
-if { (eval echo configure:1073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   dpkg_cv_attribute_format=yes
 else
@@ -1107,7 +1109,7 @@ CWARNS=""
 
 
  echo $ac_n "checking GCC warning flag(s) -Wall -Wno-implicit""... $ac_c" 1>&6
-echo "configure:1111: checking GCC warning flag(s) -Wall -Wno-implicit" >&5
+echo "configure:1113: checking GCC warning flag(s) -Wall -Wno-implicit" >&5
  if test "${GCC-no}" = yes
  then
   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_all'+set}'`\" = set"; then
@@ -1117,7 +1119,7 @@ else
    oldcflags="${CFLAGS-}"
    CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Wno-implicit -Werror"
    cat > conftest.$ac_ext <<EOF
-#line 1121 "configure"
+#line 1123 "configure"
 #include "confdefs.h"
 
 #include <string.h>
@@ -1129,7 +1131,7 @@ int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:1133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   dpkg_cv_c_gcc_warn_all=yes
 else
@@ -1155,7 +1157,7 @@ fi
 
 
  echo $ac_n "checking GCC warning flag(s) -Wwrite-strings""... $ac_c" 1>&6
-echo "configure:1159: checking GCC warning flag(s) -Wwrite-strings" >&5
+echo "configure:1161: checking GCC warning flag(s) -Wwrite-strings" >&5
  if test "${GCC-no}" = yes
  then
   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_writestrings'+set}'`\" = set"; then
@@ -1165,7 +1167,7 @@ else
    oldcflags="${CFLAGS-}"
    CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
    cat > conftest.$ac_ext <<EOF
-#line 1169 "configure"
+#line 1171 "configure"
 #include "confdefs.h"
 
 #include <string.h>
@@ -1177,7 +1179,7 @@ int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   dpkg_cv_c_gcc_warn_writestrings=yes
 else
@@ -1203,7 +1205,7 @@ fi
 
 
  echo $ac_n "checking GCC warning flag(s) -Wpointer-arith""... $ac_c" 1>&6
-echo "configure:1207: checking GCC warning flag(s) -Wpointer-arith" >&5
+echo "configure:1209: checking GCC warning flag(s) -Wpointer-arith" >&5
  if test "${GCC-no}" = yes
  then
   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_pointerarith'+set}'`\" = set"; then
@@ -1213,7 +1215,7 @@ else
    oldcflags="${CFLAGS-}"
    CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
    cat > conftest.$ac_ext <<EOF
-#line 1217 "configure"
+#line 1219 "configure"
 #include "confdefs.h"
 
 #include <string.h>
@@ -1225,7 +1227,7 @@ int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:1229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   dpkg_cv_c_gcc_warn_pointerarith=yes
 else
@@ -1251,7 +1253,7 @@ fi
 
 
  echo $ac_n "checking GCC warning flag(s) -Wimplicit -Wnested-externs""... $ac_c" 1>&6
-echo "configure:1255: checking GCC warning flag(s) -Wimplicit -Wnested-externs" >&5
+echo "configure:1257: checking GCC warning flag(s) -Wimplicit -Wnested-externs" >&5
  if test "${GCC-no}" = yes
  then
   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_implicit'+set}'`\" = set"; then
@@ -1261,7 +1263,7 @@ else
    oldcflags="${CFLAGS-}"
    CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
    cat > conftest.$ac_ext <<EOF
-#line 1265 "configure"
+#line 1267 "configure"
 #include "confdefs.h"
 
 #include <string.h>
@@ -1273,7 +1275,7 @@ int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:1277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   dpkg_cv_c_gcc_warn_implicit=yes
 else
@@ -1304,7 +1306,7 @@ fi
 CFLAGS="`echo $CFLAGS $CWARNS | sed -e 's/-O[0-9]*/$(OPTIMISE)/'`"
 
 
-VERSION="`sed -n '/^userv (.*)/!d; s/^userv (//; s/).*//; p; q' Changelog`"
+VERSION="`sed -n '/^userv (.*)/!d; s/^userv (//; s/).*//; p; q' debian/changelog`"
 echo will build version $VERSION
 
 trap '' 1 2 15