HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

FreeBSD 2.2.0-R and HylaFAX configure script (fwd)



I've been experiencing problems installing HylaFAX 4.0pl1 on a FreeBSD
2.2.0-R system.  The configure /bin/sh script generates makefiles based on
information it gathers about the system on which it is run.

The problem is that configure does not work properly on 2.2.0-R.  Fer
instance, there are two functions defined called CheckForLibrary() and
CheckForIncludeFile() that attempt to compile small bits of code.  These
functions are called to determine whether or not the system supports 
SGI RGB images (among other things).

configure generates a log file which clearly shows the compiles failing.
Somehow, configure thinks it succeeds.  configure always decides my system
supports SGI RGB images, sinclude, etc... even though it clearly doesn't. 

I've done some sanity checking on 2.1.7-R.  Everything is just peachy.
I've searched the HylaFAX archives as well as the FreeBSD archives.  It
doesn't appear that this issue is being discussed.  I've reproduced it on
two different 2.2.0-R systems.

I'm not a shell script guru but this one looks okay to me.  Is /bin/sh
behaving strangely?  Or, perhaps make?  I've included snippets of the
configure shell script and corresponding logfile below.

Ideas?  Suggestions?  btw:  the tiff library required for HylaFAX has a
similar configure shell script that behaves the same way.

thanks,
-scotto


---------->%snip>%----------
CheckForLibrary()
{
    f=$1; shift
    libs="$@";
    cat>t.c<<EOF
int t() { $f(); return 0; }
int main(){ t(); return 0; }
EOF
    runMake t "t:; ${CCOMPILER} ${ENVOPTS} t.c $libs"
}

#
# Look for an include file.
#
CheckForIncludeFile()
{
    (for i do
        echo "#include \"$i\""
     done)>t.c
    runMake t "t:; ${CCOMPILER} ${ENVOPTS} -E t.c"
}

if [ "$LIBIMAGE" = auto ]; then
    if CheckForLibrary iopen -limage && CheckForIncludeFile gl/image.h;
then
        Note "Looks like there is support for SGI RGB images."
        LIBIMAGE=yes
    else
        LIBIMAGE=no
    fi
---------->%snip>%----------

---------->%snip>%----------
+ eval set -x; make -f confMakefile t
+ set -x
+ make -f confMakefile t
/usr/bin/gcc  t.c -limage
ld: -limage: no match
*** Error code 1

Stop.
+ eval set -x; make -f confMakefile t
+ set -x
+ make -f confMakefile t
/usr/bin/gcc  -E t.c
t.c:1: gl/image.h: No such file or directory
# 1 "t.c"

*** Error code 1

Stop.
---------->%snip>%----------




Project hosted by iFAX Solutions