Software / code / prosody
Comparison
configure @ 2315:174b4a83f5b7
configure: Add 'linux' ostype and rename lflags to LDFLAGS to match expectations.
| author | Brian Cully <bjc@junctionnetworks.com> |
|---|---|
| date | Fri, 04 Dec 2009 02:51:03 +0000 |
| parent | 1081:d41e88b07225 |
| child | 2316:049cebba35bf |
comparison
equal
deleted
inserted
replaced
| 2314:c2e1bde4d84d | 2315:174b4a83f5b7 |
|---|---|
| 14 OPENSSL_LIB=crypto | 14 OPENSSL_LIB=crypto |
| 15 CC=gcc | 15 CC=gcc |
| 16 LD=gcc | 16 LD=gcc |
| 17 | 17 |
| 18 CFLAGS="-fPIC -Wall" | 18 CFLAGS="-fPIC -Wall" |
| 19 LFLAGS="-shared" | 19 LDFLAGS="-shared" |
| 20 | 20 |
| 21 # Help | 21 # Help |
| 22 | 22 |
| 23 show_help() { | 23 show_help() { |
| 24 cat <<EOF | 24 cat <<EOF |
| 25 Configure Prosody prior to building. | 25 Configure Prosody prior to building. |
| 26 | 26 |
| 27 --help This help. | 27 --help This help. |
| 28 --ostype=OS Use one of the OS presets. | 28 --ostype=OS Use one of the OS presets. |
| 29 May be one of: debian, macosx | 29 May be one of: debian, macosx, linux |
| 30 --prefix=DIR Prefix where Prosody should be installed. | 30 --prefix=DIR Prefix where Prosody should be installed. |
| 31 Default is $PREFIX | 31 Default is $PREFIX |
| 32 --sysconfdir=DIR Location where the config file should be installed. | 32 --sysconfdir=DIR Location where the config file should be installed. |
| 33 Default is \$PREFIX/etc/prosody | 33 Default is \$PREFIX/etc/prosody |
| 34 --datadir=DIR Location where the server data should be stored. | 34 --datadir=DIR Location where the server data should be stored. |
| 45 Default is $IDN_LIB | 45 Default is $IDN_LIB |
| 46 --with-ssl=LIB The name of the SSL to link with. | 46 --with-ssl=LIB The name of the SSL to link with. |
| 47 Default is $OPENSSL_LIB | 47 Default is $OPENSSL_LIB |
| 48 --cflags=FLAGS Flags to pass to the compiler | 48 --cflags=FLAGS Flags to pass to the compiler |
| 49 Default is $CFLAGS | 49 Default is $CFLAGS |
| 50 --lflags=FLAGS Flags to pass to the linker | 50 --ldflags=FLAGS Flags to pass to the linker |
| 51 Default is $LFLAGS | 51 Default is $LDFLAGS |
| 52 --c-compiler=CC The C compiler to use when building modules. | 52 --c-compiler=CC The C compiler to use when building modules. |
| 53 Default is $CC | 53 Default is $CC |
| 54 --linker=CC The linker to use when building modules. | 54 --linker=CC The linker to use when building modules. |
| 55 Default is $LD | 55 Default is $LD |
| 56 --require-config Will cause Prosody to refuse to run when | 56 --require-config Will cause Prosody to refuse to run when |
| 105 LUA_INCDIR="$value" | 105 LUA_INCDIR="$value" |
| 106 LUA_INCDIR_SET=yes | 106 LUA_INCDIR_SET=yes |
| 107 ;; | 107 ;; |
| 108 --with-lua-lib=*) | 108 --with-lua-lib=*) |
| 109 LUA_LIBDIR="$value" LUA_LIBDIR_SET=yes | 109 LUA_LIBDIR="$value" LUA_LIBDIR_SET=yes |
| 110 ;; | 110 ;; |
| 111 --with-idn=*) | 111 --with-idn=*) |
| 112 IDN_LIB="$value" | 112 IDN_LIB="$value" |
| 113 ;; | 113 ;; |
| 114 --with-ssl=*) | 114 --with-ssl=*) |
| 115 OPENSSL_LIB="$value" | 115 OPENSSL_LIB="$value" |
| 116 ;; | 116 ;; |
| 117 --cflags=*) | 117 --cflags=*) |
| 118 CFLAGS="$value" | 118 CFLAGS="$value" |
| 119 ;; | 119 ;; |
| 120 --lflags=*) | 120 --ldflags=*) |
| 121 LFLAGS="$value" | 121 LDFLAGS="$value" |
| 122 ;; | 122 ;; |
| 123 --c-compiler=*) | 123 --c-compiler=*) |
| 124 CC="$value" | 124 CC="$value" |
| 125 ;; | 125 ;; |
| 126 --linker=*) | 126 --linker=*) |
| 127 LD="$value" | 127 LD="$value" |
| 128 ;; | 128 ;; |
| 129 *) | 129 *) |
| 130 echo "Error: Unknown flag: $1" | 130 echo "Error: Unknown flag: $1" |
| 131 exit 1 | 131 exit 1 |
| 132 ;; | 132 ;; |
| 133 esac | 133 esac |
| 142 LUA_INCDIR=/usr/include/lua5.1; | 142 LUA_INCDIR=/usr/include/lua5.1; |
| 143 LUA_INCDIR_SET=yes | 143 LUA_INCDIR_SET=yes |
| 144 fi | 144 fi |
| 145 if [ "$OSTYPE" = "macosx" ] | 145 if [ "$OSTYPE" = "macosx" ] |
| 146 then LUA_INCDIR=/usr/local/include; | 146 then LUA_INCDIR=/usr/local/include; |
| 147 LUA_INCDIR_SET=yes | 147 LUA_INCDIR_SET=yes |
| 148 LUA_LIBDIR=/usr/local/lib | 148 LUA_LIBDIR=/usr/local/lib |
| 149 LUA_LIBDIR_SET=yes | 149 LUA_LIBDIR_SET=yes |
| 150 CFLAGS="-Wall" | 150 CFLAGS="-Wall" |
| 151 LFLAGS="-bundle -undefined dynamic_lookup" | 151 LDFLAGS="-bundle -undefined dynamic_lookup" |
| 152 fi | 152 fi |
| 153 if [ "$OSTYPE" = "linux" ] | |
| 154 then LUA_INCDIR=/usr/local/include; | |
| 155 LUA_INCDIR_SET=yet | |
| 156 LUA_LIBDIR=/usr/local/lib | |
| 157 LUA_LIBDIR_SET=yet | |
| 158 CFLAGS="-Wall -fPIC" | |
| 159 LDFLAGS="-shared" | |
| 160 fi | |
| 153 fi | 161 fi |
| 154 | 162 |
| 155 if [ "$PREFIX_SET" = "yes" -a ! "$SYSCONFDIR_SET" = "yes" ] | 163 if [ "$PREFIX_SET" = "yes" -a ! "$SYSCONFDIR_SET" = "yes" ] |
| 156 then | 164 then |
| 157 if [ "$PREFIX" = "/usr" ] | 165 if [ "$PREFIX" = "/usr" ] |
| 297 LUA_BINDIR=$LUA_BINDIR | 305 LUA_BINDIR=$LUA_BINDIR |
| 298 REQUIRE_CONFIG=$REQUIRE_CONFIG | 306 REQUIRE_CONFIG=$REQUIRE_CONFIG |
| 299 IDN_LIB=$IDN_LIB | 307 IDN_LIB=$IDN_LIB |
| 300 OPENSSL_LIB=$OPENSSL_LIB | 308 OPENSSL_LIB=$OPENSSL_LIB |
| 301 CFLAGS=$CFLAGS | 309 CFLAGS=$CFLAGS |
| 302 LFLAGS=$LFLAGS | 310 LDFLAGS=$LDFLAGS |
| 303 CC=$CC | 311 CC=$CC |
| 304 LD=$LD | 312 LD=$LD |
| 305 | 313 |
| 306 EOF | 314 EOF |
| 307 | 315 |