make: conditional compilation/linking?

make: conditional compilation/linking?

Post by Tom Vi » Thu, 23 Jul 1998 04:00:00

i'm trying to make my program more portable, but i haven't been able
to find a solution for getopt(). linux, of course, has getopt() in
libc, but other os's (namely freebsd) don't. i'm either going to write
a getopt() clone or just copy the code from the glibc source, and put
it in a module. the problem is, how do i setup autoconf and to only compile and link the getopt module when it's not
available in libc?

thanx, for any help.

Tom Vier - 0x82B007A8    | Hate Micro$hit, AOLame, and Untel?

Tortured Souls Software  |