460 dependency_openssl |
465 dependency_openssl |
461 if [ $? -ne 0 ]; then |
466 if [ $? -ne 0 ]; then |
462 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED openssl " |
467 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED openssl " |
463 ERROR=1 |
468 ERROR=1 |
464 fi |
469 fi |
|
470 |
|
471 # Features |
|
472 |
|
473 |
|
474 echo >> $TEMP_DIR/config.mk |
|
475 if [ ! -z "${CFLAGS}" ]; then |
|
476 echo "CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk |
|
477 fi |
|
478 if [ ! -z "${CXXFLAGS}" ]; then |
|
479 echo "CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk |
|
480 fi |
|
481 if [ ! -z "${LDFLAGS}" ]; then |
|
482 echo "LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk |
|
483 fi |
|
484 |
|
485 # Target: postgresql |
|
486 CFLAGS= |
|
487 LDFLAGS= |
|
488 CXXFLAGS= |
|
489 |
465 |
490 |
466 # Features |
491 # Features |
467 if [ ! -z "$FEATURE_POSTGRESQL" ]; then |
492 if [ ! -z "$FEATURE_POSTGRESQL" ]; then |
468 # check dependency |
493 # check dependency |
469 dependency_libpq |
494 dependency_libpq |
477 fi |
502 fi |
478 |
503 |
479 |
504 |
480 echo >> $TEMP_DIR/config.mk |
505 echo >> $TEMP_DIR/config.mk |
481 if [ ! -z "${CFLAGS}" ]; then |
506 if [ ! -z "${CFLAGS}" ]; then |
482 echo "CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk |
507 echo "POSTGRESQL_CFLAGS += $CFLAGS" >> $TEMP_DIR/config.mk |
483 fi |
508 fi |
484 if [ ! -z "${CXXFLAGS}" ]; then |
509 if [ ! -z "${CXXFLAGS}" ]; then |
485 echo "CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk |
510 echo "POSTGRESQL_CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk |
486 fi |
511 fi |
487 if [ ! -z "${LDFLAGS}" ]; then |
512 if [ ! -z "${LDFLAGS}" ]; then |
488 echo "LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk |
513 echo "POSTGRESQL_LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk |
489 fi |
514 fi |
490 |
515 |
491 if [ $ERROR -ne 0 ]; then |
516 if [ $ERROR -ne 0 ]; then |
492 echo |
517 echo |
493 echo "Error: Unresolved dependencies" |
518 echo "Error: Unresolved dependencies" |