[c08f3b1] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | help=no |
---|
| 4 | |
---|
| 5 | PROJECT_NAME='utt' |
---|
[8338227] | 6 | PROJECT_FULLNAME='UAM Text Tools' |
---|
| 7 | PROJECT_COPYRIGHT='Copyright (C) UTT Team' |
---|
| 8 | PROJECT_VERSION='0.9.3' |
---|
[c08f3b1] | 9 | PROJECT_PAGE='http://utt.wmi.amu.edu.pl' |
---|
| 10 | PROJECT_MAIL='utt@wmid.amu.edu.pl' |
---|
| 11 | |
---|
| 12 | SHELL='/bin/sh' |
---|
| 13 | CC='/usr/bin/gcc' |
---|
| 14 | BISON='/usr/bin/bison' |
---|
| 15 | RM='/bin/rm -f' |
---|
| 16 | RMDIR='/bin/rm -rf' |
---|
| 17 | TEST='/usr/bin/test' |
---|
| 18 | MAKE='/usr/bin/make' |
---|
| 19 | GREP='/bin/grep' |
---|
| 20 | CUT='/usr/bin/cut' |
---|
| 21 | SORT='/usr/bin/sort' |
---|
| 22 | PR='/usr/bin/pr' |
---|
| 23 | |
---|
| 24 | CFLAGS='-g -O2 -Wall' |
---|
| 25 | LDFLAGS='' |
---|
| 26 | LDLIBS='' |
---|
| 27 | BFLAGS='' |
---|
| 28 | |
---|
| 29 | DESTDIR= |
---|
| 30 | |
---|
| 31 | prefix='/usr/local' |
---|
| 32 | exec_prefix='$(prefix)' |
---|
| 33 | bindir='$(exec_prefix)/bin' |
---|
| 34 | sbindir='$(exec_prefix)/sbin' |
---|
| 35 | datarootdir='$(prefix)/share' |
---|
| 36 | datadir='$(datarootdir)' |
---|
| 37 | sysconfdir='$(prefix)/etc' |
---|
| 38 | sharedstatedir='$(prefix)/com' |
---|
| 39 | localstatedir='$(prefix)/var' |
---|
| 40 | |
---|
| 41 | for option |
---|
| 42 | do |
---|
| 43 | case "$option" in |
---|
| 44 | -*=*) value=$(echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//') ;; |
---|
| 45 | *=*) value=$(echo "$option" | sed -e 's/[_A-Z0-9]*=//') ;; |
---|
| 46 | *) value="" ;; |
---|
| 47 | esac |
---|
| 48 | |
---|
| 49 | case "$option" in |
---|
| 50 | --help) help=yes ;; |
---|
| 51 | |
---|
| 52 | --prefix=*) prefix="$value" ;; |
---|
| 53 | --exec-prefix=*) exec_prefix="$value" ;; |
---|
| 54 | --bindir=*) bindir="$value" ;; |
---|
| 55 | --sbindir=*) sbindir="$value" ;; |
---|
| 56 | --datarootdir=*) datarootdir="$value" ;; |
---|
| 57 | --datadir=*) datadir="$value" ;; |
---|
| 58 | --sysconfdir=*) sysconfdir="$value" ;; |
---|
| 59 | --sharedstatedir=*) sharedstatedir="$value" ;; |
---|
| 60 | --localstatedir=*) localstatedir="$value" ;; |
---|
| 61 | |
---|
| 62 | SHELL=*) SHELL="$value" ;; |
---|
| 63 | CC=*) CC="$value" ;; |
---|
| 64 | BISON=*) BISON="$value" ;; |
---|
| 65 | RM=*) RM="$value" ;; |
---|
| 66 | RMDIR=*) RMDIR="$value" ;; |
---|
| 67 | TEST=*) TEST="$value" ;; |
---|
| 68 | MAKE=*) MAKE="$value" ;; |
---|
| 69 | GREP=*) GREP="$value" ;; |
---|
| 70 | CUT=*) CUT="$value" ;; |
---|
| 71 | SORT=*) SORT="$value" ;; |
---|
| 72 | PR=*) PR="$value" ;; |
---|
| 73 | |
---|
| 74 | CFLAGS=*) CFLAGS="$value" ;; |
---|
| 75 | LDFLAGS=*) LDFLAGS="$value" ;; |
---|
| 76 | LDLIBS=*) LDLIBS="$value" ;; |
---|
| 77 | BFLAGS=*) BFLAGS="$value" ;; |
---|
| 78 | esac |
---|
| 79 | done |
---|
| 80 | |
---|
| 81 | if [ "$help" = "yes" ]; then |
---|
| 82 | |
---|
| 83 | cat << HELP_END |
---|
| 84 | |
---|
| 85 | Configure script for $PROJECT_NAME $PROJECT_VERSION to adapt to many kinds of systems. |
---|
| 86 | |
---|
| 87 | Usage: |
---|
| 88 | |
---|
| 89 | ./configure [OPTION]... [VAR=VALUE]... |
---|
| 90 | |
---|
| 91 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 92 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 93 | |
---|
| 94 | Options: |
---|
| 95 | |
---|
| 96 | --help display this help and exit |
---|
| 97 | |
---|
| 98 | Installation directories: |
---|
| 99 | |
---|
| 100 | --prefix=PATH install architecture-independent files in PATH |
---|
| 101 | --exec-prefix=PATH install architecture-dependent files in PATH |
---|
| 102 | |
---|
| 103 | Fine tuning of the installation directories: |
---|
| 104 | |
---|
| 105 | --bindir=PATH user executables |
---|
| 106 | --sbindir=PATH system admin executables |
---|
| 107 | --datarootdir=PATH read-only arch.-independent data root |
---|
| 108 | --datadir=PATH read-only architecture-independent data |
---|
| 109 | --sysconfdir=PATH read-only single-machine data |
---|
| 110 | --sharedstatedir=PATH modifiable architecture-independent data |
---|
| 111 | --localstatedir=PATH modifiable single-machine data |
---|
| 112 | |
---|
| 113 | Some influential environment variables: |
---|
| 114 | |
---|
| 115 | SHELL shell command |
---|
| 116 | CC C compiler command |
---|
| 117 | BISON Bison compiler command |
---|
| 118 | RM rm command |
---|
| 119 | RMDIR rmdir command |
---|
| 120 | TEST test command |
---|
| 121 | MAKE make command |
---|
| 122 | GREP grep command |
---|
| 123 | CUT cut command |
---|
| 124 | SORT sort command |
---|
| 125 | PR pr command |
---|
| 126 | |
---|
| 127 | CFLAGS C compiler flags |
---|
| 128 | LDFLAGS linker flags, e.g. -L<lib dir> if you have |
---|
| 129 | libraries in a nonstandard directory <lib dir> |
---|
| 130 | LDLIBS libraries to pass to the linker, e.g. -l<library> |
---|
| 131 | BFLAGS Bison compiler flags |
---|
| 132 | |
---|
| 133 | Use these variables to override default values. |
---|
| 134 | |
---|
| 135 | Report bugs to <$PROJECT_MAIL>. |
---|
| 136 | More details at $PROJECT_PAGE. |
---|
| 137 | |
---|
| 138 | HELP_END |
---|
| 139 | |
---|
| 140 | exit 1 |
---|
| 141 | fi |
---|
| 142 | |
---|