"Fossies" - the Fresh Open Source Software Archive

Member "linux_logo-6.0/configure" (8 May 2020, 2161 Bytes) of package /linux/misc/linux_logo-6.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": 5.11_vs_6.0.

    1 #!/bin/sh
    2 
    3 #  This is not a real autoconf configure script.
    4 #  I will not ship a configure script that is larger than
    5 #    the generated linux_logo executable.
    6 #  This is a simple shell script that gathers the info linux_logo
    7 #    needs, and should be compatible enough.
    8 #  Tested on Linux, Irix, Solaris and FreeBSD
    9 #  - vmw
   10 
   11 
   12 usage() {
   13    echo "Usage: $0 [ --prefix=PATH ]"
   14    exit 1
   15 }
   16 
   17 while [ $# -gt 0  ]
   18 do
   19    case "${1%=*}" in
   20       -h|--help) usage;;
   21       --prefix) PREFIX="${1#*=}";;
   22    esac
   23    shift
   24 done
   25 
   26 if [ -z "$ARCH" ]; then
   27    ARCH=`uname -m`
   28 fi
   29 
   30 OS=`uname`
   31 INSTALL=`which install`
   32 
   33 if [ -z "$PREFIX" ]; then
   34    PREFIX=/usr/local
   35 fi
   36 
   37 which xgettext
   38 XGETTEXT_MISSING=$?
   39 
   40 if [ $XGETTEXT_MISSING -eq 0 ]; then
   41    XGETTEXT=xgettext
   42 fi
   43 
   44 which gcc
   45 GCC_MISSING=$?
   46 
   47 if [ $GCC_MISSING -eq 1 ]; then
   48    which cc
   49    CC_MISSING=$?
   50    if [ $CC_MISSING -eq 1 ]; then
   51       echo "C compiler not found!"
   52    else
   53       CC=cc   
   54    fi
   55 else
   56    CC=gcc
   57 fi
   58 
   59 LIBSYSINFO=libsysinfo-0.3.0
   60 
   61 LDFLAGS=""
   62 
   63 if [ $CC = gcc ]; then
   64    CFLAGS="-Wall -O2"
   65 else
   66    CFLAGS="-O2"
   67 fi   
   68 
   69 $CROSS$CC $CFLAGS -c intl_test.c 
   70 INTL_MISSING=$?
   71 
   72 
   73 
   74 echo
   75 echo "CONFIGURING LINUX_LOGO"
   76 echo "  Detected Architecture:     "$ARCH
   77 echo "  Detected Operating System: "$OS
   78 echo "  Install prefix:  "$PREFIX
   79 echo "  Install program: "$INSTALL
   80 echo "  xgettext:   "$XGETTEXT
   81 if [ $INTL_MISSING -ne 0 ]; then
   82    echo "  libintl.h not found, disabling i18n support"
   83    USE_I18N=0
   84 else
   85    USE_I18N=1
   86 fi
   87 
   88 echo "  libsysinfo: "$LIBSYSINFO
   89 echo "  C Compiler : "$CC
   90 echo "  CFLAGS     : "$CFLAGS
   91 
   92 echo "CC=$CC" > Makefile.default
   93 echo "ARCH=$ARCH" >> Makefile.default
   94 echo "OS=$OS" >> Makefile.default
   95 echo "PREFIX=$PREFIX" >> Makefile.default
   96 echo "INSTALL=$INSTALL" >> Makefile.default
   97 echo "CFLAGS=$CFLAGS" >> Makefile.default
   98 echo "LIBSYSINFO=$LIBSYSINFO" >> Makefile.default
   99 echo "LDFLAGS=$LDFLAGS" >> Makefile.default
  100 echo "XGETTEXT=$XGETTEXT" >> Makefile.default
  101 echo "USE_I18N=$USE_I18N" >> Makefile.default
  102 echo "CONFIGURE_RAN=1" >> Makefile.default
  103 
  104 echo
  105 cd $LIBSYSINFO && ./configure
  106 echo
  107 echo "If cross compiling set the CROSS and ARCH variables"
  108 echo 
  109 echo "Done configuring, run 'make'"
  110 echo