Find the answer to your Linux question:
Results 1 to 2 of 2
I'm writing an application and want to make possible to compile it with or without an optional module. This module requires perl library to be compiled, so I want to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Apr 2010
    Location
    Novosibirsk, Russia
    Posts
    145

    Question How to specify a library search path to configure's AC_CHECK_LIB?


    I'm writing an application and want to make possible to compile it with or without an optional module. This module requires perl library to be compiled, so I want to check presence of it in 'autoconf'.
    The problem exists because perl library is placed in 'non-standart' location itself (like a /usr/lib64/perl5/CORE/libperl.so). So when I try to run configure (with AC_CHECK_LIB or AC_SEARCH_LIBS), it cannot find and link libperl.so in its test. Trying to pass

    ./configure CFLAGS=-L/usr/lib64/perl5/CORE/

    or

    ./configure LDFLAGS=-L/usr/lib64/perl5/CORE/

    does nothing. How can I define a location to search for configure's tests?

  2. #2
    Linux Newbie
    Join Date
    Apr 2010
    Location
    Novosibirsk, Russia
    Posts
    145

    Post

    I found how to pass a library path in '--with-module=<PATH>', but how I make AC_CHECK_LIB to use it?...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •