Software /
code /
prosody
Comparison
configure @ 8284:22460456c3a3
configure: Remove unused OS and architecture detection that would most likely fail on systems without gcc
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 28 Sep 2017 12:30:43 +0200 |
parent | 8283:330a8627e41d |
child | 8448:f516a52f19e8 |
comparison
equal
deleted
inserted
replaced
8283:330a8627e41d | 8284:22460456c3a3 |
---|---|
504 echo "lua.h version mismatch (interpreter: $LUA_VERSION; lua.h: $header_version)." | 504 echo "lua.h version mismatch (interpreter: $LUA_VERSION; lua.h: $header_version)." |
505 die "You may want to use the flag --with-lua or --with-lua-include. See --help." | 505 die "You may want to use the flag --with-lua or --with-lua-include. See --help." |
506 fi | 506 fi |
507 fi | 507 fi |
508 | 508 |
509 echo_n "Configuring for system... " | |
510 if uname -s | |
511 then | |
512 UNAME_S=`uname -s` | |
513 else | |
514 die "Could not determine operating system. 'uname -s' failed." | |
515 fi | |
516 echo_n "Configuring for architecture... " | |
517 if uname -m | |
518 then | |
519 UNAME_M=`uname -m` | |
520 else | |
521 die "Could not determine processor architecture. 'uname -m' failed." | |
522 fi | |
523 | |
524 if [ "$UNAME_S" = Linux ] | |
525 then | |
526 GCC_ARCH=`gcc -print-multiarch 2>/dev/null` | |
527 if [ -n "$GCC_ARCH" -a -d "/usr/lib/$GCC_ARCH" ] | |
528 then | |
529 MULTIARCH_SUBDIR="lib/$GCC_ARCH" | |
530 elif [ -d "/usr/lib64" ] | |
531 then | |
532 # Useful for Fedora systems | |
533 MULTIARCH_SUBDIR="lib64" | |
534 fi | |
535 fi | |
536 | |
537 if [ "$IDN_LIBRARY" = "icu" ] | 509 if [ "$IDN_LIBRARY" = "icu" ] |
538 then | 510 then |
539 IDNA_LIBS="$ICU_FLAGS" | 511 IDNA_LIBS="$ICU_FLAGS" |
540 CFLAGS="$CFLAGS -DUSE_STRINGPREP_ICU" | 512 CFLAGS="$CFLAGS -DUSE_STRINGPREP_ICU" |
541 fi | 513 fi |
577 LUA_DIR=$LUA_DIR | 549 LUA_DIR=$LUA_DIR |
578 LUA_DIR_SET=$LUA_DIR_SET | 550 LUA_DIR_SET=$LUA_DIR_SET |
579 LUA_INCDIR=$LUA_INCDIR | 551 LUA_INCDIR=$LUA_INCDIR |
580 LUA_LIBDIR=$LUA_LIBDIR | 552 LUA_LIBDIR=$LUA_LIBDIR |
581 LUA_BINDIR=$LUA_BINDIR | 553 LUA_BINDIR=$LUA_BINDIR |
582 MULTIARCH_SUBDIR=$MULTIARCH_SUBDIR | |
583 IDN_LIB=$IDN_LIB | 554 IDN_LIB=$IDN_LIB |
584 IDNA_LIBS=$IDNA_LIBS | 555 IDNA_LIBS=$IDNA_LIBS |
585 OPENSSL_LIBS=$OPENSSL_LIBS | 556 OPENSSL_LIBS=$OPENSSL_LIBS |
586 CFLAGS=$CFLAGS | 557 CFLAGS=$CFLAGS |
587 LDFLAGS=$LDFLAGS | 558 LDFLAGS=$LDFLAGS |