mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
Added the capability to handle compressed GDS files through the use
of systems calls to "gzip" and "gunzip". A compressed GDS file can be made simply by doing "gds write <name>.gds.gz", and can be read simply by doing "gds read <name>.gds.gz". Names of compressed files can be put in the GDS_FILE property of a cell.
This commit is contained in:
Vendored
+99
@@ -672,6 +672,8 @@ X_PRE_LIBS
|
||||
X_CFLAGS
|
||||
XMKMF
|
||||
PYTHON3
|
||||
GUNZIP
|
||||
GZIP
|
||||
CSH
|
||||
GCORE
|
||||
EGREP
|
||||
@@ -5327,6 +5329,103 @@ if test "x${CSH}" = "xno"; then
|
||||
as_fn_error $? "cannot find /bin/csh---cannot compile!" "$LINENO" 5
|
||||
fi
|
||||
|
||||
# Extract the first word of "gzip", so it can be a program name with args.
|
||||
set dummy gzip; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
$as_echo_n "checking for $ac_word... " >&6; }
|
||||
if ${ac_cv_path_GZIP+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
case $GZIP in
|
||||
[\\/]* | ?:[\\/]*)
|
||||
ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
|
||||
;;
|
||||
*)
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="no"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
GZIP=$ac_cv_path_GZIP
|
||||
if test -n "$GZIP"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
|
||||
$as_echo "$GZIP" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
if test "x${GZIP}" = "xno"; then
|
||||
as_fn_error $? "cannot find gzip---will not be able to compress large files" "$LINENO" 5
|
||||
else
|
||||
$as_echo "#define HAVE_GZIP 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
# Extract the first word of "gunzip", so it can be a program name with args.
|
||||
set dummy gunzip; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
$as_echo_n "checking for $ac_word... " >&6; }
|
||||
if ${ac_cv_path_GUNZIP+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
case $GUNZIP in
|
||||
[\\/]* | ?:[\\/]*)
|
||||
ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
|
||||
;;
|
||||
*)
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
test -z "$ac_cv_path_GUNZIP" && ac_cv_path_GUNZIP="no"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
GUNZIP=$ac_cv_path_GUNZIP
|
||||
if test -n "$GUNZIP"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
|
||||
$as_echo "$GUNZIP" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
if test "x${GUNZIP}" = "xno"; then
|
||||
as_fn_error $? "cannot find gunzip---will not be able to automatically uncompress files" "$LINENO" 5
|
||||
else
|
||||
$as_echo "#define HAVE_GUNZIP 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
|
||||
# Extract the first word of "python3", so it can be a program name with args.
|
||||
set dummy python3; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
|
||||
@@ -285,6 +285,23 @@ if test "x${CSH}" = "xno"; then
|
||||
AC_MSG_ERROR([cannot find /bin/csh---cannot compile!])
|
||||
fi
|
||||
|
||||
dnl gzip and gunzip are used for file compression and uncompression of
|
||||
dnl large files (e.g., GDS)
|
||||
AC_PATH_PROG([GZIP], [gzip], [no])
|
||||
if test "x${GZIP}" = "xno"; then
|
||||
AC_MSG_ERROR([cannot find gzip---will not be able to compress large files])
|
||||
else
|
||||
AC_DEFINE(HAVE_GZIP)
|
||||
fi
|
||||
|
||||
AC_PATH_PROG([GUNZIP], [gunzip], [no])
|
||||
if test "x${GUNZIP}" = "xno"; then
|
||||
AC_MSG_ERROR([cannot find gunzip---will not be able to automatically uncompress files])
|
||||
else
|
||||
AC_DEFINE(HAVE_GUNZIP)
|
||||
fi
|
||||
|
||||
|
||||
dnl Python3 is preferred for running the preprocessor script
|
||||
dnl but CPP can be used instead.
|
||||
AC_PATH_PROG([PYTHON3], [python3], [no])
|
||||
|
||||
Reference in New Issue
Block a user