- Timestamp:
- Sep 24, 2010, 3:27:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/configure.ac
r15 r28 182 182 183 183 AC_ARG_WITH([php], 184 [AS_HELP_STRING([--with-php=PATH], [specify an alternative directory for php installation or --with-php=no to disable php support])], 185 [PHP_PATH="$withval"], [PHP_PATH=""]) 186 if test "$PHP_PATH" != "no"; 187 then 184 [AS_HELP_STRING([--with-php=PATH], [To enabled php support or specify an alternative directory for php installation, disabled by default])], 185 [PHP_PATH="$withval"; PHP_ENABLED="-DUSE_PHP"], [PHP_ENABLED=""]) 186 187 188 if test -z "$PHP_ENABLED" 189 then 190 PHP_FILE="" 191 else 188 192 PHPCONFIG="$PHP_PATH/bin/php-config" 189 PHP_ENABLED="-DUSE_PHP"190 193 PHP_FILE="service_internal_php.o" 191 if test "x$PHPCONFIG" = "x"; 192 then 193 # PHP was not specified, so search within the current path 194 AC_PATH_PROG([PHPCONFIG], [php-config]) 195 196 # If we couldn't find php-config, display a warning 197 if test "x$PHPCONFIG" = "x"; 198 then 199 AC_MSG_ERROR([could not find php-config from libphp within the current path. You may need to try re-running configure with a --with-php parameter.]) 200 fi 201 else 202 # PHP was specified; display a message to the user 203 if test "x$PHP" = "xyes"; 204 then 205 AC_MSG_ERROR([you must specify a parameter to --with-php, e.g. --with-php=/path/to/php]) 206 else 207 if test -f $PHPCONFIG; 208 then 209 AC_MSG_RESULT([Using user-specified php-config file: $PHPCONFIG]) 210 else 211 AC_MSG_ERROR([the user-specified php-config file $PHPCONFIG does not exist]) 212 fi 213 fi 214 fi 194 if test "$PHP_PATH" = "yes" 195 then 196 # PHP was not specified, so search within the current path 197 AC_PATH_PROG([PHPCONFIG], [php-config]) 198 else 199 PHPCONFIG="$PHP_PATH/bin/php-config" 200 fi 201 215 202 # Extract the linker and include flags 216 203 PHP_LDFLAGS="-L/`$PHPCONFIG --prefix`/lib -lphp5" … … 230 217 AC_SUBST([PHP_CPPFLAGS]) 231 218 AC_SUBST([PHP_LDFLAGS]) 232 else233 PHP_ENABLED=""234 PHP_FILE=""235 219 fi 236 220 … … 244 228 245 229 246 247 248 230 AC_ARG_WITH([perl], 249 [AS_HELP_STRING([--with-perl=PATH], [specify an alternative directory for perl installation or --with-perl=no to disable perl support])], 250 [PERL_PATH="$withval"], [PERL_PATH=""]) 251 if test "$PERL_PATH" != "no"; 252 then 253 if test "x$PERL_PATH" = "xyes"; 254 then 231 [AS_HELP_STRING([--with-perl=PATH], [To enabled perl support or specify an alternative directory for perl installation, disabled by default])], 232 [PERL_PATH="$withval"; PERL_ENABLED="-DUSE_PERL"], [PERL_ENABLED=""]) 233 234 235 if test -z "$PERL_ENABLED" 236 then 237 PERL_FILE="" 238 else 239 PERLCONFIG="$PERL_PATH/bin/perl" 240 PHP_FILE="service_internal_perl.o" 241 if test "$PERL_PATH" = "yes" 242 then 243 # PHP was not specified, so search within the current path 255 244 AC_PATH_PROG([PERLCONFIG], [perl]) 256 245 else … … 258 247 fi 259 248 260 if test -f $PERLCONFIG;261 then262 AC_MSG_RESULT([Using user-specified perl file: $PERLCONFIG])263 else264 AC_MSG_ERROR([the user-specified perl file $PERLCONFIG does not exist])265 fi266 267 PERL_ENABLED="-DUSE_PERL"268 PERL_FILE="service_internal_perl.o"269 270 249 # Extract the linker and include flags 271 250 PERL_LDFLAGS=`$PERLCONFIG -MExtUtils::Embed -e ldopts` … … 280 259 AC_SUBST([PERL_CPPFLAGS]) 281 260 AC_SUBST([PERL_LDFLAGS]) 282 else283 PERL_ENABLED=""284 PERL_FILE=""285 261 fi 286 262
Note: See TracChangeset
for help on using the changeset viewer.