Re: [CinePaint] Building cinepaint-0.22-0, 'configure' can't find libXpm
Kai-Uwe Behrmann <[email protected]>
| Newsgroups | gmane.comp.video.cinepaint.user |
|---|---|
| Message-ID | <[email protected]> |
Richard, Am 09.05.07, 17:59 -0400 schrieb Richard Lemieux: > While attempting the installation of cinepaint-0.22-0, I am getting an > error from ./configure. The only problem I can see is that the script > can't find libXpm while it finds libXext. Both sit together in > /usr/X11R6/lib. libXpm is needed for the ICC Examin plug-in. > I looked on the mailing archive and no one seems to have met > that problem before. > > After fixing ./lib/fl_i18n/fl_i18n_cinepaint.cxx to include the > missing stdio.h, I type "make" and the build stops while the > Makefile can't be found in directory > > /plug-ins/icc_examin/icc_examin > > That's were configure failed I guess. Yes, the configure output gives a hint, that the makefile was removed. > I include the end of the configure listing. > > Has someone an idea of what is going wrong? Can you put the attached configure script into the plug-ins/icc_examin/icc_examin directory and rerun configure. The verbosity is slightly changed and some variables are exported. In general, the library path should be included by a -L"your/X11/path/lib" compiler option to find the libraries. > configure: running /bin/sh ./configure --prefix=/rlxb4/opt/cinepaint --cache-fi > le=/dev/null --srcdir=. As well, you might look at our Wiki page. I have set up some RPM packages, if this of any help to you: http://cinepaint.bigasterisk.com/CinePaintDocumentation under Installation / Linux kind regards Kai-Uwe Behrmann -- developing for colour management www.behrmann.name + www.oyranos.org + www.cinepaint.org ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Cinepaint-users mailing list Cinepaint-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/cinepaint-users
configure
(text/plain, 18.8 KB)
#!/bin/sh
TARGET=icc_examin
TARGET_NAME="ICC Examin"
BINTARGET="`echo $TARGET | sed s/_//g`"
ERROR=0
test -f error.tmp && rm error.tmp
CONF_H=config.h
CONF=makefile
CONF_I18N=fl_i18n/makefile
SPEC=$TARGET.spec
VERS="$TARGET"_version.h
zeile="$0 $@"
MAKEFILE_DIR=". fl_i18n"; export MAKEFILE_DIR
export CONF_H CONF CONF_I18N
VERSION_A=0
VERSION_B=4
VERSION_C=3
RELEASE=0
ZEIT="May 2004 - February 2007"
VERSION=$VERSION_A.$VERSION_B$VERSION_C
if [ $VERSION_A -gt 9 ]; then
VERSION_L="$VERSION_A"
else
VERSION_L="0$VERSION_A"
fi
if [ $VERSION_B -gt 9 ]; then
VERSION_L="$VERSION_L$VERSION_B"
else
VERSION_L="${VERSION_L}0$VERSION_B"
fi
if [ $VERSION_C -gt 9 ]; then
VERSION_L="$VERSION_L$VERSION_C"
else
VERSION_L="${VERSION_L}0$VERSION_C"
fi
VERSION_L=`echo $VERSION_L | sed 's/^0*//g'`
cwdebug=0
debug=0
echo ""
echo "################################################################"
echo "# #"
echo " Welcome to $TARGET_NAME Version $VERSION configurator"
echo "# #"
echo "# Configuration #"
if [ $# -gt 0 ]; then
prefix=""
while [ $# -gt 0 ]; do
arg=$1
# prefix exec_prefix bindir sbindir libdir includedir datadir mandir
switch=prefix
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
prefix="`echo \"$1\" | sed s/\"--$switch=\"//`"
fi
switch="exec-prefix"
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
exec_prefix="`echo $1 | sed s/--$switch=//`"
fi
switch=bindir
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
bindir="`echo $1 | sed s/--$switch=//`"
fi
switch=sbindir
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
sbindir="`echo $1 | sed s/--$switch=//`"
fi
switch=libdir
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
libdir="`echo $1 | sed s/--$switch=//`"
fi
switch=includedir
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
includedir="`echo $1 | sed s/--$switch=//`"
fi
switch=datadir
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
datadir="`echo $1 | sed s/--$switch=//`"
fi
switch=mandir
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
mandir="`echo $1 | sed s/--$switch=//`"
fi
# pixmapdir desktopdir
switch=pixmapdir
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
pixmapdir="`echo $1 | sed s/--$switch=//`"
fi
switch=desktopdir
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
desktopdir="`echo $1 | sed s/--$switch=//`"
fi
switch=with-fltk-config
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
fltkconfig="`echo $1 | sed s/--$switch=//`"
fi
switch=enable-cwdebug
if [ "`echo \"$1\" | sed s/\"--$switch=\"//`" != "$1" ]; then
cwdebug="`echo $1 | sed s/--$switch=//`"
fi
switch=enable-cwdebug
if [ "`echo \"$1\" | sed s/\"--$switch\"//`" != "$1" ]; then
cwdebug="1"
fi
switch=enable-debug
if [ "`echo \"$1\" | sed s/\"--$switch\"//`" != "$1" ]; then
debug="1"
fi
switch=help
if [ "`echo \"$1\" | sed s/\"--$switch\"//`" != "$1" ]; then
echo "Usage:"
echo " --prefix=[/usr/local] package prefix"
echo " --exec-prefix=[\$prefix] package exec-prefix"
echo " --bindir=[\$exec-prefix/bin] binary installation path"
echo " --sbindir=[\$exec-prefix/sbin] super user binary installation path"
echo " --libdir=[\$exec-prefix/lib] library installation path"
echo " --includedir=[\$prefix/include] include file installation"
echo " --datadir=[\$prefix/data] application data base path"
echo " --mandir=[\$datadir/man] manual installation path"
echo " --pixmapdir=[\$datadir/pixmaps] icon installation path"
echo " --desktopdir=[\$datadir/applications] xdg installation path"
echo ""
echo " --with-fltk-config=[fltk-config] alternative fltk version"
echo " --enable-debug debug version"
echo " --enable-cwdebug=[\$cwdebugdir] deploy cwlibary for debugging"
echo " --help"
echo ""
echo " Optionally set the CC, CXX, CFLAGS, CXXFLAGS and LDFLAGS environment variables."
echo ""
exit
fi
shift
done
fi
ECHO="echo";
echo "$zeile" > config.log
chmod 0755 config.log
src_dir="`(cd ..;pwd)`/""$TARGET"-"$VERSION"
srcdir="`pwd`"
#prefix
if [ -z "$prefix" ]; then
prefix=/usr/local
fi
if [ -z "$datadir" ]; then
test -f $prefix/share/config.site && . $prefix/share/config.site
else
test -f $datadir/config.site && . $datadir/config.site
fi
test -f error.txt && rm error.txt
test -f mkdepend && rm mkdepend config.h
echo "# automatically generated file by configure - do not edit" > $CONF
echo "/* automatically generated file by configure - do not edit */" > $CONF_H
echo "#ifndef ICCEXAMIN_CONFIG_H" >> $CONF_H
echo "#define ICCEXAMIN_CONFIG_H" >> $CONF_H
echo "" >> $CONF_H
echo "" >> $CONF
echo "TARGET = $TARGET" >> $CONF
echo "BINTARGET = $BINTARGET" >> $CONF
echo "" >> $CONF
echo ""
# detect System
UNAME_=`uname`
OSUNAME=BSD
if [ $? = 0 ] && [ $UNAME_ = "Darwin" ]; then
echo "Darwin PPC detected"
echo "APPLE = 1" >> $CONF
echo "#define APPLE 1" >> $CONF_H
echo "OSX_H =" >> $CONF
OSUNAME=Darwin
else
if [ $UNAME_ = "Linux" ]; then
echo "LINUX = 1" >> $CONF
echo "#define LINUX 1" >> $CONF_H
echo "Linux system detected"
SYS=0
if [ -f /etc/SuSE-release ]; then
cat /etc/SuSE-release | grep Linux; SYS=1; fi
if [ -f /etc/redhat-release ]; then
cat /etc/redhat-release; SYS=1; fi
if [ -f /etc/debian_version ]; then
if [ -f /etc/issue.net ]; then
cat /etc/issue.net || cat /etc/debian_version; SYS=2; fi; fi
if [ $SYS -eq 0 ]; then
test -f /etc/issue.net && cat /etc/issue.net; fi
OSUNAME=Linux
else
if [ $UNAME_ = "SunOS" ]; then
echo "SOLARIS = 1" >> $CONF
echo "#define SOLARIS 1" >> $CONF_H
echo "SunOS detected"
OSUNAME=SunOS
else
if [ $UNAME_ = "OpenBSD" ] || [ $UNAME_ = "NetBSD" ] || [ $UNAME_ = "FreeBSD" ]; then
echo "BSD = 1" >> $CONF
OS_EXT=.bsd
echo "#define BSD 1" >> $CONF_H
echo "BSD $UNAME_ detected"
OSUNAME=BSD
else
echo "ICC Examin may or may not compile on your $UNAME_ system"
fi
fi
fi
fi
echo "MAKEFILE_ARCH = Makefile$OS_EXT" >> $CONF
MACH_=`uname -m`
MACH=BUILD_32
if [ $? = 0 ]; then
if [ "$MACH_" = "i686" ]; then
echo "32-bit system detected"
else
if [ "$MACH_" = "x86_64" ]; then
MACH=BUILD_64
echo "BUILD_64 = 1" >> $CONF
echo "X86_64 try build in 64 bit mode"
BARCH="64"
else
if [ "$MACH_" = "sun4u" ]; then
MACH=BUILD_64
echo "BUILD_64 = 1" >> $CONF
echo "spark ultra 4 try build in 64 bit mode"
BARCH="64"
LINE_ARCH="-64"
fi
fi
fi
fi
LIBDIR="lib"$BARCH
export MACH OSUNAME LIBDIR BARCH LINE_ARCH
if [ -z "$CC" ]; then
CC=cc$LINE_ARCH
fi
if [ -z "$CXX" ]; then
CXX=c++$LINE_ARCH
fi
echo "CXX = $CXX" >> $CONF
echo "CC = $CC" >> $CONF
echo "CXX = $CXX" > $CONF_I18N
echo "CC = $CC" >> $CONF_I18N
export CC CXX
CFLAGS_COMMON="$CFLAGS \$(INCL)"
CXXFLAGS_COMMON="$CXXFLAGS \$(INCL)"
export CFLAGS CXXFLAGS LDFLAGS
# exec_prefix bindir sbindir libdir includedir datadir
if [ -z "$exec_prefix" ]; then
exec_prefix="$prefix"
fi
if [ "`echo $exec_prefix | grep 64 | wc -l`" -eq "1" ]; then
BARCH=""
LIBDIR="lib"
echo unset BARCH LIBDIR
export BARCH LIBDIR
fi
if [ -z "$bindir" ]; then
bindir="$exec_prefix/bin"
fi
if [ -z "$sbindir" ]; then
sbindir="$exec_prefix/sbin"
fi
if [ -z "$libdir" ]; then
libdir="$exec_prefix/$LIBDIR"
fi
if [ -z "$includedir" ]; then
includedir="$prefix/include"
fi
if [ -z "$datadir" ]; then
datadir="$prefix/share"
fi
if [ -z "$mandir" ]; then
mandir="$datadir/man"
fi
# pixmapdir desktopdir
if [ -z "$pixmapdir" ]; then
pixmapdir="$datadir/pixmaps"
fi
if [ -z "$desktopdir" ]; then
desktopdir="$datadir/applications"
fi
if [ "$cwdebug" -eq "1" ]; then
cwdebug="$libdir"
else
if [ `echo $cwdebug | wc -m` -eq 2 ]; then
if [ "$cwdebug" -eq "0" ]; then
unset cwdebug
fi
fi
fi
export prefix exec_prefix bindir sbindir libdir includedir datadir mandir
export pixmapdir desktopdir
export fltkconfig cwdebug debug
PATH=$bindir:$PATH
export PATH
# detect Libraries
echo "LIB=/"$LIBDIR >> $CONF
LIBS_TEST="dl iconv intl"; export LIBS_TEST
X_ADD="Xpm Xext"; export X_ADD
ECHO="echo"; export ECHO
LIBS=1; export LIBS
#export ELEKTRA=1
OYRANOS=1; export OYRANOS
LCMS=1; export LCMS
FTGL=2; export FTGL
FLTK=1; export FLTK
LIBPNG=2; export LIBPNG
LIBTIFF=1; export LIBTIFF
#FLU=2; export FLU
if [ $OSUNAME != "Darwin" ]; then
X11=1; export X11
fi
XINERAMA=1; export XINERAMA
XF86VMODE=1; export XF86VMODE
DEBUG=1; export DEBUG
PO=1; export PO
GETTEXT=1; export GETTEXT
./configure.sh
LIBS=0; export LIBS
ELEKTRA=0; export ELEKTRA
OYRANOS=0; export OYRANOS
LCMS=0; export LCMS
FTGL=0; export FTGL
FLTK=0; export FLTK
LIBPNG=0; export LIBPNG
LIBTIFF=0; export LIBTIFF
FLU=0; export FLU
X11=0; export X11
XINERAMA=0; export XINERAMA
XF86VMODE=0; export XF86VMODE
DEBUG=0; export DEBUG
PO=0; export PO
GETTEXT=0; export GETTEXT
if [ -d ../../../plug-ins/icc_examin/ ]; then
build_plug_in_only=1
CP_CONFIG=../../../cinepainttool
CP_FLAGS="$CP_CONFIG --cflags-local"
CP_LIBS="$CP_CONFIG --libs-local"
CP_VERSION=`$CP_CONFIG --version`
echo "CP_DIR=`$CP_CONFIG --install-dir`" >> $CONF
echo "INSTALL_TARGET=install_cp" >> $CONF
echo "local CinePaint $CP_VERSION detected"
echo "CINEPAINT = icc_examin_cp" >> $CONF
else
echo "INSTALL_TARGET=install_global" >> $CONF
fi
if [ -z "$CP_CONFIG" ]; then
CP_CONFIG=`which cinepainttool 2>/dev/null`
if [ -n "$CP_CONFIG" ]; then
CP_FLAGS="cinepainttool --cflags"
CP_LIBS="cinepainttool --libs"
CP_VERSION=`cinepainttool --version`
CP_N_VERSION=`cinepainttool --version | sed "s/\.// ; s/-.//"`
echo "Gtk CinePaint $CP_VERSION detected"
cp_reqired=22
if [ "$CP_N_VERSION" -ge $cp_reqired ]; then
echo "CINEPAINT = icc_examin_cp" >> $CONF
else
echo "too old CinePaint version - need at least 0.$cp_reqired"
fi
fi
fi
if [ -n "$CP_VERSION" ]; then
echo "CP_FLAGS=$CP_FLAGS" >> $CONF
echo "CP_LIBS=$CP_LIBS" >> $CONF
echo "#define ICC_CINEPAINT_VERSION \"Gtk CinePaint $CP_VERSION\"" >> $VERS
fi
echo ""
echo ""
# Alle ifdefs landen hier
echo "" >> $CONF
echo "VERSION_A = $VERSION_A" >> $CONF
echo "VERSION_B = $VERSION_B" >> $CONF
echo "VERSION_C = $VERSION_C" >> $CONF
echo "VERSION = $VERSION" >> $CONF
echo "VERSION_L = $VERSION_L" >> $CONF
echo "" >> $CONF
echo "#ifndef ICC_VERSION_H" > $VERS
echo "#define ICC_VERSION_H" >> $VERS
echo "" >> $VERS
echo "#define ICC_EXAMIN_VERSION_A $VERSION_A" >> $VERS
echo "#define ICC_EXAMIN_VERSION_B $VERSION_B" >> $VERS
echo "#define ICC_EXAMIN_VERSION_C $VERSION_C" >> $VERS
echo "#define ICC_EXAMIN_VERSION $VERSION_L" >> $VERS
echo "#define ICC_EXAMIN_V \"$VERSION\"" >> $VERS
echo "#define ICC_EXAMIN_D _(\"$ZEIT\")" >> $VERS
if [ -n "$CP_VERSION" ]; then
echo "#define ICC_CINEPAINT_VERSION \"Gtk CinePaint $CP_VERSION\"" >> $VERS
fi
echo "" >> $VERS
echo "#endif //ICC_VERSION_H" >> $VERS
echo "Version: $VERSION" > $SPEC
echo "Source: $TARGET"-"$VERSION".tar.gz >> $SPEC
echo "Release: $RELEASE" >> $SPEC
echo "%define pixmapdir $pixmapdir" >> $SPEC
echo "%define desktopdir $desktopdir" >> $SPEC
cat "$SPEC.in" >> $SPEC
echo generated $SPEC from "$SPEC.in"
echo "prefix = $prefix"
echo ""
echo "################################################################"
echo "# Configuration #"
echo "prefix = $prefix"
echo "exec_prefix = $exec_prefix"
echo "bindir = $bindir"
echo "sbindir = $sbindir"
echo "libdir = $libdir"
echo "includedir = $includedir"
echo "datadir = $datadir"
echo "mandir = $mandir"
echo "pixmapdir = $pixmapdir"
echo "desktopdir = $desktopdir"
if [ -n "$cwdebug" ]; then
echo "cwdebug = $cwdebug"
fi
echo "src_dir = $src_dir" >> $CONF
echo "srcdir = $srcdir" >> $CONF
echo "prefix=$prefix" >> $CONF
echo "exec_prefix=$exec_prefix" >> $CONF
echo "bindir=$bindir" >> $CONF
echo "sbindir=$sbindir" >> $CONF
echo "libdir=$libdir" >> $CONF
echo "includedir=$includedir" >> $CONF
echo "datadir=$datadir" >> $CONF
echo "mandir=$mandir" >> $CONF
echo "pixmapdir=$pixmapdir" >> $CONF
echo "desktopdir=$desktopdir" >> $CONF
echo "" >> $CONF
echo "#define PREFIX \"$prefix\"" >> $CONF_H
echo "#define DATADIR \"$datadir\"" >> $CONF_H
echo "#define LOCALEDIR \"$datadir/locale\"" >> $CONF_H
echo "#define PIXMAPDIR \"$pixmapdir\"" >> $CONF_H
echo "#define SRCDIR \"$srcdir\"" >> $CONF_H
echo "#define SRC_LOCALEDIR \"$srcdir/po\"" >> $CONF_H
echo "" >> $CONF
echo "RM = rm -f $DEBUG_SWITCH" >> $CONF
if [ $OSUNAME = "Darwin" ]; then
echo "" >> $CONF
echo "COPY = cp -p $DEBUG_SWITCH" >> $CONF
LDFLAGS="$LDFLAGS -L."
echo "DBG_LIBS = #-lMallocDebug" >> $CONF
echo "I18N_LIB = \$(intl) \$(LIBNAME)" >> $CONF
echo "I18N_LIBSTAT = /opt/local/lib/libintl.a \$(LIBNAME) \$(iconv)" >> $CONF
echo "INCL=-I\$(includedir) -I/usr/X11R6/include -I./ -I/usr/include/gcc/darwin/default/c++" >> $CONF
echo "LIBEXT = .dylib" >> $CONF
echo "LINK_FLAGS = -dynamiclib -L." >> $CONF
echo "MAKEDEPEND = /usr/X11R6/bin/makedepend -Y" >> $CONF
echo "MSGMERGE = msgmerge" >> $CONF
CFLAGS="$CFLAGS_COMMON -Wall -g \$(DEBUG) -DPIC -Wunused -fno-exceptions"
CXXFLAGS="$CXXFLAGS_COMMON -Wall -g \$(DEBUG) -DPIC -fno-exceptions"
echo "REZ = fltk-config --post \$@" >> $CONF
echo "OSX_CPP = \$(OSX_CPPFILES)" >> $CONF
echo "REZ = \
fltk-config --post \$(BINTARGET);" >> $CONF
echo "XGETTEXT_OPTIONS = --keyword=gettext \
--keyword=_ \
--keyword=N_" >> $CONF
echo "INSTALL = install $DEBUG_SWITCH" >> $CONF
else
echo "LIBMID = .so" >> $CONF
echo "LIBNAMEFULL = lib\$(TARGET)\$(LIBMID).\$(VERSION_A).\$(VERSION_B).\$(VERSION_C)" >> $CONF
echo "MSGMERGE = msgmerge" >> $CONF
echo "MSGMERG_OPTS = --update" >> $CONF
echo "XGETTEXT_OPTIONS = --keyword=gettext --flag=gettext:1:pass-c-format \
--keyword=_ --flag=_:1:pass-c-format \
--keyword=N_ --flag=N_:1:pass-c-format \
--copyright-holder='Kai-Uwe Behrmann' \
--msgid-bugs-address='[email protected]' \
--from-code=utf-8" >> $CONF
if [ $OSUNAME = "Linux" ]; then
echo "" >> $CONF
echo "COPY = cp $DEBUG_SWITCH -dpa" >> $CONF
LDFLAGS="$LDFLAGS -L."
echo "I18N_LIB = \$(LIBNAME)" >> $CONF
echo "I18N_LIBSTAT = \$(LIBNAME)" >> $CONF
echo "INCL=-I\$(includedir) -I/usr/X11R6/include -I. -I/usr/include/g++ -I/usr/include" >> $CONF
echo "LINK_FLAGS = -shared \$(dl) -fPIC -L. -lpthread" >> $CONF
echo "LIBNAMEV = lib\$(TARGET)\$(LIBMID).\$(VERSION_A)" >> $CONF
echo "LINK_FLAGS_STATIC = $LDFLAGS" >> $CONF
echo "LINK_NAME = -Wl,-soname -Wl,\$(LIBNAMEFULL)" >> $CONF
echo "LINK_LIB_PATH = -Wl,--rpath -Wl,\$(libdir)" >> $CONF
echo "LINK_SRC_PATH = -Wl,--rpath -Wl,\$(srcdir)" >> $CONF
echo "MAKEDEPEND = makedepend -Y" >> $CONF
CFLAGS="$CFLAGS_COMMON"
CXXFLAGS="$CXXFLAGS_COMMON"
echo "INSTALL = install $DEBUG_SWITCH" >> $CONF
else
echo "COPY = cp -p" >> $CONF
echo "INCL=-I\$(includedir) -I/usr/X11R6/include -I. -I/usr/include/g++ -I/usr/include" >> $CONF
if [ $OSUNAME = "BSD" ]; then
LDFLAGS="$LDFLAGS \$(iconv)"
INSTALL="install $DEBUG_SWITCH"
test -n "$ECHO" && $ECHO "LINK_FLAGS = -shared \$(iconv)" >> $CONF
test -n "$ECHO" && $ECHO "LINK_LIB_PATH = -Wl,--rpath -Wl,\$(libdir)" >> $CONF
test -n "$ECHO" && $ECHO "LINK_SRC_PATH = -Wl,--rpath -Wl,\$(srcdir)" >> $CONF
test -n "$ECHO" && $ECHO "INSTALL = install $DEBUG_SWITCH" >> $CONF
fi
if [ $OSUNAME = "SunOS" ]; then
LDFLAGS="$LDFLAGS -mimpure-text \$(dl) -lrt \$(iconv)"
INSTALL="install"
else
LDFLAGS="$LDFLAGS -mimpure-text \$(dl) \$(iconv)"
INSTALL="install"
echo "LINK_FLAGS = -shared \$(dl) \$(iconv)" >> $CONF
echo "INSTALL = install" >> $CONF
fi
echo "I18N_LIB = \$(iconv) \$(intl) \$(LIBNAMEV)" >> $CONF
echo "I18N_LIBSTAT = \$(iconv) \$(intl) \$(LIBNAMEV)" >> $CONF
echo "MAKEDEPEND = makedepend -Y" >> $CONF
CFLAGS="$CFLAGS_COMMON -Wall -g -L. -fPIC"
CXXFLAGS="$CXXFLAGS_COMMON -Wall -g -L. -fPIC"
echo "RM = rm -f" >> $CONF
fi
fi
if [ -n "$cwdebug" ]; then
echo "" >> $CONF
echo "cwdebug = $cwdebug" >> $CONF
echo "CWLIB = -L$cwdebug -lcwd" >> $CONF
echo "CCFILES = \$(DEBUG_CC)" >> $CONF
echo "#define CWDEBUG 1" >> $CONF_H
fi
echo "CFLAGS = $CFLAGS" >> $CONF
echo "CXXFLAGS = $CXXFLAGS">>$CONF
echo "LDFLAGS = $LDFLAGS" >> $CONF
echo "INCL = `cat makefile | grep '^INCL'`"
echo "CFLAGS = $CFLAGS"
echo "CXXFLAGS = $CXXFLAGS"
echo "LDFLAGS = $LDFLAGS"
echo "################################################################"
echo ""
echo "" >> $CONF
echo "" >> $CONF
echo ""
echo ""
echo "" > mkdepend
# prepare makefile from MAKEFILE_DIR
PREPARE_MAKEFILES=1; export PREPARE_MAKEFILES
./configure.sh
PREPARE_MAKEFILES=0; export PREPARE_MAKEFILES
echo "" >> $CONF_H
echo "#endif /* ICCEXAMIN_CONFIG_H */" >> $CONF_H
test -f error.tmp && ERROR=1
test -f error.tmp && rm error.tmp
if [ "$ERROR" -ne "0" ]; then
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "!!! An ERROR occured !!!"
echo "!!! See Log above !!!"
echo "!!! remove $CONF !!!"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo ""
rm Makefile $CONF_H $CONF_SH $SPEC $PKGC $MPKG
exit
else
make depend
fi
if [ `cat error.txt | wc -l` -lt 1 ]; then
rm error.txt
fi