【问题标题】:With a ./configure (php) what is the difference between --disable-[name] and --without-[name]?使用 ./configure (php) --disable-[name] 和 --without-[name] 有什么区别?
【发布时间】:2010-04-07 16:42:47
【问题描述】:

我想避免使用 fileinfo、ereg 和 parch 编译 php。配置 --disable 和 --without 有什么区别?

【问题讨论】:

    标签: php autoconf configure


    【解决方案1】:

    根据the manual of Autoconf,更具体地说,是以下两个部分:

    如果软件包需要或可以选择使用已安装的其他软件,则应使用--with

    如果软件包提供某些功能,则应使用--enable,而不依赖于任何其他外部软件。

    基本上,我想这意味着--with 应该用于依赖于另一个外部库的扩展;并且--enable应该用于其他情况。

    在那之后,我想说--disable--without 只是这两者的否定形式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多