Results 1 to 2 of 2

Thread: [SOLVED] change compile options in program generated with automake

  1. #1
    Join Date
    Apr 2005
    Beans
    849

    [SOLVED] change compile options in program generated with automake

    Hi,
    I'me trying to compile and install a program.
    This works the old way like
    PHP Code:
    ./configure
    make
    make install 
    This works with no problem,
    but I want to change som compile options.


    Like instead of using gcc I want to use icc,
    but also the cflags cxxflags.

    But what is the recommend way of changing this.
    I can just do a search replace,
    but I have a gut feeling theres a better way of doing this.

    theres a hole lot of strange files like
    PHP Code:
    ls configMake*
    config.log     configure     Makeconf.in   Makefile.in     Makefrag.cxx
    config
    .site    configure.ac  Makefile      Makefrag.cc     Makefrag.m
    config
    .status  Makeconf      Makefile.bak  Makefrag.cc_lo 
    thanks in advance

    edit:
    I know I can change all the compile options, wich CC=icc and CXX=icpc,
    but If I want to change the install dir,
    I can do ./configure prefix=/dir/to/install.

    So I guess theres a way to change the defaults,
    or atleast get a list.
    Last edited by monkeyking; December 30th, 2008 at 09:21 PM.
    Running 8.10 on a lenovo 3000 n200!
    Fingerprint reader doesn't work.

  2. #2
    Join Date
    Apr 2005
    Beans
    849

    Re: change compile options in program generated with automake

    Theres a file called config.site which apparently contains the stuff I was looking for.

    also ./configure --help
    Last edited by monkeyking; December 31st, 2008 at 12:57 AM.
    Running 8.10 on a lenovo 3000 n200!
    Fingerprint reader doesn't work.

Bookmarks

Posting Permissions

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