重要なお知らせ

「教えて! goo」は2025年9月17日(水)をもちまして、サービスを終了いたします。詳細はこちら>

電子書籍の厳選無料作品が豊富!

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

A 回答 (2件)

なんで今さら gcc2.95 なのかは知りませんが,


CC=gcc-2.95 ./configure
(あるいは csh 系なら env CC=gcc-2.95 ./configure)
はどうだろう. 多くの場合環境変数 CC が設定されていれば configure はそれをコンパイラとして使うようにするはずだと思う.
    • good
    • 0

./configure --help


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

この回答への補足

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-gdbmuse GDBM library (data base manager) [default yes]
--with-bdbmuse Berkeley DB library (data base manager) [default no]
--with-regexuse Regex library [default yes]
--with-assocuse an assoc library [default yes]
--with-tntuse TNT parser [default yes]
--with-itsdbuse a [incr tsdb()] interface [default no]
--enable-profenable profiling (no or 0-5) [default 1]
--enable-passive-profenable passive profiling [default yes]
--enable-memchkenable memory checking [default yes]
--enable-xconstrenable complex constraints [default yes]
--enable-tthashenable type table hash [default yes]
--enable-rulehashenable TNT rule table hash [default no]
--enable-hashprofenable hash profiling [default no]
--enable-unifyprofenable unification profiling [default no]
--enable-copyprofenable copying profiling [default no]
--enable-unifyenable compiled unification [default yes]
--enable-blockcopyenable block copying [default yes]
--enable-extinstenable extended instructions [default yes]
--enable-debugturn on debugging [default no]
--enable-debugmemturn on debugging memory [default no]
--enable-debuglabelI don't know... [default yes]
--enable-string-gcenable string garbage collection [default yes]
--enable-assertenable assertions [default no]


./configure --helpの結果です。
何故か--with-CCがありません・・・。

補足日時:2009/08/28 23:01
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!