[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: checking for liboctave
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: checking for liboctave |
Date: |
Fri, 2 Nov 2012 12:00:16 -0400 |
On 2 November 2012 11:54, c. <address@hidden> wrote:
> I'm writing a standalone application that (optinally) links to liboctave and
> I'd like to write an autoconf test to determine automatically if it is
> present.
>
> Has anyone done something like that before? Does anyone have suggestions?
>
> My first idea would be to check for "mkoctfile" with AC_CHECK_PROG then try
> to compile a
> simple program whith the calls to liboctave I need, is that the correct way
> to go?
You can probably get away with AC_CHECK_HEADER([octave/oct.h]) and
compiling and linking a trimmed-down standalone.cc from the examples/
directory in the source distribution.
HTH,
- Jordi G. H.