autoconf
[Top][All Lists]
Advanced

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

Re: autoreconf behavior


From: Walter E. Brown
Subject: Re: autoreconf behavior
Date: Sun, 02 Feb 2003 11:57:01 -0600

Thank you for finding the typo.  Alas, after fixing both occurrences, there
seems to be a further problem.  While autoreconf now seems to run
correctly, the following:
    cd toppkg; ./configure
gives the message:
    configure: error: cannot find install-sh or install.sh in . ./..
./../..

This message is correct, of course, because I asked to have the tools
installed in toppkg/autotools (which directory I made before running
autoreconf).  Is there something further I must do to have configure look
in the correct place, as defined by the install-script?

I enclose the project's updated files; thank you in advance for any further
suggestions.

Best,

      - WEB


----- Original Message -----
From: "Alexandre Duret-Lutz" <address@hidden>
To: "Walter E. Brown" <address@hidden>
Cc: <address@hidden>
Sent: Sunday, February 02, 2003 10:55 AM
Subject: Re: autoreconf behavior


| >>> "Walter" == Walter E Brown <address@hidden> writes:
|
|  Walter> AC_OUTPUT[Makefile]
|
| This should read  `AC_OUTPUT([Makefile])'.


###########  cut here  ##########
#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.2.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 2003-02-02 11:45 CST by <address@hidden>.
# Source directory was `/home/Administrator'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    236 -rw-r--r-- toppkg/configure.ac
#    114 -rw-r--r-- toppkg/Makefile.am
#    254 -rw-r--r-- toppkg/subpkg/configure.ac
#    104 -rw-r--r-- toppkg/subpkg/Makefile.am
#   1051 -rwxr-xr-x toppkg/subpkg/pkg-config.ac
#
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
  if test "$gettext_dir" = FAILED && test -f $dir/gettext \
     && ($dir/gettext --version >/dev/null 2>&1)
  then
    set `$dir/gettext --version 2>&1`
    if test "$3" = GNU
    then
      gettext_dir=$dir
    fi
  fi
  if test "$locale_dir" = FAILED && test -f $dir/shar \
     && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
  then
    locale_dir=`$dir/shar --print-text-domain-dir`
  fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
  echo=echo
else
  TEXTDOMAINDIR=$locale_dir
  export TEXTDOMAINDIR
  TEXTDOMAIN=sharutils
  export TEXTDOMAIN
  echo="$gettext_dir/gettext -s"
fi
if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f
200112312359.59 -a -f $$.touch; then
  shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f
123123592001.59 -a ! -f 123123592001.5 -a -f $$.touch; then
  shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f
1231235901 -a -f $$.touch; then
  shar_touch='touch -am $3$4$5$6$2 "$8"'
else
  shar_touch=:
  echo
  $echo 'WARNING: not restoring timestamps.  Consider getting and'
  $echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch
#
if mkdir _sh01548; then
  $echo 'x -' 'creating lock directory'
else
  $echo 'failed to create lock directory'
  exit 1
fi
# ============= toppkg/configure.ac ==============
if test ! -d 'toppkg'; then
  $echo 'x -' 'creating directory' 'toppkg'
  mkdir 'toppkg'
fi
if test -f 'toppkg/configure.ac' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'toppkg/configure.ac' '(file already exists)'
else
  $echo 'x -' extracting 'toppkg/configure.ac' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'toppkg/configure.ac' &&
AC_PREREQ(2.57)
AC_INIT(auto_top, 0.0, address@hidden)
X
AM_INIT_AUTOMAKE(1.7 foreign)
X
AC_CONFIG_HEADERS([defs.h])
X
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([autotools])
X
AC_CONFIG_SUBDIRS([subpkg])
X
AC_OUTPUT([Makefile])
SHAR_EOF
  (set 20 03 02 02 11 40 48 'toppkg/configure.ac'; eval "$shar_touch") &&
  chmod 0644 'toppkg/configure.ac' ||
  $echo 'restore of' 'toppkg/configure.ac' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'toppkg/configure.ac:' 'MD5 check failed'
b4d7908a099179d1eb21e0d091c8280f  toppkg/configure.ac
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'toppkg/configure.ac'`"
    test 236 -eq "$shar_count" ||
    $echo 'toppkg/configure.ac:' 'original size' '236,' 'current size'
"$shar_count!"
  fi
fi
# ============= toppkg/Makefile.am ==============
if test -f 'toppkg/Makefile.am' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'toppkg/Makefile.am' '(file already exists)'
else
  $echo 'x -' extracting 'toppkg/Makefile.am' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'toppkg/Makefile.am' &&
## Process this file with automake to produce Makefile.in
X
X
SUBDIRS = . @subdirs@
X
X
#bin_SCRIPTS = CLHEP-config
X~
SHAR_EOF
  (set 20 03 02 02 06 51 48 'toppkg/Makefile.am'; eval "$shar_touch") &&
  chmod 0644 'toppkg/Makefile.am' ||
  $echo 'restore of' 'toppkg/Makefile.am' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'toppkg/Makefile.am:' 'MD5 check failed'
c082a0972e1ea4dac7a2ee912c229181  toppkg/Makefile.am
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'toppkg/Makefile.am'`"
    test 114 -eq "$shar_count" ||
    $echo 'toppkg/Makefile.am:' 'original size' '114,' 'current size'
