helloworld_cc-0.5.tar.gz
1. Following patch is my code change
--- test/helloworld_cc-0.5/configure 2010-05-10 23:16:53.000000000 +0800
+++ helloworld_cc-0.51/configure 2014-01-25 08:42:56.448166263 +0800
@@ -625,6 +625,7 @@
datarootdir
libexecdir
sbindir
+happy
bindir
program_transform_name
prefix
@@ -682,6 +683,7 @@
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
+happy='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
@@ -728,6 +730,11 @@
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir=$ac_optarg ;;
+ -happy | --happy )
+ ac_prev=happy ;;
+ -happy=* | --happy=* )
+ happy=$ac_optarg ;;
+
-build | --build | --buil | --bui | --bu)
ac_prev=build_alias ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
@@ -1074,7 +1081,7 @@
fi
# Check all directory arguments for consistency.
-for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+for ac_var in exec_prefix prefix bindir happy sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
libdir localedir mandir
@@ -1227,6 +1234,7 @@
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
+ --happy=DIR happy
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--- test/helloworld_cc-0.5/Makefile.in 2010-05-10 23:16:54.000000000 +0800
+++ helloworld_cc-0.51/Makefile.in 2014-01-25 08:56:20.540132447 +0800
@@ -137,6 +137,7 @@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
+happy = @happy@
build_alias = @build_alias@
builddir = @builddir@
datadir = @datadir@
2. Patch the code change, and type ./configure.
vim Makefile will see the parameter about happy.
configure to make Makefile just need 5 file
config.h.in
configure
configure.ac
install-sh
Makefile.in
Reference:
0 意見:
張貼留言