25
25
dnl You should have received a copy of the GNU Library General Public License
26
26
dnl along with the file PLplot; if not, write to the Free Software
27
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31
if test "$enable_wingcc" = "yes"; then
32
AC_MSG_CHECKING(for libgdi32.a)
34
if test -z "$GDI32LIBDIR"; then
35
AC_CHECK_LIB(gdi32, main, [ GDI32LIBDIR=default ], [
27
dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29
PL_ARG_WITH(gdi32-incdir, [User-specified path to the libgdi32 header files], [])
30
if test "$enable_wingcc" = "yes"; then
31
if test -z "$with_gdi32_incdir"; then
32
AC_MSG_CHECKING(for libgdi32 header files)
33
AC_PREPROC_IFELSE([#include <windows.h>],
34
[ with_gdi32_incdir=default
35
AC_MSG_RESULT([found in $with_gdi32_incdir]) ], [
40
for dir in $incdirs; do
41
if test -r "$dir/windows.h"; then
42
with_gdi32_incdir="$dir"
46
if test -z "$with_gdi32_incdir"; then
47
AC_MSG_RESULT(not found)
48
AC_MSG_WARN([libgdi32 header files not found, setting enable_wingcc=no])
49
with_gdi32_incdir=default
52
AC_MSG_RESULT([found in $with_gdi32_incdir])
55
AC_MSG_NOTICE("User-specified path to the libgdi32 header files is $with_gdi32_incdir")
57
if test "$with_gdi32_incdir" = "/usr/include"; then
58
with_gdi32_incdir=default
62
PL_ADD_TO_INCS($with_gdi32_incdir, GDI32INCCMD, GDI32INCPATH)
65
PL_ARG_WITH(gdi32-libdir, [User-specified path to libgdi32], [])
66
if test "$enable_wingcc" = "yes"; then
67
if test -z "$with_gdi32_libdir"; then
68
AC_CHECK_LIB(gdi32, main, [ with_gdi32_libdir=default ], [
40
73
for dir in $libdirs; do
41
74
if test -r "$dir/libgdi32.so" -o -r "$dir/libgdi32.a"; then
75
with_gdi32_libdir="$dir"
46
if test -z "$GDI32LIBDIR"; then
47
AC_MSG_WARN([GDI32 library not found, setting enable_wingcc=no])
79
if test -z "$with_gdi32_libdir"; then
80
AC_MSG_WARN([gdi32 library not found, setting enable_wingcc=no])
81
with_gdi32_libdir=default
52
if test "$GDI32LIBDIR" = "/usr/lib"; then
85
AC_MSG_NOTICE("User-specified path to libgdi32 is $with_gdi32_libdir")
87
if test "$with_gdi32_libdir" = "/usr/lib"; then
88
with_gdi32_libdir=default
93
PL_ADD_TO_LIBS($with_gdi32_libdir, $GDI32LIBSTR, GDI32LIBCMD, GDI32LIBPATH)
59
if test "$enable_wingcc" = "yes"; then
60
PL_ADD_TO_LIBS($GDI32LIBDIR, $GDI32LIBSTR, GDI32LIBCMD, GDI32LIBPATH)
62
97
AC_SUBST(GDI32LIBCMD)