0b8ea0496b
OK jasper@ Maintainer timeout...
93 lines
2.6 KiB
Plaintext
93 lines
2.6 KiB
Plaintext
$OpenBSD: patch-configure,v 1.3 2011/01/13 10:22:54 dcoppa Exp $
|
|
--- configure.orig Sat Oct 2 16:51:07 2004
|
|
+++ configure Sat May 28 20:32:24 2005
|
|
@@ -6518,70 +6518,6 @@ fi
|
|
|
|
|
|
|
|
-# Check whether --with-lablgtk was given.
|
|
-if test "${with_lablgtk+set}" = set; then
|
|
- withval=$with_lablgtk; case "$withval" in
|
|
- yes) with_lablgtk=yes;;
|
|
- no) with_lablgtk=no;;
|
|
- *) { { echo "$as_me:$LINENO: error: bad value $withval for --with-lablgtk" >&5
|
|
-echo "$as_me: error: bad value $withval for --with-lablgtk" >&2;}
|
|
- { (exit 1); exit 1; }; };;
|
|
- esac
|
|
-else
|
|
- with_lablgtk=yes
|
|
-
|
|
-fi
|
|
-
|
|
-
|
|
-{ echo "$as_me:$LINENO: checking lablgtk" >&5
|
|
-echo $ECHO_N "checking lablgtk... $ECHO_C" >&6; }
|
|
-
|
|
-if test "$with_lablgtk" = "no"; then
|
|
- { echo "$as_me:$LINENO: result: disabled" >&5
|
|
-echo "${ECHO_T}disabled" >&6; }
|
|
-else
|
|
-
|
|
-# Check whether --with-lablgtk-dir was given.
|
|
-if test "${with_lablgtk_dir+set}" = set; then
|
|
- withval=$with_lablgtk_dir; if test -d "$withval"; then
|
|
- lablgtkdir=$withval
|
|
- else
|
|
- { { echo "$as_me:$LINENO: error: invalid value $withval for --with-lablgtk-dir" >&5
|
|
-echo "$as_me: error: invalid value $withval for --with-lablgtk-dir" >&2;}
|
|
- { (exit 1); exit 1; }; }
|
|
- fi
|
|
-else
|
|
- lablgtkdir="$OCAMLLIB/lablgtk"
|
|
-
|
|
-fi
|
|
-
|
|
-
|
|
- if test -f "$lablgtkdir/gtk.ml"; then
|
|
- { echo "$as_me:$LINENO: result: found at $lablgtkdir" >&5
|
|
-echo "${ECHO_T}found at $lablgtkdir" >&6; }
|
|
-
|
|
- { echo "$as_me:$LINENO: checking for lablgtk version" >&5
|
|
-echo $ECHO_N "checking for lablgtk version... $ECHO_C" >&6; }
|
|
- if test \
|
|
- -f "$lablgtkdir/gBin.mli" && \
|
|
- ! `grep image: "$lablgtkdir/gdk.mli" > /dev/null`; \
|
|
- then
|
|
- { echo "$as_me:$LINENO: result: ok" >&5
|
|
-echo "${ECHO_T}ok" >&6; }
|
|
- SUPPORT_LABLGTK="true"
|
|
- LABLGTKDIR="$lablgtkdir"
|
|
- else
|
|
- { echo "$as_me:$LINENO: result: too old" >&5
|
|
-echo "${ECHO_T}too old" >&6; }
|
|
- fi
|
|
- else
|
|
- { echo "$as_me:$LINENO: result: not found" >&5
|
|
-echo "${ECHO_T}not found" >&6; }
|
|
- fi
|
|
-
|
|
-fi
|
|
-
|
|
-
|
|
if test x$SUPPORT_LABLGTK = xtrue; then
|
|
HAVE_LABLGTK_TRUE=
|
|
HAVE_LABLGTK_FALSE='#'
|
|
@@ -7206,7 +7142,7 @@ if test "${ac_cv_lib_png_png_create_read_struct+set}"
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lpng -lz
|
|
+LIBS="-lpng -lz -lm
|
|
$LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
@@ -7263,7 +7199,7 @@ fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_read_struct" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_png_png_create_read_struct" >&6; }
|
|
if test $ac_cv_lib_png_png_create_read_struct = yes; then
|
|
- LIBPNG="-lpng -lz"
|
|
+ LIBPNG="-lpng -lz -lm"
|
|
SUPPORT_PNG="true"
|
|
fi
|
|
|