comparison GEMBASSY-1.0.3/m4/lf_x11.m4 @ 2:8947fca5f715 draft default tip

Uploaded
author ktnyt
date Fri, 26 Jun 2015 05:21:44 -0400
parents 84a17b3fad1f
children
comparison
equal deleted inserted replaced
1:84a17b3fad1f 2:8947fca5f715
1 dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
2 dnl
3 dnl This program is free software; you can redistribute it and/or modify
4 dnl it under the terms of the GNU General Public License as published by
5 dnl the Free Software Foundation; either version 2 of the License, or
6 dnl (at your option) any later version.
7 dnl
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 dnl GNU General Public License for more details.
12 dnl
13 dnl You should have received a copy of the GNU General Public License
14 dnl along with this program; if not, write to the Free Software
15 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 dnl
17 dnl As a special exception to the GNU General Public License, if you
18 dnl distribute this file as part of a program that contains a configuration
19 dnl script generated by Autoconf, you may include it under the same
20 dnl distribution terms that you use for the rest of that program.
21
22
23 #-----------------------------------------------------------------------
24 # This macro searches for Xlib and when it finds it it adds the
25 # appropriate flags to CFLAGS and export the link sequence to
26 # the variable XLIB.
27 # In your configure.in file add:
28 # LF_PATH_XLIB
29 # In your Makefile.am add
30 # program_LDADD = .... $(XLIB)
31 #------------------------------------------------------------------------
32 #
33 # Just added EMBOSS into LF_PATH_XLIB so that on the systems where
34 # LF_PATH_XLIB exists there are no duplication errors.
35
36
37 AC_DEFUN([LF_EMBOSS_PATH_XLIB],[
38 CFLAGS="$CFLAGS $X_CFLAGS"
39
40 case $host_os in
41 irix*)
42 XLIB="-lX11 $X_EXTRA_LIBS"
43 ;;
44 *)
45 XLIB="$X_LIBS -lX11 $X_EXTRA_LIBS"
46 ;;
47 esac
48
49 AC_SUBST([XLIB])
50
51 AC_CHECK_HEADER(X11/Xlib.h,
52 [
53 AC_DEFINE([PLD_xwin], [1], [Define to 1 if X11 support is available])
54 ],
55 [
56 echo ""
57 echo "X11 graphics have been selected but no X11 header files"
58 echo "have been found."
59 echo ""
60 echo "This error usually happens on Linux/MacOSX distributions"
61 echo "where the optional X11 development files have not been installed."
62 echo "On Linux RPM systems this package is usually called something"
63 echo "like xorg-x11-proto-devel whereas on Debian/Ubuntu it may"
64 echo "be called x-dev. On MacOSX installation DVDs the X11 files"
65 echo "can usually be found as an explicitly named optional"
66 echo "installation."
67 echo ""
68 echo "After installing the X11 development files you should do a"
69 echo "'make clean' and perform the configure stage again."
70 echo ""
71 echo "Alternatively, to install EMBOSS without X11 support, you can add"
72 echo "the --without-x switch to the configure command."
73 echo ""
74 exit $?
75 ])
76
77 ])
78