prefer econf to ./configure (opts)
authorMike Frysinger <vapier@gentoo.org>
Mon, 22 Nov 2004 02:50:16 +0000 (02:50 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 22 Nov 2004 02:50:16 +0000 (02:50 +0000)
skel.ebuild

index 6bb016c9f4ee863b7e649e81343e8056ccf050bd..fe17097b38c479fe3a8d680fa1c6943272e9a773 100644 (file)
@@ -100,28 +100,24 @@ S=${WORKDIR}/${P}
 
 src_compile() {
        # Most open-source packages use GNU autoconf for configuration.
-       # You should use something similar to the following lines to
+       # The quickest (and preferred) way of running configure is:
+       econf || die "econf failed"
+       #
+       # You could use something similar to the following lines to
        # configure your package before compilation.  The "|| die" portion
        # at the end will stop the build process if the command fails.
        # You should use this at the end of critical commands in the build
        # process.  (Hint: Most commands are critical, that is, the build
        # process should abort if they aren't successful.)
-       ./configure \
-               --host=${CHOST} \
-               --prefix=/usr \
-               --infodir=/usr/share/info \
-               --mandir=/usr/share/man || die "./configure failed"
+       #./configure \
+       #       --host=${CHOST} \
+       #       --prefix=/usr \
+       #       --infodir=/usr/share/info \
+       #       --mandir=/usr/share/man || die "./configure failed"
        # Note the use of --infodir and --mandir, above. This is to make
        # this package FHS 2.2-compliant.  For more information, see
        #   http://www.pathname.com/fhs/
 
-       # Also note that it is cleaner and easier to use econf, which is the
-       # portage shortcut to the above ./configure statement:
-       #
-       # econf || die
-       # Note that econf will die on failure, but please use econf || die
-       # for consistency.
-
        # emake (previously known as pmake) is a script that calls the
        # standard GNU make with parallel building options for speedier
        # builds (especially on SMP systems).  Try emake first.  It might