• ベストアンサー

confiureのオプションについて

configureのオプションでgcc-2.95を指定してconfigureしたいのですが、 ./configure --with-CC=gcc-2.95 だけで良いのでしょうか?他のg++やcppとか他にも指定しなければならないものがあるのでしょうか? ちなみに./configureだけだと勝手にバージョンの新しいgcc(4.2あたり)が使われてしまいます。g++などに関しても同様です。

みんなが選んだベストアンサー

  • ベストアンサー
  • f272
  • ベストアンサー率46% (8653/18508)
回答No.1

./configure --help で確認してください。どのようなオプションがあるかはアプリケーションごとに大きく違います。

yamada11
質問者

補足

Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print `checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --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 Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR --enable and --with options recognized: --with-gdbm use GDBM library (data base manager) [default yes] --with-bdbm use Berkeley DB library (data base manager) [default no] --with-regex use Regex library [default yes] --with-assoc use an assoc library [default yes] --with-tnt use TNT parser [default yes] --with-itsdb use a [incr tsdb()] interface [default no] --enable-prof enable profiling (no or 0-5) [default 1] --enable-passive-prof enable passive profiling [default yes] --enable-memchk enable memory checking [default yes] --enable-xconstr enable complex constraints [default yes] --enable-tthash enable type table hash [default yes] --enable-rulehash enable TNT rule table hash [default no] --enable-hashprof enable hash profiling [default no] --enable-unifyprof enable unification profiling [default no] --enable-copyprof enable copying profiling [default no] --enable-unify enable compiled unification [default yes] --enable-blockcopy enable block copying [default yes] --enable-extinst enable extended instructions [default yes] --enable-debug turn on debugging [default no] --enable-debugmem turn on debugging memory [default no] --enable-debuglabel I don't know... [default yes] --enable-string-gc enable string garbage collection [default yes] --enable-assert enable assertions [default no] ./configure --helpの結果です。 何故か--with-CCがありません・・・。

すると、全ての回答が全文表示されます。

その他の回答 (1)

  • Tacosan
  • ベストアンサー率23% (3656/15482)
回答No.2

なんで今さら gcc2.95 なのかは知りませんが, CC=gcc-2.95 ./configure (あるいは csh 系なら env CC=gcc-2.95 ./configure) はどうだろう. 多くの場合環境変数 CC が設定されていれば configure はそれをコンパイラとして使うようにするはずだと思う.

すると、全ての回答が全文表示されます。

関連するQ&A