src/test/resources/golden-sample/configure

changeset 47
78ee95836412
parent 39
3ca85da78515
child 49
68cc8e282a26
equal deleted inserted replaced
46:096f3105b3b1 47:78ee95836412
29 fi 29 fi
30 touch "$TEMP_DIR/options" 30 touch "$TEMP_DIR/options"
31 touch "$TEMP_DIR/features" 31 touch "$TEMP_DIR/features"
32 32
33 # features 33 # features
34 FEATURE_PG=auto
34 35
35 # help text 36 # help text
36 printhelp() 37 printhelp()
37 { 38 {
38 echo "Usage: $0 [OPTIONS]..." 39 echo "Usage: $0 [OPTIONS]..."
55 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 56 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
56 --infodir=DIR info documentation [DATAROOTDIR/info] 57 --infodir=DIR info documentation [DATAROOTDIR/info]
57 --mandir=DIR man documentation [DATAROOTDIR/man] 58 --mandir=DIR man documentation [DATAROOTDIR/man]
58 59
59 Optional Features: 60 Optional Features:
60 --enable-pg 61 --disable-pg
61 62
62 __EOF__ 63 __EOF__
63 } 64 }
64 65
65 # 66 #
242 while true 243 while true
243 do 244 do
244 if [ -z "$PKG_CONFIG" ]; then 245 if [ -z "$PKG_CONFIG" ]; then
245 break 246 break
246 fi 247 fi
247 $PKG_CONFIG libpq 248 $PKG_CONFIG libpqx
248 if [ $? -ne 0 ] ; then 249 if [ $? -ne 0 ] ; then
249 break 250 break
250 fi 251 fi
251 TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags libpq`" 252 TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags libpq`"
252 TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs libpq`" 253 TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs libpq`"
398 if [ $? -ne 0 ]; then 399 if [ $? -ne 0 ]; then
399 # "auto" features can fail and are just disabled in this case 400 # "auto" features can fail and are just disabled in this case
400 if [ "$FEATURE_PG" != "auto" ]; then 401 if [ "$FEATURE_PG" != "auto" ]; then
401 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED libpq " 402 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED libpq "
402 ERROR=1 403 ERROR=1
404 else
405 unset FEATURE_PG
403 fi 406 fi
404 fi 407 fi
405 fi 408 fi
406 409
407 410
427 echo "configure finished" 430 echo "configure finished"
428 echo 431 echo
429 echo "Build Config:" 432 echo "Build Config:"
430 echo " PREFIX: $PREFIX" 433 echo " PREFIX: $PREFIX"
431 echo " TOOLCHAIN: $TOOLCHAIN_NAME" 434 echo " TOOLCHAIN: $TOOLCHAIN_NAME"
435 echo "Features:"
436 if [ -n "$FEATURE_PG" ]; then
437 echo " pg: on"
438 else
439 echo " pg: off"
440 fi
432 echo 441 echo
433 cat "$TEMP_DIR/config.mk" "$TEMP_DIR/make.mk" > config.mk 442 cat "$TEMP_DIR/config.mk" "$TEMP_DIR/make.mk" > config.mk
434 rm -Rf "$TEMP_DIR" 443 rm -Rf "$TEMP_DIR"
435 444
436 445

mercurial