Hi,
For me, configure fails to configure libtool.
I am pretty puzzled. Mesa-3.2 comes with a configure script that was generated
with autoconf 2.13
My own autoconf 2.13 generated configure script fails, due to unknown --build
option to ltconfig (not present in Mesa's configure).
Why does autoconf put this --build flag in the script, and not in Mesa's
configure, even though it's the same autoconf version?
This is the error:
ltconfig: unrecognized option `--build=i686-pc-linux-gnu'
Try `ltconfig --help' for more information.
configure: error: libtool configure failed
>From configure of Mesa-3.2:
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
>From my configure:
# Actually configure libtool. ac_aux_dir is where install-sh is found.
AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
FILE="$FILE" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd"
\
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $lt_target \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
My setup:
stolk@sidonia:~$ autoconf --version
Autoconf version 2.13
stolk@sidonia:~$ automake --version
automake (GNU automake) 1.4
stolk@sidonia:~$ libtoolize --version
libtoolize (GNU libtool) 1.3.4
stolk@sidonia:~$ libtool --version
ltmain.sh (GNU libtool) 1.3.4 (1.385.2.196 1999/12/07 21:47:57)
stolk@sidonia:~$ m4 --version
GNU m4 1.4
stolk@sidonia:~$ uname -a
Linux sidonia 2.2.15 #2 SMP Wed Apr 26 21:28:16 CEST 2000 i686 unknown
I think I do all the right stuff:
aclocal
autoconf
autoheader
automake --add-missing
I've also used libtoolize version 1.3.4
I had a similar problem on a sun solaris system.
This is my configure.in file
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.13)
AC_INIT(auxil/auxil.h)
AM_INIT_AUTOMAKE(nb, 1.0)
AM_CONFIG_HEADER(config.h:config.in)
AC_PREFIX_DEFAULT(/usr/local/nb)
AC_CANONICAL_HOST
AC_DISABLE_STATIC
AC_DISABLE_FAST_INSTALL
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AM_PROG_LIBTOOL
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_INSTALL
AC_PROG_MAKE_SET
dnl Checks for library functions.
dnl check for OpenGL related libraries
dnl Check for X11
AC_PATH_XTRA
x_suffix="$X_LIBS $X_PRE_LIBS -lX11 -lXi -lXext -lXmu $X_EXTRA_LIBS -lm"
AC_CHECK_LIB(GLcore, glNewList,,,$x_suffix)
if test "x$ac_cv_lib_GLcore_glNewList" = "xno" ; then
dnl if no GLcore, check for GL
AC_CHECK_LIB(GL, glNewList,,,$x_suffix)
if test "x$ac_cv_lib_GL_glNewList" = "xno" ; then
dnl if no GL, check for MesaGL
AC_CHECK_LIB(MesaGL, glNewList,,,$x_suffix)
fi
else
dnl if GLcore found, then also check for GL
AC_CHECK_LIB(GL, glXCreateContext,,,$x_suffix)
fi
dnl if using mesa, check for xmesa.h
if test "x$ac_cv_lib_MesaGL_glNewList" = "xyes" ; then
AC_CHECK_HEADER(GL/xmesa.h)
AM_CONDITIONAL(ENABLE_XMESA_FX, \
test "x$ac_cv_header_GL_xmesa_h" = "xyes")
else
dnl force a failed check
AM_CONDITIONAL(ENABLE_XMESA_FX, test "no" = "yes")
fi
AC_CHECK_LIB(GLU, gluLookAt,,,$x_suffix)
if test "x$ac_cv_lib_GLU_gluLookAt" = "xno" ; then
dnl if no GLU, check for MesaGLU
AC_CHECK_LIB(MesaGLU, gluLookAt,,,$x_suffix)
fi
opengl_LIBS="$LIBS $x_suffix"
dnl check for glut...or freeglut
AC_CHECK_LIB(freeglut, glutGetModifiers,,,$opengl_LIBS)
if test "x$ac_cv_lib_freeglut_glutGetModifiers" = "xno" ; then
dnl if no freeglut, check for Real GLUT
AC_CHECK_LIB(glut, glutGetModifiers,,,$opengl_LIBS)
fi
dnl check for libtiff
AC_CHECK_LIB(tiff, TIFFOpen,,,)
dnl check for OpenAL
AC_CHECK_LIB(openal, alcCreateContext,,,)
LIBS="$LIBS $x_suffix"
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(GL/gl.h GL/glu.h)
AC_CHECK_HEADER(linux/joystick.h)
AC_CHECK_HEADER(GL/glut.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_ARG_ENABLE(stereo-vision,
[ --enable-stereo-vision stereo vision [default=off]],
enable_stereo_vision=$enableval, enable_stereo_vision=no)
if test "x$enable_stereo_vision" = xyes; then
AC_DEFINE(STEREO_VISION)
fi
AC_OUTPUT( \
Makefile \
auxil/Makefile \
math/Makefile \
fio/Makefile \
interp/Makefile \
im/Makefile \
inp/Makefile \
ani/Makefile \
render/Makefile \
render/prim/Makefile \
render/ogl/Makefile \
vis/Makefile \
sound/Makefile \
sound/df/Makefile \
sound/al/Makefile \
sim/Makefile \
db/Makefile \
db/hier/Makefile \
main/Makefile \
main/viewer/Makefile \
main/stolk/Makefile \
)
Any help is greatly appreciated.
Bram Stolk