Re: configure: x86_64-unknown-linux-gnu unknown

From: Tommy Reynolds (TommyReynolds_at_yahoo.com)
Date: 03/21/05


Date: Mon, 21 Mar 2005 14:42:30 -0600

On Mon, 21 Mar 2005 14:57:07 -0500, Anchor wrote:

> Running ./configure to create a Makefile on an up-to-date AMD Athlon64
> FC3 x86_64, I often get the error message:
> ./configure
> checking build system type... Invalid
> configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not
> recognized
> Sometime configure works just fine. Sometimes it produces the above error.

Many times an RPM or tarball gets shipped with files generated by a
version of autotools that don't know about 64-bit systems. No
problem, just regenerate them. I use this script:

<snip-it-in-the-bud--snip-it-in-the-bud--snip-it-in-the-bud>

#! /bin/sh

# Bootstrap the project from CVS.

test -r CVS/Entries || {
  echo "$0: CVS directory not found. Normally this script is for"
  echo "bootstrapping a CVS checkout of the project. Continuing anyway..."
  echo ""
}

# Optionally source a local shell script so user can add extra CFLAGS et al.
# on a "semi-permanent" basis. All settings will be automatically exported.
if test -f ./extra-config.sh ; then
  echo "Adding settings from ./extra-config.sh ..."
  cat ./extra-config.sh
  set -a
  . ./extra-config.sh
  set +a
fi

# OS X has "glibtoolize", so be nice and look for that too.
LIBTOOLIZE=""
for prog in libtoolize glibtoolize ; do
  if $prog --version > /dev/null 2>&1 ; then
    LIBTOOLIZE=$prog
    break
  fi
done
if test "x$LIBTOOLIZE" = "x" ; then
  echo "$0: libtoolize not found"
  exit 1
fi
$LIBTOOLIZE --force --automake --copy || {
  echo "$0: $LIBTOOLIZE failed"
  exit 1
}

# OS X fink users may have autoconf macros in /sw/share/aclocal.
# Search other user-specified locations while we're at it.

acdirs=""
for dir in /sw/share/aclocal $AC_M4_DIRS ; do
  if test -d "$dir" ; then
    acdirs="-I $dir $acdirs"
  fi
done
aclocal --force $acdirs || {
  echo "$0: aclocal failed"
  exit 1
}

autoheader --force || {
  echo "$0: autoheader failed"
  exit 1
}
automake --force-missing --add-missing --copy || {
  echo "$0: automake failed"
  exit 1
}
autoconf --force || {
  echo "$0: autoconf failed"
  exit 1
}

if ./configure "$@" ; then
  echo "Now type 'make' to compile."
else
  echo "$0: configure failed"
  exit 1
fi

<snip-it-in-the-bud--snip-it-in-the-bud--snip-it-in-the-bud>

HTH



Relevant Pages

  • [ANN] DbxoODBC 2.015 - Kylix/Delphi Open Source ODBC dbExpress driver
    ... changed: extended Unicode support ... + Map compiler directive _InternalCloneConnection_ to connection option ... I recommend Tortoise CVS as the easiest to use Windows CVS client, ... echo - When prompted for a password for anonymous, ...
    (borland.public.delphi.thirdpartytools.general)
  • [ANN] DbxoODBC 2.014 - Kylix/Delphi Open Source ODBC dbExpress driver
    ... Changed TSqlCommandOdbc - added stored procedure support. ... fixed memory leak in TSqlCursorMetaDataProcedureParams.Destroy ... I recommend Tortoise CVS as the easiest to use Windows CVS client, ... echo - When prompted for a password for anonymous, ...
    (borland.public.delphi.thirdpartytools.general)
  • ANN: DBXOODBC 3.024
    ... DbxOODBC 3.024 - Kylix/Delphi Open Source ODBC dbExpress driver. ... Project Home Page: ... Project Sources (Browse CVS): ... echo - When prompted for a password for anonymous, ...
    (borland.public.delphi.thirdpartytools.general)
  • ANN: DBXOODBC 3.024
    ... DbxOODBC 3.024 - Kylix/Delphi Open Source ODBC dbExpress driver. ... Project Home Page: ... Project Sources (Browse CVS): ... echo - When prompted for a password for anonymous, ...
    (borland.public.delphi.thirdpartytools.general)
  • [ANN] DbxoODBC 3.000 - Kylix/Delphi Open Source ODBC dbExpress driver
    ... + added Dynamic Odbc Api Loading (implement simple internal "odbc api ... I recommend Tortoise CVS as the easiest to use Windows CVS client, ... echo - When prompted for a password for anonymous, ...
    (borland.public.delphi.thirdpartytools.general)