248 if [ $? -ne 0 ] ; then |
248 if [ $? -ne 0 ] ; then |
249 break |
249 break |
250 fi |
250 fi |
251 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libpq`" |
251 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libpq`" |
252 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs libpq`" |
252 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs libpq`" |
253 CFLAGS="$CFLAGS -DENABLE_POSTGRESQL" |
|
254 cat >> $TEMP_DIR/make.mk << __EOF__ |
253 cat >> $TEMP_DIR/make.mk << __EOF__ |
255 # Dependency: libpq |
254 # Dependency: libpq |
|
255 CFLAGS += -DENABLE_POSTGRESQL |
256 PLUGINS += postgresql |
256 PLUGINS += postgresql |
|
257 TEST_PLUGIN_LDFLAGS += -lwspgtest |
257 |
258 |
258 __EOF__ |
259 __EOF__ |
259 echo yes |
260 echo yes |
260 return 0 |
261 return 0 |
261 done |
262 done |