"$shar_count!"
  fi
fi
# ============= toppkg/subpkg/configure.ac ==============
if test ! -d 'toppkg/subpkg'; then
  $echo 'x -' 'creating directory' 'toppkg/subpkg'
  mkdir 'toppkg/subpkg'
fi
if test -f 'toppkg/subpkg/configure.ac' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'toppkg/subpkg/configure.ac' '(file already exists)'
else
  $echo 'x -' extracting 'toppkg/subpkg/configure.ac' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'toppkg/subpkg/configure.ac' &&
AC_PREREQ(2.57)
AC_INIT(auto_top, 0.0, address@hidden)
X
AM_INIT_AUTOMAKE(1.7 foreign)
X
AC_CONFIG_HEADERS([defs.h])
X
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([../autotools])
X
AC_OUTPUT([Makefile] address@hidden@-config.sh:pkg-config.ac])
SHAR_EOF
  (set 20 03 02 02 11 39 34 'toppkg/subpkg/configure.ac'; eval
"$shar_touch") &&
  chmod 0644 'toppkg/subpkg/configure.ac' ||
  $echo 'restore of' 'toppkg/subpkg/configure.ac' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'toppkg/subpkg/configure.ac:' 'MD5 check failed'
eea91a65dd310d070c6b2e32e949c6aa  toppkg/subpkg/configure.ac
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c <
'toppkg/subpkg/configure.ac'`"
    test 254 -eq "$shar_count" ||
    $echo 'toppkg/subpkg/configure.ac:' 'original size' '254,' 'current
size' "$shar_count!"
  fi
fi
# ============= toppkg/subpkg/Makefile.am ==============
if test -f 'toppkg/subpkg/Makefile.am' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'toppkg/subpkg/Makefile.am' '(file already exists)'
else
  $echo 'x -' extracting 'toppkg/subpkg/Makefile.am' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'toppkg/subpkg/Makefile.am' &&
## Process this file with automake to produce Makefile.in
X
X
bin_SCRIPTS = @address@hidden
X~
SHAR_EOF
  (set 20 03 02 02 06 56 34 'toppkg/subpkg/Makefile.am'; eval
"$shar_touch") &&
  chmod 0644 'toppkg/subpkg/Makefile.am' ||
  $echo 'restore of' 'toppkg/subpkg/Makefile.am' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'toppkg/subpkg/Makefile.am:' 'MD5 check failed'
44b60275b4893c8795982ea6d44e5396  toppkg/subpkg/Makefile.am
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c <
'toppkg/subpkg/Makefile.am'`"
    test 104 -eq "$shar_count" ||
    $echo 'toppkg/subpkg/Makefile.am:' 'original size' '104,' 'current
size' "$shar_count!"
  fi
fi
# ============= toppkg/subpkg/pkg-config.ac ==============
if test -f 'toppkg/subpkg/pkg-config.ac' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'toppkg/subpkg/pkg-config.ac' '(file already
exists)'
else
  $echo 'x -' extracting 'toppkg/subpkg/pkg-config.ac' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'toppkg/subpkg/pkg-config.ac' &&
#! /bin/sh
# @configure_input@
X
usage()
{
X  cat >2 <<EOF
Usage: @PACKAGE_TARNAME@ [OPTION] ...
X
Known values for OPTION are:
X
X  --cppflags    print pre-processor flags
X  --cxx         print compilation command
X  --cxxflags    print C++ compiler flags
X  --help        display this help and exit
X  --ldflags     print linker flags
X  --libs        print libraries to link against
X  --prefix      show installation prefix
X  --version     output version information
X
EOF
X  exit $1
}  # usage
X
X
if test $# -eq 0; then
X  usage 1
fi
X
while test $# -gt 0; do
X  case "$1" in
X  --cppflags) echo address@hidden@ @CPPFLAGS@   ;;
X  --cxx     ) echo @CXX@                       ;;
X  --cxxflags) echo @CXXFLAGS@                  ;;
X  --help    ) usage 0                          ;;
X  --ldflags ) echo @LDFLAGS@                   ;;
X  --libs    ) echo @LIBS@                      ;;
X  --prefix  ) echo @prefix@                    ;;
X  --version ) echo @PACKAGE@ @VERSION@; exit 0 ;;
X  *         ) usage 1                          ;;
X  esac
X  shift
done # while
X
Xexit 0
SHAR_EOF
  (set 20 03 02 02 06 16 53 'toppkg/subpkg/pkg-config.ac'; eval
"$shar_touch") &&
  chmod 0755 'toppkg/subpkg/pkg-config.ac' ||
  $echo 'restore of' 'toppkg/subpkg/pkg-config.ac' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'toppkg/subpkg/pkg-config.ac:' 'MD5 check failed'
12f95eb38459c43259b37391d74d5396  toppkg/subpkg/pkg-config.ac
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c <
'toppkg/subpkg/pkg-config.ac'`"
    test 1051 -eq "$shar_count" ||
    $echo 'toppkg/subpkg/pkg-config.ac:' 'original size' '1051,' 'current
size' "$shar_count!"
  fi
fi
rm -fr _sh01548
exit 0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]