aboutsummaryrefslogtreecommitdiff
path: root/games/lgeneral/files
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-11-19 13:47:13 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-11-19 13:47:13 +0000
commit51e5b99ec5738cd684ee208a2031dd81697cc3fa (patch)
tree6b773ab45dd308c352ef59f83984398b7fb616d2 /games/lgeneral/files
parente97765772bae00bfb3bca84a3c2c8ef448269dce (diff)
downloadports-51e5b99ec5738cd684ee208a2031dd81697cc3fa.tar.gz
ports-51e5b99ec5738cd684ee208a2031dd81697cc3fa.zip
Notes
Diffstat (limited to 'games/lgeneral/files')
-rw-r--r--games/lgeneral/files/patch-configure88
1 files changed, 88 insertions, 0 deletions
diff --git a/games/lgeneral/files/patch-configure b/games/lgeneral/files/patch-configure
new file mode 100644
index 000000000000..d8f7c91caf44
--- /dev/null
+++ b/games/lgeneral/files/patch-configure
@@ -0,0 +1,88 @@
+--- configure.orig Thu Aug 15 10:40:40 2002
++++ configure Wed Aug 28 09:00:22 2002
+@@ -1091,49 +1091,49 @@
+ { echo "configure: error: maths library is needed" 1>&2; exit 1; }
+ fi
+
+-echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
+-echo "configure:1096: checking for main in -ldl" >&5
+-ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
+-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- ac_save_LIBS="$LIBS"
+-LIBS="-ldl $LIBS"
+-cat > conftest.$ac_ext <<EOF
++#echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
++#echo "configure:1096: checking for main in -ldl" >&5
++#ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
++#if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++# echo $ac_n "(cached) $ac_c" 1>&6
++#else
++# ac_save_LIBS="$LIBS"
++#LIBS="-ldl $LIBS"
++#cat > conftest.$ac_ext <<EOF
+ #line 1104 "configure"
+ #include "confdefs.h"
+
+-int main() {
+-main()
+-; return 0; }
+-EOF
+-if { (eval echo configure:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=yes"
+-else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=no"
+-fi
+-rm -f conftest*
+-LIBS="$ac_save_LIBS"
++#int main() {
++#main()
++#; return 0; }
++#EOF
++#if { (eval echo configure:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++# rm -rf conftest*
++# eval "ac_cv_lib_$ac_lib_var=yes"
++#else
++# echo "configure: failed program was:" >&5
++# cat conftest.$ac_ext >&5
++# rm -rf conftest*
++# eval "ac_cv_lib_$ac_lib_var=no"
++#fi
++#rm -f conftest*
++#LIBS="$ac_save_LIBS"
+
+-fi
+-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+- echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+- cat >> confdefs.h <<EOF
++#fi
++#if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++# echo "$ac_t""yes" 1>&6
++# ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++# -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++# cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+-EOF
++#EOF
+
+- LIBS="-ldl $LIBS"
++# LIBS="-ldl $LIBS"
+
+-else
+- echo "$ac_t""no" 1>&6
+-{ echo "configure: error: dl library is needed" 1>&2; exit 1; }
+-fi
++#else
++# echo "$ac_t""no" 1>&6
++#{ echo "configure: error: dl library is needed" 1>&2; exit 1; }
++#fi
+
+
+ # Check whether --with-sdl-prefix or --without-sdl-prefix was given.