diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-13 14:51:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-13 14:51:06 +0900 |
commit | df378ddc984750f135569c9ce292699d2e2120d6 (patch) | |
tree | 879492c247d72b71a25d1590a858d5f27884f703 /gen_art_config.sh.in | |
parent | 11cb023db2dafccf30bec902fc7c8fad64d9ede8 (diff) | |
download | libart-lgpl-df378ddc.tar.gz libart-lgpl-df378ddc.zip |
Removed unused files and changed file names to conform to .cmake convention for configuration files.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'gen_art_config.sh.in')
-rw-r--r-- | gen_art_config.sh.in | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/gen_art_config.sh.in b/gen_art_config.sh.in deleted file mode 100644 index 8c525bd..0000000 --- a/gen_art_config.sh.in +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh - -# A little utility function to generate header info. -# -# The output of this program is generally written to art_config.h, -# which is installed in libart's include dir. - - -echo "/* Automatically generated by gen_art_config */" -echo -echo "#ifndef _ART_CONFIG_H_" -echo "#define _ART_CONFIG_H_" -echo -echo "#define ART_SIZEOF_CHAR @ART_SIZEOF_CHAR@" -echo "#define ART_SIZEOF_SHORT @ART_SIZEOF_SHORT@" -echo "#define ART_SIZEOF_INT @ART_SIZEOF_INT@" -echo "#define ART_SIZEOF_LONG @ART_SIZEOF_LONG@" -echo - -if test @ART_SIZEOF_CHAR@ -eq 1; then - echo "typedef unsigned char art_u8;" -else - echo 1>&2 "sizeof(char) != 1" - exit 1 -fi - -if test @ART_SIZEOF_SHORT@ -eq 2; then - echo "typedef unsigned short art_u16;" -else - echo 1>&2 "sizeof(short) != 2" - exit 2 -fi - -if test @ART_SIZEOF_INT@ -eq 4; then - echo "typedef unsigned int art_u32;" -else - if test @ART_SIZEOF_LONG@ -eq 4; then - echo "typedef unsigned long art_u32;" - else - echo 1>&2 "sizeof(int) != 4 and sizeof(long) != 4" - exit 3 - fi -fi - -echo -echo "#endif /* _ART_CONFIG_H_ */" - -exit 0 -} |