LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 808|回复: 8

anjuta 1.2.2 中的 configure 怎么精减啊

[复制链接]
发表于 2004-12-3 20:02:37 | 显示全部楼层 |阅读模式
我不想让他检查 c++ 等等除了  c 和 gtk+ 以外还支持的语言,什么的,
还有想让它编译好的文件和文档,程序什么的都放到 ~/anjuta 目录中。
方便进一查看。可是这个文件我不会改啊。看不懂的说,807KB 多。上传不了。

如此段:有类C代码,有 shell 代码

  1.     # It seems that -bexpall does not export symbols beginning with
  2.     # underscore (_), so it is better to generate a list of symbols to export.
  3.     always_export_symbols_CXX=yes
  4.     if test "$aix_use_runtimelinking" = yes; then
  5.       # Warning - without using the other runtime loading flags (-brtl),
  6.       # -berok will link without error, but may produce a broken library.
  7.       allow_undefined_flag_CXX='-berok'
  8.       # Determine the default libpath from the value encoded in an empty executable.
  9.       cat >conftest.$ac_ext <<_ACEOF
  10. #line $LINENO "configure"
  11. /* confdefs.h.  */
  12. _ACEOF
  13. cat confdefs.h >>conftest.$ac_ext
  14. cat >>conftest.$ac_ext <<_ACEOF
  15. /* end confdefs.h.  */

  16. int
  17. main ()
  18. {

  19.   ;
  20.   return 0;
  21. }
  22. _ACEOF
  23. rm -f conftest.$ac_objext conftest$ac_exeext
  24. if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
  25.   (eval $ac_link) 2>&5
  26.   ac_status=$?
  27.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28.   (exit $ac_status); } &&
  29.          { ac_try='test -s conftest$ac_exeext'
  30.   { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
  31.   (eval $ac_try) 2>&5
  32.   ac_status=$?
  33.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34.   (exit $ac_status); }; }; then

  35. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  36. }'`
  37. # Check for a 64-bit object if we didn't find anything.
  38. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  39. }'`; fi
  40. else
  41.   echo "$as_me: failed program was:" >&5
复制代码


此文件我已经上传:
http://211.92.88.40/~wide288/anjuta/configure
 楼主| 发表于 2004-12-3 20:30:47 | 显示全部楼层

anjuta 1.2.2 源代码解开,根目录下文件名帮我分析一下大体作用

我可以改那个文件或写什么文件,改变编译内容。只编译与程序和C 和GTK+ 有关的内容,不要C++ java 等什么的东西。

about-nls
acinclude.m4
aclocal.m4
anjuta.desktop.in.in
anjuta_dialogs_strings.c
anjuta.glade
anjuta.prj
anjuta.spec
anjuta.spec.in
authors
autogen.sh
changelog
config.guess
config.h.in
config.log
config.sub
configure
configure.in
copying
data/
doc/
future
gdl/
global-tags/
install
install-sh
intltool-extract.in
intltool-merge.in
intltool-update.in
launcher/
ltmain.sh
makefile.am
makefile.in
manuals/
missing
mkinstalldirs
news
pixmaps/
plugins/
po/
printing/
readme
scintilla/
scripts/
setup-gettext
src/
stamp-h.in
tagmanager
todo
widges/
 楼主| 发表于 2004-12-3 21:21:44 | 显示全部楼层
configure --help

`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']


Installation directories:
  --prefix=PREFIX         install architecture-independent(结构不受约束) files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent(结构受约束) files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-debug           Enable debug messages
  --enable-gprof           Enable profiling with gprof
  --enable-final           Build release executables (GCC only)
  --enable-optimize           Enable stripped and full optimization
  --enable-shared[=PKGS]
                          build shared libraries [default=yes]
  --enable-static[=PKGS]
                          build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-rpath         do not hardcode runtime library paths

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pref-suffix=VALUE              Suffix to add to user preferences dir.
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-tags[=TAGS]
                          include additional configurations [automatic]
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  F77         Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
发表于 2004-12-3 22:54:41 | 显示全部楼层
configure是用configure.in生成的。没有必要直接修改它。
 楼主| 发表于 2004-12-3 23:36:41 | 显示全部楼层
那 configure.in 是谁生成的啊?
发表于 2004-12-4 03:13:40 | 显示全部楼层
最好请斑竹讲一下 autoscan, autoconf, aclocal, automake 到底是怎么用的?到底是由哪个文件生成哪个文件?
我只知 automake 由Makefile.am 生成 Makefile,autoconf 由 configure.in 生成 configure.
发表于 2004-12-4 15:56:11 | 显示全部楼层
先看看置顶的贴子,建立基本概念。然后再理解这个例子:
http://bbs.chinaunix.net/forum/v ... 3&show_type=new
 楼主| 发表于 2004-12-5 18:37:20 | 显示全部楼层
嗯,看了 kj501 兄写的东西,很是简单易懂。但是有没有书来介绍讲解
怎样去写 configure.in 和 makefile.am 文件啊?
复杂的例子中用到的,(不知道是应叫选项,还是宏,都是什么意思啊?)
或者网上有英文版的书?名字?
谢谢了。
发表于 2004-12-5 20:39:59 | 显示全部楼层
我有电子书,不过是英文的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表