Mercurial > mxe-octave
annotate src/pstoedit-4-winlibemf.patch @ 3815:deed2268e330
pstoedit: cleanup wmf/emf patch
* src/pstoedit-4-winlibemf.patch: clean up patch
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 28 Feb 2015 14:44:57 -0500 |
parents | a6140fcf5631 |
children |
rev | line source |
---|---|
3814
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
1 diff -ur pstoedit-3.62/configure.ac pstoedit-3.62.new/configure.ac |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
2 --- pstoedit-3.62/configure.ac 2013-03-10 14:45:43.000000000 -0400 |
3815
deed2268e330
pstoedit: cleanup wmf/emf patch
John Donoghue <john.donoghue@ieee.org>
parents:
3814
diff
changeset
|
3 +++ pstoedit-3.62.new/configure.ac 2015-02-28 14:34:33.000000000 -0500 |
deed2268e330
pstoedit: cleanup wmf/emf patch
John Donoghue <john.donoghue@ieee.org>
parents:
3814
diff
changeset
|
4 @@ -324,6 +324,9 @@ |
3814
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
5 OLD_CPPFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
6 OLD_LIBS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
7 |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
8 +dnl if windows we can just enable emf/wmf support |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
9 +AC_CHECK_HEADER(windows.h, |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
10 + [have_windows_h=yes]) |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
11 |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
12 AC_ARG_WITH(libemf-src, |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
13 [ --with-libemf-src=DIR look for libEMF src in dir (e.g. /usr/local/lib)], |
3815
deed2268e330
pstoedit: cleanup wmf/emf patch
John Donoghue <john.donoghue@ieee.org>
parents:
3814
diff
changeset
|
14 @@ -382,8 +385,14 @@ |
3814
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
15 if test -n "${LIBEMF_LDFLAGS}" && test -n "${LIBEMF_CFLAGS}"; then |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
16 HAVE_LIBEMF=yes |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
17 else |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
18 - LIBEMF_CFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
19 - LIBEMF_LDFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
20 + if test "${have_windows_h}" = "yes"; then |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
21 + HAVE_LIBEMF=yes |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
22 + LIBEMF_CFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
23 + LIBEMF_LDFLAGS=-lgdi32 |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
24 + else |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
25 + LIBEMF_CFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
26 + LIBEMF_LDFLAGS= |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
27 + fi |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
28 fi |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
29 |
a6140fcf5631
pstoedit: enable wmf/emf for windows
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
30 AC_SUBST(LIBEMF_LDFLAGS) |