openbsd-ports/www/larbin/patches/patch-configure

56 lines
1.1 KiB
Plaintext

$OpenBSD: patch-configure,v 1.3 2012/09/24 06:51:59 jasper Exp $
--- configure.orig Sat May 18 21:08:25 2002
+++ configure Sun Sep 23 21:46:57 2012
@@ -1,8 +1,5 @@
-#!/bin/bash
+#!/bin/sh
-# configure adns
-(cd adns; ./configure)
-
#configure larbin itself
cat /dev/null > config.h
cat /dev/null > config.make
@@ -12,31 +9,14 @@ if [ -e /proc/self/status ]; then
fi
# find existing programs
-function exists () {
+function exists {
command -v $1 2> /dev/null > /dev/null;
}
-if exists gmake; then
- echo "MAKE=gmake" >> config.make
- export MAKE=gmake
-else
- echo "MAKE=make" >> config.make
- export MAKE=make
-fi
-
-if exists gcc; then
- echo "CC=gcc" >> config.make
- export CC=gcc
-fi
-
-if exists g++; then
- echo "CXX=g++" >> config.make
-fi
-
#find libraries to use
echo "int main () { return 0; }" > test.c
-function testlib () {
+function testlib {
if $CC $1 -o test test.c 2> /dev/null > /dev/null; then
echo "LIBS +=" $1 >> config.make
fi
@@ -52,7 +32,6 @@ rm -f test test.c test.o
# run make dep
touch .depend
-touch adns/.depend
touch src/.depend
touch src/fetch/.depend
touch src/interf/.depend