config_query_option PHP5_OPTS "Enable PHP safe mode?" n \
                    "--enable-safe-mode" "--disable-safe-mode" &&

config_query_option PHP5_OPTS "Enable sockets support?" y \
                    "--enable-sockets" "--disable-sockets" &&

config_query_option PHP5_OPTS "Enable FTP support?" y \
                    "--enable-ftp" "--disable-ftp" &&

config_query_option PHP5_OPTS "Enable calendar support?" y \
                    "--enable-calendar" "--disable-calendar" &&

config_query_option PHP5_OPTS "Enable perl regular expressions?" y \
                    "--with-pcre-regex" "--without-pcre-regex" &&

config_query_option PHP5_OPTS "Enable pcntl support (CLI/CGI only)" n \
                    "--enable-pcntl" "--disable-pcntl" &&

message "${MESSAGE_COLOR}Both FastCGI and CGI can be enabled at the same time${DEFAULT_COLOR}" &&

config_query_option PHP5_OPTS "Enable FastCGI SAPI?" n \
                    "--enable-fastcgi" "--disable-fastcgi" &&

config_query_option PHP5_OPTS "Enable CGI SAPI?" y \
                    "--enable-cgi" "--disable-cgi" &&

config_query_option PHP5_OPTS "Enable multibyte support?"  n \
                    "--enable-mbstring" "--disable-mbstring" &&

config_query_option PHP5_OPTS "Enable the PDO driver?" y \
                    "--enable-pdo" "--disable-pdo" &&

config_query_option PHP5_OPTS "Enable shmop support?" n \
                    "--enable-shmop" "--disable-shmop" &&

config_query_option PHP5_OPTS "Enable soap support?" n \
                    "--enable-soap" "--disable-soap" &&

config_query_option PHP5_OPTS "Enable ZIP support?" n \
                    "--enable-zip" "--disable-zip" &&

config_query_option PHP5_OPTS "Enable System V message queues support?" n \
                    "--enable-sysvmsg" "--disable-sysvmsg" &&

config_query_option PHP5_OPTS "Enable System V semaphore support?" n \
                    "--enable-sysvsem" "--disable-sysvsem" &&

config_query_option PHP5_OPTS "Enable System V shared memory support?" n \
                    "--enable-sysvshm" "--disable-sysvshm" &&

config_query_list PHP5_APACHE "Which Apache module to build?" \
                  none handler filter &&

config_query_list PHP5_GD "Which GD library to use?" \
                  none internal external &&

if [[ "${PHP5_GD}" != "none" ]]; then
    config_query PHP5_X11LIBS "Would you like to support XPM image files? (requires: X11-LIBS)" n
fi
