patchGNU Autoconf Archive - Patches: patch #7109, Submission of AX_LIB_LIBKML macro

 
 

patch #7109: Submission of AX_LIB_LIBKML macro

Submitter:  None
Submitted:  Wed 03 Mar 2010 11:32:08 PM UTC
   
 
Priority:  5 - Normal Status:  Done
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 Mar 2010 10:45:28 PM UTC, comment #2: 

Hi Peter,

Absolutely no trouble. Feel free to apply any improvements you wish. Thank you!

Mat

Mateusz Loskot <mloskot>
Wed 10 Mar 2010 07:03:51 PM UTC, comment #1: 

Hi Mateusz,

thank you very much for making the result of your efforts available as free software. I have taken the liberty of editing your submission slightly for cosmetic consistency with the other entries. You'll find the final version on-line at <http://www.gnu.org/software/autoconf-archive/ax_lib_libkml.html>. Please let us know if there's any trouble.

Take care,
Peter

Peter Simons <simons>
Group administrator
Wed 03 Mar 2010 11:32:08 PM UTC, original submission:  

I'd like to submit AX_LIB_LIBKML macro which provides tests of availability of Google libkml (http://code.google.com/p/libkml/) library of particular version or newer.

This macros checks for Google libkml headers and libraries and defines compilation flags.

The macro supports following options and their values:

1) Single-option usage:

--with-libkml - yes, no or path to Google libkml installation prefix

2) Three-options usage (all options are required):

--with-libkml=yes
--with-libkml-inc - path to base directory with  headers
--with-libkml-lib - linker flags for

The macro calls:
 
  AC_SUBST(LIBKML_CFLAGS)
  AC_SUBST(LIBKML_LDFLAGS)
  AC_SUBST(LIBKML_VERSION) - only if version requirement is used

The macro sets:

  HAVE_LIBKML


Example of use the macro:

LIBKML_REQ_VERSION="1.2.0"
AX_LIB_LIBKML($LIBKML_REQ_VERSION)

if test "$HAVE_LIBKML" = "yes"; then
    # libkml found
    LIBS="$LIBKML_LDFLAGS $LIBS"
    CFLAGS="$LIBKML_CFLAGS $CFLAGS"
fi

LICENSE: AllPermissive
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

--
Mateusz Loskot, mateusz-at-loskot-dot-net
http://mateusz.loskot.net

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #19845:  ax_lib_libkml.m4 added by None (9KiB - application/octet-stream - ax_lib_libkml.m4 file with AX_LIB_LIBKML macro definition)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mloskot (Posted a comment)
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-04 simons StatusReady For Test Done
        Open/ClosedOpen Closed
    2010-03-10 simons StatusNone Ready For Test
        Assigned toNone simons
    2010-03-03 None Attached File- Added ax_lib_libkml.m4, #19845

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code