Changeset 4966712a
- Timestamp:
- 2015-07-29T22:43:15Z (9 years ago)
- Branches:
- master
- Children:
- adec749
- Parents:
- 24de9fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r24de9fa r4966712a 51 51 pie=1 52 52 53 arch= `uname -s`54 cpu= `uname -m`53 arch=$(uname -s) 54 cpu=$(uname -m) 55 55 56 56 GLIB_MIN_VERSION=2.16 … … 103 103 104 104 while [ -n "$1" ]; do 105 e=" `expr "X$1" : 'X--\(.*=.*\)'`"105 e="$(expr "X$1" : 'X--\(.*=.*\)')" 106 106 if [ -z "$e" ]; then 107 107 cat<<EOF … … 157 157 158 158 # Expand $prefix and get rid of double slashes 159 bindir= `eval echo "$bindir/" | sed 's/\/\{1,\}/\//g'`160 sbindir= `eval echo "$sbindir/" | sed 's/\/\{1,\}/\//g'`161 etcdir= `eval echo "$etcdir/" | sed 's/\/\{1,\}/\//g'`162 mandir= `eval echo "$mandir/" | sed 's/\/\{1,\}/\//g'`163 datadir= `eval echo "$datadir/" | sed 's/\/\{1,\}/\//g'`164 config= `eval echo "$config/" | sed 's/\/\{1,\}/\//g'`165 plugindir= `eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'`166 includedir= `eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g'`167 libevent= `eval echo "$libevent"/ | sed 's/\/\{1,\}/\//g'`168 169 pidfile= `eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'`170 ipcsocket= `eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'`171 pcdir= `eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'`159 bindir=$(eval echo "$bindir/" | sed 's/\/\{1,\}/\//g') 160 sbindir=$(eval echo "$sbindir/" | sed 's/\/\{1,\}/\//g') 161 etcdir=$(eval echo "$etcdir/" | sed 's/\/\{1,\}/\//g') 162 mandir=$(eval echo "$mandir/" | sed 's/\/\{1,\}/\//g') 163 datadir=$(eval echo "$datadir/" | sed 's/\/\{1,\}/\//g') 164 config=$(eval echo "$config/" | sed 's/\/\{1,\}/\//g') 165 plugindir=$(eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g') 166 includedir=$(eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g') 167 libevent=$(eval echo "$libevent"/ | sed 's/\/\{1,\}/\//g') 168 169 pidfile=$(eval echo "$pidfile" | sed 's/\/\{1,\}/\//g') 170 ipcsocket=$(eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g') 171 pcdir=$(eval echo "$pcdir" | sed 's/\/\{1,\}/\//g') 172 172 173 173 protocols_mods="" … … 308 308 if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then 309 309 cat<<EOF >>Makefile.settings 310 EFLAGS+= `$PKG_CONFIG --libs glib-2.0 gmodule-2.0`311 CFLAGS+= `$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`310 EFLAGS+=$($PKG_CONFIG --libs glib-2.0 gmodule-2.0) 311 CFLAGS+=$($PKG_CONFIG --cflags glib-2.0 gmodule-2.0) 312 312 EOF 313 313 else 314 314 echo 315 echo 'Found glib2 ' `$PKG_CONFIG glib-2.0 --modversion`', but version '$GLIB_MIN_VERSION' or newer is required.'315 echo 'Found glib2 '$($PKG_CONFIG glib-2.0 --modversion)', but version '$GLIB_MIN_VERSION' or newer is required.' 316 316 exit 1 317 317 fi … … 349 349 if $PKG_CONFIG --exists gnutls; then 350 350 cat <<EOF >>Makefile.settings 351 EFLAGS+= `$PKG_CONFIG --libs gnutls` `libgcrypt-config --libs`352 CFLAGS+= `$PKG_CONFIG --cflags gnutls` `libgcrypt-config --cflags`351 EFLAGS+=$($PKG_CONFIG --libs gnutls) $(libgcrypt-config --libs) 352 CFLAGS+=$($PKG_CONFIG --cflags gnutls) $(libgcrypt-config --cflags) 353 353 EOF 354 354 ssl=gnutls … … 360 360 elif libgnutls-config --version > /dev/null 2> /dev/null; then 361 361 cat <<EOF >>Makefile.settings 362 EFLAGS+= `libgnutls-config --libs` `libgcrypt-config --libs`363 CFLAGS+= `libgnutls-config --cflags` `libgcrypt-config --cflags`362 EFLAGS+=$(libgnutls-config --libs) $(libgcrypt-config --libs) 363 CFLAGS+=$(libgnutls-config --cflags) $(libgcrypt-config --cflags) 364 364 EOF 365 365 … … 375 375 if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG nss; then 376 376 cat<<EOF >>Makefile.settings 377 EFLAGS+= `$PKG_CONFIG --libs nss`378 CFLAGS+= `$PKG_CONFIG --cflags nss`377 EFLAGS+=$($PKG_CONFIG --libs nss) 378 CFLAGS+=$($PKG_CONFIG --cflags nss) 379 379 EOF 380 380 … … 621 621 if [ -z "$systemdsystemunitdir" ]; then 622 622 if $PKG_CONFIG --exists systemd; then 623 systemdsystemunitdir= `$PKG_CONFIG --variable=systemdsystemunitdir systemd`623 systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) 624 624 fi 625 625 fi
Note: See TracChangeset
for help on using the changeset viewer.