1)首先进入源码安装的目录
[root@zabbix-7-216 ~]# cd zabbix-2.4.5
2)找到一个名字叫做config.log的文件
[root@zabbix-7-216 zabbix-2.4.5]# lltotal 1608-rw-r--r--. 1 zabbix zabbix 49045 Apr 22 2015 aclocal.m4-rw-r--r--. 1 zabbix zabbix 98 Apr 22 2015 AUTHORSdrwxr-xr-x. 4 zabbix zabbix 32 Apr 22 2015 bindrwxr-xr-x. 4 zabbix zabbix 32 Apr 22 2015 build-rw-r--r--. 1 zabbix zabbix 595351 Apr 22 2015 ChangeLog-rwxr-xr-x. 1 zabbix zabbix 7333 Jan 3 2014 compiledrwxr-xr-x. 3 zabbix zabbix 159 Apr 22 2015 conf-rwxr-xr-x. 1 zabbix zabbix 45297 Aug 11 2013 config.guess-rw-r--r--. 1 root root 280209 Sep 25 2017 config.log-rwxr-xr-x. 1 root root 48047 Sep 25 2017 config.status-rwxr-xr-x. 1 zabbix zabbix 35564 Aug 11 2013 config.sub-rwxr-xr-x. 1 zabbix zabbix 355060 Apr 22 2015 configure-rw-r--r--. 1 zabbix zabbix 42447 Apr 22 2015 configure.ac-rw-r--r--. 1 zabbix zabbix 17990 Apr 22 2015 COPYINGdrwxr-xr-x. 7 zabbix zabbix 135 Sep 25 2017 database-rwxr-xr-x. 1 zabbix zabbix 23566 Jan 3 2014 depcompdrwxr-xr-x. 3 zabbix zabbix 17 Apr 22 2015 frontendsdrwxr-xr-x. 2 zabbix zabbix 4096 Sep 25 2017 include-rw-r--r--. 1 zabbix zabbix 15744 Apr 22 2015 INSTALL-rwxr-xr-x. 1 zabbix zabbix 13997 Jan 3 2014 install-shdrwxr-xr-x. 2 zabbix zabbix 4096 Apr 22 2015 m4-rw-r--r--. 1 root root 28643 Sep 25 2017 Makefile
3)用grep来过滤
[root@zabbix-7-216 zabbix-2.4.5]# grep ./configure config.log $ ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --with-net-snmp --with-java --with-libcurl --with-libxml2 --with-openipmi--enable-proxy --with-mysqlConfigured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux