File: default-configure

package info (click to toggle)
dosemu 0.66.7-13
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 5,672 kB
  • ctags: 7,566
  • sloc: ansic: 60,209; sh: 3,965; asm: 2,219; yacc: 1,980; makefile: 831; perl: 598; lex: 506; awk: 398
file content (71 lines) | stat: -rwxr-xr-x 1,456 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#! /bin/bash

CONF_FILE="compiletime-settings"

if [ "$1" != "" ]; then
  if [ "${1#--}" = "$1" ]; then
    CONF_FILE=$1
    shift
  fi
fi

if [ ! -f $CONF_FILE ]; then
  echo "$CONF_FILE cannot be opened"
  exit 1
fi

SUFFIX=""
while [ "$1" != "" ]; do
  SUFFIX="$SUFFIX $1"
  shift
done

set `cut '-d{' -f2 $CONF_FILE |cut '-d}' -f1`

#echo "$*"

STRING=""

while [ "$1" != "" ]; do
#  echo "$1 $2"

  case "$1" in
    novm86plus)
      if [ "$2" = "on" ]; then STRING="$STRING --enable-novm86plus"; fi
      ;;
    dodebug)
      if [ "$2" = "on" ]; then STRING="$STRING --enable-dodebug"; fi
      ;;
    newkbd)
      if [ "$2" = "on" ]; then STRING="$STRING --enable-new-kbd"; fi
      ;;
    x)
      if [ "$2" = "off" ]; then STRING="$STRING --without-x"; fi
      ;;
    mitshm)
      if [ "$2" = "off" ]; then STRING="$STRING --enable-nomitshm"; fi
      ;;
    sbemu)
      if [ "$2" = "off" ]; then STRING="$STRING --enable-nosbemu"; fi
      ;;
    slangforce)
      if [ "$2" = "on" ]; then STRING="$STRING --enable-force-slang"; fi
      ;;
    tmonoton)
      if [ "$2" = "on" ]; then STRING="$STRING --enable-monoton-timing"; fi
      ;;
    runasroot)
      if [ "$2" = "on" ]; then STRING="$STRING --enable-runasroot"; fi
      ;;
    linkstatic)
      if [ "$2" = "on" ]; then STRING="$STRING --enable-linkstatic"; fi
      ;;
    *)
      ;;
  esac

  shift; shift;
done

echo "./configure $STRING $SUFFIX"
./configure $STRING $SUFFIX