gle-graphics-4.2.4c/config.os2 0000664 0000000 0000000 00000007770 11405446017 014640 0 ustar root root ########################################################################
# #
# GLE - Graphics Layout Engine #
# #
# Modified BSD License #
# #
# Copyright (C) 2009 GLE. #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions #
# are met: #
# #
# 1. Redistributions of source code must retain the above copyright #
# notice, this list of conditions and the following disclaimer. #
# #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials provided with #
# the distribution. #
# #
# 3. The name of the author may not be used to endorse or promote #
# products derived from this software without specific prior written #
# permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR #
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED #
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE #
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY #
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL #
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS #
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER #
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR #
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
# #
########################################################################
#
# config file for gcc and make
# tested with gcc 3.2.1
#
INSTALL_DIR = D:/TOOLS/gle
INSTALL_BIN = D:/TOOLS/bin
PATH_SEP = /
# additional files for the distribution
ADD_DLLS = D:/GCC/3.2.1/usr/lib/gcc321m.dll
ADD_DOCS = readme ../gle-refman/gle-manual.pdf
ZIP = zip.exe
# used by default; disable them
CFLAGS =
CPPFLAGS =
LDFLAGS =
#
# OS/2 didn't like something like "\"..\""
#
VERSION_INFO =-DGLEVN=\"$(VERSION_NUMBER).$(BUILD_NUMBER)\"
#
# latest version of GCC 3.3.5 has its own isnumber() function
#
HAS_ISNUMBER =-D_EMXGCC_HAS_ISNUMBER_
EXTRA_DEFS =-DHAVE_CONFIG_H -D__OS2__ -D__EMX__ -DOS2 -D__ST_MT_ERRNO__ $(WHICH_TEX) $(HAS_ISNUMBER)
EXTRA_LIBS =-lpng -ltiff -lsocket
EXTRA_INCS =-IX:/usr/include/ncurses
OBJ_SUFF =o
CC =g++
EXE_SUFF =.exe
AR =ar.exe
RM =rm.exe -f
RMDIR =rm.exe -rf
MKDIR =mkdir.exe
CP =cp.exe -f
MV =mv.exe
CXXFLAGS =-s -O2 -Zmtd -Zcrtdll -Zexe -Zbin-files $(EXTRA_INCS) $(VERSION_INFO) $(EXTRA_DEFS) -DINSTALL_DIR=\"$(INSTALL_DIR)\"
LINK_OPTS =-s -O2 -Zmtd -Zcrtdll -Zexe -Zbin-files -D__ST_MT_ERRNO__
#
# other global defines
#
PROJECT_DIR = E:/Work/Projects/GLE/gle4
PROJECT_BINDIR = $(PROJECT_DIR)/build
PROJECT_LIBDIR = $(PROJECT_BINDIR)/lib
PROJECT_INCDIR = $(PROJECT_BINDIR)/include
#
# GLE_TOP does not need to be defined anymore during compile
#
GLE_TOP = $(PROJECT_BINDIR)
gle-graphics-4.2.4c/configure 0000775 0000000 0000000 00000610302 11726234333 014646 0 ustar root root #! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for gle-graphics 4.2.4c.
#
# Report bugs to .
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
# Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
emulate sh
NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in #(
*posix*) :
set -o posix ;; #(
*) :
;;
esac
fi
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
as_echo='print -r --'
as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
as_echo='printf %s\n'
as_echo_n='printf %s'
else
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
as_echo_n='/usr/ucb/echo -n'
else
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
as_echo_n_body='eval
arg=$1;
case $arg in #(
*"$as_nl"*)
expr "X$arg" : "X\\(.*\\)$as_nl";
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
esac;
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
'
export as_echo_n_body
as_echo_n='sh -c $as_echo_n_body as_echo'
fi
export as_echo_body
as_echo='sh -c $as_echo_body as_echo'
fi
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=:
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
PATH_SEPARATOR=';'
}
fi
# IFS
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" "" $as_nl"
# Find who we are. Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
exit 1
fi
# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there. '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
if test "x$CONFIG_SHELL" = x; then
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
emulate sh
NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
# is contrary to our usage. Disable this feature.
alias -g '\${1+\"\$@\"}'='\"\$@\"'
setopt NO_GLOB_SUBST
else
case \`(set -o) 2>/dev/null\` in #(
*posix*) :
set -o posix ;; #(
*) :
;;
esac
fi
"
as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }
exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
else
exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
if (eval "$as_required") 2>/dev/null; then :
as_have_required=yes
else
as_have_required=no
fi
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
as_found=:
case $as_dir in #(
/*)
for as_base in sh bash ksh sh5; do
# Try only shells that exist, to save several forks.
as_shell=$as_dir/$as_base
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
CONFIG_SHELL=$as_shell as_have_required=yes
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
break 2
fi
fi
done;;
esac
as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS
if test "x$CONFIG_SHELL" != x; then :
# We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
export CONFIG_SHELL
case $- in # ((((
*v*x* | *x*v* ) as_opts=-vx ;;
*v* ) as_opts=-v ;;
*x* ) as_opts=-x ;;
* ) as_opts= ;;
esac
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
fi
if test x$as_have_required = xno; then :
$as_echo "$0: This script requires a shell more modern than all"
$as_echo "$0: the shells that I found on your system."
if test x${ZSH_VERSION+set} = xset ; then
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
else
$as_echo "$0: Please tell bug-autoconf@gnu.org and
$0: glx-general@lists.sourceforge.net about your system,
$0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
fi
exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS
## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
{ eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{
case $as_dir in #(
-*) as_dir=./$as_dir;;
esac
test -d "$as_dir" || eval $as_mkdir_p || {
as_dirs=
while :; do
case $as_dir in #(
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
*) as_qdir=$as_dir;;
esac
as_dirs="'$as_qdir' $as_dirs"
as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
test -d "$as_dir" && break
done
test -z "$as_dirs" || eval "mkdir $as_dirs"
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
eval 'as_fn_append ()
{
eval $1+=\$2
}'
else
as_fn_append ()
{
eval $1=\$$1\$2
}
fi # as_fn_append
# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
eval 'as_fn_arith ()
{
as_val=$(( $* ))
}'
else
as_fn_arith ()
{
as_val=`expr "$@" || test $? -eq 1`
}
fi # as_fn_arith
# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
as_status=$1; test $as_status -eq 0 && as_status=1
if test "$4"; then
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
fi
$as_echo "$as_me: error: $2" >&2
as_fn_exit $as_status
} # as_fn_error
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
as_expr=expr
else
as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
as_lineno_1=$LINENO as_lineno_1a=$LINENO
as_lineno_2=$LINENO as_lineno_2a=$LINENO
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
N
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
s/-\n.*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
case `echo 'xy\c'` in
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
xy) ECHO_C='\c';;
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
ECHO_T=' ';;
esac;;
*)
ECHO_N='-n';;
esac
rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
else
rm -f conf$$.dir
mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
if ln -s conf$$.file conf$$ 2>/dev/null; then
as_ln_s='ln -s'
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
# In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
else
as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
if mkdir -p . 2>/dev/null; then
as_mkdir_p='mkdir -p "$as_dir"'
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
if test -x / >/dev/null 2>&1; then
as_test_x='test -x'
else
if ls -dL / >/dev/null 2>&1; then
as_ls_L_option=L
else
as_ls_L_option=
fi
as_test_x='
eval sh -c '\''
if test -d "$1"; then
test -d "$1/.";
else
case $1 in #(
-*)set "./$1";;
esac;
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
???[sx]*):;;*)false;;esac;fi
'\'' sh
'
fi
as_executable_p=$as_test_x
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
test -n "$DJDIR" || exec 7<&0 &1
# Name of the host.
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='gle-graphics'
PACKAGE_TARNAME='gle-graphics'
PACKAGE_VERSION='4.2.4c'
PACKAGE_STRING='gle-graphics 4.2.4c'
PACKAGE_BUGREPORT='glx-general@lists.sourceforge.net'
PACKAGE_URL=''
ac_unique_file="src/gle/gle.cpp"
# Factoring default headers for most tests.
ac_includes_default="\
#include
#ifdef HAVE_SYS_TYPES_H
# include
#endif
#ifdef HAVE_SYS_STAT_H
# include
#endif
#ifdef STDC_HEADERS
# include
# include
#else
# ifdef HAVE_STDLIB_H
# include
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
# include
# endif
# include
#endif
#ifdef HAVE_STRINGS_H
# include
#endif
#ifdef HAVE_INTTYPES_H
# include
#endif
#ifdef HAVE_STDINT_H
# include
#endif
#ifdef HAVE_UNISTD_H
# include
#endif"
ac_subst_vars='LTLIBOBJS
LIBOBJS
HAVE_EXTRA_FONTS
QT_LDFLAGS
QT_CPPFLAGS
QT_LIBGLU_LIB
QT_RPATH
QT_CONFIG
MAKE_AUTOPACKAGE
GLE_VERSION
GLE_INSTALL_BIN
GLE_INSTALL_DATA
LIBGLE_LDFLAGS
LIBGLE_CPPFLAGS
MANIP_LDFLAGS
MANIP_LIBS
SIMPLE_LDFLAGS
SIMPLE_LIBS_DL
SIMPLE_LIBS
GLE_SNAPSHOT
AP_CONFIG_ARGS
MAKE_MANIP
HAVE_RPATH
HAVE_MINGW
HAVE_CYGWIN
HAVE_NOCYGWIN
HAVE_WIN32
HAVE_FREEBSD
HAVE_MAC
HAVE_AUTOPACKAGE
HAVE_LIBGLE_STATIC
HAVE_LIBGLE_CPPFLAGS
HAVE_LIBGLE
HAVE_QT
HAVE_NOSCRIPTS
HAVE_CAIRO
HAVE_LIBJPEG
HAVE_LIBPNG
HAVE_LIBTIFF
HAVE_SOCKETS
QMAKE_PROG
POPPLER_LIBS
POPPLER_CFLAGS
cairo_LIBS
cairo_CFLAGS
LIBPNG_CONFIG
libpng_LIBS
libpng_CFLAGS
XMKMF
PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH
PKG_CONFIG
EGREP
GREP
CXXCPP
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
MKDIR_P
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
OBJEXT
EXEEXT
ac_ct_CXX
CPPFLAGS
LDFLAGS
CXXFLAGS
CXX
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
with_qt
with_jpeg
with_png
with_tiff
with_z
with_cairo
with_poppler
with_manip
with_debug
with_warn
with_win32
with_arch
with_scripts
with_libgle
with_rpath
with_extrafonts
with_gnuwin32
with_staticlink
with_autopackage
with_apintern
with_x
'
ac_precious_vars='build_alias
host_alias
target_alias
CXX
CXXFLAGS
LDFLAGS
LIBS
CPPFLAGS
CCC
CXXCPP
PKG_CONFIG
PKG_CONFIG_PATH
PKG_CONFIG_LIBDIR
XMKMF
libpng_CFLAGS
libpng_LIBS
cairo_CFLAGS
cairo_LIBS
POPPLER_CFLAGS
POPPLER_LIBS'
# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE
# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'
ac_prev=
ac_dashdash=
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval $ac_prev=\$ac_option
ac_prev=
continue
fi
case $ac_option in
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
*=) ac_optarg= ;;
*) ac_optarg=yes ;;
esac
# Accept the important Cygnus configure options, so we can diagnose typos.
case $ac_dashdash$ac_option in
--)
ac_dashdash=yes ;;
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir=$ac_optarg ;;
-build | --build | --buil | --bui | --bu)
ac_prev=build_alias ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
build_alias=$ac_optarg ;;
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file=$ac_optarg ;;
--config-cache | -C)
cache_file=config.cache ;;
-datadir | --datadir | --datadi | --datad)
ac_prev=datadir ;;
-datadir=* | --datadir=* | --datadi=* | --datad=*)
datadir=$ac_optarg ;;
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
| --dataroo | --dataro | --datar)
ac_prev=datarootdir ;;
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
datarootdir=$ac_optarg ;;
-disable-* | --disable-*)
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
as_fn_error $? "invalid feature name: $ac_useropt"
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"enable_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
esac
eval enable_$ac_useropt=no ;;
-docdir | --docdir | --docdi | --doc | --do)
ac_prev=docdir ;;
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
docdir=$ac_optarg ;;
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
ac_prev=dvidir ;;
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
dvidir=$ac_optarg ;;
-enable-* | --enable-*)
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
as_fn_error $? "invalid feature name: $ac_useropt"
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"enable_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
esac
eval enable_$ac_useropt=\$ac_optarg ;;
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
| --exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
| --exec=* | --exe=* | --ex=*)
exec_prefix=$ac_optarg ;;
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
-help | --help | --hel | --he | -h)
ac_init_help=long ;;
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
ac_init_help=recursive ;;
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
ac_init_help=short ;;
-host | --host | --hos | --ho)
ac_prev=host_alias ;;
-host=* | --host=* | --hos=* | --ho=*)
host_alias=$ac_optarg ;;
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
ac_prev=htmldir ;;
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
| --ht=*)
htmldir=$ac_optarg ;;
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
includedir=$ac_optarg ;;
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
infodir=$ac_optarg ;;
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
libdir=$ac_optarg ;;
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
libexecdir=$ac_optarg ;;
-localedir | --localedir | --localedi | --localed | --locale)
ac_prev=localedir ;;
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
localedir=$ac_optarg ;;
-localstatedir | --localstatedir | --localstatedi | --localstated \
| --localstate | --localstat | --localsta | --localst | --locals)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
localstatedir=$ac_optarg ;;
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
mandir=$ac_optarg ;;
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c | -n)
no_create=yes ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
| --oldin | --oldi | --old | --ol | --o)
ac_prev=oldincludedir ;;
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
oldincludedir=$ac_optarg ;;
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
prefix=$ac_optarg ;;
-program-prefix | --program-prefix | --program-prefi | --program-pref \
| --program-pre | --program-pr | --program-p)
ac_prev=program_prefix ;;
-program-prefix=* | --program-prefix=* | --program-prefi=* \
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
program_prefix=$ac_optarg ;;
-program-suffix | --program-suffix | --program-suffi | --program-suff \
| --program-suf | --program-su | --program-s)
ac_prev=program_suffix ;;
-program-suffix=* | --program-suffix=* | --program-suffi=* \
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
program_suffix=$ac_optarg ;;
-program-transform-name | --program-transform-name \
| --program-transform-nam | --program-transform-na \
| --program-transform-n | --program-transform- \
| --program-transform | --program-transfor \
| --program-transfo | --program-transf \
| --program-trans | --program-tran \
| --progr-tra | --program-tr | --program-t)
ac_prev=program_transform_name ;;
-program-transform-name=* | --program-transform-name=* \
| --program-transform-nam=* | --program-transform-na=* \
| --program-transform-n=* | --program-transform-=* \
| --program-transform=* | --program-transfor=* \
| --program-transfo=* | --program-transf=* \
| --program-trans=* | --program-tran=* \
| --progr-tra=* | --program-tr=* | --program-t=*)
program_transform_name=$ac_optarg ;;
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
ac_prev=pdfdir ;;
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
pdfdir=$ac_optarg ;;
-psdir | --psdir | --psdi | --psd | --ps)
ac_prev=psdir ;;
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
psdir=$ac_optarg ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
sbindir=$ac_optarg ;;
-sharedstatedir | --sharedstatedir | --sharedstatedi \
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
| --sharedst | --shareds | --shared | --share | --shar \
| --sha | --sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
| --sha=* | --sh=*)
sharedstatedir=$ac_optarg ;;
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
site=$ac_optarg ;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
srcdir=$ac_optarg ;;
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
| --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
sysconfdir=$ac_optarg ;;
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target_alias ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
target_alias=$ac_optarg ;;
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
-version | --version | --versio | --versi | --vers | -V)
ac_init_version=: ;;
-with-* | --with-*)
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
as_fn_error $? "invalid package name: $ac_useropt"
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"with_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
esac
eval with_$ac_useropt=\$ac_optarg ;;
-without-* | --without-*)
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
as_fn_error $? "invalid package name: $ac_useropt"
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"with_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
esac
eval with_$ac_useropt=no ;;
--x)
# Obsolete; use --with-x.
with_x=yes ;;
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
| --x-incl | --x-inc | --x-in | --x-i)
ac_prev=x_includes ;;
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
x_includes=$ac_optarg ;;
-x-libraries | --x-libraries | --x-librarie | --x-librari \
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
ac_prev=x_libraries ;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
x_libraries=$ac_optarg ;;
-*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
;;
*=*)
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
# Reject names that are not valid shell variable names.
case $ac_envvar in #(
'' | [0-9]* | *[!_$as_cr_alnum]* )
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
esac
eval $ac_envvar=\$ac_optarg
export $ac_envvar ;;
*)
# FIXME: should be removed in autoconf 3.0.
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
;;
esac
done
if test -n "$ac_prev"; then
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
as_fn_error $? "missing argument to $ac_option"
fi
if test -n "$ac_unrecognized_opts"; then
case $enable_option_checking in
no) ;;
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
esac
fi
# Check all directory arguments for consistency.
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
libdir localedir mandir
do
eval ac_val=\$$ac_var
# Remove trailing slashes.
case $ac_val in
*/ )
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
eval $ac_var=\$ac_val;;
esac
# Be sure to have absolute directory names.
case $ac_val in
[\\/$]* | ?:[\\/]* ) continue;;
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
esac
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
done
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias
# FIXME: To remove some day.
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used" >&2
elif test "x$build_alias" != "x$host_alias"; then
cross_compiling=yes
fi
fi
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
test "$silent" = yes && exec 6>/dev/null
ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
as_fn_error $? "pwd does not report name of working directory"
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
# Try the directory containing this script, then the parent directory.
ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_myself" : 'X\(//\)[^/]' \| \
X"$as_myself" : 'X\(//\)$' \| \
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
srcdir=$ac_confdir
if test ! -r "$srcdir/$ac_unique_file"; then
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
eval ac_env_${ac_var}_set=\${${ac_var}+set}
eval ac_env_${ac_var}_value=\$${ac_var}
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
eval ac_cv_env_${ac_var}_value=\$${ac_var}
done
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures gle-graphics 4.2.4c to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking ...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/gle-graphics]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
_ACEOF
cat <<\_ACEOF
X features:
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of gle-graphics 4.2.4c:";;
esac
cat <<\_ACEOF
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-qt=DIR where to find the Qt-4.1.x library (or yes/no)
--with-jpeg=DIR where to find the jpeg library (or yes/no)
--with-png=DIR where to find the png library (or yes/no)
--with-tiff=DIR where to find the tiff library (or yes/no)
--with-z=DIR where to find the z library (or yes/no)
--with-cairo use the Cairo graphics library (yes/no)
--with-poppler use the Poppler PDF library (yes/no)
--with-manip build manip utility (yes/no)
--with-debug compile in debug information (yes/no)
--with-warn compile with all warnings enabled (yes/no)
--with-win32 compile Windows binary (yes/no)
--with-arch compile for a specific Mac OS architecture (or default/no)
--with-scripts install scripts instead of executables (yes/no)
--with-libgle build libgle (yes/no/static/both)
--with-rpath build with rpath (or yes/no)
--with-extrafonts include additional fonts (or yes/no)
--with-gnuwin32 build with GnuWin32 libs (yes/no)
--with-staticlink statically link bitmap libs (yes/no)
--with-autopackage create autopackage package (yes/no)
--with-apintern autopackage (internal use) (yes/no)
--with-x use the X Window System
Some influential environment variables:
CXX C++ compiler command
CXXFLAGS C++ compiler flags
LDFLAGS linker flags, e.g. -L if you have libraries in a
nonstandard directory
LIBS libraries to pass to the linker, e.g. -l
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if
you have headers in a nonstandard directory
CXXCPP C++ preprocessor
PKG_CONFIG path to pkg-config utility
PKG_CONFIG_PATH
directories to add to pkg-config's search path
PKG_CONFIG_LIBDIR
path overriding pkg-config's built-in search path
XMKMF Path to xmkmf, Makefile generator for X Window System
libpng_CFLAGS
C compiler flags for libpng, overriding pkg-config
libpng_LIBS linker flags for libpng, overriding pkg-config
cairo_CFLAGS
C compiler flags for cairo, overriding pkg-config
cairo_LIBS linker flags for cairo, overriding pkg-config
POPPLER_CFLAGS
C compiler flags for POPPLER, overriding pkg-config
POPPLER_LIBS
linker flags for POPPLER, overriding pkg-config
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to .
_ACEOF
ac_status=$?
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
test -d "$ac_dir" ||
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
continue
ac_builddir=.
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
# A ".." for each directory in $ac_dir_suffix.
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
case $srcdir in
.) # We are building in place.
ac_srcdir=.
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\\/]* | ?:[\\/]* ) # Absolute name.
ac_srcdir=$srcdir$ac_dir_suffix;
ac_top_srcdir=$srcdir
ac_abs_top_srcdir=$srcdir ;;
*) # Relative name.
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_build_prefix$srcdir
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cd "$ac_dir" || { ac_status=$?; continue; }
# Check for guested configure.
if test -f "$ac_srcdir/configure.gnu"; then
echo &&
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
elif test -f "$ac_srcdir/configure"; then
echo &&
$SHELL "$ac_srcdir/configure" --help=recursive
else
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fi || ac_status=$?
cd "$ac_pwd" || { ac_status=$?; break; }
done
fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
gle-graphics configure 4.2.4c
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
exit
fi
## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##
# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
rm -f conftest.$ac_objext
if { { ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_compile") 2>conftest.err
ac_status=$?
if test -s conftest.err; then
grep -v '^ *+' conftest.err >conftest.er1
cat conftest.er1 >&5
mv -f conftest.er1 conftest.err
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } && {
test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then :
ac_retval=0
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_retval=1
fi
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
as_fn_set_status $ac_retval
} # ac_fn_cxx_try_compile
# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_cpp ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
ac_status=$?
if test -s conftest.err; then
grep -v '^ *+' conftest.err >conftest.er1
cat conftest.er1 >&5
mv -f conftest.er1 conftest.err
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } > conftest.i && {
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
test ! -s conftest.err
}; then :
ac_retval=0
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_retval=1
fi
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
as_fn_set_status $ac_retval
} # ac_fn_cxx_try_cpp
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
# ---------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_cxx_check_header_mongrel ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
if eval \${$3+:} false; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
$as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
# Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
#include <$2>
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
ac_header_compiler=yes
else
ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <$2>
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
ac_header_preproc=yes
else
ac_header_preproc=no
fi
rm -f conftest.err conftest.i conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
yes:no: )
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
;;
no:yes:* )
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
( $as_echo "## ------------------------------------------------ ##
## Report this to glx-general@lists.sourceforge.net ##
## ------------------------------------------------ ##"
) | sed "s/^/$as_me: WARNING: /" >&2
;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
$as_echo_n "(cached) " >&6
else
eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_cxx_check_header_mongrel
# ac_fn_cxx_try_run LINENO
# ------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_cxx_try_run ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
if { { ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
{ { case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }; then :
ac_retval=0
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_retval=$ac_status
fi
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
as_fn_set_status $ac_retval
} # ac_fn_cxx_try_run
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
# ---------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_cxx_check_header_compile ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
#include <$2>
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
eval "$3=yes"
else
eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_cxx_check_header_compile
# ac_fn_c_find_uintX_t LINENO BITS VAR
# ------------------------------------
# Finds an unsigned integer type with width BITS, setting cache variable VAR
# accordingly.
ac_fn_c_find_uintX_t ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
$as_echo_n "checking for uint$2_t... " >&6; }
if eval \${$3+:} false; then :
$as_echo_n "(cached) " >&6
else
eval "$3=no"
# Order is important - never check a type that is potentially smaller
# than half of the expected target width.
for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
test_array [0] = 0
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
case $ac_type in #(
uint$2_t) :
eval "$3=yes" ;; #(
*) :
eval "$3=\$ac_type" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if eval test \"x\$"$3"\" = x"no"; then :
else
break
fi
done
fi
eval ac_res=\$$3
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_c_find_uintX_t
# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
rm -f conftest.$ac_objext conftest$ac_exeext
if { { ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_link") 2>conftest.err
ac_status=$?
if test -s conftest.err; then
grep -v '^ *+' conftest.err >conftest.er1
cat conftest.er1 >&5
mv -f conftest.er1 conftest.err
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } && {
test -z "$ac_cxx_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then :
ac_retval=0
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_retval=1
fi
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
# interfere with the next link command; also delete a directory that is
# left behind by Apple's compiler. We do this before executing the actions.
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
as_fn_set_status $ac_retval
} # ac_fn_cxx_try_link
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by gle-graphics $as_me 4.2.4c, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
_ASUNAME
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
$as_echo "PATH: $as_dir"
done
IFS=$as_save_IFS
} >&5
cat >&5 <<_ACEOF
## ----------- ##
## Core tests. ##
## ----------- ##
_ACEOF
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
for ac_arg
do
case $ac_arg in
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
continue ;;
*\'*)
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
case $ac_pass in
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2)
as_fn_append ac_configure_args1 " '$ac_arg'"
if test $ac_must_keep_next = true; then
ac_must_keep_next=false # Got value, back to normal.
else
case $ac_arg in
*=* | --config-cache | -C | -disable-* | --disable-* \
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
| -with-* | --with-* | -without-* | --without-* | --x)
case "$ac_configure_args0 " in
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
esac
;;
-* ) ac_must_keep_next=true ;;
esac
fi
as_fn_append ac_configure_args " '$ac_arg'"
;;
esac
done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}
# When interrupted or exit'd, cleanup temporary files, and complete
# config.log. We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
# Save into config.log some information that might help in debugging.
{
echo
$as_echo "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
echo
# The following way of writing the cache mishandles newlines in values,
(
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
eval ac_val=\$$ac_var
case $ac_val in #(
*${as_nl}*)
case $ac_var in #(
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
*) { eval $ac_var=; unset $ac_var;} ;;
esac ;;
esac
done
(set) 2>&1 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
*${as_nl}ac_space=\ *)
sed -n \
"s/'\''/'\''\\\\'\'''\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
;; #(
*)
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
;;
esac |
sort
)
echo
$as_echo "## ----------------- ##
## Output variables. ##
## ----------------- ##"
echo
for ac_var in $ac_subst_vars
do
eval ac_val=\$$ac_var
case $ac_val in
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
esac
$as_echo "$ac_var='\''$ac_val'\''"
done | sort
echo
if test -n "$ac_subst_files"; then
$as_echo "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
echo
for ac_var in $ac_subst_files
do
eval ac_val=\$$ac_var
case $ac_val in
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
esac
$as_echo "$ac_var='\''$ac_val'\''"
done | sort
echo
fi
if test -s confdefs.h; then
$as_echo "## ----------- ##
## confdefs.h. ##
## ----------- ##"
echo
cat confdefs.h
echo
fi
test "$ac_signal" != 0 &&
$as_echo "$as_me: caught signal $ac_signal"
$as_echo "$as_me: exit $exit_status"
} >&5
rm -f core *.core core.conftest.* &&
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h
$as_echo "/* confdefs.h */" > confdefs.h
# Predefined preprocessor variables.
cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF
# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
# We do not want a PATH search for config.site.
case $CONFIG_SITE in #((
-*) ac_site_file1=./$CONFIG_SITE;;
*/*) ac_site_file1=$CONFIG_SITE;;
*) ac_site_file1=./$CONFIG_SITE;;
esac
elif test "x$prefix" != xNONE; then
ac_site_file1=$prefix/share/config.site
ac_site_file2=$prefix/etc/config.site
else
ac_site_file1=$ac_default_prefix/share/config.site
ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
test "x$ac_site_file" = xNONE && continue
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
sed 's/^/| /' "$ac_site_file" >&5
. "$ac_site_file" \
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
fi
done
if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special files
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in
[\\/]* | ?:[\\/]* ) . "$cache_file";;
*) . "./$cache_file";;
esac
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
>$cache_file
fi
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
eval ac_old_val=\$ac_cv_env_${ac_var}_value
eval ac_new_val=\$ac_env_${ac_var}_value
case $ac_old_set,$ac_new_set in
set,)
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ac_cache_corrupted=: ;;
,set)
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
# differences in whitespace do not lead to failure.
ac_old_val_w=`echo x $ac_old_val`
ac_new_val_w=`echo x $ac_new_val`
if test "$ac_old_val_w" != "$ac_new_val_w"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac_cache_corrupted=:
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
eval $ac_var=\$ac_old_val
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
fi;;
esac
# Pass precious variables to config.status.
if test "$ac_new_set" = set; then
case $ac_new_val in
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
*) ac_arg=$ac_var=$ac_new_val ;;
esac
case " $ac_configure_args " in
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
esac
fi
done
if $ac_cache_corrupted; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_config_headers="$ac_config_headers src/config.h"
GLE_VERSION=4.2.4c
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
if test -n "$CCC"; then
CXX=$CCC
else
if test -n "$ac_tool_prefix"; then
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; 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_prog_CXX+:} false; then :
$as_echo_n "(cached) " >&6
else
if test -n "$CXX"; then
ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
$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
fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -n "$CXX" && break
done
fi
if test -z "$CXX"; then
ac_ct_CXX=$CXX
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; 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_prog_ac_ct_CXX+:} false; then :
$as_echo_n "(cached) " >&6
else
if test -n "$ac_ct_CXX"; then
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_ac_ct_CXX="$ac_prog"
$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
fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -n "$ac_ct_CXX" && break
done
if test "x$ac_ct_CXX" = x; then
CXX="g++"
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
CXX=$ac_ct_CXX
fi
fi
fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
{ { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
ac_status=$?
if test -s conftest.err; then
sed '10a\
... rest of stderr output deleted ...
10q' conftest.err >conftest.er1
cat conftest.er1 >&5
fi
rm -f conftest.er1 conftest.err
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
done
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
$as_echo_n "checking whether the C++ compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
ac_rmfiles=
for ac_file in $ac_files
do
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
esac
done
rm -f $ac_rmfiles
if { { ac_try="$ac_link_default"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_link_default") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then :
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile. We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
test -f "$ac_file" || continue
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
;;
[ab].out )
# We found the default executable, but exeext='' is most
# certainly right.
break;;
*.* )
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
then :; else
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
fi
# We set ac_cv_exeext here because the later test for it is not
# safe: cross compilers may not add the suffix if given an `-o'
# argument, so we may need to know it at that point already.
# Even if this section looks crufty: it has the advantage of
# actually working.
break;;
* )
break;;
esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=
else
ac_file=''
fi
if test -z "$ac_file"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C++ compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then :
# If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
test -f "$ac_file" || continue
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
break;;
* ) break;;
esac
done
else
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }
rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
return ferror (f) || fclose (f) != 0;
;
return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
{ { ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
if { ac_try='./conftest$ac_cv_exeext'
{ { case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }; then
cross_compiling=no
else
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run C++ compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if ${ac_cv_objext+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_compile") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then :
for ac_file in conftest.o conftest.obj conftest.*; do
test -f "$ac_file" || continue;
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
break;;
esac
done
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if ${ac_cv_cxx_compiler_gnu+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
#ifndef __GNUC__
choke me
#endif
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
ac_compiler_gnu=yes
else
ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
GXX=yes
else
GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if ${ac_cv_prog_cxx_g+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
ac_cxx_werror_flag=yes
ac_cv_prog_cxx_g=no
CXXFLAGS="-g"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
ac_cv_prog_cxx_g=yes
else
CXXFLAGS=""
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
else
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
CXXFLAGS="-g"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
ac_cv_prog_cxx_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
if test "$GXX" = yes; then
CXXFLAGS="-g -O2"
else
CXXFLAGS="-g"
fi
else
if test "$GXX" = yes; then
CXXFLAGS="-O2"
else
CXXFLAGS=
fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
HAVE_SOCKETS=1
HAVE_LIBTIFF=0
HAVE_LIBPNG=0
HAVE_LIBJPEG=0
HAVE_X11=0
HAVE_CAIRO=0
HAVE_POPPLER=0
HAVE_NCURSES_H=0
HAVE_CURSES_H=0
HAVE_NOSCRIPTS=0
HAVE_QT=0
HAVE_AUTOPACKAGE=0
HAVE_LIBGLE=0
HAVE_LIBGLE_CPPFLAGS=0
HAVE_LIBGLE_STATIC=0
HAVE_MAC=0
HAVE_FREEBSD=0
HAVE_GNU_HURD=0
HAVE_LINUX=0
HAVE_WIN32=0
HAVE_NOCYGWIN=0
HAVE_CYGWIN=0
HAVE_MINGW=0
HAVE_LIBZ=0
HAVE_LIBGLU_H=0
QT_CONFIG="CONFIG += release"
QT_RPATH=
QT_LIBGLU_LIB=
HAVE_STATIC_LIBPNG=0
HAVE_STATIC_LIBTIFF=0
HAVE_STATIC_LIBJPEG=0
HAVE_STATIC_LIBZ=0
HAVE_RPATH=0
QMAKE_PROG=none
QMAKE_VERS=none
MANIP_LIBS=
MANIP_LDFLAGS=
AP_CONFIG_ARGS=
LIBGLE_CPPFLAGS=
LIBGLE_LDFLAGS=
EXTRA_LDFLAGS=
EXTRA_LIBS=
SIMPLE_LIBS_DL=
# Check whether --with-qt was given.
if test "${with_qt+set}" = set; then :
withval=$with_qt;
else
with_qt=yes
fi
# Check whether --with-jpeg was given.
if test "${with_jpeg+set}" = set; then :
withval=$with_jpeg;
else
with_jpeg=yes
fi
# Check whether --with-png was given.
if test "${with_png+set}" = set; then :
withval=$with_png;
else
with_png=yes
fi
# Check whether --with-tiff was given.
if test "${with_tiff+set}" = set; then :
withval=$with_tiff;
else
with_tiff=yes
fi
# Check whether --with-z was given.
if test "${with_z+set}" = set; then :
withval=$with_z;
else
with_z=yes
fi
# Check whether --with-cairo was given.
if test "${with_cairo+set}" = set; then :
withval=$with_cairo;
else
with_cairo=yes
fi
# Check whether --with-poppler was given.
if test "${with_poppler+set}" = set; then :
withval=$with_poppler;
else
with_poppler=yes
fi
# Check whether --with-manip was given.
if test "${with_manip+set}" = set; then :
withval=$with_manip;
else
with_manip=yes
fi
# Check whether --with-debug was given.
if test "${with_debug+set}" = set; then :
withval=$with_debug;
else
with_debug=no
fi
# Check whether --with-warn was given.
if test "${with_warn+set}" = set; then :
withval=$with_warn;
else
with_warn=no
fi
# Check whether --with-win32 was given.
if test "${with_win32+set}" = set; then :
withval=$with_win32;
else
with_win32=no
fi
# Check whether --with-arch was given.
if test "${with_arch+set}" = set; then :
withval=$with_arch;
else
with_arch=default
fi
# Check whether --with-scripts was given.
if test "${with_scripts+set}" = set; then :
withval=$with_scripts;
else
with_scritps=no
fi
# Check whether --with-libgle was given.
if test "${with_libgle+set}" = set; then :
withval=$with_libgle;
else
with_libgle=no
fi
# Check whether --with-rpath was given.
if test "${with_rpath+set}" = set; then :
withval=$with_rpath;
else
with_rpath=yes
fi
# Check whether --with-extrafonts was given.
if test "${with_extrafonts+set}" = set; then :
withval=$with_extrafonts;
else
extrafonts=no
fi
# Check whether --with-gnuwin32 was given.
if test "${with_gnuwin32+set}" = set; then :
withval=$with_gnuwin32;
else
with_gnuwin32=no
fi
# Check whether --with-staticlink was given.
if test "${with_staticlink+set}" = set; then :
withval=$with_staticlink;
else
with_staticlink=def
fi
# Check whether --with-autopackage was given.
if test "${with_autopackage+set}" = set; then :
withval=$with_autopackage;
else
with_autopackage=no
fi
# Check whether --with-apintern was given.
if test "${with_apintern+set}" = set; then :
withval=$with_apintern;
else
with_apintern=no
fi
HAVE_EXTRA_FONTS=0
if test "x$extrafonts" != "xno"; then
HAVE_EXTRA_FONTS=1
fi
if test -f src/fonts/extrafonts.inf; then
HAVE_EXTRA_FONTS=1
fi
GLE_SNAPSHOT=""
QT_CPPFLAGS=$CPPFLAGS
QT_LDFLAGS=$LDFLAGS
ac_aux_dir=
for ac_dir in platform/autoconf "$srcdir"/platform/autoconf; do
if test -f "$ac_dir/install-sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f "$ac_dir/install.sh"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
elif test -f "$ac_dir/shtool"; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
if test -z "$ac_aux_dir"; then
as_fn_error $? "cannot find install-sh, install.sh, or shtool in platform/autoconf \"$srcdir\"/platform/autoconf" "$LINENO" 5
fi
# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if ${ac_cv_path_install+:} false; then :
$as_echo_n "(cached) " >&6
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
# Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
./ | .// | /[cC]/* | \
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
/usr/ucb/* ) ;;
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
# Don't use installbsd from OSF since it installs stuff as root
# by default.
for ac_prog in ginstall scoinst install; do
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
if test $ac_prog = install &&
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# AIX install. It has an incompatible calling convention.
:
elif test $ac_prog = install &&
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# program-specific install script used by HP pwplus--don't use.
:
else
rm -rf conftest.one conftest.two conftest.dir
echo one > conftest.one
echo two > conftest.two
mkdir conftest.dir
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
test -s conftest.one && test -s conftest.two &&
test -s conftest.dir/conftest.one &&
test -s conftest.dir/conftest.two
then
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
break 3
fi
fi
fi
done
done
;;
esac
done
IFS=$as_save_IFS
rm -rf conftest.one conftest.two conftest.dir
fi
if test "${ac_cv_path_install+set}" = set; then
INSTALL=$ac_cv_path_install
else
# As a last resort, use the slow shell script. Don't cache a
# value for INSTALL within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the value is a relative name.
INSTALL=$ac_install_sh
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
if ${ac_cv_path_mkdir+:} false; then :
$as_echo_n "(cached) " >&6
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in mkdir gmkdir; do
for ac_exec_ext in '' $ac_executable_extensions; do
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
'mkdir (GNU coreutils) '* | \
'mkdir (coreutils) '* | \
'mkdir (fileutils) '4.1*)
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
break 3;;
esac
done
done
done
IFS=$as_save_IFS
fi
test -d ./--version && rmdir ./--version
if test "${ac_cv_path_mkdir+set}" = set; then
MKDIR_P="$ac_cv_path_mkdir -p"
else
# As a last resort, use the slow shell script. Don't cache a
# value for MKDIR_P within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the value is a relative name.
MKDIR_P="$ac_install_sh -d"
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if ${ac_cv_build+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if ${ac_cv_host+:} false; then :
$as_echo_n "(cached) " >&6
else
if test "x$host_alias" = x; then
ac_cv_host=$ac_cv_build
else
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
if ${ac_cv_prog_CXXCPP+:} false; then :
$as_echo_n "(cached) " >&6
else
# Double quotes because CXXCPP needs to be expanded
for CXXCPP in "$CXX -E" "/lib/cpp"
do
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer to if __STDC__ is defined, since
# exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifdef __STDC__
# include
#else
# include
#endif
Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
else
# Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext
# OK, works on sane cases. Now check whether nonexistent headers
# can be detected and how.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
# Broken: success on invalid input.
continue
else
# Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
break
fi
done
ac_cv_prog_CXXCPP=$CXXCPP
fi
CXXCPP=$ac_cv_prog_CXXCPP
else
ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer to if __STDC__ is defined, since
# exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifdef __STDC__
# include
#else
# include
#endif
Syntax error
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
else
# Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext
# OK, works on sane cases. Now check whether nonexistent headers
# can be detected and how.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
# Broken: success on invalid input.
continue
else
# Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
else
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if ${ac_cv_path_GREP+:} false; then :
$as_echo_n "(cached) " >&6
else
if test -z "$GREP"; then
ac_path_GREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in grep ggrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
# Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
ac_count=0
$as_echo_n 0123456789 >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
$as_echo 'GREP' >> "conftest.nl"
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_GREP_max-0}; then
# Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP"
ac_path_GREP_max=$ac_count
fi
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
done
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
$ac_path_GREP_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi
else
ac_cv_path_GREP=$GREP
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if ${ac_cv_path_EGREP+:} false; then :
$as_echo_n "(cached) " >&6
else
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
then ac_cv_path_EGREP="$GREP -E"
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in egrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
# Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
ac_count=0
$as_echo_n 0123456789 >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
$as_echo 'EGREP' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
# Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP"
ac_path_EGREP_max=$ac_count
fi
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
done
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
$ac_path_EGREP_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi
else
ac_cv_path_EGREP=$EGREP
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
EGREP="$ac_cv_path_EGREP"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
#include
#include
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
ac_cv_header_stdc=yes
else
ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "memchr" >/dev/null 2>&1; then :
else
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "free" >/dev/null 2>&1; then :
else
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then :
:
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i))
return 2;
return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
else
ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
fi
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
inttypes.h stdint.h unistd.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
for ac_header in sys/param.h
do :
ac_fn_cxx_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PARAM_H 1
_ACEOF
fi
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_cv_c_bigendian=unknown
# See if we're dealing with a universal compiler.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifndef __APPLE_CC__
not a universal capable compiler
#endif
typedef int dummy;
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
# Check for potential -arch flags. It is not universal unless
# there are at least two -arch flags with different values.
ac_arch=
ac_prev=
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
if test -n "$ac_prev"; then
case $ac_word in
i?86 | x86_64 | ppc | ppc64)
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
ac_arch=$ac_word
else
ac_cv_c_bigendian=universal
break
fi
;;
esac
ac_prev=
elif test "x$ac_word" = "x-arch"; then
ac_prev=arch
fi
done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test $ac_cv_c_bigendian = unknown; then
# See if sys/param.h defines the BYTE_ORDER macro.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
&& LITTLE_ENDIAN)
bogus endian macros
#endif
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
# It does; now see whether it defined to BIG_ENDIAN or not.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
ac_cv_c_bigendian=yes
else
ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
if test $ac_cv_c_bigendian = unknown; then
# See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
bogus endian macros
#endif
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
# It does; now see whether it defined to _BIG_ENDIAN or not.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
#ifndef _BIG_ENDIAN
not big endian
#endif
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
ac_cv_c_bigendian=yes
else
ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
if test $ac_cv_c_bigendian = unknown; then
# Compile a test program.
if test "$cross_compiling" = yes; then :
# Try to guess by grepping values from an object file.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
short int ascii_mm[] =
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
short int ascii_ii[] =
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
int use_ascii (int i) {
return ascii_mm[i] + ascii_ii[i];
}
short int ebcdic_ii[] =
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
short int ebcdic_mm[] =
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
int use_ebcdic (int i) {
return ebcdic_mm[i] + ebcdic_ii[i];
}
extern int foo;
int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
ac_cv_c_bigendian=yes
fi
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
if test "$ac_cv_c_bigendian" = unknown; then
ac_cv_c_bigendian=no
else
# finding both strings is unlikely to happen, but who knows?
ac_cv_c_bigendian=unknown
fi
fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
/* Are we little or big endian? From Harbison&Steele. */
union
{
long int l;
char c[sizeof (long int)];
} u;
u.l = 1;
return u.c[sizeof (long int) - 1] == 1;
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_run "$LINENO"; then :
ac_cv_c_bigendian=no
else
ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
case $ac_cv_c_bigendian in #(
yes)
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
no)
;; #(
universal)
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
;; #(
*)
as_fn_error $? "unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
esac
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
case $ac_cv_c_uint16_t in #(
no|yes) ;; #(
*)
cat >>confdefs.h <<_ACEOF
#define uint16_t $ac_cv_c_uint16_t
_ACEOF
;;
esac
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; 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_PKG_CONFIG+:} false; then :
$as_echo_n "(cached) " >&6
else
case $PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_PKG_CONFIG="$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
;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
ac_pt_PKG_CONFIG=$PKG_CONFIG
# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; 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_ac_pt_PKG_CONFIG+:} false; then :
$as_echo_n "(cached) " >&6
else
case $ac_pt_PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_ac_pt_PKG_CONFIG="$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
;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
if test "x$ac_pt_PKG_CONFIG" = x; then
PKG_CONFIG=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
PKG_CONFIG=$ac_pt_PKG_CONFIG
fi
else
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi
fi
if test -n "$PKG_CONFIG"; then
_pkg_min_version=0.9.0
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
PKG_CONFIG=""
fi
fi
if test "x$with_rpath" != "xno"; then
HAVE_RPATH=1
fi
if test "x$with_gnuwin32" != "xno"; then
with_win32=yes
CPPFLAGS="-I$with_gnuwin32/include $CPPFLAGS"
CXXFLAGS="-I$with_gnuwin32/include $CXXFLAGS"
LDFLAGS="-L$with_gnuwin32/lib $LDFLAGS"
CFLAGS="-I$with_gnuwin32/include $CFLAGS"
if test "x$with_staticlink" = "xdef"; then
with_staticlink=yes
fi
fi
if test "x$with_win32" != "xno"; then
HAVE_WIN32=1
fi
USE_ARCH=no
case $host in
*-*-cygwin*)
$as_echo "#define __CYGWIN__ 1" >>confdefs.h
HAVE_CYGWIN=1
;;
*-*-mingw*)
$as_echo "#define __CYGWIN__ 1" >>confdefs.h
HAVE_CYGWIN=1
HAVE_MINGW=1
;;
x86_64-apple-*)
if test "x$with_arch" = "xdefault"; then
USE_ARCH=i386
fi
;;
esac
if test "x$with_arch" != "xdefault"; then
USE_ARCH=$with_arch
fi
if test "x$USE_ARCH" != "xno"; then
CPPFLAGS="-arch $USE_ARCH $CPPFLAGS"
CXXFLAGS="-arch $USE_ARCH $CXXFLAGS"
LDFLAGS="-arch $USE_ARCH $LDFLAGS"
CFLAGS="-arch $USE_ARCH $CFLAGS"
fi
if test "x$HAVE_CYGWIN" = "x1"; then
if test "x$HAVE_WIN32" = "x1"; then
HAVE_CYGWIN=0
HAVE_NOCYGWIN=1
fi
fi
if test "x$HAVE_NOCYGWIN" = "x1"; then
if test "x$with_gnuwin32" = "xno"; then
with_png=no
with_jpeg=no
with_tiff=no
with_z=no
fi
fi
if test "x$HAVE_WIN32" != "x1"; then
$as_echo "#define __UNIX__ 1" >>confdefs.h
# MacOS should also define __UNIX__
else
$as_echo "#define __WIN32__ 1" >>confdefs.h
$as_echo "#define __NOCYGWIN__ 1" >>confdefs.h
CPPFLAGS="-mno-cygwin -mthreads -mms-bitfields -march=i386 $CPPFLAGS"
CXXFLAGS="-mno-cygwin -mthreads -mms-bitfields -march=i386 $CXXFLAGS"
LDFLAGS="-mno-cygwin -mthreads -mms-bitfields -march=i386 $LDFLAGS"
CFLAGS="-mno-cygwin -mthreads -mms-bitfields -march=i386 $CFLAGS"
with_manip=no
with_x=no
fi
_CPPFLAGS_INI=$CPPFLAGS
_CXXFLAGS_INI=$CXXFLAGS
_LDFLAGS_INI=$LDFLAGS
_LIBS_INI=$LIBS
SIMPLE_LDFLAGS=$LDFLAGS
SIMPLE_LIBS=$LIBS
case $host in
*-apple*)
HAVE_MAC=1
;;
*-freebsd*)
HAVE_FREEBSD=1
;;
*-linux*)
HAVE_LINUX=1
;;
*-gnu*)
HAVE_GNU_HURD=1
;;
esac
if test "x$HAVE_MAC" = "x1"; then
$as_echo "#define __MACOS__ 1" >>confdefs.h
HAVE_RPATH=0
fi
if test "x$HAVE_FREEBSD" = "x1"; then
$as_echo "#define __FREEBSD__ 1" >>confdefs.h
fi
if test "x$HAVE_LINUX" = "x1"; then
$as_echo "#define __LINUX__ 1" >>confdefs.h
fi
if test "x$HAVE_GNU_HURD" = "x1"; then
$as_echo "#define __GNU_HURD__ 1" >>confdefs.h
fi
if test "$with_scripts" != yes; then
case $host in
*-*-cygwin*|*-*-linux*|*-*-mingw*|*-*-kfreebsd*)
HAVE_NOSCRIPTS=1
;;
esac
if test "x$HAVE_MAC" = "x1"; then
HAVE_NOSCRIPTS=1
fi
if test "x$HAVE_FREEBSD" = "x1"; then
HAVE_NOSCRIPTS=1
fi
if test "x$HAVE_LINUX" = "x1"; then
HAVE_NOSCRIPTS=1
fi
if test "x$HAVE_GNU_HURD" = "x1"; then
HAVE_NOSCRIPTS=1
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
$as_echo_n "checking for X... " >&6; }
# Check whether --with-x was given.
if test "${with_x+set}" = set; then :
withval=$with_x;
fi
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
# The user explicitly disabled X.
have_x=disabled
else
case $x_includes,$x_libraries in #(
*\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
*,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
$as_echo_n "(cached) " >&6
else
# One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -f -r conftest.dir
if mkdir conftest.dir; then
cd conftest.dir
cat >Imakefile <<'_ACEOF'
incroot:
@echo incroot='${INCROOT}'
usrlibdir:
@echo usrlibdir='${USRLIBDIR}'
libdir:
@echo libdir='${LIBDIR}'
_ACEOF
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
for ac_var in incroot usrlibdir libdir; do
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
done
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
for ac_extension in a so sl dylib la dll; do
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
test -f "$ac_im_libdir/libX11.$ac_extension"; then
ac_im_usrlibdir=$ac_im_libdir; break
fi
done
# Screen out bogus values from the imake configuration. They are
# bogus both because they are the default anyway, and because
# using them would break gcc on systems where it needs fixed includes.
case $ac_im_incroot in
/usr/include) ac_x_includes= ;;
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
esac
case $ac_im_usrlibdir in
/usr/lib | /usr/lib64 | /lib | /lib64) ;;
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
esac
fi
cd ..
rm -f -r conftest.dir
fi
# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R7/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include
/usr/include/X11
/usr/include/X11R7
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4
/usr/local/X11/include
/usr/local/X11R7/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include
/usr/local/include/X11
/usr/local/include/X11R7
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4
/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11
/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include
/usr/openwin/include
/usr/openwin/share/include'
if test "$ac_x_includes" = no; then
# Guess where to find include files, by looking for Xlib.h.
# First, try using that file with no special directory specified.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
_ACEOF
if ac_fn_cxx_try_cpp "$LINENO"; then :
# We can compile using X headers with no special include directory.
ac_x_includes=
else
for ac_dir in $ac_x_header_dirs; do
if test -r "$ac_dir/X11/Xlib.h"; then
ac_x_includes=$ac_dir
break
fi
done
fi
rm -f conftest.err conftest.i conftest.$ac_ext
fi # $ac_x_includes = no
if test "$ac_x_libraries" = no; then
# Check for the libraries.
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS=$LIBS
LIBS="-lX11 $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
int
main ()
{
XrmInitialize ()
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
else
LIBS=$ac_save_LIBS
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
# Don't even attempt the hair of trying to link an X program!
for ac_extension in a so sl dylib la dll; do
if test -r "$ac_dir/libX11.$ac_extension"; then
ac_x_libraries=$ac_dir
break 2
fi
done
done
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi # $ac_x_libraries = no
case $ac_x_includes,$ac_x_libraries in #(
no,* | *,no | *\'*)
# Didn't find X, or a directory has "'" in its name.
ac_cv_have_x="have_x=no";; #(
*)
# Record where we found X for the cache.
ac_cv_have_x="have_x=yes\
ac_x_includes='$ac_x_includes'\
ac_x_libraries='$ac_x_libraries'"
esac
fi
;; #(
*) have_x=yes;;
esac
eval "$ac_cv_have_x"
fi # $with_x != no
if test "$have_x" != yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
$as_echo "$have_x" >&6; }
no_x=yes
else
# If each of the values was on the command line, it overrides each guess.
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
# Update the cache value to reflect the command line values.
ac_cv_have_x="have_x=yes\
ac_x_includes='$x_includes'\
ac_x_libraries='$x_libraries'"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
fi
if test "$with_x" != no; then
if test "x$x_libraries" = "x"; then
x_libraries=.
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lX11 -lXt -L$x_libraries $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char XOpenDisplay ();
int
main ()
{
return XOpenDisplay ();
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_lib_X11_XOpenDisplay=yes
else
ac_cv_lib_X11_XOpenDisplay=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
HAVE_X11=1
if test "x$x_libraries" != "x"; then
LDFLAGS="$LDFLAGS -L$x_libraries"
fi
if test "x$x_includes" != "x"; then
CPPFLAGS="$CPPFLAGS -I$x_includes"
fi
LIBS="-lX11 $LIBS"
fi
fi
if test "x$with_staticlink" = "xdef"; then
with_staticlink=no
fi
if test "x$with_staticlink" != "xno"; then
HAVE_STATIC_LIBPNG=1
HAVE_STATIC_LIBJPEG=1
HAVE_STATIC_LIBZ=1
HAVE_STATIC_LIBTIFF=1
fi
if test "$with_z" != no; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
$as_echo_n "checking for deflate in -lz... " >&6; }
if ${ac_cv_lib_z_deflate+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lz $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char deflate ();
int
main ()
{
return deflate ();
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_lib_z_deflate=yes
else
ac_cv_lib_z_deflate=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
$as_echo "$ac_cv_lib_z_deflate" >&6; }
if test "x$ac_cv_lib_z_deflate" = xyes; then :
HAVE_LIBZ=1
fi
if test "x$HAVE_LIBZ" = "x1"; then
$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
if test "x$HAVE_STATIC_LIBZ" = "x1"; then
LIBS="-Wl,-Bstatic -lz -Wl,-Bdynamic $LIBS"
else
LIBS="-lz $LIBS"
fi
fi
fi
SOCKET_LIB=0
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
$as_echo_n "checking for library containing socket... " >&6; }
if ${ac_cv_search_socket+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char socket ();
int
main ()
{
return socket ();
;
return 0;
}
_ACEOF
for ac_lib in '' socket; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_search_socket=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_socket+:} false; then :
break
fi
done
if ${ac_cv_search_socket+:} false; then :
else
ac_cv_search_socket=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
$as_echo "$ac_cv_search_socket" >&6; }
ac_res=$ac_cv_search_socket
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
$as_echo_n "checking for library containing gethostbyname... " >&6; }
if ${ac_cv_search_gethostbyname+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
;
return 0;
}
_ACEOF
for ac_lib in '' nsl socket; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_search_gethostbyname=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_gethostbyname+:} false; then :
break
fi
done
if ${ac_cv_search_gethostbyname+:} false; then :
else
ac_cv_search_gethostbyname=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
$as_echo "$ac_cv_search_gethostbyname" >&6; }
ac_res=$ac_cv_search_gethostbyname
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
if test "$ac_cv_func_socket" = "yes" ; then
if test "$ac_cv_func_gethostbyname" = "yes" ; then
SOCKET_LIB=1
fi
fi
case $host in
*-*-solaris*)
if test "$SOCKET_LIB" = "0" ; then
HAVE_SOCKETS=0
fi
;;
*)
esac
if test "$HAVE_SOCKETS" = 1; then
$as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
fi
_CPPFLAGS=$CPPFLAGS
_LDFLAGS=$LDFLAGS
if test "$with_jpeg" != no; then
if test -d "$with_jpeg"; then
libjpeg_CPPFLAGS="-I$with_jpeg/include"
libjpeg_LDFLAGS="-L$with_jpeg/lib"
CPPFLAGS="$CPPFLAGS $libjpeg_CPPFLAGS"
LDFLAGS="$LDFLAGS $libjpeg_LDFLAGS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
$as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ljpeg -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char jpeg_destroy_decompress ();
int
main ()
{
return jpeg_destroy_decompress ();
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
else
ac_cv_lib_jpeg_jpeg_destroy_decompress=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then :
for ac_header in jpeglib.h
do :
ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_JPEGLIB_H 1
_ACEOF
HAVE_LIBJPEG=1
$as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found jpeg library but not jpegio.h: make sure libjpeg development package is installed" >&5
$as_echo "$as_me: WARNING: found jpeg library but not jpegio.h: make sure libjpeg development package is installed" >&2;}
fi
done
else
CPPFLAGS=$_CPPFLAGS
LDFLAGS=$_LDFLAGS
fi
fi
if test "x$HAVE_LIBJPEG" = "x1"; then
if test "x$HAVE_STATIC_LIBJPEG" = "x1"; then
LIBS="-Wl,-Bstatic -ljpeg -Wl,-Bdynamic $LIBS"
else
LIBS="-ljpeg $LIBS"
fi
fi
_CPPFLAGS=$CPPFLAGS
_LDFLAGS=$LDFLAGS
if test "$with_tiff" != no; then
if test -d "$with_tiff"; then
libtiff_CPPFLAGS="-I$with_tiff/include"
libtiff_LDFLAGS="-L$with_tiff/lib"
CPPFLAGS="$CPPFLAGS $libtiff_CPPFLAGS"
LDFLAGS="$LDFLAGS $libtiff_LDFLAGS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5
$as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; }
if ${ac_cv_lib_tiff_TIFFReadScanline+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ltiff -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char TIFFReadScanline ();
int
main ()
{
return TIFFReadScanline ();
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_lib_tiff_TIFFReadScanline=yes
else
ac_cv_lib_tiff_TIFFReadScanline=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5
$as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; }
if test "x$ac_cv_lib_tiff_TIFFReadScanline" = xyes; then :
for ac_header in tiffio.h
do :
ac_fn_cxx_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
if test "x$ac_cv_header_tiffio_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_TIFFIO_H 1
_ACEOF
HAVE_LIBTIFF=1
$as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found TIFF library but not tiffio.h: make sure libtiff development package is installed" >&5
$as_echo "$as_me: WARNING: found TIFF library but not tiffio.h: make sure libtiff development package is installed" >&2;}
CPPFLAGS=$_CPPFLAGS
LDFLAGS=$_LDFLAGS
fi
done
else
CPPFLAGS=$_CPPFLAGS
LDFLAGS=$_LDFLAGS
fi
fi
if test "x$HAVE_LIBTIFF" = "x1"; then
if test "x$HAVE_STATIC_LIBTIFF" = "x1"; then
LIBS="-Wl,-Bstatic -ltiff -Wl,-Bdynamic $LIBS"
else
LIBS="-ltiff $LIBS"
fi
fi
if test "$with_png" != no; then
if test -d "$with_png"; then
HAVE_LIBPNG=1
$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
CPPFLAGS="$CPPFLAGS -I$with_png/include"
LDFLAGS="$LDFLAGS -L$with_png/lib"
if test "x$with_staticlink" = "xyes"; then
LIBS="-Wl,-Bstatic -lpng -Wl,-Bdynamic $LIBS"
else
LIBS="-lpng $LIBS"
fi
else
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5
$as_echo_n "checking for libpng... " >&6; }
if test -n "$libpng_CFLAGS"; then
pkg_cv_libpng_CFLAGS="$libpng_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 0\""; } >&5
($PKG_CONFIG --exists --print-errors "libpng >= 0") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_libpng_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 0" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test -n "$libpng_LIBS"; then
pkg_cv_libpng_LIBS="$libpng_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 0\""; } >&5
($PKG_CONFIG --exists --print-errors "libpng >= 0") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_libpng_LIBS=`$PKG_CONFIG --libs "libpng >= 0" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
libpng_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng >= 0" 2>&1`
else
libpng_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng >= 0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$libpng_PKG_ERRORS" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
libpng_CFLAGS=$pkg_cv_libpng_CFLAGS
libpng_LIBS=$pkg_cv_libpng_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
HAVE_LIBPNG=1
$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
if test "x$with_staticlink" = "xyes"; then
LIBS="-Wl,-Bstatic $libpng_LIBS -Wl,-Bdynamic $LIBS"
else
LIBS="$libpng_LIBS $LIBS"
fi
CPPFLAGS="$libpng_CFLAGS $CPPFLAGS"
LDFLAGS="$libpng_LDFLAGS $LDFLAGS"
fi
if test "x$HAVE_LIBPNG" = "x0"; then
# Extract the first word of "libpng-config", so it can be a program name with args.
set dummy libpng-config; 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_LIBPNG_CONFIG+:} false; then :
$as_echo_n "(cached) " >&6
else
case $LIBPNG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_LIBPNG_CONFIG="$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
;;
esac
fi
LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
if test -n "$LIBPNG_CONFIG"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
$as_echo "$LIBPNG_CONFIG" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
if test -n "$LIBPNG_CONFIG"; then
HAVE_LIBPNG=1
$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
libpng_CPPFLAGS=`libpng-config --cflags`
libpng_LDFLAGS=`libpng-config --ldflags`
CPPFLAGS="$libpng_CPPFLAGS $CPPFLAGS"
LDFLAGS="$libpng_LDFLAGS $LDFLAGS"
if test "x$with_staticlink" = "xyes"; then
LIBS="-Wl,-Bstatic -lpng -Wl,-Bdynamic $LIBS"
else
LIBS="-lpng $LIBS"
fi
fi
fi
fi
fi
if test "x$with_cairo" != "xno"; then
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
$as_echo_n "checking for cairo... " >&6; }
if test -n "$cairo_CFLAGS"; then
pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.10.0\""; } >&5
($PKG_CONFIG --exists --print-errors "cairo >= 1.10.0") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.10.0" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test -n "$cairo_LIBS"; then
pkg_cv_cairo_LIBS="$cairo_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.10.0\""; } >&5
($PKG_CONFIG --exists --print-errors "cairo >= 1.10.0") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo >= 1.10.0" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo >= 1.10.0" 2>&1`
else
cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo >= 1.10.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$cairo_PKG_ERRORS" >&5
HAVE_CAIRO=0
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
HAVE_CAIRO=0
else
cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
cairo_LIBS=$pkg_cv_cairo_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
HAVE_CAIRO=1
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cairo CFLAGS: $cairo_CFLAGS" >&5
$as_echo " cairo CFLAGS: $cairo_CFLAGS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cairo LIBS: $cairo_LIBS" >&5
$as_echo " cairo LIBS: $cairo_LIBS" >&6; }
if test "x$with_staticlink" = "xyes"; then
LIBS="-Wl,-Bstatic $cairo_LIBS -Wl,-Bdynamic $LIBS"
else
LIBS="$cairo_LIBS $LIBS"
fi
CPPFLAGS="$cairo_CFLAGS $CPPFLAGS"
LDFLAGS="$cairo_LDFLAGS $LDFLAGS"
fi
fi
if test "x$HAVE_CAIRO" = "x1"; then
if test "x$HAVE_WIN32" = "x1"; then
if test "x$with_staticlink" = "xyes"; then
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -mwindows"
EXTRA_LIBS="$EXTRA_LIBS -lmsimg32"
fi
fi
fi
if test "x$HAVE_CAIRO" = "x1"; then
if test "x$with_poppler" != "xno"; then
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
$as_echo_n "checking for POPPLER... " >&6; }
if test -n "$POPPLER_CFLAGS"; then
pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-glib >= 0.10.0\""; } >&5
($PKG_CONFIG --exists --print-errors "poppler-glib >= 0.10.0") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler-glib >= 0.10.0" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test -n "$POPPLER_LIBS"; then
pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-glib >= 0.10.0\""; } >&5
($PKG_CONFIG --exists --print-errors "poppler-glib >= 0.10.0") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler-glib >= 0.10.0" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "poppler-glib >= 0.10.0" 2>&1`
else
POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors "poppler-glib >= 0.10.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$POPPLER_PKG_ERRORS" >&5
HAVE_POPPLER=0
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
HAVE_POPPLER=0
else
POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
HAVE_POPPLER=1
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: poppler CFLAGS: $POPPLER_CFLAGS" >&5
$as_echo " poppler CFLAGS: $POPPLER_CFLAGS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: poppler LIBS: $POPPLER_LIBS" >&5
$as_echo " poppler LIBS: $POPPLER_LIBS" >&6; }
if test "x$with_staticlink" = "xyes"; then
LIBS="-Wl,-Bstatic $POPPLER_LIBS -Wl,-Bdynamic $LIBS"
else
LIBS="$POPPLER_LIBS $LIBS"
fi
CPPFLAGS="$POPPLER_CFLAGS $CPPFLAGS"
LDFLAGS="$POPPLER_LDFLAGS $LDFLAGS"
fi
fi
fi
QT4VER="?"
QMAKE_PROG="none"
if test "x$with_qt" != "xno"; then
if test "x$with_qt" = "xyes"; then
if test "x$PKG_CONFIG" != "x"; then
QT4LOC=`$PKG_CONFIG QtCore --variable=exec_prefix`
if test -x $QT4LOC/bin/qmake; then
if $PKG_CONFIG QtCore --atleast-version 4.1.1; then
with_qt=$QT4LOC
QT4VER=`$PKG_CONFIG QtCore --modversion`
fi
fi
fi
fi
if test "x$with_qt" = "xyes"; then
if test -x /opt/qt4/bin/qmake; then
with_qt=/opt/qt4
fi
if test -x /usr/lib/qt4/bin/qmake; then
with_qt=/usr/lib/qt4
fi
# Extract the first word of "qmake-qt4", so it can be a program name with args.
set dummy qmake-qt4; 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_QMAKE_PROG+:} false; then :
$as_echo_n "(cached) " >&6
else
case $QMAKE_PROG in
[\\/]* | ?:[\\/]*)
ac_cv_path_QMAKE_PROG="$QMAKE_PROG" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_QMAKE_PROG="$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_QMAKE_PROG" && ac_cv_path_QMAKE_PROG="none"
;;
esac
fi
QMAKE_PROG=$ac_cv_path_QMAKE_PROG
if test -n "$QMAKE_PROG"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE_PROG" >&5
$as_echo "$QMAKE_PROG" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
fi
if test "x$with_qt" != "xyes"; then
QTDIR=$with_qt
if test -x $with_qt/bin/qmake; then
QMAKE_PROG=$with_qt/bin/qmake
fi
if test -x $with_qt/bin/qmake-qt4; then
QMAKE_PROG=$with_qt/bin/qmake-qt4
fi
if test -x $with_qt/bin/qmake.exe; then
QMAKE_PROG=$with_qt/bin/qmake.exe
fi
if test "x$QMAKE_PROG" = "xnone"; then
for ac_prog in qmake-qt4 qmake
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; 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_QMAKE_PROG+:} false; then :
$as_echo_n "(cached) " >&6
else
case $QMAKE_PROG in
[\\/]* | ?:[\\/]*)
ac_cv_path_QMAKE_PROG="$QMAKE_PROG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$QTDIR/bin:$PATH"
for as_dir in $as_dummy
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_QMAKE_PROG="$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
;;
esac
fi
QMAKE_PROG=$ac_cv_path_QMAKE_PROG
if test -n "$QMAKE_PROG"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE_PROG" >&5
$as_echo "$QMAKE_PROG" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
test -n "$QMAKE_PROG" && break
done
test -n "$QMAKE_PROG" || QMAKE_PROG="none"
fi
fi
if test "x$QMAKE_PROG" != "xnone"; then
HAVE_QT=1
QMAKE_VERS=`$QMAKE_PROG -v | tail -n 1`
fi
for ac_header in GL/glu.h
do :
ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
if test "x$ac_cv_header_GL_glu_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_GL_GLU_H 1
_ACEOF
$as_echo "#define HAVE_LIBGLU_H 1" >>confdefs.h
fi
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
$as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lGLU $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char gluLookAt ();
int
main ()
{
return gluLookAt ();
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_lib_GLU_gluLookAt=yes
else
ac_cv_lib_GLU_gluLookAt=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
$as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
QT_LIBGLU_LIB=-lGLU
fi
fi
if test "x$HAVE_RPATH" != "x0"; then
QT_RPATH="-Wl,-rpath,\\\\\\\$\\\$ORIGIN/../lib"
fi
if test "x$HAVE_QT" != "x0"; then
if test "x$with_libgle" != "xstatic"; then
if test "x$with_libgle" != "xboth"; then
with_libgle=yes
fi
fi
fi
if test "x$with_libgle" = "xboth"; then
HAVE_LIBGLE_STATIC=1
$as_echo "#define HAVE_LIBGLE_STATIC 1" >>confdefs.h
with_libgle=yes
fi
if test "x$with_libgle" = "xyes"; then
HAVE_LIBGLE=1
$as_echo "#define HAVE_LIBGLE 1" >>confdefs.h
case $host in
*-*-linux*|*-*-kfreebsd*)
LIBGLE_CPPFLAGS="-fPIC "
LIBGLE_LDFLAGS="-fPIC "
HAVE_LIBGLE_CPPFLAGS=1
;;
esac
fi
if test "x$with_libgle" = "xstatic"; then
HAVE_LIBGLE_STATIC=1
$as_echo "#define HAVE_LIBGLE_STATIC 1" >>confdefs.h
fi
_SAVE_LIBS=$LIBS
_SAVE_LDFLAGS=$LDFLAGS
LIBS=$SIMPLE_LIBS
LDFLAGS=$SIMPLE_LDFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
$as_echo_n "checking for library containing dlopen... " >&6; }
if ${ac_cv_search_dlopen+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
;
return 0;
}
_ACEOF
for ac_lib in '' dl; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_search_dlopen=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_dlopen+:} false; then :
break
fi
done
if ${ac_cv_search_dlopen+:} false; then :
else
ac_cv_search_dlopen=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
$as_echo "$ac_cv_search_dlopen" >&6; }
ac_res=$ac_cv_search_dlopen
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
SIMPLE_LIBS_DL=$LIBS
LIBS=$_SAVE_LIBS
LDFLAGS=$_SAVE_LDFLAGS
MAKE_MANIP=0
if test "x$with_manip" != "xno"; then
_SAVE_LIBS=$LIBS
_SAVE_LDFLAGS=$LDFLAGS
LIBS=$SIMPLE_LIBS
LDFLAGS=$SIMPLE_LDFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
if ${ac_cv_lib_tinfo_tgetent+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ltinfo $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char tgetent ();
int
main ()
{
return tgetent ();
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_lib_tinfo_tgetent=yes
else
ac_cv_lib_tinfo_tgetent=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBTINFO 1
_ACEOF
LIBS="-ltinfo $LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wbkgdset" >&5
$as_echo_n "checking for library containing wbkgdset... " >&6; }
if ${ac_cv_search_wbkgdset+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char wbkgdset ();
int
main ()
{
return wbkgdset ();
;
return 0;
}
_ACEOF
for ac_lib in '' ncurses curses; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_search_wbkgdset=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_wbkgdset+:} false; then :
break
fi
done
if ${ac_cv_search_wbkgdset+:} false; then :
else
ac_cv_search_wbkgdset=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wbkgdset" >&5
$as_echo "$ac_cv_search_wbkgdset" >&6; }
ac_res=$ac_cv_search_wbkgdset
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
MAKE_MANIP=1
fi
ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
if test "x$ac_cv_header_ncurses_h" = xyes; then :
HAVE_NCURSES_H=1
else
ac_fn_cxx_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
if test "x$ac_cv_header_curses_h" = xyes; then :
HAVE_CURSES_H=1
else
MAKE_MANIP=0
fi
fi
if test "$HAVE_NCURSES_H" = "1"; then
$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h
fi
if test "$HAVE_CURSES_H" = "1"; then
$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h
fi
MANIP_LIBS=$LIBS
MANIP_LDFLAGS=$LDFLAGS
if test "x$with_staticlink" = "xyes"; then
MANIP_LIBS="$SIMPLE_LIBS -Wl,-Bstatic -lncurses -ltinfo -lm -Wl,-Bdynamic -ldl"
#MANIP_LIBS="$SIMPLE_LIBS -Wl,-Bstatic -lncurses -lm -Wl,-Bdynamic -ldl"
else
MANIP_LIBS="$MANIP_LIBS -lm"
fi
LIBS=$_SAVE_LIBS
LDFLAGS=$_SAVE_LDFLAGS
fi
if test "x$with_warn" != "xno"; then
CPPFLAGS="-Wall $CPPFLAGS"
fi
CPPFLAGS="-Wno-write-strings $CPPFLAGS"
CPPFLAGS="-DHAVE_CONFIG_H \$(VERSION_INFO) $CPPFLAGS"
LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
LIBS="$LIBS $EXTRA_LIBS"
MAKE_AUTOPACKAGE=0
if test "x$with_autopackage" != "xno"; then
MAKE_AUTOPACKAGE=1
if test "x$HAVE_QT" != "x0"; then
AP_CONFIG_ARGS="$AP_CONFIG_ARGS --with-qt=$QTDIR"
fi
if test "$with_png" != yes; then
AP_CONFIG_ARGS="$AP_CONFIG_ARGS --with-png=$with_png"
fi
CPPFLAGS=$_CPPFLAGS_INI
CXXFLAGS=$_CXXFLAGS_INI
LDFLAGS=$_LDFLAGS_INI
LIBS=$_LIBS_INI
fi
if test "x$with_apintern" != "xno"; then
LDFLAGS="$LDFLAGS -static-libgcc"
LIBS="$LIBS -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic"
SIMPLE_LDFLAGS="$SIMPLE_LDFLAGS -static-libgcc"
SIMPLE_LIBS="$SIMPLE_LIBS -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic"
MANIP_LDFLAGS="$MANIP_LDFLAGS -static-libgcc"
MANIP_LIBS="$MANIP_LIBS -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic"
HAVE_X11=0
HAVE_AUTOPACKAGE=1
fi
if test "x$with_debug" != "xno"; then
CPPFLAGS="-g $CPPFLAGS"
LDFLAGS="-g $LDFLAGS"
fi
if test "x$with_debug" = "xyes"; then
QT_CONFIG="CONFIG += debug"
fi
if test "x$HAVE_X11" != "x0"; then
$as_echo "#define HAVE_X11 1" >>confdefs.h
fi
if test "x$HAVE_CAIRO" != "x0"; then
$as_echo "#define HAVE_CAIRO 1" >>confdefs.h
fi
if test "x$HAVE_POPPLER" != "x0"; then
$as_echo "#define HAVE_POPPLER 1" >>confdefs.h
fi
if test "$prefix" = "NONE"; then
GLE_INSTALL_DATA=/usr/share/$PACKAGE_TARNAME/$GLE_VERSION
prefix="/usr"
else
GLE_INSTALL_DATA=$prefix/share/$PACKAGE_TARNAME/$GLE_VERSION
fi
if test "$exec_prefix" = "NONE"; then
if test "$prefix" = "NONE"; then
GLE_INSTALL_BIN=/usr/bin
else
GLE_INSTALL_BIN=$prefix/bin
fi
else
GLE_INSTALL_BIN=$exec_prefix
fi
if test "$bindir" != "\${exec_prefix}/bin"; then
GLE_INSTALL_BIN=$bindir
fi
ac_config_files="$ac_config_files Makefile src/gle/Makefile src/gle/bitmap/Makefile src/gle/letzfitz/Makefile src/gle/surface/Makefile src/gle/tokens/Makefile src/fbuild/Makefile src/makefmt/Makefile src/manip/Makefile src/TeX/Makefile src/gui/MakefileAC src/gui/qgle.pro src/doc/gle.1 platform/autoconf/gle-graphics.pc platform/autopackage/gle4.apspec"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems. If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.
_ACEOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
eval ac_val=\$$ac_var
case $ac_val in #(
*${as_nl}*)
case $ac_var in #(
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
*) { eval $ac_var=; unset $ac_var;} ;;
esac ;;
esac
done
(set) 2>&1 |
case $as_nl`(ac_space=' '; set) 2>&1` in #(
*${as_nl}ac_space=\ *)
# `set' does not quote correctly, so add quotes: double-quote
# substitution turns \\\\ into \\, and sed turns \\ into \.
sed -n \
"s/'/'\\\\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
;; #(
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
;;
esac |
sort
) |
sed '
/^ac_cv_env_/b end
t clear
:clear
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
:end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
if test -w "$cache_file"; then
if test "x$cache_file" != "x/dev/null"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
if test ! -f "$cache_file" || test -h "$cache_file"; then
cat confcache >"$cache_file"
else
case $cache_file in #(
*/* | ?:*)
mv -f confcache "$cache_file"$$ &&
mv -f "$cache_file"$$ "$cache_file" ;; #(
*)
mv -f confcache "$cache_file" ;;
esac
fi
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
fi
fi
rm -f confcache
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
DEFS=-DHAVE_CONFIG_H
ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
# will be set to the directory where LIBOBJS objects are built.
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs
LTLIBOBJS=$ac_ltlibobjs
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.
debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
emulate sh
NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in #(
*posix*) :
set -o posix ;; #(
*) :
;;
esac
fi
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
as_echo='print -r --'
as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
as_echo='printf %s\n'
as_echo_n='printf %s'
else
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
as_echo_n='/usr/ucb/echo -n'
else
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
as_echo_n_body='eval
arg=$1;
case $arg in #(
*"$as_nl"*)
expr "X$arg" : "X\\(.*\\)$as_nl";
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
esac;
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
'
export as_echo_n_body
as_echo_n='sh -c $as_echo_n_body as_echo'
fi
export as_echo_body
as_echo='sh -c $as_echo_body as_echo'
fi
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=:
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
PATH_SEPARATOR=';'
}
fi
# IFS
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" "" $as_nl"
# Find who we are. Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
exit 1
fi
# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there. '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
as_status=$1; test $as_status -eq 0 && as_status=1
if test "$4"; then
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
fi
$as_echo "$as_me: error: $2" >&2
as_fn_exit $as_status
} # as_fn_error
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
{ eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
eval 'as_fn_append ()
{
eval $1+=\$2
}'
else
as_fn_append ()
{
eval $1=\$$1\$2
}
fi # as_fn_append
# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
eval 'as_fn_arith ()
{
as_val=$(( $* ))
}'
else
as_fn_arith ()
{
as_val=`expr "$@" || test $? -eq 1`
}
fi # as_fn_arith
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
as_expr=expr
else
as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
case `echo 'xy\c'` in
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
xy) ECHO_C='\c';;
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
ECHO_T=' ';;
esac;;
*)
ECHO_N='-n';;
esac
rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
else
rm -f conf$$.dir
mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
if ln -s conf$$.file conf$$ 2>/dev/null; then
as_ln_s='ln -s'
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
# In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
else
as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{
case $as_dir in #(
-*) as_dir=./$as_dir;;
esac
test -d "$as_dir" || eval $as_mkdir_p || {
as_dirs=
while :; do
case $as_dir in #(
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
*) as_qdir=$as_dir;;
esac
as_dirs="'$as_qdir' $as_dirs"
as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
test -d "$as_dir" && break
done
test -z "$as_dirs" || eval "mkdir $as_dirs"
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
as_mkdir_p='mkdir -p "$as_dir"'
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
if test -x / >/dev/null 2>&1; then
as_test_x='test -x'
else
if ls -dL / >/dev/null 2>&1; then
as_ls_L_option=L
else
as_ls_L_option=
fi
as_test_x='
eval sh -c '\''
if test -d "$1"; then
test -d "$1/.";
else
case $1 in #(
-*)set "./$1";;
esac;
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
???[sx]*):;;*)false;;esac;fi
'\'' sh
'
fi
as_executable_p=$as_test_x
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by gle-graphics $as_me 4.2.4c, which was
generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
on `(hostname || uname -n) 2>/dev/null | sed 1q`
"
_ACEOF
case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac
case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration. Unless the files
and actions are specified as TAGs, all are instantiated by default.
Usage: $0 [OPTION]... [TAG]...
-h, --help print this help, then exit
-V, --version print version number and configuration settings, then exit
--config print configuration, then exit
-q, --quiet, --silent
do not print progress messages
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
--file=FILE[:TEMPLATE]
instantiate the configuration file FILE
--header=FILE[:TEMPLATE]
instantiate the configuration header FILE
Configuration files:
$config_files
Configuration headers:
$config_headers
Report bugs to ."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
gle-graphics config.status 4.2.4c
configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\"
Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
test -n "\$AWK" || AWK=awk
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
case $1 in
--*=?*)
ac_option=`expr "X$1" : 'X\([^=]*\)='`
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ac_shift=:
;;
--*=)
ac_option=`expr "X$1" : 'X\([^=]*\)='`
ac_optarg=
ac_shift=:
;;
*)
ac_option=$1
ac_optarg=$2
ac_shift=shift
;;
esac
case $ac_option in
# Handling of the options.
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
ac_cs_recheck=: ;;
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
$as_echo "$ac_cs_version"; exit ;;
--config | --confi | --conf | --con | --co | --c )
$as_echo "$ac_cs_config"; exit ;;
--debug | --debu | --deb | --de | --d | -d )
debug=: ;;
--file | --fil | --fi | --f )
$ac_shift
case $ac_optarg in
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
'') as_fn_error $? "missing file argument" ;;
esac
as_fn_append CONFIG_FILES " '$ac_optarg'"
ac_need_defaults=false;;
--header | --heade | --head | --hea )
$ac_shift
case $ac_optarg in
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ac_need_defaults=false;;
--he | --h)
# Conflict between --help and --header
as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
--help | --hel | -h )
$as_echo "$ac_cs_usage"; exit ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil | --si | --s)
ac_cs_silent=: ;;
# This is an error.
-*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;
*) as_fn_append ac_config_targets " $1"
ac_need_defaults=false ;;
esac
shift
done
ac_configure_extra_args=
if $ac_cs_silent; then
exec 6>/dev/null
ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
shift
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
CONFIG_SHELL='$SHELL'
export CONFIG_SHELL
exec "\$@"
fi
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
echo
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
$as_echo "$ac_log"
} >&5
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Handling of arguments.
for ac_config_target in $ac_config_targets
do
case $ac_config_target in
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"src/gle/Makefile") CONFIG_FILES="$CONFIG_FILES src/gle/Makefile" ;;
"src/gle/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/gle/bitmap/Makefile" ;;
"src/gle/letzfitz/Makefile") CONFIG_FILES="$CONFIG_FILES src/gle/letzfitz/Makefile" ;;
"src/gle/surface/Makefile") CONFIG_FILES="$CONFIG_FILES src/gle/surface/Makefile" ;;
"src/gle/tokens/Makefile") CONFIG_FILES="$CONFIG_FILES src/gle/tokens/Makefile" ;;
"src/fbuild/Makefile") CONFIG_FILES="$CONFIG_FILES src/fbuild/Makefile" ;;
"src/makefmt/Makefile") CONFIG_FILES="$CONFIG_FILES src/makefmt/Makefile" ;;
"src/manip/Makefile") CONFIG_FILES="$CONFIG_FILES src/manip/Makefile" ;;
"src/TeX/Makefile") CONFIG_FILES="$CONFIG_FILES src/TeX/Makefile" ;;
"src/gui/MakefileAC") CONFIG_FILES="$CONFIG_FILES src/gui/MakefileAC" ;;
"src/gui/qgle.pro") CONFIG_FILES="$CONFIG_FILES src/gui/qgle.pro" ;;
"src/doc/gle.1") CONFIG_FILES="$CONFIG_FILES src/doc/gle.1" ;;
"platform/autoconf/gle-graphics.pc") CONFIG_FILES="$CONFIG_FILES platform/autoconf/gle-graphics.pc" ;;
"platform/autopackage/gle4.apspec") CONFIG_FILES="$CONFIG_FILES platform/autopackage/gle4.apspec" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
done
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used. Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fi
# Have a temporary directory for convenience. Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
tmp= ac_tmp=
trap 'exit_status=$?
: "${ac_tmp:=$tmp}"
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
{
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
test -d "$tmp"
} ||
{
tmp=./conf$$-$RANDOM
(umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp
# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then
ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ac_cs_awk_cr='\\r'
else
ac_cs_awk_cr=$ac_cr
fi
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF
{
echo "cat >conf$$subs.awk <<_ACEOF" &&
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
echo "_ACEOF"
} >conf$$subs.sh ||
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
. ./conf$$subs.sh ||
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
if test $ac_delim_n = $ac_delim_num; then
break
elif $ac_last_try; then
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
else
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
fi
done
rm -f conf$$subs.sh
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' >$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
for (key in S) S_is_set[key] = 1
FS = ""
}
{
line = $ 0
nfields = split(line, field, "@")
substed = 0
len = length(field[1])
for (i = 2; i < nfields; i++) {
key = field[i]
keylen = length(key)
if (S_is_set[key]) {
value = S[key]
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
len += length(value) + length(field[++i])
substed = 1
} else
len += 1 + keylen
}
print line
}
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
h
s///
s/^/:/
s/[ ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@srcdir@:/:/g
s/^:*//
s/:*$//
x
s/\(=[ ]*\).*/\1/
G
s/\n//
s/^[^=]*=[ ]*$//
}'
fi
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"
# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF
# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.
# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
if test -z "$ac_tt"; then
break
elif $ac_last_try; then
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
else
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
fi
done
# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any. Preserve backslash
# newline sequences.
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[ ]*#[ ]*define[ ][ ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' >$CONFIG_STATUS || ac_write_fail=1
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
for (key in D) D_is_set[key] = 1
FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
line = \$ 0
split(line, arg, " ")
if (arg[1] == "#") {
defundef = arg[2]
mac1 = arg[3]
} else {
defundef = substr(arg[1], 2)
mac1 = arg[2]
}
split(mac1, mac2, "(") #)
macro = mac2[1]
prefix = substr(line, 1, index(line, defundef) - 1)
if (D_is_set[macro]) {
# Preserve the white space surrounding the "#".
print prefix "define", macro P[macro] D[macro]
next
} else {
# Replace #undef with comments. This is necessary, for example,
# in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
if (defundef == "undef") {
print "/*", prefix defundef, macro, "*/"
next
}
}
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
shift
for ac_tag
do
case $ac_tag in
:[FHLC]) ac_mode=$ac_tag; continue;;
esac
case $ac_mode$ac_tag in
:[FHL]*:*);;
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
:[FH]-) ac_tag=-:-;;
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
esac
ac_save_IFS=$IFS
IFS=:
set x $ac_tag
IFS=$ac_save_IFS
shift
ac_file=$1
shift
case $ac_mode in
:L) ac_source=$1;;
:[FH])
ac_file_inputs=
for ac_f
do
case $ac_f in
-) ac_f="$ac_tmp/stdin";;
*) # Look for the file first in the build tree, then in the source tree
# (if the path is not absolute). The absolute path cannot be DOS-style,
# because $ac_f cannot contain `:'.
test -f "$ac_f" ||
case $ac_f in
[\\/$]*) false;;
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
esac ||
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
esac
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
as_fn_append ac_file_inputs " '$ac_f'"
done
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
configure_input='Generated from '`
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
`' by configure.'
if test x"$ac_file" != x-; then
configure_input="$ac_file. $configure_input"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
fi
# Neutralize special characters interpreted by sed in replacement strings.
case $configure_input in #(
*\&* | *\|* | *\\* )
ac_sed_conf_input=`$as_echo "$configure_input" |
sed 's/[\\\\&|]/\\\\&/g'`;; #(
*) ac_sed_conf_input=$configure_input;;
esac
case $ac_tag in
*:-:* | *:-) cat >"$ac_tmp/stdin" \
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
esac
;;
esac
ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
as_dir="$ac_dir"; as_fn_mkdir_p
ac_builddir=.
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
# A ".." for each directory in $ac_dir_suffix.
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
case $srcdir in
.) # We are building in place.
ac_srcdir=.
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\\/]* | ?:[\\/]* ) # Absolute name.
ac_srcdir=$srcdir$ac_dir_suffix;
ac_top_srcdir=$srcdir
ac_abs_top_srcdir=$srcdir ;;
*) # Relative name.
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_build_prefix$srcdir
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
case $ac_mode in
:F)
#
# CONFIG_FILE
#
case $INSTALL in
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
esac
ac_MKDIR_P=$MKDIR_P
case $MKDIR_P in
[\\/$]* | ?:[\\/]* ) ;;
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
esac
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
p
q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_datarootdir_hack='
s&@datadir@&$datadir&g
s&@docdir@&$docdir&g
s&@infodir@&$infodir&g
s&@localedir@&$localedir&g
s&@mandir@&$mandir&g
s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF
# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
s&@MKDIR_P@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
"$ac_tmp/out"`; test -z "$ac_out"; } &&
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined. Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined. Please make sure it is defined" >&2;}
rm -f "$ac_tmp/stdin"
case $ac_file in
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
esac \
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
;;
:H)
#
# CONFIG_HEADER
#
if test x"$ac_file" != x-; then
{
$as_echo "/* $configure_input */" \
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
} >"$ac_tmp/config.h" \
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
else
rm -f "$ac_file"
mv "$ac_tmp/config.h" "$ac_file" \
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
fi
else
$as_echo "/* $configure_input */" \
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|| as_fn_error $? "could not create -" "$LINENO" 5
fi
;;
esac
done # for ac_tag
as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save
test $ac_write_fail = 0 ||
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded. So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status. When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
ac_cs_success=:
ac_config_status_args=
test "$silent" = yes &&
ac_config_status_args="$ac_config_status_args --quiet"
exec 5>/dev/null
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
exec 5>>config.log
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
# would make configure fail if this is the last instruction.
$ac_cs_success || as_fn_exit 1
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS: $CPPFLAGS" >&5
$as_echo "CPPFLAGS: $CPPFLAGS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS: $LDFLAGS" >&5
$as_echo "LDFLAGS: $LDFLAGS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS: $LIBS" >&5
$as_echo "LIBS: $LIBS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SIMPLE_LIBS: $SIMPLE_LIBS" >&5
$as_echo "SIMPLE_LIBS: $SIMPLE_LIBS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SIMPLE_LIBS_DL: $SIMPLE_LIBS_DL" >&5
$as_echo "SIMPLE_LIBS_DL: $SIMPLE_LIBS_DL" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SIMPLE_LDFLAGS: $SIMPLE_LDFLAGS" >&5
$as_echo "SIMPLE_LDFLAGS: $SIMPLE_LDFLAGS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
** Configuration summary for GLE $GLE_VERSION$GLE_SNAPSHOT ($host):
" >&5
$as_echo "
** Configuration summary for GLE $GLE_VERSION$GLE_SNAPSHOT ($host):
" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Bitmap support:" >&5
$as_echo " ** Bitmap support:" >&6; }
if test "$HAVE_LIBPNG" = 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PNG support: yes" >&5
$as_echo " PNG support: yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PNG support: no" >&5
$as_echo " PNG support: no" >&6; }
fi
if test "$HAVE_LIBTIFF" = 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: TIFF support: yes" >&5
$as_echo " TIFF support: yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: TIFF support: no" >&5
$as_echo " TIFF support: no" >&6; }
fi
if test "$HAVE_LIBJPEG" = 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JPEG support: yes" >&5
$as_echo " JPEG support: yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JPEG support: no" >&5
$as_echo " JPEG support: no" >&6; }
fi
if test "x$with_staticlink" != "xno"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Statically link: yes" >&5
$as_echo " Statically link: yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Statically link: no" >&5
$as_echo " Statically link: no" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
if test "$HAVE_X11" = 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** X11 preview support: yes" >&5
$as_echo " ** X11 preview support: yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** X11 preview support: no" >&5
$as_echo " ** X11 preview support: no" >&6; }
fi
if test "$HAVE_CAIRO" = 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Cairo graphics support: yes" >&5
$as_echo " ** Cairo graphics support: yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Cairo graphics support: no" >&5
$as_echo " ** Cairo graphics support: no" >&6; }
fi
if test "$HAVE_POPPLER" = 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Poppler PDF support: yes" >&5
$as_echo " ** Poppler PDF support: yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Poppler PDF support: no" >&5
$as_echo " ** Poppler PDF support: no" >&6; }
fi
if test "$HAVE_SOCKETS" = 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Socket support: yes" >&5
$as_echo " ** Socket support: yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Socket support: no" >&5
$as_echo " ** Socket support: no" >&6; }
fi
if test "$MAKE_MANIP" = 1; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Include 'manip' utility: yes" >&5
$as_echo " ** Include 'manip' utility: yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Include 'manip' utility: no" >&5
$as_echo " ** Include 'manip' utility: no" >&6; }
fi
if test "x$with_debug" != "xno"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Debug mode: on" >&5
$as_echo " ** Debug mode: on" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Debug mode: off" >&5
$as_echo " ** Debug mode: off" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
if test "$HAVE_QT" = 1; then
if test "x$QT4VER" != "x?"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** GLE GUI support: yes (Qt4 version: $QT4VER)" >&5
$as_echo " ** GLE GUI support: yes (Qt4 version: $QT4VER)" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** GLE GUI support: yes" >&5
$as_echo " ** GLE GUI support: yes" >&6; }
if test "x$QMAKE_VERS" != "xnone"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE_VERS" >&5
$as_echo " $QMAKE_VERS" >&6; }
fi
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** GLE GUI support: no" >&5
$as_echo " ** GLE GUI support: no" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (make sure you have Qt >= 4.1.1 devel and use ./configure --with-qt=/path/to/qt.)" >&5
$as_echo " (make sure you have Qt >= 4.1.1 devel and use ./configure --with-qt=/path/to/qt.)" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Install data into: $GLE_INSTALL_DATA" >&5
$as_echo "** Install data into: $GLE_INSTALL_DATA" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Install binary into: $GLE_INSTALL_BIN" >&5
$as_echo "** Install binary into: $GLE_INSTALL_BIN" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (use ./configure --prefix=dir to change the installation directory.)" >&5
$as_echo " (use ./configure --prefix=dir to change the installation directory.)" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
if test "x$with_autopackage" != "xno"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GLE $GLE_VERSION$GLE_SNAPSHOT has been configured. Run \"make\" to create an autopackage for GLE." >&5
$as_echo "GLE $GLE_VERSION$GLE_SNAPSHOT has been configured. Run \"make\" to create an autopackage for GLE." >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GLE $GLE_VERSION$GLE_SNAPSHOT has been configured. The next step is to run \"make\". After \"make\" completes, run \"make install\" to install GLE." >&5
$as_echo "GLE $GLE_VERSION$GLE_SNAPSHOT has been configured. The next step is to run \"make\". After \"make\" completes, run \"make install\" to install GLE." >&6; }
fi
gle-graphics-4.2.4c/README.txt 0000664 0000000 0000000 00000027354 11405446017 014444 0 ustar root root GLE Readme
==========
This document contains instructions on how to compile, install, and run GLE4.
Supported platforms: Windows, Linux, Mac OS/X, Unix, OS/2.
Contents
--------
1. What is GLE?
2. Installing a GLE binary
2.1 Installing GLE on Windows
2.2 Installing GLE on OS/2
3. Running GLE
4. Compiling GLE from the source code
4.1 Compiling with GCC (Windows, Linux, Mac OS/X, ...)
4.2 Compiling on Windows (with Microsoft Visual C++)
4.3 Compiling on OS/2 (with GCC 3.2.1)
4.4 Notes for all platforms
5. Source code organization
6. License (BSD)
1. What is GLE?
---------------
GLE (Graphics Layout Engine) is a graphics scripting language designed for creating publication quality graphs, plots, diagrams, figures and slides. GLE supports various graph types (function plots, histograms, bar graphs, scatter plots, contour lines, color maps, surface plots, ...) through a simple but flexible set of graphing commands. More complex output can be created by relying on GLE's scripting language, which is full featured with subroutines, variables, and logic control. GLE relies on LaTeX for text output and supports mathematical formulea in graphs and figures. GLE's output formats include EPS, PS, PDF, JPEG, and PNG.
More information is available at .
2. Installing a GLE Binary
--------------------------
GLE is available as binary installation packages (one for each supported platform) or as source code. The source code must be compiled before it can be installed. To compile GLE from its source code on different platforms, see Section 4. This section describes how a GLE binary can be installed.
2.1 Installing GLE on Windows
-----------------------------
The easiest way to install GLE on Windows is to download the self installing executable. The self installing executable is named GLE--exe-win32.exe. By double-clicking this file in Windows Explorer, it will guide you through the installation process.
An installation guide illustrating this process (with screenshots) is available here:
During installation, GLE will search for installed programs, such as GhostScript and LaTeX. GLE does not require these for its most basic operation, but it does so for more advanced features, such as producing PDF output and processing scripts including LaTeX commands. This search process runs in a black window (Command Prompt) and the output should be similar to the following:
Running GLE -finddeps "C:\Program Files" (locate GLE fonts and optionally GhostScript/LaTeX): ................................................................................
................................................................................
................................................................................
Found: GLE 4.1.0 in C:\Program Files\Gle4\4.1.0\bin\gle.exe
Found: GLE 4.0.12 in C:\Program Files\Gle4\4.0.12\bin\gle.exe (*)
Found: latex.exe in '?'
Found: pdflatex.exe in '?'
Found: dvips.exe in '?'
Found: gswin32c.exe in 'C:\Program Files\Tools\gs8.53\gs8.53\bin\gswin32c.exe'
Press enter to continue ...
In this example, GLE has detected that GhostScript is installed on my computer, but it did not detect LaTeX. More information on using GLE with LaTeX is given below. For now, just focus the window saying "Press enter to contunue..." and press enter. Next click Finish on the installer screen.
GLE should now have added a new entry titled GLE to your start menu. Clicking it pops up a menu showing the options "Command Prompt", "Readme", "Uninstall", and "Website". Click on "Command Prompt" to open a command prompt. Now type the command "gle" and press enter.
C:\Program Files\Gle4\4.1.0\samples> gle
GLE version 4.1.0
Usage: gle [options] filename.gle
More information: gle /help
GLE should respond as in the example above. If you instead get the message "'gle' is not recognized as an internal or external command, operable program or batch file", then the folder containing "gle.exe" was not correctly added to your system's search path during installation.
If the version number printed by GLE is not correct, then a previous version of GLE may be installed on your computer. Either uninstall that version or remove it from your system's search path (you will still be able to run it through the -v option, as discussed in the reference manual).
I will now show you how to change the search path. This is a list of folders that Windows searches for executable programs when you try to run a particular program from the command prompt. Note that normally the GLE installer should have done this for you. Only perform the next step if you saw an error message or incorrect GLE version in the previous step.
Select "Control Panel" from the start menu and click "System". Navigate to the "Advanced" tab and click the "Environment Variables" button. Select the variable "PATH" and click the "Edit" button. Add to the "Value" field the location of the GLE executable "gle.exe". This location is the installation folder you specified during installation with "\bin" added at the end, for example, C:\Program Files\Gle4\4.1.0\bin. Note that different folders in the PATH are separated with the symbol ";". You might need to change the value of PATH in either the "User" or the "System" variables.
If you have LaTeX installed on your computer, you also need to perform the next step. LaTeX may not be installed in "C:\Program Files", and then GLE does not detect it automatically during installation. Open the command prompt and run "gle -finddeps LATEXPATH", with LATEXPATH the location of your LaTeX installation. The following example assumes that the MiKTeX distribution is installed (http://www.miktex.org/).
C:>gle -finddeps "C:\MiKTeX"
Finding dependencies in: C:\MiKTeX: ...........................
Found: gle.exe in 'C:\Program Files\gle4\bin'
Found: gswin32c.exe in 'C:\Program Files\Tools\gs\gs\gs8.00\bin'
Found: latex.exe in 'C:\MiKTeX\Main\miktex\bin'
Found: dvips.exe in 'C:\MiKTeX\Main\miktex\bin'
Note that both GhostView and LaTeX are optional. For creating simple EPS graphs, they are not required, i.e., GLE will still work if you see question marks for gswin32c.exe, latex.exe and dvips.exe.
You are all set. Information on how to run GLE is available in Section 3 and in the manual.
2.2 Installing GLE on OS/2
--------------------------
Since you are reading this you downloaded the do it yourself .tar.gz package for GLE installation. To install this package:
1) Unzipping gle-graphics-x.y.z-src.tar.gz will create the following files.
gle\
gle\doc\readme (you are reading this)
gle\doc\gle-manual.pdf
gle\gle.exe
gle\gcc321m.dll
gle\fbuild.exe
gle\makefmt.exe
gle\inittex.ini
gle\glerc
gle\font\*
2) Put gle.exe somewhere into your PATH and *.dll into your LIBPATH.
3) Add "SET GLE_TOP=x:/path/gle" to your config.sys.
3. Running GLE
--------------
Running GLE is similar on all supported platforms.
Note that GLE is a command line application. It takes as input a GLE script file and outputs an EPS, PS, PDF, JPG, or PNG file. GLE cannot be run from inside a file manager such as Windows Explorer. Instead it should be started from a terminal: an X-terminal or console application in Linux or the command prompt in Windows.
To start GLE, open a terminal/command prompt and issue the command:
gle -d outputtype yourfile.gle
where outputtype is one of: eps, teps, ps, pdf, jpg, png
and yourfile.gle is the file containing the your GLE script.
E.g. (Windows):
---------------------------------------------------------
C:\Program Files\Gle4\samples>gle -d eps sample.gle
GLE 4.1.0 [sample.gle]-C-R-[sample.eps]
---------------------------------------------------------
Preview the output file sample.eps with GhostView (e.g., by browsing with your favorite file manager to in this case C:\Program Files\Gle4\samples and clicking sample.eps).
See the GLE manual for more information.
Or contact the GLE mailing list (glx-general) if you have any questions.
There is also an installation guide / introductory tutorial available for Windows here:
and for Linux here:
4. Compiling GLE from the source code
-------------------------------------
The GLE source code is distributed as gle-graphics-x.y.z-src.tar.gz.
4.1 Compiling with GCC (Windows, Linux, Mac OS/X, ...)
------------------------------------------------------
To install GLE system-wide:
./configure
make
make doc
su
make install
To install GLE in your home directory:
./configure --prefix=$HOME/apps
make
make doc
make install
A detailed description of the above process can be found here:
The "make doc" builds the GLE manual in PDF format. This step is optional and requires that you have "pdflatex" installed.
4.1.1 Installing the additional fonts from "gle-graphics-extrafonts-1.0.tar.gz"
-------------------------------------------------------------------------------
GLE has a set of additional fonts that are distributed separately. To include these in your GLE installation, you have to download them and extract them in the gle-graphics-x.y.z directory before compiling GLE. You also have to include the option "--with-extrafonts=yes" while configuring. For example,
$ cd gle-graphics-x.y.z
$ tar -xvzf $HOME/gle-graphics-extrafonts-1.0.tar.gz
$ ./configure --with-extrafonts=yes
$ make clean
$ make
$ make doc
$ make install
These instructions assume that you downloaded gle-graphics-extrafonts-1.0.tar.gz and saved it into your home directory.
4.2 Compiling on Windows (with Microsoft Visual C++)
----------------------------------------------------
The compilation process uses "Makefiles". Visual Studio project files are not supported. Makefiles and config files ending in .vc are for the Microsoft Visual C++ compiler.
To compile GLE with support for including bitmap files
libtiff and
libpng
are required, and
HAVE_LIBTIFF = 1
HAVE_LIBPNG = 1
must be enabled in config.i (to disable bitmap support, comment these out with '#')
you must have the environment variable GLE_TOP point to the location
of C:\Path\To\gle4\bin
you must have the environment variable LIBTIFFDIR point to the location
of the libtiff.h and .lib files
you must have the environment variable LIBPNGDIR point to the location
of the png.h and .lib files
nmake -f Makefile.vc
4.3 Compiling on OS/2 (with gcc 3.2.1)
--------------------------------------
change the values of
INSTALL_DIR (D:/UTILS/gle)
INSTALL_BIN (D:/UTILS/bin)
ADD_DLLS (D:/GCC.321/dll/gcc321m.dll)
ADD_DOCS (readme ../gle-refman/gle-manual.pdf)
PROJECT_DIR (E:/Works/Projects/CGLE/current/gle4)
in config.os2
make -f Makefile.os2
4.4 Notes for all platforms
---------------------------
Note: If you get the following error:
StringKeyHash.h:8: ext/hash_map: No such file or directory
Then add -DGCC2 to EXTRA_DEFS in config.{gcc,os2,nocygwin}
(Or upgrade to a newer version of gcc.)
The compilation process will built:
gle(.exe) : GLE main executable
fbuild(.exe) : makes *.fve fron *.gle using fbuild in the src\font directory
makefmt(.exe) : makes font files *.fmt from *.afm in the src\font directory
It will also run the fbuild and makefmt commands and put the
font files in the build/font directory along with the font.dat file.
It will also run your newly built gle on the files
in the src\samples subdirectory.
The clean target is also defined on all makefiles.
5. Source code organization
---------------------------
The source code is contained in the src sub directory, where each module has its
own directory (and makefiles). Binaries are put in the build/bin sub directory.
6. License
----------
See LICENSE.txt.
gle-graphics-4.2.4c/Makefile.os2 0000664 0000000 0000000 00000011237 11405446017 015101 0 ustar root root ########################################################################
# #
# GLE - Graphics Layout Engine #
# #
# Modified BSD License #
# #
# Copyright (C) 2009 GLE. #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions #
# are met: #
# #
# 1. Redistributions of source code must retain the above copyright #
# notice, this list of conditions and the following disclaimer. #
# #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials provided with #
# the distribution. #
# #
# 3. The name of the author may not be used to endorse or promote #
# products derived from this software without specific prior written #
# permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR #
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED #
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE #
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY #
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL #
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS #
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER #
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR #
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
# #
########################################################################
#
# global makefile for gle
# for gcc
#
include config.i
include config.os2
all:
-$(MKDIR) build
-$(MKDIR) build/bin
-$(MKDIR) build/lib
-$(CP) src/config.h.os2 src/config.h
make -C src/gle/bitmap -f Makefile.os2
make -C src/gle/surface -f Makefile.os2
make -C src/gle/letzfitz -f Makefile.os2
make -C src/gle/tokens -f Makefile.os2
make -C src/gle -f Makefile.os2
make -C src/fbuild -f Makefile.os2
make -C src/makefmt -f Makefile.os2
make -C src/fonts -f Makefile.os2
make -C src/lib -f Makefile.os2
make -C src/TeX -f Makefile.os2
clean:
make -C src/gle/bitmap -f Makefile.os2 clean
make -C src/gle/surface -f Makefile.os2 clean
make -C src/gle/letzfitz -f Makefile.os2 clean
make -C src/gle/tokens -f Makefile.os2 clean
make -C src/gle -f Makefile.os2 clean
make -C src/fbuild -f Makefile.os2 clean
make -C src/makefmt -f Makefile.os2 clean
make -C src/fonts -f Makefile.os2 clean
make -C src/TeX -f Makefile.os2 clean
make -C src/manip -f Makefile.os2 clean
-$(RM) src/config.h
-$(RMDIR) include
-$(RMDIR) lib
-$(RMDIR) build
manip:
-$(CP) src/config.h.os2 src/config.h
make -C src/manip -f Makefile.os2
install: clean_install
-$(MKDIR) $(INSTALL_DIR)
-$(CP) -R build/* $(INSTALL_DIR)/
-$(CP) $(INSTALL_DIR)/gle.exe $(INSTALL_BIN)/gle.exe
@echo Please add "SET GLE_TOP=$(INSTALL_DIR)" to your CONFIG.SYS
clean_install:
-$(RM) $(INSTALL_BIN)/bin/gle.exe
-$(RMDIR) $(INSTALL_DIR)/font
-$(RM) $(INSTALL_DIR)/bin/gle.exe
-$(RM) $(INSTALL_DIR)/bin/fbuild.exe
-$(RM) $(INSTALL_DIR)/bin/makefmt.exe
-$(RM) $(INSTALL_DIR)/inittex.ini
full: clean all
distrib:
-$(RM) $(BASE_NAME)-os2-$(VERSION_NUMBER).$(BUILD_NUMBER).zip
-$(MKDIR) gle
-$(MKDIR) gle/doc
-$(CP) -R bin/* gle/.
-$(CP) $(ADD_DLLS) gle/.
-$(CP) $(ADD_DOCS) gle/doc/.
-$(CP) contrib/samplecfg/*.os2 gle/.
-$(ZIP) -r $(BASE_NAME)-os2-$(VERSION_NUMBER).$(BUILD_NUMBER).zip gle/*
-$(RMDIR) gle
lxlite:
lxlite bin/*.exe
commit:
cvs commit -m "commit via make working on version $(TAG)"
tagall:
cvs rtag $(TAG) $(MODULE_NAME) $(DEPENDANT_MODULES)
gle-graphics-4.2.4c/config.aconf 0000664 0000000 0000000 00000005614 11405446017 015216 0 ustar root root ########################################################################
# #
# GLE - Graphics Layout Engine #
# #
# Modified BSD License #
# #
# Copyright (C) 2009 GLE. #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions #
# are met: #
# #
# 1. Redistributions of source code must retain the above copyright #
# notice, this list of conditions and the following disclaimer. #
# #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials provided with #
# the distribution. #
# #
# 3. The name of the author may not be used to endorse or promote #
# products derived from this software without specific prior written #
# permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR #
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED #
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE #
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY #
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL #
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS #
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER #
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR #
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
# #
########################################################################
#
# config file for gcc and make
#
OBJ_SUFF = o
EXE_SUFF =
AR = ar
RM = rm -rf
RMDIR = rm -rf
MKDIR = mkdir
PATH_SEP = /
#
# other global defines
#
PROJECT_BINDIR = ../../build
PROJECT_LIBDIR = ../../lib
PROJECT_INCDIR = ../../include
gle-graphics-4.2.4c/ChangeLog.txt 0000664 0000000 0000000 00000142201 11726234305 015324 0 ustar root root 4.2.4c (March, 2012)
Bug Fixes
Added checks on number of data sets, bar definitions, and fill definitions (QGLE crash reports 02/07/2012 and 02/16/2012)
Save .glerc in user's AppData on Windows
Added manifest to prevent AUC Virtualization on Windows Vista and above
Search "C:\Program Files (x86)" on 64 bit Windows for installed software
Fixed type in manual: logfit -> logefit
Fixed bug in tokenizer
Fixed crash when parsing "let d1 = x.x" (QGLE crash report 02/28/2012)
Fix for message "QWidget::setWindowModified: The window title does not contain a '[*]' placeholder"
Fixed bug in centering of .inc output (reported by Antonio DiCesare)
Bug 3485409: GLE should check for Cairo version >= 1.10.0
Added Python script to generate GLE palette functions (contributed by Brandon Aubie)
Fixed "too many open files" when including bitmaps in filled boxes (reported by Alexis Letessier)
Fixed issue with filled boxes (reported by Alexis Letessier)
Make GLE compile with GCC 4.7.x (issue raised by Terje Røsten)
Support other 64bit systems besides x86
Fixed more GLU problems introduced in Qt4.8
4.2.4b (January, 2012)
Bug Fixes
Added GLU dependency to make GLE compile with Qt4.8
Fixed bug in fallback to "texcmr" when using -cairo
Fixed crash due to subroutine argument type mismatch
4.2.4 (January, 2012)
New Features
"Marker only" 3D plots (patch by Laurence Abbott)
Added "discontinuity threshold" option to graph block
Added "draw" command to graph block
Added "msize" option to box plots (request by Nicolas Lerme)
Added GLE-TeX symbols \uparrow, \downarrow, \updownarrow, \Uparrow, \Downarrow, \Updownarrow, and \backslash
Added changes by Pascal Buescher to feyn.gle
Added functions rgba() and rgba255()
Added functions xg3d() and yg3d()
Always embed all fonts in PDFs
Cairo (www.cairographics.org) rendering now available in QGLE
Control constructs (e.g., if-then-else and for-next) can be used in graph and key blocks
Feature #3174151: Variable justification
GNU/Hurd now officially supported
Multiple layers in graph blocks
New "begin length" block to compute curve length
New CSV file reader with better error handling and wider CSV format support (including Microsoft Excel)
Option "-cairo" can now be combined with LaTeX expressions
Semi-transparent colors (also known as alpha blending)
Support for "key separator" in graph blocks
Use Poppler PDF library for rendering in QGLE and for image exports
Support GZIP compressed CSV data in graph blocks
QGLE export dialog remembers resolution and other settings
Better definition of circle style markers (including "dot")
Added support for arc arrow heads in QGLE edit mode
Bug Fixes
Fix for "QGLE does not support bold / italic fonts" (aka "set font rm" insertion problem)
Bug #3101026: Fixes for possible buffer overflows
Bug #3344819: Marker line width is different in legend
Fix for bug in number formatting (part before 10^x missing)
Fix for compiler error on std::min/max (suggested by Laurence Abbott)
Fixed \leftarrow kerning problem
Patch by Michal Vyskocil: Use QMAKE_LIBS_DYNLOAD
Subticks are now generated over the entire axis range
g_bitmap now also works with "-cairo"
Bug #3434175: Turning on sublabels produces wrong width of some subticks
Fixed bug in when QGLE edits scripts with filled boxes
4.2.3 (September, 2010)
#3058793: y1axis dominates the plot (lin/log) bound to y2axis
#2782744: Automatic tick labels with latex
Fixed compilation on Mac OS/X
The graph block's "data" command now understands column c0, which contains the data set's line numbers
#2996854: Missing a few multiple bars
Fixed: xend()/yend() do not work in QGLE's edit mode
QGLE's about box has been improved and shows license and contributors in separate tabs
Graph command 'xsubticks length' now overrides 'xaxis grid'
Fixed: key block with 'fill' incorrectly changes the 'set fill' value
#2995351: Unwanted vertical space generated in graph module
Added "background" command to graph block to set the background color
#2949503: Fixed a number of errors in the GLE 4.2.2 manual
#2950381: Allow "marker m$" with m$ a string variable in the graph block
#2949642: Log axis sub tick font size should be based on the "alabelscale" setting
#2949495: Access to environment variables: added getenv() command and allow $ENVVAR in file names
Added support for single quoted strings
Escaping single and double quote characters in strings now works by doubling them
Experimental support for EMF output (the vector format on Windows).
New QGLE menu entry "Edit | Copy as EMF" to copy the diagram to the clipboard on Windows.
4.2.2 (January, 2010)
New Features
Windows installer can now copy settings from a previous GLE install thereby avoiding the long 'find dependencies' process.
Support \'' style umlauts in LaTeX expressions (bug #2858424).
Additional command line options for GhostScript/PDFLaTeX/LaTeX/DVIPS can now be specified in the "glerc" settings file
GLE now expands environment variables in the tool paths specified in the "glerc" settings file.
Bug Fixes
QGLE now no longer modifies the string argument of "write" if a text string is moved or one of its properties is changed.
GLE now compiles with "-Wl,--no-add-needed" and hopefully also with binutils-gold.
Fixed GLE crash on illegal font name.
Fixed GLE crash on certain scripts with error bars.
Fixed regression in key block in 3.5 compatibility mode.
Diamond markers are now also centered in 3.5 emulation mode.
QGLE now sets the locale such that the decimal point indicator is "." (workaround "export LC_ALL=C").
Fixed crash in certain bar graphs (reported by Massimo Canonico).
4.2.1 (August, 2009)
New Features
Added "from/to/step" options to "values" command of "contour" block.
Number of available datasets increased from 100 to 1000 (patch by Laurence Abbott).
Added "reload" button to QGLE.
Added "key off" to turn off the key of a graph block (Feature #2781887).
Added "ylabels align left" to align all labels left (right is the default).
Added support for FreeBSD (Bug #2786222).
Added support for --docdir configure option.
Changed package name to "gle-graphics" and distribute GLE's source code as .tar.gz.
Moved plotter fonts to a separate package (./configure --with-extrafonts=yes to enable these).
Added license information to all files where this can be done easily.
Replaced font metrics files for core PostScript fonts with a set that is freely available from Adobe.
Manual can now be compressed and installed as "gle-manual.pdf.gz".
Configure script checks for "qmake-qt4" before checking for "qmake".
Bug Fixes
Arrowhead not drawn correctly when using dashed line (#2838971).
Fixed problem in TeX macro substitution (#2838978).
Curve with zero distance control points should be straight line #2838965).
Added support for operations on arbitrary length strings.
More commands are now allowed to come before the "size" command (e.g., bitmap_info).
Improved routine for determining axis tick labels.
Fixed QGLE crash on key block error (e.g., entry with no text).
QGLE no longer crashes when "Save As" is selected while an EPS (not GLE) file is loaded.
QGLE fix for the case that a "recent file" is opened that no longer exists.
Fixed crash in "postscript" include command if bounding box is at the end of the EPS.
The "clean" target now removes all files generated by "make".
A "distclean" target has been added to also remove all files generated by "./configure".
Replaced calls to "make" with "$(MAKE)" to handle the case that GNU make is "gmake".
Added range checks for "from" "to" and "step" for the "letz" and "fitz" blocks.
4.2.0 (April, 2009)
New Features
Added "range" and "nsteps" options to the graph block's let command.
Added functions file$() and path$() to retrieve the script's name and path (suggested by Jörg Baumgartner).
Added function isname() that tests if its argument is a named point or object.
Added "set background" to set background color of shade / grid filling patterns.
Added "background" to bar command and key block.
Added "set fillmethod", which can be "GLE" (more accurate) or "PostScript" (faster).
Source distribution now includes syntax highlighting patterns (in contrib/editors/).
Source distribution now includes the GLE manual (compile with "make doc").
Adds "ylabels log n1" to enable subticks without labels on a log scale axis (patch by Luca Donetti).
Adds option "adist" to "x/ytitle" to set the distance between the title and axis (useful for aligning axis titles of multiple graphs).
Support for multi-dimensional let (#2008719).
(See: let-multi-dim.gle.)
Support for stdin/stdout (#2009125).
E.g., cat file.gle | gle -d pdf - > file.pdf
E.g., cat file.gle | gle -o file.pdf -
Experimental support for objects with named points.
(See: transistor.gle, shapes.gle.)
Scalable Vector Graphics (SVG) output device (-d svg).
Engineering format "eng" for the format$ function and axis format option.
(See: axisformat.gle.)
Quantile based axis auto-scaling (by Florian Wisser).
New axis command: "roundrange on/off" to disable rounding the axis range to the next tick.
New key block mode: "compact", which combines "marker" and "line" in one column.
New key block setting: "background", which sets the background color.
Key box is now transparent (only for keys defined within the graph block).
Adds function "atan2" (#1881021).
QGLE is now available on MacOS/X (installation instructions).
"File | Edit" menu added to QGLE for easy access to files included in GLE script.
"Edit | Copy as Bitmap" menu added to copy the diagram to the clipboard.
Adds entries to QGLE's help menu to display the GLE manual and website.
GUI for detecting GLE's software dependencies (GhostScript and LaTeX).
Automatically infer device from extension of "-o" option, which specifies the output name.
DSC comments for title and creator added to PostScript/EPS/PDF output.
Includes HiResBoundingBox in PostScript output.
Better support for UTF8 accents in LaTeX expressions (use \usepackage[utf8]{inputenc}).
Command line option "-noligatures" to disable the use of ligatures for "fl" and "fi".
Bug Fixes
Fix for stack corruption in PSGLEDevice::read_psfont() (bug #2543164).
GLE now creates .inc file if -inc is given and script does not contain TeX expressions (bug #2165591).
Fix for smooth crash in case of too few data and missing values (reported by Cilliers Kruger).
Fix for 3D plot bounding box (reported by Brandon Aubie).
Fix for QGLE compilation on MacOS/X: add "-spec macx-g++" to qmake (suggested by Mol Lukas).
Fix for "xsubticks lwidth" also affecting the line width of the main ticks.
Fix for the "strip" target in Makefile.in (by Michal Vyskocil).
Auto-ranging now also works for x2axis/y2axis (#1933925).
GLE can't handle filenames with a dot (#2015073).
Fix for auto-range function with data sets with no spread (suggested by Florian Wisser).
Fix for "nox" option of "data" command of graph block.
Fixes for incorrect code points in GLE's Unicode table (o.a., for "ü").
Combining "clip" + "fill" in "begin path/end path" does not perform the requested fill.
Command line option "-noctrl-d" and some others are not documented in GLE's man page and "-help" output.
Landscape detection PS mode is now more robust.
Fixes for all warnings new in GCC 4.3.0.
4.1.2 (March, 2008)
GLE fails to read certain JPG files (bitmap command).
Colormap command does not work for non-square .z files.
Bug "rotate + tex = misplacement of text" (#1881020).
Patch to make GLE compile with gcc 4.3 (include limits.h) (by Terje Røsten).
QGLE's export fails if path contains a space or '.' character.
4.1.1 (January, 2008)
Smooth option of "dn line" fixed for log-scale graphs (Bug #1860761).
Patches to make GLE compile with gcc 4.3 (by Michal Vyskocil).
Patches to make GLE work on 64 bit machines with "lib64" dir (by Michal Vyskocil).
Fix for GhostScript problem in QGLE on 64 bit machines.
4.1.0 (December, 2007)
Detailed Changes
Added man page (now "man gle" should work on Linux).
Added option "-verbosity" to set the amount of console output produced by GLE.
Grid is now by default under the bars (use "grid ontop" to get the old behavior).
Added "boxcolor" command to key block to set the color of the box indicating the fill.
Added "append" and "prepend" commands to format$ strings.
Added command "abound x y" to update the current bounding box.
Added "scale auto" "hscale auto" "vscale auto" to fit the graph to the page size.
Added auto-key based on header in data set.
Added auto-xnames based on names in first data set column.
Added "let d2 = hist d1 from 0 to 10 bins 10" for computing histograms (step 1 can be used instead of bins).
Added "bar" option to "dn line" command for drawing histograms.
Data sets can now be just one column. If "nox" is given, the x-values are set to 1...N.
Added "compatibility" command (e.g., compatibility "3.5").
Added compatibility range option to include command.
Added support for standard SVG/X11 color names (by color, alphabetical).
Added HTML notation for color names (e.g., #FF0000 = red).
Added "defcolor name color".
Added "set fill xxx" and "set pattern xxx".
Made "include filename.gle" itempotent.
Added "declare sub name args", to allow forward declarations of subroutines.
Added "default" to set default values for subroutine arguments.
Output of LaTeX is now hidden, only errors are shown if they occur.
Option "dticks" now works for log scales + improved log autoscaling.
Improved Windows installer: added bitmaps and license screen (by Vincent P LaBella).
Added "mdist d" option to "dn marker" to draw a marker every d cm along the given curve.
Added "deresolve n" option to "dn line" to subsample the points before drawing (by Laurence Abbott).
Added option "average" to "dereslove" to average the points instead of just skipping them.
Added functions dataxvalue(di,i), datayvalue(di,i), ndata(di) (by Laurence Abbott).
Added options "xmin" "xmax" "ymin" "ymax" to fitting routines of "let" command.
Added "-safemode" command line option that prevents GLE scripts from accessing the file system.
Added "-allowread" and "-allowwrite" to allow I/O in given paths if "-safemode" is given.
Added "comment" option to "data" in graph block (by Vincent P LaBella).
Example: "data filename.dat d1=c1,c2 comment //" will make GLE ignore lines starting with "//" in the data file.
Better formatting of error messages if script contains long lines.
Added support for curved arrows on arcs, elliptical arcs, and bezier curves (experimental).
Added "palette" option to colormap command.
Added fitting of arbitrary functions (based on fitls code from GLE 3.x).
Example: "let d2 = fit d1 with a*sin(b*x)+c*x^2+d".
Example: "let d2 = fit d1 with a*sin(b*x)+c*x^2+d eqstr e$ rsq r".
These two examples fit dataset d1 with a function of the form "a*sin(b*x)+c*x^2+d" and put this function in d2.
The second example in addition stores the resulting equation as a string in variable "e$" and the correlaction coefficient in "r".
4.0.12 (September, 2006)
Includes a GUI called QGLE (written by A. S. Budden)
- displays the output of GLE and updates automatically after the source file is modified (run "gle -p myfile.gle")
- has basic editing tools (add amove/line/circle/...)
- QGLE is based on the QT and Ghostscript library
Added GNU autoconf support (in addition to the regular makefile.os system)
(on Linux, one can now compile with ./configure; make; make install)
Added autopackage support
UTF8 support (limited to latin characters with accents)
LaTeX expressions are scaled to the current font height
(set texscale none/fixed/scale)
LaTeX expressions are used in key and graph blocks (set texlabels 1)
The "begin box / end box" block now fills underneath its contents
Added keyword "local" to define local variables
(see e.g., Examples | Fractals | Sierpinski on the website)
Added "colormap" command (regular and graph block)
(see e.g., Examples | 3D plots | Information Gain on the website)
Colormap works for functions and for .z files
Added option "-v" to run another version of GLE
(if more than one version is installed, use "gle -help v" to list installed versions)
Added "begin object name" and "end object" to define objects
Added "draw name.pos" to draw objects
More sensible defaults for graph font sizes
(use gle -cmode 3.0 to get the old defaults)
Font size in graph now depends on the "hei" setting
Added new set subcommands: titlescale, atitlescale, ticksscale, atitledist, alabeldist
(to set font sizes and distances relative to the value of the "hei" setting)
Distance between axis labels and title are better calculated
Added "margins", "dist", "coldist" and "row" options to key block
Added "scale h v" command to graph block, which is equivalent to a hscale/vscale pair
Added colored fill patterns for the "bar" command and key block
bar d1,d2,d3,d4 fill blue,red,blue,purple pattern none,shade,grid,shade2
Added "xnames from di" to retrieve the axis labels from a data set
Added "xnoticks p1 p2 ..." to disable ticks at specified positions
Added "ftick x0" to "axis" to manually set the position of the first tick
Added "offset y0" to "axis" to move the origin of the axis
Added "angle a" to "axis" to rotate the axis labels
Added "x0axis" and "y0axis" (these are disabled by default)
Added option "center" to center a graph block
Added option "math" to create a "math mode" graph with the axis crossing at the origin
(see e.g., Examples | 2D Simple | Sin on the website)
Added option "horiz" to bar command allowing "horizontal" bar plots
Added option "style" to bar command allowing user defined bar styles
(see e.g., Examples | 2D Complex | Color Bar on the website)
Added arrow styles "filled", "empty" and "simple"
Added support for user defined arrow styles
(see e.g., Examples | Other | Arrow Styles on the website)
Added function xbar(xp,i) retrieving the x-coordinate of bar i in a bar plot
Added function xy2angle(dx,dy) that computes the angle (polar coords) given dx and dy
Added function sdiv(x,y) implementing y == 0.0 ? 0.0 : x / y
Added formatting modes "pi" and "frac" to format$
(see e.g., Examples | 2D Simple | Sin on the website)
Subroutine definitions and assignments can come before the size command
Checks for correct nesting of all block commands
While loops are now also supported (besides until ... next loops)
Support for single line then/else blocks allowing code such as
if a < 1 then print a "is smaller than 1"
else if a < 2 then print a "is smaller than 2 but larger than 1"
else if a < 3 then print a "is smaller than 3 but larger than 2"
else print a "is larger than 3"
LaTeX expressions can now also be used in combination with .ps output
Axis scales are now computed based on the datasets that are actually used
Graph block can include function calls, of which the output is clipped to the graph window
(see e.g., Examples | 2D Complex | Labeled Scatter on the website)
The manip utility has been integrated back into the GLE distribution
(see e.g., this screenshot of manip).
4.0.11 (December, 2005)
Adds the contour utility for generating contour plots.
Adds the fitz utility for generating 3d plots based on given data.
Adds support for command line arguments using nargs() arg(i) and arg$(i).
Adds the command line option -o to specify the name of the output file.
Fixes a bug with accents (\^, \i, and \j are supported now).
The \tex{} escape sequence can now also be used in tables.
From and to specifications are now optional for let command.
4.0.10 (November, 2005)
Adds landscape support to the full page mode (orientation landscape).
Improves the Windows installer (it now shows the readme, etc.).
Fixes a bug in the parsing of some floating point numbers (e.g., 1.e5).
Fixes a bug in user defined markers.
4.0.9 (August, 2005)
Parser has been significantly improved and gives more informative error messages.
>> test.gle (22) |x = 64; y = log2(x)|
>> ^
>> Error: call to undefined function 'log2'
TeX expressions are now included in output by default, use -inc for the "inc way".
Added option -fullpage.
Added pagesize and margins commands and corresponding config section.
Added function eval(expr$) that evaluates expr$ and returns the result.
Added option "curve angle1 angle2 d1 d2" to commands rline, aline and join.
Fixed grid in log plots.
Added escape sequence \expr{some_exp} that can be used in block commands and inserts the result of evaluating some_exp.
EOF is stripped from .eps if included with postscript command.
Special variables xgmin, xgmax, ygmin, ygmax, xg2min, xg2max, yg2min, yg2max that indicate the graph axis bounds.
Fixed bug in return value of user defined functions.
Fixed bug in loading of certain .tiff files that include alpha data (EXTRASAMPLE_UNASSALPHA).
Angstrom symbol \AA added.
Rewrote fopen/fread/fclose code based on new tokenizer.
Added "fgetline chan line$" to read an entire line from a line.
Added "ftokenizer chan commentchar spacetokens singletokens" to set up the tokenizer.
Added command line option -c that turns GLE into a calculator.
Added option -gs for fast GhostView previewing (by Axel Rohde) (only on Unix).
Added rgb255() and rgb() functions.
Added set arrowsize 0.5 arrowangle 30 to control shape of arrows.
Local variables can now be used in graph blocks.
Slope, Offset and R squared values of regression plots can be stored in global variables.
Removed dependency on BOOST library.
4.0.8 (March, 2005)
One executable "gle" instead of one for each driver "gle_ps" and "gle_svg".
Output to .pdf/.png/.jpeg by linking to GhostScript.
Support for LaTeX expressions in GLE scripts using the command "tex" or the macro "\tex{}". (Examples can be found here.)
Support for bitmap import (.jpeg/.png/.tiff/.gif) using the commands "bitmap" and "bitmap_info". (An example can be found here.)
Options "impulses", "steps", "fsteps", and "hist" for the graph command "dn line".
Option "round" for the commands "box" and "begin box" to simplify drawing boxes with rounded corners.
Command "separator" in keys to construct keys with multiple columns.
Option "absolute" to the offset command to position the key, e.g., at the bottom-center of the output.
Function "format$" for formatting numbers (e.g., format$(1/3,"fix 3") = 0.333).
Option "format" to the axis graph command to format the labels in a similar way.
Functions "pagewidth()", "pageheight()", "width(name)", "height(name)", "pointx(name)", "pointy(name)".
Command "print" for writing to the command prompt.
Support for config file $GLE_TOP/glerc and $HOME/.glerc (on Unix).
4.0.7 (December, 2003)
No more segmentation fault when encountering some types of errors.
Unix version can now handle dos text mode files, gle, makefmt and fbuild.
4.0.6 (December, 2003)
Includes makefiles for OS/2.
Fix for slow rendering of long complex paths in postscript file. Speed now equivalent to 3.3h.
Tweak to exe and src release filenames i.e gle_version_[src,exe]_[platform]....
Exits gracefully when it cant open a file such as a data file in graph, image file, include file or using fopen.
4.0.5 (November, 2003)
Fix unix/linux compile issues with afm files. They now have the proper line endings for Unix.
Fix compatability issue with 3.3h: ATN and ATAN now work equivalently. In 3.3h only ATN worked for arctangent?
4.0.4 (November, 2003)
Fix unix/linux compile issues.
Will search c:\program files\gle (WINDOWS) or \usr\local\bin (UNIX) directories if GLE_TOP environment variable is not set.
Proper wildcard/globbing handling on UNIX (assumes shell does the expansion).
Minor improvement on file finding and error reporting.
Cleanup of unused functions and varibles in gle.cpp.
Windows binary now compressed with upx.
4.0.3 (November, 2003)
Accepts filenames with wildcards/globbing i.e. "gle_ps *.gle" will compile all gle files in current directory.
4.0.2
Fixed problem with program crashing when it couldn't open the gle file or include file.
New zip files of source code and win32 executables.
4.0.1
Fixed problem with PATH and GLE_TOP not being set properly in installer. Fixed problem with loading include files from GLE_USRLIB.
4.0.0
Code cleanup from 3.5.
Compiles with latest C++ compilers.
Has better error reporting where it prints out the line number and text associated with the line (even if the error was detected in an include file).
Removed ncurses dependancy.
GLE 3.3g (14-May-1994)
Ported to ALPHA OSF/1, some bugs still exist though.
Merged changes made for gle32 and solaris and linux.
GLE 3.3f (16-April-1993)
fixed bug on sun's with axis labelling.
dviprint -dsx Sixel graphics driver added to GLE DVIPRINT,
thanks to: Evan Wilson, N Z Dairy Group
Fixed RETURN statement so that it takes an optional parameter.
(It always did, but why it used to work I don't know as the
parameter wasn't optional)
Added a yaxis option
yaxis negate
This is reversed the numbering on the y axis. For use with
measurements below ground, where you want zero at the top and
positive numbers below the zero.
GLE 3.3e (1-Jan-1993)
Fixed clipping of lines through a log axis.
Fixed help display which was loosing two lines on multi page
displays.
GLE 3.3d
Problem with SMOOTH on SUN machines fixed.
fixed bug with named objects on postscript driver.
added -nops qalifier to dviprint.
GLE 3.3c (1-Apr-1992)
Fixed problems with large datasets in surface and contour
Fixed problem with /kern/lower/movexy and other def's
Fixed bug with dviprint -depson -hires -nosquash
Fixed bug with smoothing contours which made lines dissappear.
(20-Sep-1992)
Fixed bug with UNTIL looping.
Removed limit of number of 'saved' points.
(1-Dec-1992)
Fixed tokenizer so "ab\"cdef" would accent the 'c' as expected.
GLE 3.3b (25-Mar-1992)
Bigfile now accepts variables in place of the file name, e.g.
xxx$ = "test.dat,2,3"
d1 bigfile xxx$
Added AUTOSCALE option to bigfile e.g.:
d1 bifile a.dat line autoscale
This pre-reads the file to scale the axis, which is slow but
sometimes required.
Updated version of inittex.ini which was causing problems with
/char /def /movexy
UNIX: install.com now copies graph.idx into system area.
VMS: dviprint symbol added to CGLE_LOGIN.COM
GLE 3.3a (27-Jan-1992)
Bug: lowercase xnames labels being mis-aligned is fixed.
Gle now writes out gletmp.t1 .t2 .t3 .t4 instead of .bak
so you have four backup versions if something crashes.
Fixed axis rounding errors for labels, e.g. .1 to .9 step .1
might occasionally stop at .8
Fixed filled boxes on DVIGLE driver, the filled region wasn't
being translated if a scale or rotate was being used.
Added commands:
fopen, fclose, fread, freadln, fwrite, fwriteln
E.G.:
fopen "file.dat" inchan read
fopen "file.out" outchan write
until feof(inchan)
fread inchan x y z
aline x y
rline x z
fwriteln outchan x*2 "y =" y
next
fclose inchan
fclose outchan
The following accents now work.
\` \' \v \u \= \^ \. \H \~ \"
e.g.
text P\'e ter
GLE 3.2i (1-Jan-1992)
Improvements made to lstyle for dot matrix and laserjet drivers.
It now works!, patterns which don't divide into 32 bits and
dashlen are both supported. (Thanks to Frank Evans)
HPGL driver modified, now supports sizes greater than a3.
New symbols HPGL_ADDX, HPGL_ADDY add a margin to the plot.
These default to .9cm and 1.5cm
Bug in 'E' format numbers, 5e+7 was interpreted as 5+7 = 12
instead of 50,000,000 (5e7 was always interpreted correctly)
GLE 3.2g (1-Nov-1991)
All bitmap dot matrix drivers have been re-written:
dvigle
dvilj, dvilj300, dviepson, dviep24
They now perform clipping and filling correctly, funny
glitches in filled characters (texcmr) have been fixed.
They also support a much wider range of fill styles
Print the file DVIFILL.GLE to see the supported fill
options.
The command syntax has changed, the commands:
dvilj, dvilj300, dviepson, dviep24
Have been replaced by:
dviprint -dlj
dviprint -dlj -hires (was dvilj300)
dviprint -depson
dviprint -depson -hires (was dviep24)
Support for HP-PaintJet printers
has been added:
dviprint -dpj
Usage: dviprint [-depson | -dlj] [-old] [-hires] [-debug] [-output xx.prt]
-depson To produce output for epson printers
-dwp To add tiff image to wp .eps file
-dlj To produce output for HP LaserJet printers
-dpj To produce output for HP PaintJet printers
-dover Overhead transparency mode for PaintJet
-old For old HP Laser Jet printers (no compression)
-hires Uses high resolution for that printer (slower)
-wide If your printer has a wide carriage
-noflip Disable's auto flipping
-nosquash Tries to print it full size
-compress Force internal bitmap compression (slow,saves memory)
-noff No form feed
-debug Prints debug messages
-out x.x Prints output to file instead of printer port
...
3d Bar graphs are now supported, the commands are:
bar d1,d2 3d .5 .3 side red,green notop
bar d3,d4 3d .5 .3 side red,green top black,white
Take note of comma's.
3d (xoffset yoffset)
Specifies the x and y vector used to draw the receding
lines, they are defined as fractions of the width of the
bar.
A negative xoffset will draw the 3d bar on the left side
of the bar instead of the right hand side.
side (color list)
The color of the side of each of the bars in the group.
top (color list)
The color of the top part of the bar
notop
Turns off the top part of the bar, use this if you have
a stacked bar graph so you only need sides on the lower parts
of each stack.
Note: You won't see the color of the side or top on the pc screen.
GLE 3.2 (6-Mar-1991)
File type changed from STREAM_LF to normal vax format.
SMOOTHM option added which is identical to SMOOTH but
will allow multi-valued functions. (e.g. circles etc)
TWIDTH("") and THEIGHT("") functions fixed again.
V3.2b
DEFINE MARKER myname subnamex
MARKER myname
Allows you to define a new marker as any subroutine.
e.g. to define a character from the postscript ZapDingbats font
as a marker you would use.
sub subnamex size mdata
gsave ! save font and x,y
set just left font pszd hei size
t$ = "\char{102}"
rmove -twidth(t$)/2 -theight(t$)/2 ! Centers marker
write t$
grestore ! restores font and x,y
end sub
The second parameter can be supplied using the MDATA command
when drawing a graph, this gives the marker subroutine a
value from another dataset to use to draw the marker. For
example the marker could vary in size, or angle, with every
one plotted.
d3 MARKER myname MDATA d4
Encapsulated Postscript option modified so that WordPerfect
won't clip the edge of the drawing.
On a PC the /EPS qualifier will now create a file using
an extension of .EPS instead of .PS
DEFMARKER mname fontname char_num scale dx dy
This command defines a new marker, from any font, it is
automatically centered but can be adjusted using dx,dy.
e.g.
defmarker hand pszd 43 1 0 0
Bug in set color in PS devices which caused the
color to affect a previous line is fixed.
Added built in function which returns a string describing
the device. e.g. DEVICE$() = "HARDCOPY, PS,"
on the postscript driver.
This can be used to use particular fonts etc on appropriate
devices. E.g.:
if pos(device$(),"PS,",1)>0 then
set font psncsb
end if
POS(src$,search$,start) string function fixed (surprise surprise)
The editor now tolerates lines > 80 characters.
Fixed bug which caused incorrect characters to be drawn
on pc screen occasionally.
V3.2c
Pressing ESC repeatedly will now abort a redraw operation. (on PC)
Load and Saveas will now default to .GLE
Bug with tex macro replacement fixed.
Bug with mouse cursor not appearing on HERC screens is fixed.
WPGLE.EXE added, this command will produce a special output
file which contains EPS for PostScript printers and a
crude bitmap for WordPerfect to display on the screen.
V3.2e
Fixed some colour mapping and added, purple, orange, pink, brown.
V3.2f
Modified maximum size of dvilj,dvilj300,dviepson,dviep24 so that
all can take graphs up to 19cm x 27cm
Added command line switches
/nod (add ^D to ps file)
/addd (Don't add ^D to ps file)
/nomaxpath (Don't choke on complex fill paths)
/fill (For dvibit, makes bar's filled instead of shaded)
Added symbol for PC.
GLE_NOCONTROLD TRUE
(Stops ^D being added to ps files)
(this is the default for unix)
The DCL symbol GLE_NOCONTROLD should be set to "TRUE" to kill the
^D on vms systems.
If you set the DCL symbol GLE_EDITOR to TPU then you will get
TPU instead of EDT when you press ^E
You can now tell gle about postscript fonts that you have
downloaded into your own printer.
Lets pretend we are adding a font called Greek-Bold
1) Download the font into you laser printer
2) Add a line to FONT.DAT
psgb 86 psgb.fmt plsr.fve psgb.fmt
a b c d
a = GLE's name for the font
b = The next unused number in font.dat
c = The font metric file, this can be created using
makefmt from and adobe font metric file
(.afm) which you should have been supplied
with your font.
d = The font vector file, this is just a font that
that gle can use to draw your font on non
postscript devices.
3) Add a line to psfont.dat
psgb Greek-Bold
This tells the postscript driver that this is a
font that the printer knows how to deal with.
GLE 3.1e (1-Mar-1990)
Errbars will now work with the bigfile option.
x2ticks now come back on again if you turn the xaxis off and x2axis on
(The error bars distances cannot also be a bigfile)
if you use a let d1 = exp from 1 to 10000 step 1
with a log xaxis it doesn't produce a smooth line. GLE now
checks and if the xaxis is a LOG scale then it uses the
step option as an approximate required number of intervals which
it spreads along the xaxis in increasing steps.
In the graph module, if you use '0' as a column for the x data
of a bigfile GLE will generate xdata of 1,2,3,4 ...
e.g. d1 bigfile a.dat,0,2
Data separated with commas and no spaces was being read incorrectly
The data reading routine has been re-written. (introducing new
and more interesting bugs in the process)
GLE 3.1d (19-Feb-1990)
In the past "TEXT a\delta b" would have produced a space
between the delta character and the letter b, this action
was incorrect and had been fixed.
Use "TEXT a\delta\ b" to get a space.
"TEXT a(\delta)b" also works now.
GLE 3.1c
Built in functions twidth("") and theight("") now work.
Their is now a BIGFILE command for executing large gle files
that won't fit into memory using INCLUDE. (note this should
not be confused with the BIGFILE graph command).
e.g. BIGFILE NZMAP.GLE
As bigfile compiles and executes the gle file one line at a
time you cannot use multi line structures (subs, if then else etc)
but you can call subroutines if they are defined before the bigfile
statement.
Lines in bitmap drivers are now the right length (text looks better)
There is currently a limitation on the size of text or tables that
can be printed (this may be fixed at a later date)
The xg() and yg() functions now work if the graph has log axes
A bug which stopped the last line of a data file being
read had been fixed.
Correction to expression passing allows IF A$="ABC" THEN ... to work.
Added shading styles RSHADE, RSHADE1, RSHADE2 ...(Lines at right angles)
GLE 3.1b
Fixed the circle fill command so it uses the right colour.
Modified PostScript arrows with wide lines so they look nice.
They are now filled triangles rather than two short lines.
There is now an example in BOXR.GLE which shows you how to
define a subroutine to draw boxes with rounded corners.
Horizontal error bars have been added, the commands are
HERR, HERRLEFT, HERRRIGHT, HERRWIDTH
If you had the same subroutine defined twice in a gle
file it would skip the intervening gle commands, this is fixed.
Arcto fixed for line devices (hpgl)
Stacked bargraphs should not contain missing values, replace
missing values with the value from the column on the left. e.g.
1 22 * 45 becomes 1 22 22 45
GLE 3.1a
Bug with reading exponential format numbers fixed.
Bigfile option added, so that you can extract particular
columns of data from a data file, e.g.
D1 LINE BIGFILE TEST.DAT,3,2
Will use column 3 for x values and column 2 for y values.
e.g.
' data x.dat
d3 line
becomes
d3 line bigfile x.dat,1,4
As dataset three is made from columns 1 and 4.
The space codes (\: \; \,) are now proportional to the
current font size.
text \rule{2}{3} will draw a box, and \glass can be used
to offset text.
GLE 3.1
Modified default DPOINTS setting so that if DTICKS is not a
whole number it will display one decimal point.
e.g. (1.0, 1.5, 2.0) instead of (1 1.5 2)
the "graph data d2=c3,c1" option now requires no spaces
within the "d1=c1,c2"
Begin path wasn't issuing a newpath, so multiple paths
got added together.
Gle files can now begin with a numeric character.
Bug with bitmap drivers fixed (dviepson, dvilj300 etc) which
resulted in a stray horizontal line on the page.
The editor doesn't display long lines correctly, it does
store them though.
On the PC the PSGLE driver now writes output files
to INPUTFILE.PS instead of out.ps e.g. bar.gle --> bar.ps
Added \linegap{-1} tex primitive to stop odd spaces lines
when using super/subscripts.
vscale and hscale were not being reset after each graph.
Some of the characters which were missing from the PLOTTER fonts
have now been installed (e.g. []{}<>% )
You can no add lines and text to a drawing using the mouse or arrow
keys on the PC version of gle.
There is now a graph command, FULLSIZE which sets
vscale,hscale to 1, and turns the border off.
GLE 3.0h
Fixed bug with LSTYLE in PSGLE (on the pc only)
You can change the size of the default key by setting the
hei of text used to draw the key. e.g.
begin graph
...
key hei 1.2
end graph
If the value of an error bar length is a missing value then that
particular bar won't be drawn.
If you escape out of the idiot graph creation menu it will now
correctly put an END GRAPH in your file.
Line and Grid shading has been added to the postscript
device driver, the following colour names are now accepted.
shade,shade1,shade2,shade3,shade4,shade5
grid,grid1,grid2,grid3,grid4,grid5
e.g. BAR 2 3 FILL GRID3
Print the example file SHADE.GLE on a postscript printer
and stick it on the wall for reference. ($ cgle shade /print)
Bug with changing diskdrives on a PC is fixed.
The fonts SSBI and SSI were reversed on the laser printer.
There is now an axis qualifier SHIFT for shifting the labelling
horizontally (when the label refers to the data between the
two ticks) e.g.
xaxis shift .4
In order to put a large space between two words you must
use these control sequences e.g. TEXT Hello \; world
\, = .1cm
\: = .2cm
\; = .4cm
Use \_ to get an underscore character inside text
("_" normally means subscript)
Fixed X2AXIS SIDE ON
HPGL Plotter pens 1=black, 2=red, 3=green, 4=blue, 5=magenta, 6=white
Bug fixed in linestyles caused by the cap being set to ROUND which
merges the dashes together for wide lines on the laser printer.
GLE 3.0g
Fixed bug with smoothing more that 200 points
Fixed bug with joining between saved objects.
When using the plotter fonts you may find some characters are missing,
e.g. %,[ and ] (These have now been put into these fonts V3.1)
The following command will replace these characters with latex equivalents.
size 24 18
text \chardef{%}{{\setfont{texcmr}\char{37}}}
text \chardef{[}{{\setfont{texcmr}\char{91}}}
text \chardef{]}{{\setfont{texcmr}\char{93}}}
... rest of gle file
GLE 3.0e (17-Sep-1990)
Missing values are not used to calculate new dataset values during
a let command (e.g. "let d3 = sin(d2)")
Fixed bug in LOG data display. (If you have used LOG axis prior to
this release you SHOULD replot your graphs)
The bigfile option now works with markers as well as lines.
(e.g. "d3 bigfile "year.dat" lstyle 1 marker dot ")
GLE 3.0d (5-Sep-1990)
The default labelling of axes is sometimes not ideal, for example
0 0.333333 0.6666667 1.0
you can now adjust this with the command "XAXIS DPOINTS 3" which sets
the decimal places for an axis. e.g.
0.000 0.3330.666 1.000
The MSCALE option now works.
Markers have been reduced in size, this will affect existing gle
files, they are now approx 60% of there original size.
The bigfile option now works on postscript printers, there was a bug
caused by sending an entire 10,000 point curve to the printer as one path
which it choked on if it was short of memory.
You will occasionally get an error message "PATH TOO COMPLEX" this means
that GLE decided to split up a line into shorter segments. Normally
this WARNING can be ignored.
The default axis labelling of 1, 1.5, 2 has been changed to 1.0, 1.5, 2.0
Exponent axis labelling has been fixed 2.00000e4 becomes 2.0e4
*** NEW DEVICE DRIVERS ***
GLE now supports the EPSON 8PIN and 24Pin printers, and the
HP deskjet/laserjet printers. To support bitmap devices which require
a large amount of memory GLE first writes a device independent file
OUT.DVI, you then run the bitmap driver for your printer and that prints
directly to LPT1: e.g.
C:\GLE> dvigle myfile (produces OUT.DVI)
C:\GLE> dviepson (creates bitmap and prints to lpt1)
The output options are:
C:\GLE> DVIEPSON Standard epson printer
C:\GLE> DVIEP24 24 Pin epson printers (180 dpi)
C:\GLE> DVILJ HP Laser jet, Desk jet (150 dpi)
C:\GLE> DVILJ300 HP Laser jet, Desk jet (300 dpi)
The hi resolution drivers are significantly slower (2-3 times) than the
low resolution drivers so would only be used for final copies.
By default the fonts (RM, RMB, SS, TT etc) will all map to PLSR (plotter
simplex roman) on both bitmap drivers and the HPGL driver.
If you want this to happen on other drivers then put the
command "PLOTTER FONTS" right after your SIZE command in your gle file.
An lwidth of .00001 on a laser printer will give you 1 pixel width lines.
(and won't occasionally round to two pixels)
Using Postscript and HP drivers on the PC:
C:\GLE\> PSGLE MYFILE.GLE (Writes myfile.ps)
C:\GLE\> HPGLE myfile.gle (Writes out.hp)
Making a 360K distribution diskette from the 1.2M diskette.
(if a: = 1.2Meg disk, b: = 360K disk)
a:> copy a:install.exe b:
a:> copy a:pkunzip.exe b:
a:> copy a:gle1.zip b:
a:> copy a:gle2.zip b:
a:> copy a:gle3.zip b:
a:> copy a:gle4.zip b:
To install GLE on a pc type:
C:\> a:install
GLE 3.0c
Bug with LaTeX symbols in graph titles fixed.
Extra graph dataset qualifiers "BIGFILE and NOMISS"
NOMISS removes missing values from a dataset. (so disjointed lines
are re-connected) (e.g. "d3 colour red nomiss")
BIGFILE allows a very large dataset to be drawn on a PC, it doesn't
read the dataset into memory as usual. (but must be in a file
with only one dataset, and no BARS or markers can be drawn.
And axis ranges must be specified by hand.
(e.g. "d3 bigfile "year.dat" lstyle 1")
Fonts: The LaTeX greek font is missing from the small distribution disk.
It is now possible to copy on any missing font directly into the
c:\gle\font\ directory. Copy both the FMT and FVE files.
e.g. "texcmmi.fmt, texcmmi.fve"
set join mitre | round | bevel
set cap but | round | square
Fixed:
Superscript, Subscript
Symbols on Laser Printer after white fill.
Individual dataset scaling fixed.
Notes on new Drivers: HPGL, TEK4010, P79.
HPGL: With this driver you can define the symbols
hpgl_open, hpgl_close to be the escape
sequences required for strange hp printers.
also HPGL_WIDTH, and HPGL_HEIGHT for non A3 plotters
TEK: TEK_OPEN and TEK_CLOSE can be defined to allow
non dec tektronix terminals, e.g. TEK_OPEN = "^[?38h"
(this is normally done in CGLECMD.COM so that when you specify
/DEV=V550, OR /DEV=HPA4 it defines the symbols for you.
On the vax the following cgle dev qualifiers are valid:
cgle myfile.gle /dev=vdisk,v550,hpgl,tek
Plus any P79 supported device, your output file will be MYFILE.HPGL
GLE 3.0b
2) Currently supported devices:
PC version:
HERC, EGA, CGA, etc (any BGI supported display)
PostScript
VAX version:
REGIS(VT125,VT240,VT340 etc)
UIS (Workstations running VWS software)
PostScript
(additions to this list lower down)
3) Fonts:
The PC version comes on one 360K floppy, on this disk is a
subset of fonts, if you use a font that isn't on this disk
it will use a replacement font, and replacement metrics so
the size of the text may be misleading.
If you have enough disk space (another 1Meg) then you can
install the complete font set.
4) PostScript:
The PSGLE driver is not on the 360K Floppy, you must install
it separately if you have enough disk space (another 400K)
(or copy gle and data files to a VAX and use the vax
PS driver)
5) Using GLE on a VT100/VT240
If your keyboard doesn't have function keys (f9-f14) then you
can use GOLD 1-4 (for 11-14) and GOLD 0 (for f10) and
GOLD 9 (for F9) GOLD 5 (show errors)
If you run GLE on a vt100 it will work OK but not actually DRAW
anything on the screen (as it thinks it's a vt240)
6) Other keyboard features:
^F will toggle between fast and slow (but nicer text) on some devices
^E will call VAX/EDT
^Z Exits from all menu's etc (like ESC on a PC)
ALT-X Exits on a PC without asking you for confirmation.
7) There are currently no drivers for Plotters or DotMatrix Printers,
these are planned for the next month or two (see update notices below)
8) Additions:
The command "SET FONTLWIDTH value" has been added, this allows
the line width of stroked fonts to be changed.
gle-graphics-4.2.4c/Makefile.vc 0000664 0000000 0000000 00000013052 11405446017 015003 0 ustar root root ########################################################################
# #
# GLE - Graphics Layout Engine #
# #
# Modified BSD License #
# #
# Copyright (C) 2009 GLE. #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions #
# are met: #
# #
# 1. Redistributions of source code must retain the above copyright #
# notice, this list of conditions and the following disclaimer. #
# #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials provided with #
# the distribution. #
# #
# 3. The name of the author may not be used to endorse or promote #
# products derived from this software without specific prior written #
# permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR #
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED #
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE #
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY #
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL #
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS #
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER #
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR #
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
# #
########################################################################
#
# global makefile for gle
# for microsoft visual C++
#
!include "config.vc"
ZIP_SRC_NAME = $(BASE_NAME)_$(VERSION_NUMBER).$(BUILD_NUMBER)_src.zip
TAR_SRC_NAME = $(BASE_NAME)_$(VERSION_NUMBER).$(BUILD_NUMBER)_src.tar
ZIP_EXE_NAME = $(BASE_NAME)_$(VERSION_NUMBER).$(BUILD_NUMBER)_exe_win32.zip
INSTALL_NAME = GLE-$(VERSION_NUMBER).$(BUILD_NUMBER)-exe-win32.exe
RELEASE_DIR = .\release
NSIS_SCRIPT_DIR = .\contrib\packagers\nsis
SRC_FILES = gle4/Makefile* gle4/config* gle4/README gle4/src/gle/* gle4/src/fonts/* gle4/src/makefmt/* gle4/src/fbuild/* gle4/src/samples/* gle4/src/TeX/*
EXE_FILES = gle4/README gle4/bin/*.exe gle4/bin/font.dat gle4/bin/inittex.ini gle4/bin/font/*
all:
-mkdir build
-mkdir build\bin
cd src\gle\bitmap & nmake -f makefile.vc /nologo
cd src\gle\surface & nmake -f makefile.vc /nologo
cd src\gle\letzfitz & nmake -f makefile.vc /nologo
cd src\gle\tokens & nmake -f makefile.vc /nologo
cd src\gle & nmake -f makefile.vc /nologo
cd src\fbuild & nmake -f makefile.vc /nologo
cd src\makefmt & nmake -f makefile.vc /nologo
cd src\fonts & nmake -f makefile.vc /nologo
cd src\tex & nmake -f makefile.vc /nologo
cd src\samples & nmake -f makefile.vc /nologo
clean:
cd src\gle\bitmap & nmake -f makefile.vc /nologo clean
cd src\gle\surface & nmake -f makefile.vc /nologo clean
cd src\gle\letzfitz & nmake -f makefile.vc /nologo clean
cd src\gle\tokens & nmake -f makefile.vc /nologo clean
cd src\gle & nmake -f makefile.vc /nologo clean
cd src\fbuild & nmake -f makefile.vc /nologo clean
cd src\makefmt & nmake -f makefile.vc /nologo clean
cd src\fonts & nmake -f makefile.vc /nologo clean
cd src\tex & nmake -f makefile.vc /nologo clean
cd src\samples & nmake -f makefile.vc /nologo clean
-rmdir /S /Q build
-rmdir /S /Q build\bin
full: clean all zipsrc tarsrc zipexe
commit:
cvs commit -m "commit via nmake working on version $(TAG)"
#
# to tag a release
#
tagall:
cvs rtag $(TAG) $(MODULE_NAME) $(DEPENDANT_MODULES)
#
# for testing not a true install
#
install:
copy bin\gle_ps.exe "c:\program files\gle"
#
# for building distributions
#
zipsrc:
cd .. & zip $(ZIP_SRC_NAME) -9 $(SRC_FILES) -x *.obj *.cvsignore *.eps */CVS/ *.fve *.fmt */gle4.4D/
move ..\$(ZIP_SRC_NAME) .
tarsrc:
cd .. & tar -cvf $(TAR_SRC_NAME) $(SRC_FILES) --exclude=*.obj --exclude=*.zip --exclude=*.cvsignore --exclude=*.eps --exclude=*CVS* --exclude=*.fve --exclude=*.fmt --exclude=*gle4.4D*
move ..\$(TAR_SRC_NAME) .
bzip2 -9k $(TAR_SRC_NAME)
gzip -9 $(TAR_SRC_NAME)
zipexe:
cd .. & zip $(ZIP_EXE_NAME) -9 $(EXE_FILES)
move ..\$(ZIP_EXE_NAME) .
#compress the executables
upx:
upx -9 --force build\bin\*.exe
NSIS_VERSIONS = /DGLE_VERSION=$(MAJOR_VERSION_NUMBER).$(MINOR_VERSION_NUMBER).$(BUILD_NUMBER)
installer:
-mkdir $(RELEASE_DIR)
-del $(RELEASE_DIR)\$(INSTALL_NAME)
-makensis /V1 $(NSIS_VERSIONS) /DOUTPUT_FILENAME=$(INSTALL_NAME) $(NSIS_SCRIPT_DIR)\gle.nsi
-move $(NSIS_SCRIPT_DIR)\$(INSTALL_NAME) $(RELEASE_DIR)
gle-graphics-4.2.4c/config.gcc 0000664 0000000 0000000 00000010420 11405446017 014653 0 ustar root root ########################################################################
# #
# GLE - Graphics Layout Engine #
# #
# Modified BSD License #
# #
# Copyright (C) 2009 GLE. #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions #
# are met: #
# #
# 1. Redistributions of source code must retain the above copyright #
# notice, this list of conditions and the following disclaimer. #
# #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials provided with #
# the distribution. #
# #
# 3. The name of the author may not be used to endorse or promote #
# products derived from this software without specific prior written #
# permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR #
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED #
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE #
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY #
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL #
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS #
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER #
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR #
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
# #
########################################################################
#
# config file for gcc and make
#
HAVE_LIBX11 = 1
# enabling the above will include the X11 driver in gle
# -Wunused-variable
EXTRA_DEFS := -D __UNIX__ -Wreturn-type
OBJ_SUFF =o
CC =g++
EXE_SUFF =
AR =ar
RM =rm -rf
RMDIR =rm -rf
MKDIR =mkdir
PATH_SEP =/
INSTALL_DIR =/usr/share/gle/$(VERSION_NUMBER).$(BUILD_NUMBER)
INSTALL_BIN =$(GLE_RPM_ROOT)/usr/bin
ROOT_INSTALL_DIR =$(GLE_RPM_ROOT)$(INSTALL_DIR)
-include extraconfig.gcc
#
# other global defines
#
PROJECT_BINDIR = ../../build
PROJECT_LIBDIR = ../../lib
PROJECT_INCDIR = ../../include
#
# GLE_TOP does not need to be defined anymore during compile
#
GLE_TOP = ../../build
EXTRA_INCLUDE_PATHS =
EXTRA_LIB_PATHS =
# On Solaris, add these to LIBS:
# -lsocket -lnsl
LIBS =
ifeq (HAVE_LIBTIFF,1)
EXTRA_DEFS := $(EXTRA_DEFS) -D HAVE_LIBTIFF
ifdef LIBTIFFDIR
EXTRA_INCLUDE_PATHS := $(EXTRA_INCLUDE_PATHS) -I$(LIBTIFFDIR)
EXTRA_LIB_PATHS := $(EXTRA_LIB_PATHS) -L$(LIBTIFFDIR)
endif
LIBS := $(LIBS) -ltiff
endif
ifeq (HAVE_LIBPNG,1)
EXTRA_DEFS := $(EXTRA_DEFS) -D HAVE_LIBPNG
ifdef LIBPNGDIR
EXTRA_INCLUDE_PATHS := $(EXTRA_INCLUDE_PATHS) -I$(LIBPNGDIR) -I$(ZLIBDIR)
EXTRA_LIB_PATHS := $(EXTRA_LIB_PATHS) -L$(LIBPNGDIR)
endif
ifdef ZLIBDIR
EXTRA_INCLUDE_PATHS := $(EXTRA_INCLUDE_PATHS) -I$(ZLIBDIR)
EXTRA_LIB_PATHS := $(EXTRA_LIB_PATHS) -L$(ZLIBDIR)
endif
LIBS := $(LIBS) -lpng
endif
ifeq (HAVE_LIBX11,1)
EXTRA_DEFS := $(EXTRA_DEFS) -D HAVE_X11
EXTRA_LIB_PATHS := $(EXTRA_LIB_PATHS) -L/usr/X11/lib
LIBS := $(LIBS) -lX11
endif
CXXFLAGS =$(VERSION_INFO) $(EXTRA_DEFS) $(EXTRA_INCLUDE_PATHS)
LINKFLAGS =$(EXTRA_LIB_PATHS) $(LIBS)
gle-graphics-4.2.4c/Makefile.in 0000664 0000000 0000000 00000042674 11653523054 015017 0 ustar root root ########################################################################
# #
# GLE - Graphics Layout Engine #
# #
# Modified BSD License #
# #
# Copyright (C) 2009 GLE. #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions #
# are met: #
# #
# 1. Redistributions of source code must retain the above copyright #
# notice, this list of conditions and the following disclaimer. #
# #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials provided with #
# the distribution. #
# #
# 3. The name of the author may not be used to endorse or promote #
# products derived from this software without specific prior written #
# permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR #
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED #
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE #
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY #
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL #
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS #
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER #
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR #
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
# #
########################################################################
# global makefile for gle
# @configure_input@
.PHONY : all
.PHONY : clean
.PHONY : distclean
.PHONY : cleansrc
.PHONY : cleandoc
.PHONY : cleanfonts
.PHONY : install
.PHONY : uninstall
.PHONY : bundle
.PHONY : glegs
.PHONY : qmake
.PHONY : gui
.PHONY : strip
.PHONY : finddeps
.PHONY : doc
.PHONY : license
.PHONY : qgle
.PHONY : make_all
.PHONY : pre_install
.PHONY : post_install
.PHONY : install_script
.PHONY : install_noscript
.PHONY : nsis
.PHONY : snapshot
.PHONY : nosnapshot
.PHONY : zipsrc
.PHONY : zipexe
.PHONY : tarsrc
.PHONY : tarsrcf
include config.i
include config.aconf
export RUNBUILD=1
export GLE_SNAPSHOT=@GLE_SNAPSHOT@
export HAVE_EXTRA_FONTS=@HAVE_EXTRA_FONTS@
export HAVE_CAIRO=@HAVE_CAIRO@
CXX=@CXX@
CXXFLAGS=@CXXFLAGS@
CPPFLAGS=@CPPFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
PACKAGE_TARNAME=@PACKAGE_TARNAME@
prefix=@prefix@
exec_prefix=@exec_prefix@
datarootdir=@datarootdir@
docdir=@docdir@
INSTALL_LIB=@libdir@
INSTALL_BIN=@GLE_INSTALL_BIN@
INSTALL_DIR=@GLE_INSTALL_DATA@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
MKDIR_P=@MKDIR_P@
PKGCONFIGDIR=$(INSTALL_LIB)/pkgconfig
MANDIR=@mandir@
GLE_VERSION=@GLE_VERSION@
INSTALL_METHOD=install_script
ifeq (@HAVE_NOSCRIPTS@,1)
INSTALL_METHOD=install_noscript
endif
ifeq (@HAVE_QT@,1)
ifeq (@HAVE_MAC@,1)
INSTALL_METHOD:=$(INSTALL_METHOD) install_qgle_mac_default
RUN_QGLE:=./build/bin/QGLE.app/Contents/MacOS/QGLE
else
INSTALL_METHOD:=$(INSTALL_METHOD) install_qgle
RUN_QGLE:=./build/bin/qgle
endif
endif
ifeq (@HAVE_AUTOPACKAGE@,1)
INSTALL_METHOD:=$(INSTALL_METHOD) install_ap
endif
ifeq (@HAVE_LIBGLE@,1)
INSTALL_METHOD:=install_libgle $(INSTALL_METHOD)
else
ifeq (@HAVE_LIBGLE_STATIC@,1)
INSTALL_METHOD:=install_libgle $(INSTALL_METHOD)
endif
endif
GLE_SRC_LIB_DIR:=build/lib
ifeq (@HAVE_WIN32@,1)
GLE_SRC_LIB_DIR:=build/bin
endif
DO_ALL=make_all
ifeq (@MAKE_AUTOPACKAGE@,1)
DO_ALL=autopackage
endif
WIN32_INSTALL_NAME = gle-graphics-$(GLE_VERSION)$(GLE_SNAPSHOT)-exe-win32.exe
RELEASE_DIR = ./release
NSIS_SCRIPT_DIR = ./contrib\packagers\nsis
all: $(DO_ALL)
make_all: configure
-$(MKDIR_P) build
-$(MKDIR_P) build/bin
-$(MKDIR_P) build/lib
-$(MKDIR_P) build/doc
-$(MKDIR_P) build/gleinc
$(MAKE) -C src/gle make_glebtool
$(MAKE) -C src/gle/bitmap
$(MAKE) -C src/gle/surface
$(MAKE) -C src/gle/letzfitz
$(MAKE) -C src/gle/tokens
$(MAKE) -C src/gle
$(MAKE) -C src/fbuild
$(MAKE) -C src/makefmt
$(MAKE) -C src/manip
$(MAKE) -C src/gui -f MakefileAC
$(MAKE) -C src/fonts -f Makefile.gcc
$(MAKE) -C src/lib -f Makefile.gcc
$(MAKE) -C src/TeX
@echo ""
@echo "********************************************************************"
@echo "Type \"make doc\" to build the GLE reference manual (requires LaTeX)"
@echo "Type \"make install\" to install GLE $(GLE_VERSION)$(GLE_SNAPSHOT)"
@echo "Install data into: $(INSTALL_DIR)"
@echo "Install library into: $(INSTALL_LIB)"
@echo "Install binary into: $(INSTALL_BIN)"
@echo "********************************************************************"
@echo ""
cleansrc:
$(MAKE) -C src/gle/bitmap clean
$(MAKE) -C src/gle/surface clean
$(MAKE) -C src/gle/letzfitz clean
$(MAKE) -C src/gle/tokens clean
$(MAKE) -C src/gle clean
$(MAKE) -C src/fbuild clean
$(MAKE) -C src/makefmt clean
$(MAKE) -C src/manip clean
$(MAKE) -C src/gui -f MakefileAC clean
$(MAKE) -C src/fonts -f Makefile.gcc clean
$(MAKE) -C src/TeX clean
-@$(RM) config.status
-@$(RM) config.log
-@$(RMDIR) build/bin
-@$(RMDIR) build/lib
-@$(RMDIR) build/font
-@$(RMDIR) build/gleinc
-@$(RM) build/glerc
-@$(RM) build/init.tex
-@$(RM) build/inittex.ini
-@$(RM) build/manip.hlp
clean: cleansrc cleandoc cleanfonts clean_dmg
-@$(RMDIR) build
distclean: clean
-@$(RM) platform/autoconf/gle-graphics.pc
-@$(RM) platform/autopackage/gle4.apspec
-@$(RM) src/config.h
-@$(RM) src/doc/gle.1
-@$(RM) src/fbuild/Makefile
-@$(RM) src/gle/bitmap/Makefile
-@$(RM) src/gle/letzfitz/Makefile
-@$(RM) src/gle/Makefile
-@$(RM) src/gle/surface/Makefile
-@$(RM) src/gle/tokens/Makefile
-@$(RM) src/gui/MakefileAC
-@$(RM) src/gui/qgle.pro
-@$(RM) src/makefmt/Makefile
-@$(RM) src/manip/Makefile
-@$(RM) src/TeX/Makefile
-@$(RM) Makefile
install: clean_install pre_install $(INSTALL_METHOD) post_install
pre_install:
-$(MKDIR_P) $(DESTDIR)$(INSTALL_DIR)
-$(MKDIR_P) $(DESTDIR)$(INSTALL_BIN)
-$(MKDIR_P) $(DESTDIR)$(MANDIR)/man1
-$(MKDIR_P) $(DESTDIR)$(docdir)
-$(MKDIR_P) $(DESTDIR)$(PKGCONFIGDIR)
-$(INSTALL_DATA) build/glerc $(DESTDIR)$(INSTALL_DIR)
-$(INSTALL_DATA) build/inittex.ini $(DESTDIR)$(INSTALL_DIR)
-$(INSTALL_DATA) build/init.tex $(DESTDIR)$(INSTALL_DIR)
-$(INSTALL_DATA) build/manip.hlp $(DESTDIR)$(INSTALL_DIR)
-$(INSTALL_DATA) src/doc/gle.1 $(DESTDIR)$(MANDIR)/man1/
-$(INSTALL_DATA) platform/autoconf/gle-graphics.pc $(DESTDIR)$(PKGCONFIGDIR)/
-cp -p -r build/font $(DESTDIR)$(INSTALL_DIR)
-cp -p -r build/doc/* $(DESTDIR)$(docdir)
-cp -p -r build/gleinc $(DESTDIR)$(INSTALL_DIR)
-chmod -R a+rX $(DESTDIR)$(INSTALL_DIR)/font
-chmod -R a+rX $(DESTDIR)$(INSTALL_DIR)/gleinc
-chmod -R a+rX $(DESTDIR)$(docdir)
post_install:
@echo ""
@echo "****************************************************************"
@echo "GLE $(GLE_VERSION)$(GLE_SNAPSHOT) has been installed"
@echo "You can use GLE now by entering the command \"gle\""
@echo "(Provided that $(DESTDIR)$(INSTALL_BIN) is in your PATH.)"
@echo "****************************************************************"
@echo ""
# noscript version: do not put scripts in bin directory that set up GLE_TOP
# gle does not need GLE_TOP anymore on most operating systems
install_noscript:
-$(INSTALL_PROGRAM) -m 755 build/bin/gle* $(DESTDIR)$(INSTALL_BIN)/
-$(INSTALL_PROGRAM) -m 755 build/bin/manip* $(DESTDIR)$(INSTALL_BIN)/
# script version: put scripts in bin directory that set up GLE_TOP
install_script:
-$(MKDIR_P) $(DESTDIR)$(INSTALL_DIR)/bin
-cp -p build/bin/gle* $(DESTDIR)$(INSTALL_DIR)/bin/
-cp -p build/bin/manip* $(DESTDIR)$(INSTALL_DIR)/bin/
-echo "#!/bin/sh" > $(DESTDIR)$(INSTALL_BIN)/gle
-echo "GLE_TOP=$(INSTALL_DIR)" >> $(DESTDIR)$(INSTALL_BIN)/gle
-echo "export GLE_TOP" >> $(DESTDIR)$(INSTALL_BIN)/gle
-echo "$(INSTALL_DIR)/bin/gle \$$@" >> $(DESTDIR)$(INSTALL_BIN)/gle
-chmod 755 $(DESTDIR)$(INSTALL_BIN)/gle
-echo "#!/bin/sh" > $(DESTDIR)$(INSTALL_BIN)/manip
-echo "GLE_TOP=$(INSTALL_DIR)" >> $(DESTDIR)$(INSTALL_BIN)/manip
-echo "export GLE_TOP" >> $(DESTDIR)$(INSTALL_BIN)/manip
-echo "$(INSTALL_DIR)/bin/manip \$$@" >> $(DESTDIR)$(INSTALL_BIN)/manip
-chmod 755 $(DESTDIR)$(INSTALL_BIN)/manip
install_qgle:
-$(INSTALL_PROGRAM) -m 755 build/bin/qgle $(DESTDIR)$(INSTALL_BIN)/
-@echo ""
-@echo "****************************************************************"
-@echo "QGLE has been installed in: $(DESTDIR)$(INSTALL_BIN)"
-@echo "****************************************************************"
install_libgle:
-$(MKDIR_P) $(DESTDIR)$(INSTALL_LIB)/
-$(INSTALL_PROGRAM) -m 755 build/lib/libgle* $(DESTDIR)$(INSTALL_LIB)/
#####################
# Code for Mac OS/X #
#####################
install_qgle_mac_default:
bash platform/script/install_qgle_mac
GLE_BUNDLE_TOP:=build/bin/QGLE.app/Contents/share/gle-graphics/$(GLE_VERSION)
bundle:
-$(MKDIR_P) build/bin/QGLE.app/Contents/bin
-cp -p build/bin/gle build/bin/QGLE.app/Contents/bin/
-cp -p build/bin/glegs build/bin/QGLE.app/Contents/bin/glegs
-cp -p -r build/lib build/bin/QGLE.app/Contents/
-$(MKDIR_P) $(GLE_BUNDLE_TOP)/
-cp -p build/glerc $(GLE_BUNDLE_TOP)/
-echo "begin config gle" > $(GLE_BUNDLE_TOP)/glerc
-echo " current = $(VERSION_NUMBER).$(BUILD_NUMBER)" >> $(GLE_BUNDLE_TOP)/glerc
-echo "end config" >> $(GLE_BUNDLE_TOP)/glerc
-echo "begin config tools" >> $(GLE_BUNDLE_TOP)/glerc
-echo " ghostscript = \"\$$EXELOC/../bin/glegs\"">> $(GLE_BUNDLE_TOP)/glerc
-echo " libgs = \"/Library/Frameworks/Ghostscript.framework\"">> $(GLE_BUNDLE_TOP)/glerc
-echo "end config" >> $(GLE_BUNDLE_TOP)/glerc
-cp -p build/inittex.ini $(GLE_BUNDLE_TOP)/
-cp -p build/init.tex $(GLE_BUNDLE_TOP)/
-cp -p -r build/font $(GLE_BUNDLE_TOP)/
-cp -p -r build/doc $(GLE_BUNDLE_TOP)/
-cp -p -r build/gleinc $(GLE_BUNDLE_TOP)/
install_name_tool -change $(DESTDIR)$(INSTALL_LIB)/libgle-graphics-@GLE_VERSION@.dylib @executable_path/../lib/libgle-graphics-@GLE_VERSION@.dylib build/bin/QGLE.app/Contents/MacOS/QGLE
LIBPNG_PATH=$(HOME)/staticlibs/lib/libpng14.14.dylib
bundle_libpng:
-cp -p $(LIBPNG_PATH) build/bin/QGLE.app/Contents/lib/libpng.dylib
install_name_tool -id @executable_path/../lib/libpng.dylib build/bin/QGLE.app/Contents/lib/libpng.dylib
install_name_tool -change $(LIBPNG_PATH) @executable_path/../lib/libpng.dylib build/bin/QGLE.app/Contents/MacOS/QGLE
install_name_tool -change $(LIBPNG_PATH) @executable_path/../lib/libpng.dylib build/bin/QGLE.app/Contents/lib/libgle-graphics-@GLE_VERSION@.dylib
otool:
@echo "GLE"
otool -L build/bin/QGLE.app/Contents/bin/gle
@echo "GLEGS"
otool -L build/bin/QGLE.app/Contents/bin/glegs
@echo "MANIP"
otool -L build/bin/manip
@echo "LIBGLE-GRPAPHICS"
otool -L build/bin/QGLE.app/Contents/lib/libgle-graphics-@GLE_VERSION@.dylib
@echo "QGLE"
otool -L build/bin/QGLE.app/Contents/MacOS/QGLE
#####################
# Begin build DMG #
#####################
#
# Build file for creating DMG files.
#
# The DMG packager looks for a template.dmg.bz2 for using as its
# DMG template. If it doesn't find one, it generates a clean one.
#
# If you create a DMG template, you should make one containing all
# the files listed in $(SOURCE_FILES) below, and arrange everything to suit
# your style. The contents of the files themselves does not matter, so
# they can be empty (they will be overwritten later).
#
# Remko Tronçon
# http://el-tramo.be/about
# Licensed under the MIT License. See LICENSE.txt for details.
################################################################################
# Customizable variables
################################################################################
SOURCE_DIR ?= build/bin
SOURCE_FILES ?= QGLE.app
TEMPLATE_DMG ?= template.dmg
################################################################################
# DMG building. No editing should be needed beyond this point.
################################################################################
MASTER_DMG=gle-graphics-$(VERSION_NUMBER).$(BUILD_NUMBER)$(GLE_SNAPSHOT)-exe-mac.dmg
WC_DMG=wc.dmg
WC_DIR=wc
.PHONY: dmg
dmg: $(MASTER_DMG)
$(TEMPLATE_DMG): $(TEMPLATE_DMG).bz2
bunzip2 -k $<
$(TEMPLATE_DMG).bz2:
@echo
@echo --------------------- Generating empty template --------------------
mkdir template
hdiutil create -fs HFSX -layout SPUD -size 60m "$(TEMPLATE_DMG)" -srcfolder template -format UDRW -volname "gle-graphics-$(VERSION_NUMBER).$(BUILD_NUMBER)$(GLE_SNAPSHOT)" -quiet
rmdir template
bzip2 "$(TEMPLATE_DMG)"
@echo
$(WC_DMG): $(TEMPLATE_DMG)
cp $< $@
$(MASTER_DMG): $(WC_DMG) $(addprefix $(SOURCE_DIR)/,$(SOURCE_FILES))
@echo
@echo --------------------- Creating Disk Image --------------------
mkdir -p $(WC_DIR)
hdiutil attach "$(WC_DMG)" -noautoopen -quiet -mountpoint "$(WC_DIR)"
for i in $(SOURCE_FILES); do \
rm -rf "$(WC_DIR)/$$i"; \
ditto -rsrc "$(SOURCE_DIR)/$$i" "$(WC_DIR)/$$i"; \
done
#rm -f "$@"
#hdiutil create -srcfolder "$(WC_DIR)" -format UDZO -imagekey zlib-level=9 "$@" -volname "gle-graphics-$(VERSION_NUMBER).$(BUILD_NUMBER)$(GLE_SNAPSHOT)" -scrub -quiet
WC_DEV=`hdiutil info | grep "$(WC_DIR)" | grep "Apple_HFS" | awk '{print $$1}'` && \
hdiutil detach $$WC_DEV -quiet -force
rm -f "$(MASTER_DMG)"
hdiutil convert "$(WC_DMG)" -quiet -format UDZO -imagekey zlib-level=9 -o "$@"
rm -rf $(WC_DIR)
@echo
.PHONY: clean_dmg
clean_dmg:
-rm -rf $(TEMPLATE_DMG) $(MASTER_DMG) $(WC_DMG)
#####################
# End build DMG #
#####################
#####################
# Make glegs #
#####################
glegs:
$(MAKE) -C src/gui -f MakefileAC $(PROJECT_BINDIR)/bin/glegs
#####################
# Rerun qmake #
#####################
qmake:
$(MAKE) -C src/gui -f MakefileAC qmake
qgle:
$(RUN_QGLE)
# Code for Autopackage
install_ap:
-$(INSTALL_DATA) platform/autopackage/gle.desktop $(DESTDIR)$(INSTALL_DIR)
-$(INSTALL_DATA) platform/autopackage/gle.xml $(DESTDIR)$(INSTALL_DIR)
-$(INSTALL_DATA) platform/autopackage/gle.png $(DESTDIR)$(INSTALL_DIR)
uninstall: clean_install
clean_install:
-@$(RM) $(DESTDIR)$(INSTALL_BIN)/gle*
-@$(RM) $(DESTDIR)$(INSTALL_BIN)/manip*
-@$(RM) $(DESTDIR)$(INSTALL_BIN)/qgle*
-@$(RM) $(DESTDIR)$(INSTALL_DIR)/bin/*
-@$(RMDIR) $(DESTDIR)$(INSTALL_DIR)/bin
-@$(RM) $(DESTDIR)$(INSTALL_DIR)/font/*
-@$(RMDIR) $(DESTDIR)$(INSTALL_DIR)/font
-@$(RM) $(DESTDIR)$(INSTALL_DIR)/doc/*
-@$(RMDIR) $(DESTDIR)$(INSTALL_DIR)/doc
-@$(RM) $(DESTDIR)$(INSTALL_DIR)/gleinc/*
-@$(RMDIR) $(DESTDIR)$(INSTALL_DIR)/gleinc
-@$(RM) $(DESTDIR)$(INSTALL_DIR)/*
configure: configure.ac
aclocal
autoconf
-@echo ""
-@echo "****************************************************************"
-@echo "Error: configure.ac changed, please reconfigure with ./configure"
-@echo "****************************************************************"
false
gui:
$(MAKE) -C src/gui -f MakefileAC
zipsrc:
$(MAKE) -f Makefile.gcc zipsrc
tarsrc:
$(MAKE) -f Makefile.gcc tarsrc
tarsrcf:
$(MAKE) -f Makefile.gcc tarsrcf
zipexe:
zip -r $(BASE_NAME)-$(VERSION_NUMBER).$(BUILD_NUMBER)$(GLE_SNAPSHOT)-exe.zip build
echo "Created: $(BASE_NAME)-$(VERSION_NUMBER).$(BUILD_NUMBER)$(GLE_SNAPSHOT)-exe.zip"
license:
cat srcfiles.txt | xargs perl platform/script/checklicense.pl
# *** WARNING ***
# Don't add "strip" to the default install target:
# This breaks creating "debug" packages on openSUSE and Fedora.
strip:
-strip build/bin/gle*
-strip build/bin/fbuild*
-strip build/bin/makefmt*
-strip build/bin/glegs*
-strip $(GLE_SRC_LIB_DIR)/libgle*
-strip build/bin/qgle*
-strip build/bin/manip*
finddeps:
./build/bin/gle -finddeps
cleandoc:
$(MAKE) -C gle-refman -f Makefile.gcc clean
cleanfonts:
$(MAKE) -C gle-refman -f Makefile.gcc cfonts
doc:
-$(MKDIR_P) build/doc
$(MAKE) -C gle-refman -f Makefile.gcc fig
$(MAKE) -C gle-refman -f Makefile.gcc fonts
$(MAKE) -C gle-refman -f Makefile.gcc pdf
$(MAKE) -C gle-refman -f Makefile.gcc pdf
$(MAKE) -C gle-refman -f Makefile.gcc index
$(MAKE) -C gle-refman -f Makefile.gcc pdf
cp gle-refman/gle-manual.pdf build/doc/
cp README.txt build/doc/
cp LICENSE.txt build/doc/
autopackage:
(export APBUILD_STATIC_LIBGCC=1; export APBUILD_STATIC="tiff png12 png jpeg z"; makepackage platform/autopackage/gle4.apspec)
mv gle-@GLE_VERSION@.x86.package GLE-@GLE_VERSION@-x86-linux.package
nsis: strip
-$(MKDIR_P) $(RELEASE_DIR)
-@$(RM) $(RELEASE_DIR)/$(WIN32_INSTALL_NAME)
-makensis /V1 /DGLE_VERSION=@GLE_VERSION@ /DOUTPUT_FILENAME=$(WIN32_INSTALL_NAME) contrib\\packagers\\nsis\\gle.nsi
-mv contrib/packagers/nsis/$(WIN32_INSTALL_NAME) $(RELEASE_DIR)
snapshot:
perl platform/script/makesnapshot.pl 1
nosnapshot:
perl platform/script/makesnapshot.pl 0
unit-test:
make -C src/gle $(PROJECT_BINDIR)/bin/gle-unit-test
gle-graphics-4.2.4c/LICENSE.txt 0000664 0000000 0000000 00000230061 11447671544 014573 0 ustar root root GLE License
-----------
GLE is licensed under the Modified BSD license.
GLE comes with a user interface QGLE. QGLE is licensed under the GNU General
Public License (GPL) as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
Some files distributed with GLE/QGLE are available under a different license.
Detailed license information for each file can be found at the bottom of this
document.
License for GLE (Modified BSD)
------------------------------
Copyright (C) 2009 GLE.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
License for QGLE (GPL v2 or later)
----------------------------------
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
License for QGS (LGPL v2.1)
---------------------------
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
Copyright (C)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
=====================================================================================
== License information for each file
=====================================================================================
*** Modified BSD License ***
LICENSE.txt
Makefile.gcc
Makefile.in
Makefile.os2
Makefile.vc
README.txt
config.aconf
config.gcc
config.i
config.os2
config.vc
configure
configure.ac
contrib/editors/highlighting/gle.nedit
contrib/editors/highlighting/gle.stx
contrib/editors/highlighting/vim/ftplugin/gle.vim
contrib/editors/highlighting/vim/indent/gle.vim
contrib/editors/highlighting/vim/syntax/gle.vim
contrib/packagers/nsis/banner_image.bmp
contrib/packagers/nsis/gle.nsi
contrib/packagers/nsis/welcome_image.bmp
contrib/packagers/nsis/www.ico
gle-refman/Makefile.gcc
gle-refman/Makefile.os2
gle-refman/advanced/advanced.tex
gle-refman/advanced/fig/Makefile.gcc
gle-refman/advanced/fig/Makefile.os2
gle-refman/advanced/fig/gc_clip.gle
gle-refman/advanced/fig/gc_join.gle
gle-refman/advanced/fig/house.gle
gle-refman/advanced/fig/join.gle
gle-refman/advanced/fig/texgraph.gle
gle-refman/advanced/fig/texgraph.tex
gle-refman/appendix/appendix.tex
gle-refman/appendix/fig/Makefile.gcc
gle-refman/appendix/fig/Makefile.os2
gle-refman/appendix/fig/ap_fonts.gle
gle-refman/appendix/fig/ap_marker.gle
gle-refman/appendix/fig/clip.gle
gle-refman/appendix/fig/color_list_svg.gle
gle-refman/appendix/fig/color_sample.gle
gle-refman/appendix/fig/fonttes2.gle
gle-refman/appendix/fig/fonttest.gle
gle-refman/appendix/fig/join.gle
gle-refman/appendix/fig/loop.gle
gle-refman/appendix/fig/nzmap.gle
gle-refman/appendix/fig/showfont.gle
gle-refman/appendix/fig/single.dat
gle-refman/appendix/fig/single.gle
gle-refman/appendix/fig/stack1.gle
gle-refman/appendix/fig/stack2.gle
gle-refman/appendix/fig/stack4b.gle
gle-refman/appendix/fig/t.gle
gle-refman/appendix/fig/test.dat
gle-refman/appendix/fig/test4.dat
gle-refman/appendix/fig/title.gle
gle-refman/appendix/fig/title32.gle
gle-refman/appendix/fig/tut_slide.gle
gle-refman/appendix/fig/wall.gle
gle-refman/appendix/fig/xend.gle
gle-refman/appendix/fig/ziptext.gle
gle-refman/appendix/sm_clip.tex
gle-refman/appendix/sm_fonttables.tex
gle-refman/appendix/sm_join.tex
gle-refman/appendix/sm_loop.tex
gle-refman/appendix/sm_single.tex
gle-refman/appendix/sm_stack1.tex
gle-refman/appendix/sm_stack2.tex
gle-refman/appendix/sm_stack4b.tex
gle-refman/appendix/sym.tex
gle-refman/cmd.sty
gle-refman/fonttest/Makefile.gcc
gle-refman/fonttest/font-table.gle
gle-refman/fonttest/fonts.csv
gle-refman/fonttest/fonttab.tex
gle-refman/fonttest/ncleanfonts.pl
gle-refman/fonttest/ndofonts.pl
gle-refman/gle-manual.tex
gle-refman/graph/fig/Makefile.gcc
gle-refman/graph/fig/Makefile.os2
gle-refman/graph/fig/age.csv
gle-refman/graph/fig/age.gle
gle-refman/graph/fig/fitlin.dat
gle-refman/graph/fig/gc_axes.gle
gle-refman/graph/fig/gc_axisall.gle
gle-refman/graph/fig/gc_bargraph1.gle
gle-refman/graph/fig/gc_bargraph2.gle
gle-refman/graph/fig/gc_bargraph_3d.gle
gle-refman/graph/fig/gc_bean.dat
gle-refman/graph/fig/gc_err.gle
gle-refman/graph/fig/gc_fill.dat
gle-refman/graph/fig/gc_fillgraph.gle
gle-refman/graph/fig/gc_fit.gle
gle-refman/graph/fig/gc_graphscale.gle
gle-refman/graph/fig/gc_horizbar.csv
gle-refman/graph/fig/gc_horizbar.gle
gle-refman/graph/fig/gc_let.gle
gle-refman/graph/fig/gc_loglabels.gle
gle-refman/graph/fig/gc_logsubticks.gle
gle-refman/graph/fig/gc_mathmode.gle
gle-refman/graph/fig/gc_names.gle
gle-refman/graph/fig/gc_nomiss.gle
gle-refman/graph/fig/linemode.gle
gle-refman/graph/fig/noisysine.gle
gle-refman/graph/fig/normal.csv
gle-refman/graph/fig/normal.gle
gle-refman/graph/fig/test.dat
gle-refman/graph/graph.tex
gle-refman/key/fig/Makefile.gcc
gle-refman/key/fig/Makefile.os2
gle-refman/key/fig/grkey.gle
gle-refman/key/fig/k_key.gle
gle-refman/key/fig/keypos.gle
gle-refman/key/fig/multicolkey.gle
gle-refman/key/key.tex
gle-refman/obsolete/fonts.tex
gle-refman/obsolete/gle32.tex
gle-refman/obsolete/obsolete.tex
gle-refman/obsolete/sm_gle32_prog.tex
gle-refman/obsolete/sm_gle32_tut.tex
gle-refman/obsolete/symbols.tex
gle-refman/primitives/cmds.tex
gle-refman/primitives/fig/Makefile.gcc
gle-refman/primitives/fig/Makefile.os2
gle-refman/primitives/fig/curve.gle
gle-refman/primitives/fig/fullpage.gle
gle-refman/primitives/fig/gc_arc.gle
gle-refman/primitives/fig/gc_arcto.gle
gle-refman/primitives/fig/gc_arrstyle.gle
gle-refman/primitives/fig/gc_beginbox.gle
gle-refman/primitives/fig/gc_bezier.gle
gle-refman/primitives/fig/gc_cap.gle
gle-refman/primitives/fig/gc_color.gle
gle-refman/primitives/fig/gc_curve.gle
gle-refman/primitives/fig/gc_fontlwidth.gle
gle-refman/primitives/fig/gc_for.gle
gle-refman/primitives/fig/gc_justify.gle
gle-refman/primitives/fig/gc_ljoin.gle
gle-refman/primitives/fig/gc_lstyle.gle
gle-refman/primitives/fig/gc_marker.gle
gle-refman/primitives/fig/gc_nonzero.gle
gle-refman/primitives/fig/gc_rot1.gle
gle-refman/primitives/fig/gc_rot2.gle
gle-refman/primitives/fig/gc_table.gle
gle-refman/primitives/fig/gc_text.gle
gle-refman/primitives/fig/gc_write.gle
gle-refman/primitives/fig/gc_xend.gle
gle-refman/primitives/fig/grids.gle
gle-refman/primitives/fig/setcolor.gle
gle-refman/prog/fig/Makefile.gcc
gle-refman/prog/fig/axisformat.gle
gle-refman/prog/prog.tex
gle-refman/script/manual.gle
gle-refman/title/Makefile.gcc
gle-refman/title/Makefile.os2
gle-refman/title/glelogo.gle
gle-refman/title/sm_special.tex
gle-refman/title/title.tex
gle-refman/tutorial/fig/Makefile.gcc
gle-refman/tutorial/fig/Makefile.os2
gle-refman/tutorial/fig/tut.dat
gle-refman/tutorial/fig/tut3.dat
gle-refman/tutorial/fig/tut_graph.gle
gle-refman/tutorial/fig/tut_graph2.gle
gle-refman/tutorial/fig/tut_graph3.gle
gle-refman/tutorial/fig/tut_simple.gle
gle-refman/tutorial/fig/year-2000.csv
gle-refman/tutorial/fig/year-2001.csv
gle-refman/tutorial/tutorial.tex
gle-refman/utilities/contour.tex
gle-refman/utilities/fig/Makefile.gcc
gle-refman/utilities/fig/Makefile.os2
gle-refman/utilities/fig/fitls.dat
gle-refman/utilities/fig/fitls.gle
gle-refman/utilities/fig/fitz.dat
gle-refman/utilities/fig/fitz1.gle
gle-refman/utilities/fig/fitz1/fitz1.big
gle-refman/utilities/fig/fitz1/fitz1.dat
gle-refman/utilities/fig/fitz1/fitz1.sur
gle-refman/utilities/fig/fitz1/fitz1.z
gle-refman/utilities/fig/gaussian.gle
gle-refman/utilities/fig/jack.gle
gle-refman/utilities/fig/jack/jack.big
gle-refman/utilities/fig/jack/jack.let
gle-refman/utilities/fig/jack/jack.sur
gle-refman/utilities/fig/jack/jack.z
gle-refman/utilities/fig/saddle-contour.gle
gle-refman/utilities/fig/saddle.gle
gle-refman/utilities/fig/saddle/saddle.big
gle-refman/utilities/fig/saddle/saddle.let
gle-refman/utilities/fig/saddle/saddle.sur
gle-refman/utilities/fig/saddle/saddle.z
gle-refman/utilities/fig/surf/surf1.big
gle-refman/utilities/fig/surf/surf1.sur
gle-refman/utilities/fig/surf/surf1.z
gle-refman/utilities/fig/surf/surf2.big
gle-refman/utilities/fig/surf/surf2.sur
gle-refman/utilities/fig/surf/surf3.big
gle-refman/utilities/fig/surf/surf3.dat
gle-refman/utilities/fig/surf/surf3.sur
gle-refman/utilities/fig/surf/surf4.big
gle-refman/utilities/fig/surf/surf4.sur
gle-refman/utilities/fig/surf/surf5.big
gle-refman/utilities/fig/surf/surf5.sur
gle-refman/utilities/fig/surf/surf5b.big
gle-refman/utilities/fig/surf/surf5b.sur
gle-refman/utilities/fig/surf1.gle
gle-refman/utilities/fig/surf2.gle
gle-refman/utilities/fig/surf3.gle
gle-refman/utilities/fig/surf4.gle
gle-refman/utilities/fig/surf5.gle
gle-refman/utilities/fig/surf5b.gle
gle-refman/utilities/fig/volcano.gle
gle-refman/utilities/fig/volcano.z
gle-refman/utilities/fig/xyz.gle
gle-refman/utilities/fig/xyz/xyz.big
gle-refman/utilities/fig/xyz/xyz.dat
gle-refman/utilities/fig/xyz/xyz.key
gle-refman/utilities/fig/xyz/xyz.lab
gle-refman/utilities/fig/xyz/xyz.sur
gle-refman/utilities/fig/xyz/xyz.z
gle-refman/utilities/fitls.tex
gle-refman/utilities/fitz.tex
gle-refman/utilities/letz.tex
gle-refman/utilities/manip.tex
gle-refman/utilities/surface.tex
platform/autoconf/gle-graphics.pc.in
platform/autopackage/gle.desktop
platform/autopackage/gle.gle
platform/autopackage/gle.png
platform/autopackage/gle.xml
platform/autopackage/gle4.apspec.in
platform/autopackage/qt-replace.pl
platform/script/checkdos
platform/script/checklicense.pl
platform/script/collectsrcfiles.pl
platform/script/correctfilemodes.pl
platform/script/dosperc
platform/script/install_qgle_mac
platform/script/killspace
platform/script/killtrailspace.pl
platform/script/licenses.csv
platform/script/makesnapshot.pl
platform/script/srcfiles.csv
src/TeX/Makefile.gcc
src/TeX/Makefile.in
src/TeX/Makefile.os2
src/TeX/Makefile.vc
src/TeX/init.tex
src/TeX/makeinittex.cmd
src/config.h.in
src/config.h.os2
src/config_noauto.h
src/doc/gle.1.in
src/fbuild/Makefile.gcc
src/fbuild/Makefile.in
src/fbuild/Makefile.os2
src/fbuild/Makefile.vc
src/fbuild/basicconf.h
src/fbuild/fbuild.cpp
src/fbuild/files.txt
src/fbuild/token.cpp
src/fbuild/token.h
src/fonts/LICENSE-FONTS.txt
src/fonts/Makefile.gcc
src/fonts/Makefile.os2
src/fonts/Makefile.vc
src/fonts/adobestd.enc
src/fonts/checkfonts.pl
src/fonts/font.dat
src/fonts/glemark.afm
src/fonts/glemark.gle
src/fonts/psfont.dat
src/fonts/texstd.enc
src/gle/Makefile.gcc
src/gle/Makefile.in
src/gle/Makefile.os2
src/gle/Makefile.vc
src/gle/all.h
src/gle/axis.cpp
src/gle/axis.h
src/gle/b_tab.cpp
src/gle/b_text.cpp
src/gle/basicconf.h
src/gle/begin.cpp
src/gle/begin.h
src/gle/bitmap/Makefile.gcc
src/gle/bitmap/Makefile.in
src/gle/bitmap/Makefile.os2
src/gle/bitmap/Makefile.vc
src/gle/bitmap/ascii85.cpp
src/gle/bitmap/files.txt
src/gle/bitmap/glegif.cpp
src/gle/bitmap/glegif.h
src/gle/bitmap/glejpeg.cpp
src/gle/bitmap/glepng.cpp
src/gle/bitmap/gletiff.cpp
src/gle/bitmap/img2ps.cpp
src/gle/bitmap/img2ps.h
src/gle/bitmap/lzwencode.h
src/gle/cmdline.cpp
src/gle/cmdline.h
src/gle/color.cpp
src/gle/color.h
src/gle/config.cpp
src/gle/config.h
src/gle/core.cpp
src/gle/core.h
src/gle/curve.cpp
src/gle/cutils.cpp
src/gle/cutils.h
src/gle/d_cairo.cpp
src/gle/d_dummy.cpp
src/gle/d_interface.h
src/gle/d_ps.cpp
src/gle/d_svg.cpp
src/gle/d_x.cpp
src/gle/drawit.cpp
src/gle/drawit.h
src/gle/eval.cpp
src/gle/f2c.h
src/gle/file_io.cpp
src/gle/file_io.h
src/gle/files.txt
src/gle/fitbez.cpp
src/gle/fitcf.cpp
src/gle/fitcf.h
src/gle/fn.cpp
src/gle/fn.h
src/gle/font.cpp
src/gle/font.h
src/gle/general.cpp
src/gle/gle-base.cpp
src/gle/gle-datatype.cpp
src/gle/gle-interface.cpp
src/gle/gle-interface/gle-base.h
src/gle/gle-interface/gle-const.h
src/gle/gle-interface/gle-datatype.h
src/gle/gle-interface/gle-interface.h
src/gle/gle-interface/gle-sourcefile.h
src/gle/gle-sourcefile.cpp
src/gle/gle.cpp
src/gle/glearray.cpp
src/gle/glearray.h
src/gle/glec.cpp
src/gle/glepro.h
src/gle/gprint.cpp
src/gle/gprint.h
src/gle/graph.cpp
src/gle/graph.h
src/gle/graph2.cpp
src/gle/justify.h
src/gle/key.cpp
src/gle/key.h
src/gle/keyword.cpp
src/gle/keyword.h
src/gle/leastsq.cpp
src/gle/leastsq.h
src/gle/letzfitz/Makefile.gcc
src/gle/letzfitz/Makefile.in
src/gle/letzfitz/Makefile.os2
src/gle/letzfitz/Makefile.vc
src/gle/letzfitz/f2c.h
src/gle/letzfitz/ffit.cpp
src/gle/letzfitz/files.txt
src/gle/letzfitz/fit.cpp
src/gle/letzfitz/let.cpp
src/gle/mem_limits.h
src/gle/memory.cpp
src/gle/mychar.cpp
src/gle/numberformat.cpp
src/gle/numberformat.h
src/gle/op_def.cpp
src/gle/op_def.h
src/gle/pass.cpp
src/gle/pass.h
src/gle/polish.cpp
src/gle/polish.h
src/gle/run.cpp
src/gle/run.h
src/gle/savgol.cpp
src/gle/glebtool.cpp
src/gle/sub.cpp
src/gle/sub.h
src/gle/surface/Makefile.gcc
src/gle/surface/Makefile.in
src/gle/surface/Makefile.os2
src/gle/surface/Makefile.vc
src/gle/surface/f2c.h
src/gle/surface/fcontour.cpp
src/gle/surface/ffitcontour.cpp
src/gle/surface/files.txt
src/gle/surface/gcontour.cpp
src/gle/surface/gsurface.cpp
src/gle/surface/gsurface.h
src/gle/surface/hide.cpp
src/gle/surface/vdevice.cpp
src/gle/surface/vdevice.h
src/gle/tex.cpp
src/gle/tex.h
src/gle/texinterface.cpp
src/gle/texinterface.h
src/gle/token.cpp
src/gle/token.h
src/gle/tokens/BinIO.cpp
src/gle/tokens/BinIO.h
src/gle/tokens/CharBitMap.h
src/gle/tokens/Makefile.gcc
src/gle/tokens/Makefile.in
src/gle/tokens/Makefile.os2
src/gle/tokens/Makefile.vc
src/gle/tokens/RefCount.h
src/gle/tokens/StringKeyHash.cpp
src/gle/tokens/StringKeyHash.h
src/gle/tokens/Tokenizer.cpp
src/gle/tokens/Tokenizer.h
src/gle/tokens/Tokenizer.i
src/gle/tokens/files.txt
src/gle/tokens/stokenizer.h
src/gle/var.cpp
src/gle/var.h
src/lib/Makefile.gcc
src/lib/Makefile.os2
src/lib/barstyles.gle
src/lib/color.gle
src/lib/compat/colors-gle-4.0.12.gle
src/lib/compatibility.gle
src/lib/contour.gle
src/lib/ellipse.gle
src/lib/feyn.gle
src/lib/graphutil.gle
src/lib/piesub.gle
src/lib/polarplot.gle
src/lib/shape.gle
src/lib/simpletree.gle
src/lib/stm.gle
src/lib/tree.gle
src/lib/ziptext.gle
src/makefmt/Makefile.gcc
src/makefmt/Makefile.in
src/makefmt/Makefile.os2
src/makefmt/Makefile.vc
src/makefmt/basicconf.h
src/makefmt/files.txt
src/makefmt/makefmt.cpp
src/makefmt/parseAFM.diff
src/manip/Makefile.dj
src/manip/Makefile.gcc
src/manip/Makefile.in
src/manip/Makefile.os2
src/manip/all.h
src/manip/cell.cpp
src/manip/cell.h
src/manip/cmd.cpp
src/manip/cmd.h
src/manip/color.h
src/manip/cursesscr.cpp
src/manip/edt.h
src/manip/eval.cpp
src/manip/eval.h
src/manip/ffblk_def.h
src/manip/filemenu.cpp
src/manip/filemenu.h
src/manip/files.txt
src/manip/fn.cpp
src/manip/general.cpp
src/manip/keyword.cpp
src/manip/keyword.h
src/manip/manip.cpp
src/manip/manip.h
src/manip/manip.hlp
src/manip/mjl.cpp
src/manip/mjl.h
src/manip/mscreen.h
src/manip/mygraph.h
src/manip/nofnkeys.h
src/manip/polish.cpp
src/manip/sub.cpp
src/manip/test.dat
src/manip/token.cpp
src/manip/unix_extra.cpp
src/manip/unix_extra.h
src/manip/unixinkey.cpp
src/manip/unixscr.cpp
src/manip/var.cpp
src/manip/varargs.cpp
src/manip/vaxconio.h
src/manip/vaxinkey.cpp
src/samples/Makefile.gcc
src/samples/Makefile.os2
src/samples/Makefile.vc
src/samples/qgle_keyboard.gle
src/samples/sample.gle
src/samples/sample_compare.eps
=====================================================================================
*** LGPL v2.1 or later ***
src/gui/qgs.cpp
src/gui/qgs.h
=====================================================================================
*** GPL v2 or later ***
contrib/editors/highlighting/gle-emacs.el
platform/autoconf/config.guess
platform/autoconf/config.sub
src/gui/MakefileAC.in
src/gui/about.cpp
src/gui/about.h
src/gui/about.html
src/gui/amove.cpp
src/gui/amove.h
src/gui/arc.cpp
src/gui/arc.h
src/gui/circle.cpp
src/gui/circle.h
src/gui/colourbutton.cpp
src/gui/colourbutton.h
src/gui/colourpicker.cpp
src/gui/colourpicker.h
src/gui/component.cpp
src/gui/component.h
src/gui/consolewindow.cpp
src/gui/consolewindow.h
src/gui/dialogues.cpp
src/gui/dialogues.h
src/gui/downloader.cpp
src/gui/downloader.h
src/gui/doxyfile
src/gui/drawingobject.cpp
src/gui/drawingobject.h
src/gui/ellipse.cpp
src/gui/ellipse.h
src/gui/fileinfo.cpp
src/gui/fileinfo.h
src/gui/gledrawing.cpp
src/gui/gledrawing.h
src/gui/glegs.cpp
src/gui/gpl.txt
src/gui/grid.cpp
src/gui/grid.h
src/gui/images/amove.png
src/gui/images/arc_3p.png
src/gui/images/circle.png
src/gui/images/edit_mode.png
src/gui/images/editor.png
src/gui/images/ellipse.png
src/gui/images/ellipsis.png
src/gui/images/gle.icns
src/gui/images/gle.ico
src/gui/images/gle.png
src/gui/images/gle_shadow.png
src/gui/images/gle_icon.png
src/gui/images/grid.png
src/gui/images/grid_snap.png
src/gui/images/line.png
src/gui/images/new.png
src/gui/images/open.png
src/gui/images/orthosnap.png
src/gui/images/osnap.png
src/gui/images/perp_line.png
src/gui/images/pointer.png
src/gui/images/polarsnap.png
src/gui/images/polartrack.png
src/gui/images/preview_mode.png
src/gui/images/reload.png
src/gui/images/reload_red.png
src/gui/images/save.png
src/gui/images/tan_line.png
src/gui/images/text.png
src/gui/images/varyingcolours.png
src/gui/images/zoom_in.png
src/gui/images/zoom_out.png
src/gui/line.cpp
src/gui/line.h
src/gui/macspecific.cpp
src/gui/main.cpp
src/gui/mainwindow.cpp
src/gui/mainwindow.h
src/gui/newfile.cpp
src/gui/newfile.h
src/gui/objectblocks.cpp
src/gui/objectblocks.h
src/gui/polararray.cpp
src/gui/polararray.h
src/gui/propertyeditor.cpp
src/gui/propertyeditor.h
src/gui/propertymodel.cpp
src/gui/propertymodel.h
src/gui/qgle.pro.in
src/gui/qgle.qrc
src/gui/qgle.rc
src/gui/qgle_definitions.h
src/gui/qgle_statics.cpp
src/gui/qgle_statics.h
src/gui/qgslibloader.cpp
src/gui/readme.txt
src/gui/serverthread.cpp
src/gui/serverthread.h
src/gui/settings.cpp
src/gui/settings.h
src/gui/settings_dialogue.cpp
src/gui/settings_dialogue.h
src/gui/snapline.cpp
src/gui/snapline.h
src/gui/start-qgle.sh
src/gui/text.cpp
src/gui/text.h
src/gui/variantdelegate.cpp
src/gui/variantdelegate.h
=====================================================================================
*** GPL v2 ***
# The files in this directory were taken from GPL GhostScript 8.54
# This is the relevant license information:
#
# The files in the src, lib, toolbin, examples, doc and man
# directories (folders) and any subdirectories (sub-folders)
# thereof are part of GPL Ghostscript.
#
# The files in the Resource directory and any subdirectories thereof
# are also part of GPL Ghostscript, with the explicit exception of
# the files in the CMap subdirectory. The CMap files are copyright
# Adobe Systems Incorporated and covered by a separate license
# which permits only verbatim distribution.
#
# GPL Ghostscript is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License as published by the Free Software Foundation.
#
# GPL Ghostscript is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program so you can know your rights and responsibilities.
# It should be in a file named doc/COPYING. If not, write to the
# Free Software Foundation, Inc., 59 Temple Place Suite 330, Boston, MA
# 02111-1307, USA.
src/gui/gsinc/LICENSE
src/gui/gsinc/gdevdsp.h
src/gui/gsinc/gscdefs.h
src/gui/gsinc/iapi.h
src/gui/gsinc/ierrors.h
=====================================================================================
*** ZLIB/LIBPNG License ***
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; * All NSIS source code, plug-ins, documentation, examples, header files and graphics, ;;
;; with the exception of the compression modules and where otherwise noted, are licensed ;;
;; under the zlib/libpng license. ;;
;; ;;
;; ZLIB/LIBPNG LICENSE ;;
;; ------------------- ;;
;; ;;
;; This software is provided 'as-is', without any express or implied warranty. In no ;;
;; event will the authors be held liable for any damages arising from the use of this ;;
;; software. ;;
;; ;;
;; Permission is granted to anyone to use this software for any purpose, including ;;
;; commercial applications, and to alter it and redistribute it freely, subject to the ;;
;; following restrictions: ;;
;; ;;
;; 1. The origin of this software must not be misrepresented; you must not claim that you ;;
;; wrote the original software. If you use this software in a product, an acknowledgment ;;
;; in the product documentation would be appreciated but is not required. ;;
;; ;;
;; 2. Altered source versions must be plainly marked as such, and must not be ;;
;; misrepresented as being the original software. ;;
;; ;;
;; 3. This notice may not be removed or altered from any source distribution. ;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
contrib/packagers/nsis/AddToPath.nsi
=====================================================================================
*** X11 License ***
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
platform/autoconf/install-sh
=====================================================================================
*** Adobe Core 35 AFM Files ***
# Adobe Core 35 AFM Files with 314 Glyph Entries - ReadMe
#
# This file and the 35 PostScript(R) AFM files it
# accompanies may be used, copied, and distributed for any purpose and
# without charge, with or without modification, provided that all
# copyright notices are retained; that the AFM files are not
# distributed without this file; that all modifications to this file
# or any of the AFM files are prominently noted in the modified
# file(s); and that this paragraph is not modified. Adobe Systems has
# no responsibility or obligation to support the use of the AFM
# files.
src/fonts/Adobe-Core35_AFMs-314/Courier-Bold.afm
src/fonts/Adobe-Core35_AFMs-314/Courier-BoldOblique.afm
src/fonts/Adobe-Core35_AFMs-314/Courier-Oblique.afm
src/fonts/Adobe-Core35_AFMs-314/Courier.afm
src/fonts/Adobe-Core35_AFMs-314/Helvetica-Bold.afm
src/fonts/Adobe-Core35_AFMs-314/Helvetica-BoldOblique.afm
src/fonts/Adobe-Core35_AFMs-314/Helvetica-Narrow.afm
src/fonts/Adobe-Core35_AFMs-314/Helvetica-NarrowBold.afm
src/fonts/Adobe-Core35_AFMs-314/Helvetica-NarrowBoldOblique.afm
src/fonts/Adobe-Core35_AFMs-314/Helvetica-NarrowOblique.afm
src/fonts/Adobe-Core35_AFMs-314/Helvetica-Oblique.afm
src/fonts/Adobe-Core35_AFMs-314/Helvetica.afm
src/fonts/Adobe-Core35_AFMs-314/ITCAvantGarde-Book.afm
src/fonts/Adobe-Core35_AFMs-314/ITCAvantGarde-BookOblique.afm
src/fonts/Adobe-Core35_AFMs-314/ITCAvantGarde-Demi.afm
src/fonts/Adobe-Core35_AFMs-314/ITCAvantGarde-DemiOblique.afm
src/fonts/Adobe-Core35_AFMs-314/ITCBookman-Demi.afm
src/fonts/Adobe-Core35_AFMs-314/ITCBookman-DemiItalic.afm
src/fonts/Adobe-Core35_AFMs-314/ITCBookman-Light.afm
src/fonts/Adobe-Core35_AFMs-314/ITCBookman-LightItalic.afm
src/fonts/Adobe-Core35_AFMs-314/ITCZapfChancery-MediumItalic.afm
src/fonts/Adobe-Core35_AFMs-314/MustRead.html
src/fonts/Adobe-Core35_AFMs-314/NewCenturySchlbk-Bold.afm
src/fonts/Adobe-Core35_AFMs-314/NewCenturySchlbk-BoldItalic.afm
src/fonts/Adobe-Core35_AFMs-314/NewCenturySchlbk-Italic.afm
src/fonts/Adobe-Core35_AFMs-314/NewCenturySchlbk-Roman.afm
src/fonts/Adobe-Core35_AFMs-314/Palatino-Bold.afm
src/fonts/Adobe-Core35_AFMs-314/Palatino-BoldItalic.afm
src/fonts/Adobe-Core35_AFMs-314/Palatino-Italic.afm
src/fonts/Adobe-Core35_AFMs-314/Palatino-Roman.afm
src/fonts/Adobe-Core35_AFMs-314/Symbol.afm
src/fonts/Adobe-Core35_AFMs-314/Times-Bold.afm
src/fonts/Adobe-Core35_AFMs-314/Times-BoldItalic.afm
src/fonts/Adobe-Core35_AFMs-314/Times-Italic.afm
src/fonts/Adobe-Core35_AFMs-314/Times-Roman.afm
src/fonts/Adobe-Core35_AFMs-314/ZapfDingbats.afm
=====================================================================================
*** Adobe License for parseAFM.{c,h} ***
* (C) 1988, 1989, 1990 by Adobe Systems Incorporated. All rights reserved.
*
* This file may be freely copied and redistributed as long as:
* 1) This entire notice continues to be included in the file,
* 2) If the file has been modified in any way, a notice of such
* modification is conspicuously indicated.
*
* PostScript, Display PostScript, and Adobe are registered trademarks of
* Adobe Systems Incorporated.
*
* ************************************************************************
* THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO CHANGE WITHOUT
* NOTICE, AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY ADOBE SYSTEMS
* INCORPORATED. ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY OR
* LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO WARRANTY OF ANY
* KIND (EXPRESS, IMPLIED OR STATUTORY) WITH RESPECT TO THIS INFORMATION,
* AND EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
* ************************************************************************
src/makefmt/parseAFM.cpp
src/makefmt/parseAFM.h
=====================================================================================
*** MIT ***
* Copyright (c) 2006-2009 Remko Tronçon
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
Makefile.in
The part indicated with (only relevant for Mac OS):
#####################
# Begin build DMG #
#####################
#####################
# End build DMG #
#####################
=====================================================================================
*** BSD ***
* Rev 5.0 Lempel-Ziv & Welch Compression Support
* Based on the LZW compression code from libtiff
*
* Copyright (c) 1985, 1986 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* James A. Woods, derived from original work by Spencer Thomas
* and Joseph Orost.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Berkeley. The name of the
* University may not be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
src/gle/bitmap/lzwencode.cpp
=====================================================================================
*** A. S. Budden ***
! Electronic Circuit diagrams with GLE
! Author: A. S. Budden
!
! Date: 17th August 2007
! Version: 1.3
!
! Copyright: Copyright (C) 2005 A. S. Budden
! Permission is hereby granted to use and distribute this code,
! with or without modifications, provided that this copyright
! notice is copied with it. Like anything else that's free,
! electronics.gle is provided *as is* and comes with no warranty
! of any kind, either expressed or implied. By using this
! plugin, you agree that in no event will the copyright
! holder be liable for any damages resulting from the use
! of this software.
src/lib/electronics.gle
=====================================================================================
*** TeX Computer Modern Font AFM and GLE files ***
The following files were automatically generated based on the TeX Computer
Modern Font files, which were released by Prof. Donald E. Knuth into
the public domain.
These files are available under the Modified BSD license.
src/fonts/texcmb.afm
src/fonts/texcmb.gle
src/fonts/texcmex.afm
src/fonts/texcmex.gle
src/fonts/texcmitt.afm
src/fonts/texcmitt.gle
src/fonts/texcmmi.afm
src/fonts/texcmmi.gle
src/fonts/texcmr.afm
src/fonts/texcmr.gle
src/fonts/texcmsl.afm
src/fonts/texcmss.afm
src/fonts/texcmss.gle
src/fonts/texcmssb.afm
src/fonts/texcmssb.gle
src/fonts/texcmssi.afm
src/fonts/texcmssi.gle
src/fonts/texcmsy.afm
src/fonts/texcmsy.gle
src/fonts/texcmti.afm
src/fonts/texcmti.gle
src/fonts/texcmtt.afm
src/fonts/texcmtt.gle
=====================================================================================
gle-graphics-4.2.4c/Makefile.gcc 0000664 0000000 0000000 00000015722 11405446017 015135 0 ustar root root ########################################################################
# #
# GLE - Graphics Layout Engine #
# #
# Modified BSD License #
# #
# Copyright (C) 2009 GLE. #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions #
# are met: #
# #
# 1. Redistributions of source code must retain the above copyright #
# notice, this list of conditions and the following disclaimer. #
# #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials provided with #
# the distribution. #
# #
# 3. The name of the author may not be used to endorse or promote #
# products derived from this software without specific prior written #
# permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR #
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED #
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE #
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY #
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL #
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS #
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER #
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR #
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
# #
########################################################################
#
# global makefile for gle
# for gcc
#
include config.i
include config.gcc
ZIP_SRC_NAME = $(BASE_NAME)-$(VERSION_NUMBER).$(BUILD_NUMBER)$(GLE_SNAPSHOT)-src.zip
TAR_SRC_NAME = gle-graphics-$(VERSION_NUMBER).$(BUILD_NUMBER)$(GLE_SNAPSHOT)-src.tar.gz
TAR_SRCF_NAME = gle-graphics-$(VERSION_NUMBER).$(BUILD_NUMBER)f$(GLE_SNAPSHOT)-src.tar.gz
TAR_BASE_DIR = gle-graphics-$(VERSION_NUMBER).$(BUILD_NUMBER)
FILTER_CVS := grep -P -v "(\.svn|CVS|\.cvsignore)"
FILTER_SRC := $(FILTER_CVS) | grep -P -v "\.($(OBJ_SUFF)|e*ps)$$" | grep -v "moc_"
FILTER_FNTS := $(FILTER_CVS) | grep -P -v "\.(fve|fmt)$$"
all:
-mkdir -p build
-mkdir -p build/bin
-mkdir -p build/lib
-mkdir -p build/gleinc
$(MAKE) -C src/gle/bitmap -f Makefile.gcc
$(MAKE) -C src/gle/surface -f Makefile.gcc
$(MAKE) -C src/gle/letzfitz -f Makefile.gcc
$(MAKE) -C src/gle/tokens -f Makefile.gcc
$(MAKE) -C src/gle -f Makefile.gcc
$(MAKE) -C src/fbuild -f Makefile.gcc
$(MAKE) -C src/makefmt -f Makefile.gcc
$(MAKE) -C src/fonts -f Makefile.gcc
$(MAKE) -C src/lib -f Makefile.gcc
$(MAKE) -C src/TeX -f Makefile.gcc
@echo ""
@echo "**********************************************************"
@echo "Type \"make install\" to install GLE $(VERSION_NUMBER).$(BUILD_NUMBER)"
@echo "Install data into: $(INSTALL_DIR)"
@echo "Install binary into: $(INSTALL_BIN)"
@echo "**********************************************************"
@echo ""
clean:
$(MAKE) -C src/gle/bitmap -f Makefile.gcc clean
$(MAKE) -C src/gle/surface -f Makefile.gcc clean
$(MAKE) -C src/gle/letzfitz -f Makefile.gcc clean
$(MAKE) -C src/gle/tokens -f Makefile.gcc clean
$(MAKE) -C src/gle -f Makefile.gcc clean
$(MAKE) -C src/fbuild -f Makefile.gcc clean
$(MAKE) -C src/makefmt -f Makefile.gcc clean
$(MAKE) -C src/fonts -f Makefile.gcc clean
$(MAKE) -C src/TeX -f Makefile.gcc clean
$(MAKE) -C src/manip -f Makefile.gcc clean
-$(RMDIR) build
manip:
$(MAKE) -C src/manip -f Makefile.gcc
install: clean_install
-mkdir -p $(INSTALL_DIR)
-mkdir -p $(INSTALL_BIN)
-cp -r build/* $(INSTALL_DIR)
-strip $(INSTALL_DIR)/bin/gle*
-strip $(INSTALL_DIR)/bin/fbuild*
-strip $(INSTALL_DIR)/bin/makefmt*
-strip $(INSTALL_DIR)/bin/manip*
-echo "#!/bin/sh" > $(INSTALL_BIN)/gle
-echo "export GLE_TOP=$(INSTALL_DIR)" >> $(INSTALL_BIN)/gle
-echo "$(INSTALL_DIR)/bin/gle \$$@" >> $(INSTALL_BIN)/gle
-chmod 755 $(INSTALL_BIN)/gle
-echo "#!/bin/sh" > $(INSTALL_BIN)/manip
-echo "export GLE_TOP=$(INSTALL_DIR)" >> $(INSTALL_BIN)/manip
-echo "$(INSTALL_DIR)/bin/manip \$$@" >> $(INSTALL_BIN)/manip
-chmod 755 $(INSTALL_BIN)/manip
@echo ""
@echo "****************************************************************"
@echo "GLE $(VERSION_NUMBER).$(BUILD_NUMBER) has been installed"
@echo "You can use GLE now by entering the command \"gle\""
@echo "(Provided that $(INSTALL_BIN) is in your PATH.)"
@echo "****************************************************************"
@echo ""
linklib:
rm -rf $(INSTALL_DIR)/gleinc
ln -s `pwd`/src/lib $(INSTALL_DIR)/gleinc
clean_install:
-$(RM) $(INSTALL_BIN)/gle
-$(RM) $(INSTALL_DIR)/bin/*
-$(RMDIR) $(INSTALL_DIR)/bin
-$(RM) $(INSTALL_DIR)/font/*
-$(RMDIR) $(INSTALL_DIR)/font
-$(RM) $(INSTALL_DIR)/*.ini
full: clean all
coll:
perl platform/script/collectsrcfiles.pl platform/script/srcfiles.csv
zipsrc:
perl platform/script/correctfilemodes.pl
-rm -f $(ZIP_SRC_NAME)
perl platform/script/collectsrcfiles.pl platform/script/srcfiles.csv > srcfiles.txt
(cd ..; cat gle4/srcfiles.txt | sed -e s/^/gle4\\// | xargs zip gle4/$(ZIP_SRC_NAME))
-@echo "$(ZIP_SRC_NAME) has been created!"
tarsrc:
perl platform/script/correctfilemodes.pl
-rm -f $(TAR_SRC_NAME)
perl platform/script/collectsrcfiles.pl platform/script/srcfiles.csv > srcfiles.txt
tar czfv $(TAR_SRC_NAME) --files-from srcfiles.txt --transform 's|^|$(TAR_BASE_DIR)/|' --group 0 --owner 0
-@echo "$(TAR_SRC_NAME) has been created!"
tarsrcf:
perl platform/script/correctfilemodes.pl
-rm -f $(TAR_SRCF_NAME)
-touch src/fonts/extrafonts.inf
perl platform/script/collectsrcfiles.pl -all platform/script/srcfiles.csv > srcfiles.txt
tar czfv $(TAR_SRCF_NAME) --files-from srcfiles.txt --transform 's|^|$(TAR_BASE_DIR)/|' --group 0 --owner 0
-@rm src/fonts/extrafonts.inf
-@echo "$(TAR_SRCF_NAME) has been created!"
commit:
cvs commit -m "commit via nmake working on version $(TAG)"
tagall:
cvs rtag $(TAG) $(MODULE_NAME) $(DEPENDANT_MODULES)
gle-graphics-4.2.4c/config.i 0000664 0000000 0000000 00000007506 11726234305 014363 0 ustar root root ########################################################################
# #
# GLE - Graphics Layout Engine #
# #
# Modified BSD License #
# #
# Copyright (C) 2009 GLE. #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions #
# are met: #
# #
# 1. Redistributions of source code must retain the above copyright #
# notice, this list of conditions and the following disclaimer. #
# #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials provided with #
# the distribution. #
# #
# 3. The name of the author may not be used to endorse or promote #
# products derived from this software without specific prior written #
# permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR #
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED #
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE #
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY #
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL #
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS #
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER #
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR #
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
# #
########################################################################
#
# global makefile include config.i for gle
# this sets options common to all compilers
#
# this sets the global version number for all programs
#
MODULE_NAME =gle40
BASE_NAME =GLE
MAJOR_VERSION_NUMBER =4
MINOR_VERSION_NUMBER =2
BUILD_NUMBER =4c
VERSION_NUMBER =$(MAJOR_VERSION_NUMBER).$(MINOR_VERSION_NUMBER)
VERSION_INFO =-DGLEVN="\"$(VERSION_NUMBER).$(BUILD_NUMBER)\""
TAG =$(MODULE_NAME)_R_$(MAJOR_VERSION_NUMBER)_$(MINOR_VERSION_NUMBER)_$(BUILD_NUMBER)
GLE_SRC_DIRS =src/gle src/makefmt src/fbuild src/manip src/gui
#
# -- optional packages (ignored if one uses ./configure)
#
HAVE_LIBTIFF = 0
# libtiff at www.libtiff.org is needed for inclusion of
# tiff files. if you dont have it comment out the line above
# if you have it you must set the environment variable
# LIBTIFFDIR to point to the location of libtiff
HAVE_LIBPNG = 0
# libpng at www.libpng.org is needed for inclusion of
# PNG files. if you dont have it comment out the line above
# you will also need zlib
# if you have it you must set the environment variable
# LIBPNGDIR to point to the location of libpng
# ZLIBDIR to point to the location of zlib
# For JPEG and GIF images, no extra libs are required!
gle-graphics-4.2.4c/configure.ac 0000664 0000000 0000000 00000073016 11726234305 015231 0 ustar root root ########################################################################
# #
# GLE - Graphics Layout Engine #
# #
# Modified BSD License #
# #
# Copyright (C) 2009 GLE. #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions #
# are met: #
# #
# 1. Redistributions of source code must retain the above copyright #
# notice, this list of conditions and the following disclaimer. #
# #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials provided with #
# the distribution. #
# #
# 3. The name of the author may not be used to endorse or promote #
# products derived from this software without specific prior written #
# permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR #
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED #
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE #
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY #
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL #
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS #
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER #
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR #
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
# #
########################################################################
m4_define([gle_cr_version], [4.2.4c])
AC_INIT(gle-graphics, [gle_cr_version], glx-general@lists.sourceforge.net)
AC_CONFIG_HEADER(src/config.h)
AC_CONFIG_SRCDIR(src/gle/gle.cpp)
GLE_VERSION=gle_cr_version
AC_PROG_CXX
AC_LANG_CPLUSPLUS
AH_TEMPLATE(__UNIX__, [On Unix])
AH_TEMPLATE(__CYGWIN__,[On Cygwin])
AH_TEMPLATE(__MACOS__, [On Mac])
AH_TEMPLATE(__FREEBSD__, [On FreeBSD])
AH_TEMPLATE(__GNU_HURD__, [On GNU Hurd])
AH_TEMPLATE(__LINUX__, [On Linux])
HAVE_SOCKETS=1
HAVE_LIBTIFF=0
HAVE_LIBPNG=0
HAVE_LIBJPEG=0
HAVE_X11=0
HAVE_CAIRO=0
HAVE_POPPLER=0
HAVE_NCURSES_H=0
HAVE_CURSES_H=0
HAVE_NOSCRIPTS=0
HAVE_QT=0
HAVE_AUTOPACKAGE=0
HAVE_LIBGLE=0
HAVE_LIBGLE_CPPFLAGS=0
HAVE_LIBGLE_STATIC=0
HAVE_MAC=0
HAVE_FREEBSD=0
HAVE_GNU_HURD=0
HAVE_LINUX=0
HAVE_WIN32=0
HAVE_NOCYGWIN=0
HAVE_CYGWIN=0
HAVE_MINGW=0
HAVE_LIBZ=0
HAVE_LIBGLU_H=0
QT_CONFIG="CONFIG += release"
QT_RPATH=
QT_LIBGLU_LIB=
HAVE_STATIC_LIBPNG=0
HAVE_STATIC_LIBTIFF=0
HAVE_STATIC_LIBJPEG=0
HAVE_STATIC_LIBZ=0
HAVE_RPATH=0
QMAKE_PROG=none
QMAKE_VERS=none
MANIP_LIBS=
MANIP_LDFLAGS=
AP_CONFIG_ARGS=
LIBGLE_CPPFLAGS=
LIBGLE_LDFLAGS=
EXTRA_LDFLAGS=
EXTRA_LIBS=
SIMPLE_LIBS_DL=
AC_ARG_WITH(qt, [ --with-qt[=DIR] where to find the Qt-4.1.x library (or yes/no)],,with_qt=yes)
AC_ARG_WITH(jpeg, [ --with-jpeg[=DIR] where to find the jpeg library (or yes/no)],,with_jpeg=yes)
AC_ARG_WITH(png, [ --with-png[=DIR] where to find the png library (or yes/no)],,with_png=yes)
AC_ARG_WITH(tiff, [ --with-tiff[=DIR] where to find the tiff library (or yes/no)],,with_tiff=yes)
AC_ARG_WITH(z, [ --with-z[=DIR] where to find the z library (or yes/no)],,with_z=yes)
AC_ARG_WITH(cairo, [ --with-cairo use the Cairo graphics library (yes/no)],,with_cairo=yes)
AC_ARG_WITH(poppler, [ --with-poppler use the Poppler PDF library (yes/no)],,with_poppler=yes)
AC_ARG_WITH(manip, [ --with-manip build manip utility (yes/no)],,with_manip=yes)
AC_ARG_WITH(debug, [ --with-debug compile in debug information (yes/no)],,with_debug=no)
AC_ARG_WITH(warn, [ --with-warn compile with all warnings enabled (yes/no)],,with_warn=no)
AC_ARG_WITH(win32, [ --with-win32 compile Windows binary (yes/no)],,with_win32=no)
AC_ARG_WITH(arch, [ --with-arch compile for a specific Mac OS architecture (or default/no)],,with_arch=default)
AC_ARG_WITH(scripts, [ --with-scripts install scripts instead of executables (yes/no)],,with_scritps=no)
AC_ARG_WITH(libgle, [ --with-libgle build libgle (yes/no/static/both)],,with_libgle=no)
AC_ARG_WITH(rpath, [ --with-rpath build with rpath (or yes/no)],,with_rpath=yes)
AC_ARG_WITH(extrafonts, [ --with-extrafonts include additional fonts (or yes/no)],,extrafonts=no)
AC_ARG_WITH(gnuwin32, [ --with-gnuwin32 build with GnuWin32 libs (yes/no)],,with_gnuwin32=no)
AC_ARG_WITH(staticlink, [ --with-staticlink statically link bitmap libs (yes/no)],,with_staticlink=def)
AC_ARG_WITH(autopackage, [ --with-autopackage create autopackage package (yes/no)],,with_autopackage=no)
AC_ARG_WITH(apintern, [ --with-apintern autopackage (internal use) (yes/no)],,with_apintern=no)
HAVE_EXTRA_FONTS=0
if test "x$extrafonts" != "xno"; then
HAVE_EXTRA_FONTS=1
fi
if test -f src/fonts/extrafonts.inf; then
HAVE_EXTRA_FONTS=1
fi
dnl ********************************************************************************
dnl build snapshot or release?
dnl ********************************************************************************
GLE_SNAPSHOT=""
dnl ********************************************************************************
dnl remember CPPFLAGS for qmake
dnl ********************************************************************************
QT_CPPFLAGS=$CPPFLAGS
QT_LDFLAGS=$LDFLAGS
dnl ********************************************************************************
dnl check CPU type and OS
dnl ********************************************************************************
AC_CONFIG_AUX_DIR(platform/autoconf)
AC_PROG_INSTALL
AC_PROG_MKDIR_P
AC_CANONICAL_HOST
AC_CHECK_HEADERS([sys/param.h])
AC_C_BIGENDIAN
AC_TYPE_UINT16_T
PKG_PROG_PKG_CONFIG
if test "x$with_rpath" != "xno"; then
HAVE_RPATH=1
fi
dnl ********************************************************************************
dnl check for Win32
dnl ********************************************************************************
if test "x$with_gnuwin32" != "xno"; then
with_win32=yes
CPPFLAGS="-I$with_gnuwin32/include $CPPFLAGS"
CXXFLAGS="-I$with_gnuwin32/include $CXXFLAGS"
LDFLAGS="-L$with_gnuwin32/lib $LDFLAGS"
CFLAGS="-I$with_gnuwin32/include $CFLAGS"
if test "x$with_staticlink" = "xdef"; then
with_staticlink=yes
fi
fi
if test "x$with_win32" != "xno"; then
HAVE_WIN32=1
fi
dnl ********************************************************************************
dnl check for host type
dnl ********************************************************************************
USE_ARCH=no
case $host in
*-*-cygwin*)
AC_DEFINE(__CYGWIN__)
HAVE_CYGWIN=1
;;
*-*-mingw*)
AC_DEFINE(__CYGWIN__)
HAVE_CYGWIN=1
HAVE_MINGW=1
;;
x86_64-apple-*)
if test "x$with_arch" = "xdefault"; then
USE_ARCH=i386
fi
;;
esac
if test "x$with_arch" != "xdefault"; then
USE_ARCH=$with_arch
fi
if test "x$USE_ARCH" != "xno"; then
CPPFLAGS="-arch $USE_ARCH $CPPFLAGS"
CXXFLAGS="-arch $USE_ARCH $CXXFLAGS"
LDFLAGS="-arch $USE_ARCH $LDFLAGS"
CFLAGS="-arch $USE_ARCH $CFLAGS"
fi
if test "x$HAVE_CYGWIN" = "x1"; then
if test "x$HAVE_WIN32" = "x1"; then
HAVE_CYGWIN=0
HAVE_NOCYGWIN=1
fi
fi
if test "x$HAVE_NOCYGWIN" = "x1"; then
if test "x$with_gnuwin32" = "xno"; then
with_png=no
with_jpeg=no
with_tiff=no
with_z=no
fi
fi
dnl ********************************************************************************
dnl check for Win32
dnl ********************************************************************************
if test "x$HAVE_WIN32" != "x1"; then
AC_DEFINE(__UNIX__)
# MacOS should also define __UNIX__
else
AC_DEFINE(__WIN32__)
AC_DEFINE(__NOCYGWIN__)
CPPFLAGS="-mno-cygwin -mthreads -mms-bitfields -march=i386 $CPPFLAGS"
CXXFLAGS="-mno-cygwin -mthreads -mms-bitfields -march=i386 $CXXFLAGS"
LDFLAGS="-mno-cygwin -mthreads -mms-bitfields -march=i386 $LDFLAGS"
CFLAGS="-mno-cygwin -mthreads -mms-bitfields -march=i386 $CFLAGS"
with_manip=no
with_x=no
fi
dnl ********************************************************************************
dnl remember original value of different flags
dnl ********************************************************************************
_CPPFLAGS_INI=$CPPFLAGS
_CXXFLAGS_INI=$CXXFLAGS
_LDFLAGS_INI=$LDFLAGS
_LIBS_INI=$LIBS
SIMPLE_LDFLAGS=$LDFLAGS
SIMPLE_LIBS=$LIBS
dnl ********************************************************************************
dnl OS Selection
dnl ********************************************************************************
case $host in
*-apple*)
HAVE_MAC=1
;;
*-freebsd*)
HAVE_FREEBSD=1
;;
*-linux*)
HAVE_LINUX=1
;;
*-gnu*)
HAVE_GNU_HURD=1
;;
esac
dnl ********************************************************************************
dnl is Mac OX/X?
dnl ********************************************************************************
if test "x$HAVE_MAC" = "x1"; then
AC_DEFINE(__MACOS__)
HAVE_RPATH=0
fi
dnl ********************************************************************************
dnl is Free BSD?
dnl ********************************************************************************
if test "x$HAVE_FREEBSD" = "x1"; then
AC_DEFINE(__FREEBSD__)
fi
dnl ********************************************************************************
dnl is Linux?
dnl ********************************************************************************
if test "x$HAVE_LINUX" = "x1"; then
AC_DEFINE(__LINUX__)
fi
dnl ********************************************************************************
dnl is GNU / Hurd
dnl ********************************************************************************
if test "x$HAVE_GNU_HURD" = "x1"; then
AC_DEFINE(__GNU_HURD__)
fi
dnl ********************************************************************************
dnl install scripts
dnl ********************************************************************************
if test "$with_scripts" != yes; then
case $host in
*-*-cygwin*|*-*-linux*|*-*-mingw*|*-*-kfreebsd*)
HAVE_NOSCRIPTS=1
;;
esac
if test "x$HAVE_MAC" = "x1"; then
HAVE_NOSCRIPTS=1
fi
if test "x$HAVE_FREEBSD" = "x1"; then
HAVE_NOSCRIPTS=1
fi
if test "x$HAVE_LINUX" = "x1"; then
HAVE_NOSCRIPTS=1
fi
if test "x$HAVE_GNU_HURD" = "x1"; then
HAVE_NOSCRIPTS=1
fi
fi
dnl ********************************************************************************
dnl check presence of X11
dnl ********************************************************************************
AC_PATH_X
if test "$with_x" != no; then
if test "x$x_libraries" = "x"; then
x_libraries=.
fi
AC_CHECK_LIB([X11], [XOpenDisplay],
[HAVE_X11=1
if test "x$x_libraries" != "x"; then
LDFLAGS="$LDFLAGS -L$x_libraries"
fi
if test "x$x_includes" != "x"; then
CPPFLAGS="$CPPFLAGS -I$x_includes"
fi
LIBS="-lX11 $LIBS"
],
[],
[[-lXt -L$x_libraries]])
fi
dnl ********************************************************************************
dnl check for static libs option
dnl ********************************************************************************
if test "x$with_staticlink" = "xdef"; then
with_staticlink=no
fi
if test "x$with_staticlink" != "xno"; then
HAVE_STATIC_LIBPNG=1
HAVE_STATIC_LIBJPEG=1
HAVE_STATIC_LIBZ=1
HAVE_STATIC_LIBTIFF=1
fi
dnl ********************************************************************************
dnl check presence of Z library
dnl ********************************************************************************
if test "$with_z" != no; then
AC_CHECK_LIB(z,deflate,
[HAVE_LIBZ=1],
[])
if test "x$HAVE_LIBZ" = "x1"; then
AC_DEFINE(HAVE_LIBZ)
if test "x$HAVE_STATIC_LIBZ" = "x1"; then
LIBS="-Wl,-Bstatic -lz -Wl,-Bdynamic $LIBS"
else
LIBS="-lz $LIBS"
fi
fi
fi
dnl ********************************************************************************
dnl check presence of sockets library
dnl on Linux, no extra library is required for this
dnl ********************************************************************************
SOCKET_LIB=0
AC_SEARCH_LIBS(socket,socket)
AC_SEARCH_LIBS(gethostbyname,nsl socket)
if test "$ac_cv_func_socket" = "yes" ; then
if test "$ac_cv_func_gethostbyname" = "yes" ; then
SOCKET_LIB=1
fi
fi
case $host in
*-*-solaris*)
if test "$SOCKET_LIB" = "0" ; then
HAVE_SOCKETS=0
fi
;;
*)
esac
if test "$HAVE_SOCKETS" = 1; then
AC_DEFINE(HAVE_SOCKETS)
fi
dnl ********************************************************************************
dnl check presence of JPEG library
dnl ********************************************************************************
_CPPFLAGS=$CPPFLAGS
_LDFLAGS=$LDFLAGS
if test "$with_jpeg" != no; then
if test -d "$with_jpeg"; then
libjpeg_CPPFLAGS="-I$with_jpeg/include"
libjpeg_LDFLAGS="-L$with_jpeg/lib"
CPPFLAGS="$CPPFLAGS $libjpeg_CPPFLAGS"
LDFLAGS="$LDFLAGS $libjpeg_LDFLAGS"
fi
AC_CHECK_LIB(jpeg,jpeg_destroy_decompress,
[AC_CHECK_HEADERS(jpeglib.h,
[HAVE_LIBJPEG=1
AC_DEFINE(HAVE_LIBJPEG)
],
[AC_MSG_WARN([found jpeg library but not jpegio.h: make sure libjpeg development package is installed])
])],
[CPPFLAGS=$_CPPFLAGS
LDFLAGS=$_LDFLAGS],
[-lm])
fi
if test "x$HAVE_LIBJPEG" = "x1"; then
if test "x$HAVE_STATIC_LIBJPEG" = "x1"; then
LIBS="-Wl,-Bstatic -ljpeg -Wl,-Bdynamic $LIBS"
else
LIBS="-ljpeg $LIBS"
fi
fi
dnl ********************************************************************************
dnl check presence of TIFF library
dnl ********************************************************************************
_CPPFLAGS=$CPPFLAGS
_LDFLAGS=$LDFLAGS
if test "$with_tiff" != no; then
if test -d "$with_tiff"; then
libtiff_CPPFLAGS="-I$with_tiff/include"
libtiff_LDFLAGS="-L$with_tiff/lib"
CPPFLAGS="$CPPFLAGS $libtiff_CPPFLAGS"
LDFLAGS="$LDFLAGS $libtiff_LDFLAGS"
fi
AC_CHECK_LIB(tiff,TIFFReadScanline,
[AC_CHECK_HEADERS(tiffio.h,
[HAVE_LIBTIFF=1
AC_DEFINE(HAVE_LIBTIFF)
],
[AC_MSG_WARN([found TIFF library but not tiffio.h: make sure libtiff development package is installed])
CPPFLAGS=$_CPPFLAGS
LDFLAGS=$_LDFLAGS
])],
[CPPFLAGS=$_CPPFLAGS
LDFLAGS=$_LDFLAGS],
[-lm])
fi
if test "x$HAVE_LIBTIFF" = "x1"; then
if test "x$HAVE_STATIC_LIBTIFF" = "x1"; then
LIBS="-Wl,-Bstatic -ltiff -Wl,-Bdynamic $LIBS"
else
LIBS="-ltiff $LIBS"
fi
fi
dnl ********************************************************************************
dnl check presence of PNG library
dnl ********************************************************************************
if test "$with_png" != no; then
if test -d "$with_png"; then
HAVE_LIBPNG=1
AC_DEFINE(HAVE_LIBPNG)
CPPFLAGS="$CPPFLAGS -I$with_png/include"
LDFLAGS="$LDFLAGS -L$with_png/lib"
if test "x$with_staticlink" = "xyes"; then
LIBS="-Wl,-Bstatic -lpng -Wl,-Bdynamic $LIBS"
else
LIBS="-lpng $LIBS"
fi
else
PKG_CHECK_MODULES([libpng], [libpng >= 0],
[HAVE_LIBPNG=1
AC_DEFINE(HAVE_LIBPNG)
if test "x$with_staticlink" = "xyes"; then
LIBS="-Wl,-Bstatic $libpng_LIBS -Wl,-Bdynamic $LIBS"
else
LIBS="$libpng_LIBS $LIBS"
fi
CPPFLAGS="$libpng_CFLAGS $CPPFLAGS"
LDFLAGS="$libpng_LDFLAGS $LDFLAGS"
],
[AC_MSG_RESULT([no])]
)
if test "x$HAVE_LIBPNG" = "x0"; then
AC_PATH_PROG([LIBPNG_CONFIG], [libpng-config])
if test -n "$LIBPNG_CONFIG"; then
HAVE_LIBPNG=1
AC_DEFINE(HAVE_LIBPNG)
libpng_CPPFLAGS=`libpng-config --cflags`
libpng_LDFLAGS=`libpng-config --ldflags`
CPPFLAGS="$libpng_CPPFLAGS $CPPFLAGS"
LDFLAGS="$libpng_LDFLAGS $LDFLAGS"
if test "x$with_staticlink" = "xyes"; then
LIBS="-Wl,-Bstatic -lpng -Wl,-Bdynamic $LIBS"
else
LIBS="-lpng $LIBS"
fi
fi
fi
fi
fi
dnl ********************************************************************************
dnl check Cairo
dnl ********************************************************************************
if test "x$with_cairo" != "xno"; then
PKG_CHECK_MODULES([cairo], [cairo >= 1.10.0],
[
HAVE_CAIRO=1
AC_MSG_RESULT([ cairo CFLAGS: $cairo_CFLAGS])
AC_MSG_RESULT([ cairo LIBS: $cairo_LIBS])
if test "x$with_staticlink" = "xyes"; then
LIBS="-Wl,-Bstatic $cairo_LIBS -Wl,-Bdynamic $LIBS"
else
LIBS="$cairo_LIBS $LIBS"
fi
CPPFLAGS="$cairo_CFLAGS $CPPFLAGS"
LDFLAGS="$cairo_LDFLAGS $LDFLAGS"
],
[
HAVE_CAIRO=0
]
)
fi
if test "x$HAVE_CAIRO" = "x1"; then
if test "x$HAVE_WIN32" = "x1"; then
if test "x$with_staticlink" = "xyes"; then
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -mwindows"
EXTRA_LIBS="$EXTRA_LIBS -lmsimg32"
fi
fi
fi
dnl ********************************************************************************
dnl check Poppler
dnl ********************************************************************************
if test "x$HAVE_CAIRO" = "x1"; then
if test "x$with_poppler" != "xno"; then
PKG_CHECK_MODULES(POPPLER, [poppler-glib >= 0.10.0],
[
HAVE_POPPLER=1
AC_MSG_RESULT([ poppler CFLAGS: $POPPLER_CFLAGS])
AC_MSG_RESULT([ poppler LIBS: $POPPLER_LIBS])
if test "x$with_staticlink" = "xyes"; then
LIBS="-Wl,-Bstatic $POPPLER_LIBS -Wl,-Bdynamic $LIBS"
else
LIBS="$POPPLER_LIBS $LIBS"
fi
CPPFLAGS="$POPPLER_CFLAGS $CPPFLAGS"
LDFLAGS="$POPPLER_LDFLAGS $LDFLAGS"
],
[
HAVE_POPPLER=0
]
)
fi
fi
dnl ********************************************************************************
dnl check Qt 4.1.x
dnl ********************************************************************************
QT4VER="?"
QMAKE_PROG="none"
if test "x$with_qt" != "xno"; then
if test "x$with_qt" = "xyes"; then
if test "x$PKG_CONFIG" != "x"; then
QT4LOC=`$PKG_CONFIG QtCore --variable=exec_prefix`
if test -x $QT4LOC/bin/qmake; then
if $PKG_CONFIG QtCore --atleast-version 4.1.1; then
with_qt=$QT4LOC
QT4VER=`$PKG_CONFIG QtCore --modversion`
fi
fi
fi
fi
if test "x$with_qt" = "xyes"; then
if test -x /opt/qt4/bin/qmake; then
with_qt=/opt/qt4
fi
if test -x /usr/lib/qt4/bin/qmake; then
with_qt=/usr/lib/qt4
fi
AC_PATH_PROG([QMAKE_PROG], [qmake-qt4], [none], [$PATH])
fi
if test "x$with_qt" != "xyes"; then
QTDIR=$with_qt
if test -x $with_qt/bin/qmake; then
QMAKE_PROG=$with_qt/bin/qmake
fi
if test -x $with_qt/bin/qmake-qt4; then
QMAKE_PROG=$with_qt/bin/qmake-qt4
fi
if test -x $with_qt/bin/qmake.exe; then
QMAKE_PROG=$with_qt/bin/qmake.exe
fi
if test "x$QMAKE_PROG" = "xnone"; then
AC_PATH_PROGS([QMAKE_PROG], [qmake-qt4 qmake], [none], [$QTDIR/bin:$PATH])
fi
fi
if test "x$QMAKE_PROG" != "xnone"; then
HAVE_QT=1
QMAKE_VERS=`$QMAKE_PROG -v | tail -n 1`
fi
AC_CHECK_HEADERS(GL/glu.h,
[AC_DEFINE(HAVE_LIBGLU_H)],
[])
AC_CHECK_LIB(GLU,gluLookAt,
[QT_LIBGLU_LIB=-lGLU],
[])
fi
if test "x$HAVE_RPATH" != "x0"; then
QT_RPATH="-Wl,-rpath,\\\\\\\$\\\$ORIGIN/../lib"
fi
dnl ********************************************************************************
dnl build libgle stuff
dnl ********************************************************************************
if test "x$HAVE_QT" != "x0"; then
if test "x$with_libgle" != "xstatic"; then
if test "x$with_libgle" != "xboth"; then
with_libgle=yes
fi
fi
fi
if test "x$with_libgle" = "xboth"; then
HAVE_LIBGLE_STATIC=1
AC_DEFINE(HAVE_LIBGLE_STATIC)
with_libgle=yes
fi
if test "x$with_libgle" = "xyes"; then
HAVE_LIBGLE=1
AC_DEFINE(HAVE_LIBGLE)
case $host in
*-*-linux*|*-*-kfreebsd*)
LIBGLE_CPPFLAGS="-fPIC "
LIBGLE_LDFLAGS="-fPIC "
HAVE_LIBGLE_CPPFLAGS=1
;;
esac
fi
if test "x$with_libgle" = "xstatic"; then
HAVE_LIBGLE_STATIC=1
AC_DEFINE(HAVE_LIBGLE_STATIC)
fi
dnl ********************************************************************************
dnl check for -ldl
dnl ********************************************************************************
_SAVE_LIBS=$LIBS
_SAVE_LDFLAGS=$LDFLAGS
LIBS=$SIMPLE_LIBS
LDFLAGS=$SIMPLE_LDFLAGS
AC_SEARCH_LIBS(dlopen,dl)
SIMPLE_LIBS_DL=$LIBS
LIBS=$_SAVE_LIBS
LDFLAGS=$_SAVE_LDFLAGS
dnl ********************************************************************************
dnl build manip utility
dnl ********************************************************************************
MAKE_MANIP=0
if test "x$with_manip" != "xno"; then
_SAVE_LIBS=$LIBS
_SAVE_LDFLAGS=$LDFLAGS
LIBS=$SIMPLE_LIBS
LDFLAGS=$SIMPLE_LDFLAGS
AC_CHECK_LIB(tinfo,tgetent)
AC_SEARCH_LIBS(wbkgdset,ncurses curses,
[
MAKE_MANIP=1
],
[],[])
AC_CHECK_HEADER([ncurses.h],
[
HAVE_NCURSES_H=1
],
[
AC_CHECK_HEADER([curses.h],
[
HAVE_CURSES_H=1
],
[
MAKE_MANIP=0
])
])
if test "$HAVE_NCURSES_H" = "1"; then
AC_DEFINE(HAVE_NCURSES_H)
fi
if test "$HAVE_CURSES_H" = "1"; then
AC_DEFINE(HAVE_CURSES_H)
fi
MANIP_LIBS=$LIBS
MANIP_LDFLAGS=$LDFLAGS
if test "x$with_staticlink" = "xyes"; then
MANIP_LIBS="$SIMPLE_LIBS -Wl,-Bstatic -lncurses -ltinfo -lm -Wl,-Bdynamic -ldl"
#MANIP_LIBS="$SIMPLE_LIBS -Wl,-Bstatic -lncurses -lm -Wl,-Bdynamic -ldl"
else
MANIP_LIBS="$MANIP_LIBS -lm"
fi
LIBS=$_SAVE_LIBS
LDFLAGS=$_SAVE_LDFLAGS
fi
dnl ********************************************************************************
dnl set CPPFLAGS correctly - NO TESTS INVOLVING CALLING gcc BEYOND THIS POINT
dnl ********************************************************************************
if test "x$with_warn" != "xno"; then
CPPFLAGS="-Wall $CPPFLAGS"
fi
CPPFLAGS="-Wno-write-strings $CPPFLAGS"
CPPFLAGS="-DHAVE_CONFIG_H \$(VERSION_INFO) $CPPFLAGS"
LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
LIBS="$LIBS $EXTRA_LIBS"
dnl ********************************************************************************
dnl autopackage support
dnl ********************************************************************************
MAKE_AUTOPACKAGE=0
if test "x$with_autopackage" != "xno"; then
MAKE_AUTOPACKAGE=1
dnl Qt support compiled in?
if test "x$HAVE_QT" != "x0"; then
AP_CONFIG_ARGS="$AP_CONFIG_ARGS --with-qt=$QTDIR"
fi
if test "$with_png" != yes; then
AP_CONFIG_ARGS="$AP_CONFIG_ARGS --with-png=$with_png"
fi
CPPFLAGS=$_CPPFLAGS_INI
CXXFLAGS=$_CXXFLAGS_INI
LDFLAGS=$_LDFLAGS_INI
LIBS=$_LIBS_INI
fi
if test "x$with_apintern" != "xno"; then
LDFLAGS="$LDFLAGS -static-libgcc"
LIBS="$LIBS -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic"
SIMPLE_LDFLAGS="$SIMPLE_LDFLAGS -static-libgcc"
SIMPLE_LIBS="$SIMPLE_LIBS -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic"
MANIP_LDFLAGS="$MANIP_LDFLAGS -static-libgcc"
MANIP_LIBS="$MANIP_LIBS -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic"
HAVE_X11=0
HAVE_AUTOPACKAGE=1
fi
dnl ********************************************************************************
dnl debugging version?
dnl ********************************************************************************
dnl --with-debug=yes, --with-debug=no, --with-debug=gle
if test "x$with_debug" != "xno"; then
CPPFLAGS="-g $CPPFLAGS"
LDFLAGS="-g $LDFLAGS"
fi
if test "x$with_debug" = "xyes"; then
QT_CONFIG="CONFIG += debug"
fi
dnl ********************************************************************************
dnl final substitutes
dnl ********************************************************************************
if test "x$HAVE_X11" != "x0"; then
AC_DEFINE(HAVE_X11)
fi
if test "x$HAVE_CAIRO" != "x0"; then
AC_DEFINE(HAVE_CAIRO)
fi
if test "x$HAVE_POPPLER" != "x0"; then
AC_DEFINE(HAVE_POPPLER)
fi
AC_SUBST(HAVE_SOCKETS)
AC_SUBST(HAVE_LIBTIFF)
AC_SUBST(HAVE_LIBPNG)
AC_SUBST(HAVE_LIBJPEG)
AC_SUBST(HAVE_CAIRO)
AC_SUBST(HAVE_NOSCRIPTS)
AC_SUBST(HAVE_QT)
AC_SUBST(HAVE_LIBGLE)
AC_SUBST(HAVE_LIBGLE_CPPFLAGS)
AC_SUBST(HAVE_LIBGLE_STATIC)
AC_SUBST(HAVE_AUTOPACKAGE)
AC_SUBST(HAVE_MAC)
AC_SUBST(HAVE_FREEBSD)
AC_SUBST(HAVE_WIN32)
AC_SUBST(HAVE_NOCYGWIN)
AC_SUBST(HAVE_CYGWIN)
AC_SUBST(HAVE_MINGW)
AC_SUBST(HAVE_RPATH)
AC_SUBST(QMAKE_PROG)
AC_SUBST(MAKE_MANIP)
AC_SUBST(AP_CONFIG_ARGS)
AC_SUBST(GLE_SNAPSHOT)
if test "$prefix" = "NONE"; then
GLE_INSTALL_DATA=/usr/share/$PACKAGE_TARNAME/$GLE_VERSION
prefix="/usr"
else
GLE_INSTALL_DATA=$prefix/share/$PACKAGE_TARNAME/$GLE_VERSION
fi
if test "$exec_prefix" = "NONE"; then
if test "$prefix" = "NONE"; then
GLE_INSTALL_BIN=/usr/bin
else
GLE_INSTALL_BIN=$prefix/bin
fi
else
GLE_INSTALL_BIN=$exec_prefix
fi
if test "$bindir" != "\${exec_prefix}/bin"; then
GLE_INSTALL_BIN=$bindir
fi
AC_SUBST(SIMPLE_LIBS)
AC_SUBST(SIMPLE_LIBS_DL)
AC_SUBST(SIMPLE_LDFLAGS)
AC_SUBST(MANIP_LIBS)
AC_SUBST(MANIP_LDFLAGS)
AC_SUBST(LIBGLE_CPPFLAGS)
AC_SUBST(LIBGLE_LDFLAGS)
AC_SUBST(GLE_INSTALL_DATA)
AC_SUBST(GLE_INSTALL_BIN)
AC_SUBST(GLE_VERSION)
AC_SUBST(MAKE_AUTOPACKAGE)
AC_SUBST(QT_CONFIG)
AC_SUBST(QT_RPATH)
AC_SUBST(QT_LIBGLU_LIB)
AC_SUBST(QT_CPPFLAGS)
AC_SUBST(QT_LDFLAGS)
AC_SUBST(HAVE_EXTRA_FONTS)
AC_CONFIG_FILES([Makefile src/gle/Makefile src/gle/bitmap/Makefile src/gle/letzfitz/Makefile src/gle/surface/Makefile src/gle/tokens/Makefile src/fbuild/Makefile src/makefmt/Makefile src/manip/Makefile src/TeX/Makefile src/gui/MakefileAC src/gui/qgle.pro src/doc/gle.1 platform/autoconf/gle-graphics.pc platform/autopackage/gle4.apspec])
AC_OUTPUT
AC_MSG_RESULT([])
AC_MSG_RESULT([CPPFLAGS: $CPPFLAGS])
AC_MSG_RESULT([LDFLAGS: $LDFLAGS])
AC_MSG_RESULT([LIBS: $LIBS])
AC_MSG_RESULT([SIMPLE_LIBS: $SIMPLE_LIBS])
AC_MSG_RESULT([SIMPLE_LIBS_DL: $SIMPLE_LIBS_DL])
AC_MSG_RESULT([SIMPLE_LDFLAGS: $SIMPLE_LDFLAGS])
AC_MSG_RESULT([
** Configuration summary for GLE $GLE_VERSION$GLE_SNAPSHOT ($host):
])
AC_MSG_RESULT([ ** Bitmap support:])
if test "$HAVE_LIBPNG" = 1; then
AC_MSG_RESULT([ PNG support: yes])
else
AC_MSG_RESULT([ PNG support: no])
fi
if test "$HAVE_LIBTIFF" = 1; then
AC_MSG_RESULT([ TIFF support: yes])
else
AC_MSG_RESULT([ TIFF support: no])
fi
if test "$HAVE_LIBJPEG" = 1; then
AC_MSG_RESULT([ JPEG support: yes])
else
AC_MSG_RESULT([ JPEG support: no])
fi
if test "x$with_staticlink" != "xno"; then
AC_MSG_RESULT([ Statically link: yes])
else
AC_MSG_RESULT([ Statically link: no])
fi
AC_MSG_RESULT([])
if test "$HAVE_X11" = 1; then
AC_MSG_RESULT([ ** X11 preview support: yes])
else
AC_MSG_RESULT([ ** X11 preview support: no])
fi
if test "$HAVE_CAIRO" = 1; then
AC_MSG_RESULT([ ** Cairo graphics support: yes])
else
AC_MSG_RESULT([ ** Cairo graphics support: no])
fi
if test "$HAVE_POPPLER" = 1; then
AC_MSG_RESULT([ ** Poppler PDF support: yes])
else
AC_MSG_RESULT([ ** Poppler PDF support: no])
fi
if test "$HAVE_SOCKETS" = 1; then
AC_MSG_RESULT([ ** Socket support: yes])
else
AC_MSG_RESULT([ ** Socket support: no])
fi
if test "$MAKE_MANIP" = 1; then
AC_MSG_RESULT([ ** Include 'manip' utility: yes])
else
AC_MSG_RESULT([ ** Include 'manip' utility: no])
fi
if test "x$with_debug" != "xno"; then
AC_MSG_RESULT([ ** Debug mode: on])
else
AC_MSG_RESULT([ ** Debug mode: off])
fi
AC_MSG_RESULT([])
if test "$HAVE_QT" = 1; then
if test "x$QT4VER" != "x?"; then
AC_MSG_RESULT([ ** GLE GUI support: yes (Qt4 version: $QT4VER)])
else
AC_MSG_RESULT([ ** GLE GUI support: yes])
if test "x$QMAKE_VERS" != "xnone"; then
AC_MSG_RESULT([ $QMAKE_VERS])
fi
fi
else
AC_MSG_RESULT([ ** GLE GUI support: no])
AC_MSG_RESULT([ (make sure you have Qt >= 4.1.1 devel and use ./configure --with-qt=/path/to/qt.)])
fi
AC_MSG_RESULT([])
AC_MSG_RESULT([** Install data into: $GLE_INSTALL_DATA])
AC_MSG_RESULT([** Install binary into: $GLE_INSTALL_BIN])
AC_MSG_RESULT([ (use ./configure --prefix=dir to change the installation directory.)])
AC_MSG_RESULT([])
if test "x$with_autopackage" != "xno"; then
AC_MSG_RESULT([GLE $GLE_VERSION$GLE_SNAPSHOT has been configured. Run "make" to create an autopackage for GLE.])
else
AC_MSG_RESULT([GLE $GLE_VERSION$GLE_SNAPSHOT has been configured. The next step is to run "make". After "make" completes, run "make install" to install GLE.])
fi
gle-graphics-4.2.4c/config.vc 0000664 0000000 0000000 00000010524 11405446017 014534 0 ustar root root ########################################################################
# #
# GLE - Graphics Layout Engine #
# #
# Modified BSD License #
# #
# Copyright (C) 2009 GLE. #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions #
# are met: #
# #
# 1. Redistributions of source code must retain the above copyright #
# notice, this list of conditions and the following disclaimer. #
# #
# 2. Redistributions in binary form must reproduce the above #
# copyright notice, this list of conditions and the following #
# disclaimer in the documentation and/or other materials provided with #
# the distribution. #
# #
# 3. The name of the author may not be used to endorse or promote #
# products derived from this software without specific prior written #
# permission. #
# #
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR #
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED #
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE #
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY #
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL #
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE #
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS #
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER #
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR #
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN #
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #
# #
########################################################################
#
# config.vc for windows machines using vs.net and nmake
#
# include the global config file
#
!include config.i
#
# other global defines
#
PROJECT_BINDIR = ..\..\build
PROJECT_LIBDIR = ..\..\lib
PROJECT_INCDIR = ..\..\include
INSTALL_DIR =c:\\program files\\gle
EXE_SUFF =.exe
OBJ_SUFF =obj
CC =cl
AR =link
RM =erase
RMDIR =rmdir
MKDIR =mkdir
PATH_SEP =^\
EXTRA_DEFS =-D __WIN32__
EXTRA_INCLUDE_PATHS =-I$(BOOSTDIR)
EXTRA_LIB_PATHS =
LIBS =
WINLIBS = advapi32.lib comctl32.lib comdlg32.lib gdi32.lib kernel32.lib odbc32.lib oldnames.lib ole32.lib oleaut32.lib rpcrt4.lib shell32.lib user32.lib uuid.lib winmm.lib winspool.lib wsock32.lib
!ifdef HAVE_LIBTIFF
EXTRA_INCLUDE_PATHS = $(EXTRA_INCLUDE_PATHS) -I$(LIBTIFFDIR)
EXTRA_DEFS = $(EXTRA_DEFS) -D HAVE_LIBTIFF
EXTRA_LIB_PATHS = $(EXTRA_LIB_PATHS) -LIBPATH:$(LIBTIFFDIR)
LIBS = $(LIBS) libtiff.lib
!endif
!ifdef HAVE_LIBPNG
EXTRA_DEFS = $(EXTRA_DEFS) -D HAVE_LIBPNG
EXTRA_INCLUDE_PATHS = $(EXTRA_INCLUDE_PATHS) -I$(LIBPNGDIR) -I$(ZLIBDIR)
EXTRA_LIB_PATHS = $(EXTRA_LIB_PATHS) -LIBPATH:$(LIBPNGDIR) -LIBPATH:$(ZLIBDIR)
LIBS = $(LIBS) libpng.lib zlib.lib
!endif
!ifdef HAVE_LIBJPEG
EXTRA_DEFS = $(EXTRA_DEFS) -D __JPEG__
EXTRA_INCLUDE_PATHS = $(EXTRA_INCLUDE_PATHS) -I$(LIBJPEGDIR)
EXTRA_LIB_PATHS = $(EXTRA_LIB_PATHS) -LIBPATH:$(LIBJPEGDIR)
LIBS = $(LIBS) jpeg.lib
!endif
# multithreaded dll link to msvcrt.dll
# this is the default on all the libs such as zlib, libtiff and lpng
#
#
CPPFLAGS =/nologo /MD /EHsc /Ox -I$(GLOBAL_INCDIR) -I$(PROJECT_INCDIR) $(EXTRA_INCLUDE_PATHS) $(VERSION_INFO) $(EXTRA_DEFS) -DINSTALL_DIR="\"$(INSTALL_DIR)\""
LINKFLAGS =/nologo -LIBPATH:$(GLOBAL_LIBDIR) $(EXTRA_LIB_PATHS)
# for win32
LIBS= $(LIBS) $(WINLIBS)
gle-graphics-4.2.4c/config.nocygwin 0000664 0000000 0000000 00000003120 11405446017 015753 0 ustar root root #
# config file for gcc and make
#
EXTRA_DEFS =-D __WIN32__ -D __NOCYGWIN__ -Wreturn-type
OBJ_SUFF =o
CC =gcc
CXX =gcc
EXE_SUFF =.exe
AR =ar
RM =rm -rf
RMDIR =rm -rf
MKDIR =mkdir
INSTALL_DIR =C:\Program Files\gle4
INSTALL_DIR2 =C:\\\\Program Files\\\\gle4
PATH_SEP =/
ROOT_INSTALL_DIR =$(GLE_RPM_ROOT)$(INSTALL_DIR)
#
# other global defines
#
PROJECT_BINDIR = ../../build
PROJECT_LIBDIR = ../../lib
PROJECT_INCDIR = ../../include
#
# GLE_TOP does not need to be defined anymore during compile
#
GLE_TOP = ../../build
EXTRA_INCLUDE_PATHS =
EXTRA_LIB_PATHS =
LIBS =-lstdc++
ifdef GNUWIN32DIR
EXTRA_INCLUDE_PATHS := $(EXTRA_INCLUDE_PATHS) -I"$(GNUWIN32DIR)/include"
EXTRA_LIB_PATHS := $(EXTRA_LIB_PATHS) -L"$(GNUWIN32DIR)/lib"
endif
ifdef HAVE_LIBTIFF
EXTRA_DEFS := $(EXTRA_DEFS) -D HAVE_LIBTIFF
ifdef LIBTIFFDIR
EXTRA_INCLUDE_PATHS := $(EXTRA_INCLUDE_PATHS) -I$(LIBTIFFDIR)
EXTRA_LIB_PATHS := $(EXTRA_LIB_PATHS) -L$(LIBTIFFDIR)
endif
LIBS := $(LIBS) -ltiff
endif
ifdef HAVE_LIBPNG
EXTRA_DEFS := $(EXTRA_DEFS) -D HAVE_LIBPNG
ifdef LIBPNGDIR
EXTRA_INCLUDE_PATHS := $(EXTRA_INCLUDE_PATHS) -I$(LIBPNGDIR) -I$(ZLIBDIR)
EXTRA_LIB_PATHS := $(EXTRA_LIB_PATHS) -L$(LIBPNGDIR)
endif
ifdef ZLIBDIR
EXTRA_LIB_PATHS := $(EXTRA_LIB_PATHS) -L$(ZLIBDIR)
endif
LIBS := $(LIBS) -lpng -lz -ljpeg
endif
-include extraconfig.nocygwin
LINK_OPTS =-mno-cygwin
CXXFLAGS =-O2 -I/home/jan/libs/install/include $(VERSION_INFO) $(EXTRA_INCLUDE_PATHS) $(EXTRA_DEFS) -mno-cygwin
LINKFLAGS =-L/home/jan/libs/install/lib $(EXTRA_LIB_PATHS) -static $(LIBS)
gle-graphics-4.2.4c/platform/autoconf/config.sub 0000775 0000000 0000000 00000104122 11436540702 020360 0 ustar root root #! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
timestamp='2010-05-21'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# can handle that machine. It does not imply ALL GNU software can.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Please send patches to . Submit a context
# diff and a properly formatted GNU ChangeLog entry.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# Each package is responsible for reporting which valid configurations
# it does not support. The user should be able to distinguish
# a failure to support a valid configuration from a meaningless
# configuration.
# The goal of this file is to map all the various variations of a given
# machine specification into a single specification in the form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or in some cases, the newer four-part form:
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# It is wrong to echo any other type of specification.
me=`echo "$0" | sed -e 's,.*/,,'`
usage="\
Usage: $0 [OPTION] CPU-MFR-OPSYS
$0 [OPTION] ALIAS
Canonicalize a configuration name.
Operation modes:
-h, --help print this help, then exit
-t, --time-stamp print date of last modification, then exit
-v, --version print version number, then exit
Report bugs and patches to ."
version="\
GNU config.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
help="
Try \`$me --help' for more information."
# Parse command line
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
echo "$timestamp" ; exit ;;
--version | -v )
echo "$version" ; exit ;;
--help | --h* | -h )
echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
break ;;
-* )
echo "$me: invalid option $1$help"
exit 1 ;;
*local*)
# First pass through any local machine types.
echo $1
exit ;;
* )
break ;;
esac
done
case $# in
0) echo "$me: missing argument$help" >&2
exit 1;;
1) ;;
*) echo "$me: too many arguments$help" >&2
exit 1;;
esac
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
knetbsd*-gnu* | netbsd*-gnu* | \
kopensolaris*-gnu* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
then os=`echo $1 | sed 's/.*-/-/'`
else os=; fi
;;
esac
### Let's recognize common machines as not being operating systems so
### that things like config.sub decstation-3100 work. We also
### recognize some manufacturers as not being operating systems, so we
### can provide default operating systems below.
case $os in
-sun*os*)
# Prevent following clause from handling this invalid input.
;;
-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
-apple | -axis | -knuth | -cray | -microblaze)
os=
basic_machine=$1
;;
-bluegene*)
os=-cnk
;;
-sim | -cisco | -oki | -wec | -winbond)
os=
basic_machine=$1
;;
-scout)
;;
-wrs)
os=-vxworks
basic_machine=$1
;;
-chorusos*)
os=-chorusos
basic_machine=$1
;;
-chorusrdb)
os=-chorusrdb
basic_machine=$1
;;
-hiux*)
os=-hiuxwe2
;;
-sco6)
os=-sco5v6
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco5)
os=-sco3.2v5
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco4)
os=-sco3.2v4
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco3.2.[4-9]*)
os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco3.2v[4-9]*)
# Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco5v6*)
# Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-sco*)
os=-sco3.2v2
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-udk*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-isc)
os=-isc2.2
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-clix*)
basic_machine=clipper-intergraph
;;
-isc*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-lynx*)
os=-lynxos
;;
-ptx*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
;;
-windowsnt*)
os=`echo $os | sed -e 's/windowsnt/winnt/'`
;;
-psos*)
os=-psos
;;
-mint | -mint[0-9]*)
basic_machine=m68k-atari
os=-mint
;;
esac
# Decode aliases for certain CPU-COMPANY combinations.
case $basic_machine in
# Recognize the basic CPU types without company name.
# Some are omitted here because they have special meanings below.
1750a | 580 \
| a29k \
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
| bfin \
| c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
| fido | fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
| lm32 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
| maxq | mb | microblaze | mcore | mep | metag \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
| mips64octeon | mips64octeonel \
| mips64orion | mips64orionel \
| mips64r5900 | mips64r5900el \
| mips64vr | mips64vrel \
| mips64vr4100 | mips64vr4100el \
| mips64vr4300 | mips64vr4300el \
| mips64vr5000 | mips64vr5000el \
| mips64vr5900 | mips64vr5900el \
| mipsisa32 | mipsisa32el \
| mipsisa32r2 | mipsisa32r2el \
| mipsisa64 | mipsisa64el \
| mipsisa64r2 | mipsisa64r2el \
| mipsisa64sb1 | mipsisa64sb1el \
| mipsisa64sr71k | mipsisa64sr71kel \
| mipstx39 | mipstx39el \
| mn10200 | mn10300 \
| moxie \
| mt \
| msp430 \
| nios | nios2 \
| ns16k | ns32k \
| or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| pyramid \
| rx \
| score \
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
| spu | strongarm \
| tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
| ubicom32 \
| v850 | v850e \
| we32k \
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
| z8k | z80)
basic_machine=$basic_machine-unknown
;;
c54x)
basic_machine=tic54x-unknown
;;
c55x)
basic_machine=tic55x-unknown
;;
c6x)
basic_machine=tic6x-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12 | picochip)
# Motorola 68HC11/12.
basic_machine=$basic_machine-unknown
os=-none
;;
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
;;
ms1)
basic_machine=mt-unknown
;;
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
# (2) the word "unknown" tends to confuse beginning users.
i*86 | x86_64)
basic_machine=$basic_machine-pc
;;
# Object if more than one company name word.
*-*-*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
exit 1
;;
# Recognize the basic CPU types with company name.
580-* \
| a29k-* \
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* | avr32-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* \
| clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
| elxsi-* \
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| i*86-* | i860-* | i960-* | ia64-* \
| ip2k-* | iq2000-* \
| lm32-* \
| m32c-* | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
| mips16-* \
| mips64-* | mips64el-* \
| mips64octeon-* | mips64octeonel-* \
| mips64orion-* | mips64orionel-* \
| mips64r5900-* | mips64r5900el-* \
| mips64vr-* | mips64vrel-* \
| mips64vr4100-* | mips64vr4100el-* \
| mips64vr4300-* | mips64vr4300el-* \
| mips64vr5000-* | mips64vr5000el-* \
| mips64vr5900-* | mips64vr5900el-* \
| mipsisa32-* | mipsisa32el-* \
| mipsisa32r2-* | mipsisa32r2el-* \
| mipsisa64-* | mipsisa64el-* \
| mipsisa64r2-* | mipsisa64r2el-* \
| mipsisa64sb1-* | mipsisa64sb1el-* \
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
| mipstx39-* | mipstx39el-* \
| mmix-* \
| mt-* \
| msp430-* \
| nios-* | nios2-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
| pyramid-* \
| romp-* | rs6000-* | rx-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
| sparclite-* \
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
| tahoe-* | thumb-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tile-* | tilegx-* \
| tron-* \
| ubicom32-* \
| v850-* | v850e-* | vax-* \
| we32k-* \
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
| xstormy16-* | xtensa*-* \
| ymp-* \
| z8k-* | z80-*)
;;
# Recognize the basic CPU types without company name, with glob match.
xtensa*)
basic_machine=$basic_machine-unknown
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
386bsd)
basic_machine=i386-unknown
os=-bsd
;;
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
basic_machine=m68000-att
;;
3b*)
basic_machine=we32k-att
;;
a29khif)
basic_machine=a29k-amd
os=-udi
;;
abacus)
basic_machine=abacus-unknown
;;
adobe68k)
basic_machine=m68010-adobe
os=-scout
;;
alliant | fx80)
basic_machine=fx80-alliant
;;
altos | altos3068)
basic_machine=m68k-altos
;;
am29k)
basic_machine=a29k-none
os=-bsd
;;
amd64)
basic_machine=x86_64-pc
;;
amd64-*)
basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
amdahl)
basic_machine=580-amdahl
os=-sysv
;;
amiga | amiga-*)
basic_machine=m68k-unknown
;;
amigaos | amigados)
basic_machine=m68k-unknown
os=-amigaos
;;
amigaunix | amix)
basic_machine=m68k-unknown
os=-sysv4
;;
apollo68)
basic_machine=m68k-apollo
os=-sysv
;;
apollo68bsd)
basic_machine=m68k-apollo
os=-bsd
;;
aros)
basic_machine=i386-pc
os=-aros
;;
aux)
basic_machine=m68k-apple
os=-aux
;;
balance)
basic_machine=ns32k-sequent
os=-dynix
;;
blackfin)
basic_machine=bfin-unknown
os=-linux
;;
blackfin-*)
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
bluegene*)
basic_machine=powerpc-ibm
os=-cnk
;;
c54x-*)
basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c55x-*)
basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c6x-*)
basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c90)
basic_machine=c90-cray
os=-unicos
;;
cegcc)
basic_machine=arm-unknown
os=-cegcc
;;
convex-c1)
basic_machine=c1-convex
os=-bsd
;;
convex-c2)
basic_machine=c2-convex
os=-bsd
;;
convex-c32)
basic_machine=c32-convex
os=-bsd
;;
convex-c34)
basic_machine=c34-convex
os=-bsd
;;
convex-c38)
basic_machine=c38-convex
os=-bsd
;;
cray | j90)
basic_machine=j90-cray
os=-unicos
;;
craynv)
basic_machine=craynv-cray
os=-unicosmp
;;
cr16)
basic_machine=cr16-unknown
os=-elf
;;
crds | unos)
basic_machine=m68k-crds
;;
crisv32 | crisv32-* | etraxfs*)
basic_machine=crisv32-axis
;;
cris | cris-* | etrax*)
basic_machine=cris-axis
;;
crx)
basic_machine=crx-unknown
os=-elf
;;
da30 | da30-*)
basic_machine=m68k-da30
;;
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
basic_machine=mips-dec
;;
decsystem10* | dec10*)
basic_machine=pdp10-dec
os=-tops10
;;
decsystem20* | dec20*)
basic_machine=pdp10-dec
os=-tops20
;;
delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola)
basic_machine=m68k-motorola
;;
delta88)
basic_machine=m88k-motorola
os=-sysv3
;;
dicos)
basic_machine=i686-pc
os=-dicos
;;
djgpp)
basic_machine=i586-pc
os=-msdosdjgpp
;;
dpx20 | dpx20-*)
basic_machine=rs6000-bull
os=-bosx
;;
dpx2* | dpx2*-bull)
basic_machine=m68k-bull
os=-sysv3
;;
ebmon29k)
basic_machine=a29k-amd
os=-ebmon
;;
elxsi)
basic_machine=elxsi-elxsi
os=-bsd
;;
encore | umax | mmax)
basic_machine=ns32k-encore
;;
es1800 | OSE68k | ose68k | ose | OSE)
basic_machine=m68k-ericsson
os=-ose
;;
fx2800)
basic_machine=i860-alliant
;;
genix)
basic_machine=ns32k-ns
;;
gmicro)
basic_machine=tron-gmicro
os=-sysv
;;
go32)
basic_machine=i386-pc
os=-go32
;;
h3050r* | hiux*)
basic_machine=hppa1.1-hitachi
os=-hiuxwe2
;;
h8300hms)
basic_machine=h8300-hitachi
os=-hms
;;
h8300xray)
basic_machine=h8300-hitachi
os=-xray
;;
h8500hms)
basic_machine=h8500-hitachi
os=-hms
;;
harris)
basic_machine=m88k-harris
os=-sysv3
;;
hp300-*)
basic_machine=m68k-hp
;;
hp300bsd)
basic_machine=m68k-hp
os=-bsd
;;
hp300hpux)
basic_machine=m68k-hp
os=-hpux
;;
hp3k9[0-9][0-9] | hp9[0-9][0-9])
basic_machine=hppa1.0-hp
;;
hp9k2[0-9][0-9] | hp9k31[0-9])
basic_machine=m68000-hp
;;
hp9k3[2-9][0-9])
basic_machine=m68k-hp
;;
hp9k6[0-9][0-9] | hp6[0-9][0-9])
basic_machine=hppa1.0-hp
;;
hp9k7[0-79][0-9] | hp7[0-79][0-9])
basic_machine=hppa1.1-hp
;;
hp9k78[0-9] | hp78[0-9])
# FIXME: really hppa2.0-hp
basic_machine=hppa1.1-hp
;;
hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
# FIXME: really hppa2.0-hp
basic_machine=hppa1.1-hp
;;
hp9k8[0-9][13679] | hp8[0-9][13679])
basic_machine=hppa1.1-hp
;;
hp9k8[0-9][0-9] | hp8[0-9][0-9])
basic_machine=hppa1.0-hp
;;
hppa-next)
os=-nextstep3
;;
hppaosf)
basic_machine=hppa1.1-hp
os=-osf
;;
hppro)
basic_machine=hppa1.1-hp
os=-proelf
;;
i370-ibm* | ibm*)
basic_machine=i370-ibm
;;
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
i*86v32)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv32
;;
i*86v4*)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv4
;;
i*86v)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv
;;
i*86sol2)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-solaris2
;;
i386mach)
basic_machine=i386-mach
os=-mach
;;
i386-vsta | vsta)
basic_machine=i386-unknown
os=-vsta
;;
iris | iris4d)
basic_machine=mips-sgi
case $os in
-irix*)
;;
*)
os=-irix4
;;
esac
;;
isi68 | isi)
basic_machine=m68k-isi
os=-sysv
;;
m68knommu)
basic_machine=m68k-unknown
os=-linux
;;
m68knommu-*)
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
m88k-omron*)
basic_machine=m88k-omron
;;
magnum | m3230)
basic_machine=mips-mips
os=-sysv
;;
merlin)
basic_machine=ns32k-utek
os=-sysv
;;
microblaze)
basic_machine=microblaze-xilinx
;;
mingw32)
basic_machine=i386-pc
os=-mingw32
;;
mingw32ce)
basic_machine=arm-unknown
os=-mingw32ce
;;
miniframe)
basic_machine=m68000-convergent
;;
*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
basic_machine=m68k-atari
os=-mint
;;
mips3*-*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
;;
mips3*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
;;
monitor)
basic_machine=m68k-rom68k
os=-coff
;;
morphos)
basic_machine=powerpc-unknown
os=-morphos
;;
msdos)
basic_machine=i386-pc
os=-msdos
;;
ms1-*)
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
;;
mvs)
basic_machine=i370-ibm
os=-mvs
;;
ncr3000)
basic_machine=i486-ncr
os=-sysv4
;;
netbsd386)
basic_machine=i386-unknown
os=-netbsd
;;
netwinder)
basic_machine=armv4l-rebel
os=-linux
;;
news | news700 | news800 | news900)
basic_machine=m68k-sony
os=-newsos
;;
news1000)
basic_machine=m68030-sony
os=-newsos
;;
news-3600 | risc-news)
basic_machine=mips-sony
os=-newsos
;;
necv70)
basic_machine=v70-nec
os=-sysv
;;
next | m*-next )
basic_machine=m68k-next
case $os in
-nextstep* )
;;
-ns2*)
os=-nextstep2
;;
*)
os=-nextstep3
;;
esac
;;
nh3000)
basic_machine=m68k-harris
os=-cxux
;;
nh[45]000)
basic_machine=m88k-harris
os=-cxux
;;
nindy960)
basic_machine=i960-intel
os=-nindy
;;
mon960)
basic_machine=i960-intel
os=-mon960
;;
nonstopux)
basic_machine=mips-compaq
os=-nonstopux
;;
np1)
basic_machine=np1-gould
;;
nsr-tandem)
basic_machine=nsr-tandem
;;
op50n-* | op60c-*)
basic_machine=hppa1.1-oki
os=-proelf
;;
openrisc | openrisc-*)
basic_machine=or32-unknown
;;
os400)
basic_machine=powerpc-ibm
os=-os400
;;
OSE68000 | ose68000)
basic_machine=m68000-ericsson
os=-ose
;;
os68k)
basic_machine=m68k-none
os=-os68k
;;
pa-hitachi)
basic_machine=hppa1.1-hitachi
os=-hiuxwe2
;;
paragon)
basic_machine=i860-intel
os=-osf
;;
parisc)
basic_machine=hppa-unknown
os=-linux
;;
parisc-*)
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
os=-linux
;;
pbd)
basic_machine=sparc-tti
;;
pbb)
basic_machine=m68k-tti
;;
pc532 | pc532-*)
basic_machine=ns32k-pc532
;;
pc98)
basic_machine=i386-pc
;;
pc98-*)
basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentium | p5 | k5 | k6 | nexgen | viac3)
basic_machine=i586-pc
;;
pentiumpro | p6 | 6x86 | athlon | athlon_*)
basic_machine=i686-pc
;;
pentiumii | pentium2 | pentiumiii | pentium3)
basic_machine=i686-pc
;;
pentium4)
basic_machine=i786-pc
;;
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentiumpro-* | p6-* | 6x86-* | athlon-*)
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentium4-*)
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pn)
basic_machine=pn-gould
;;
power) basic_machine=power-ibm
;;
ppc) basic_machine=powerpc-unknown
;;
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
basic_machine=powerpcle-unknown
;;
ppcle-* | powerpclittle-*)
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppc64) basic_machine=powerpc64-unknown
;;
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
basic_machine=powerpc64le-unknown
;;
ppc64le-* | powerpc64little-*)
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ps2)
basic_machine=i386-ibm
;;
pw32)
basic_machine=i586-unknown
os=-pw32
;;
rdos)
basic_machine=i386-pc
os=-rdos
;;
rom68k)
basic_machine=m68k-rom68k
os=-coff
;;
rm[46]00)
basic_machine=mips-siemens
;;
rtpc | rtpc-*)
basic_machine=romp-ibm
;;
s390 | s390-*)
basic_machine=s390-ibm
;;
s390x | s390x-*)
basic_machine=s390x-ibm
;;
sa29200)
basic_machine=a29k-amd
os=-udi
;;
sb1)
basic_machine=mipsisa64sb1-unknown
;;
sb1el)
basic_machine=mipsisa64sb1el-unknown
;;
sde)
basic_machine=mipsisa32-sde
os=-elf
;;
sei)
basic_machine=mips-sei
os=-seiux
;;
sequent)
basic_machine=i386-sequent
;;
sh)
basic_machine=sh-hitachi
os=-hms
;;
sh5el)
basic_machine=sh5le-unknown
;;
sh64)
basic_machine=sh64-unknown
;;
sparclite-wrs | simso-wrs)
basic_machine=sparclite-wrs
os=-vxworks
;;
sps7)
basic_machine=m68k-bull
os=-sysv2
;;
spur)
basic_machine=spur-unknown
;;
st2000)
basic_machine=m68k-tandem
;;
stratus)
basic_machine=i860-stratus
os=-sysv4
;;
sun2)
basic_machine=m68000-sun
;;
sun2os3)
basic_machine=m68000-sun
os=-sunos3
;;
sun2os4)
basic_machine=m68000-sun
os=-sunos4
;;
sun3os3)
basic_machine=m68k-sun
os=-sunos3
;;
sun3os4)
basic_machine=m68k-sun
os=-sunos4
;;
sun4os3)
basic_machine=sparc-sun
os=-sunos3
;;
sun4os4)
basic_machine=sparc-sun
os=-sunos4
;;
sun4sol2)
basic_machine=sparc-sun
os=-solaris2
;;
sun3 | sun3-*)
basic_machine=m68k-sun
;;
sun4)
basic_machine=sparc-sun
;;
sun386 | sun386i | roadrunner)
basic_machine=i386-sun
;;
sv1)
basic_machine=sv1-cray
os=-unicos
;;
symmetry)
basic_machine=i386-sequent
os=-dynix
;;
t3e)
basic_machine=alphaev5-cray
os=-unicos
;;
t90)
basic_machine=t90-cray
os=-unicos
;;
# This must be matched before tile*.
tilegx*)
basic_machine=tilegx-unknown
os=-linux-gnu
;;
tile*)
basic_machine=tile-unknown
os=-linux-gnu
;;
tx39)
basic_machine=mipstx39-unknown
;;
tx39el)
basic_machine=mipstx39el-unknown
;;
toad1)
basic_machine=pdp10-xkl
os=-tops20
;;
tower | tower-32)
basic_machine=m68k-ncr
;;
tpf)
basic_machine=s390x-ibm
os=-tpf
;;
udi29k)
basic_machine=a29k-amd
os=-udi
;;
ultra3)
basic_machine=a29k-nyu
os=-sym1
;;
v810 | necv810)
basic_machine=v810-nec
os=-none
;;
vaxv)
basic_machine=vax-dec
os=-sysv
;;
vms)
basic_machine=vax-dec
os=-vms
;;
vpp*|vx|vx-*)
basic_machine=f301-fujitsu
;;
vxworks960)
basic_machine=i960-wrs
os=-vxworks
;;
vxworks68)
basic_machine=m68k-wrs
os=-vxworks
;;
vxworks29k)
basic_machine=a29k-wrs
os=-vxworks
;;
w65*)
basic_machine=w65-wdc
os=-none
;;
w89k-*)
basic_machine=hppa1.1-winbond
os=-proelf
;;
xbox)
basic_machine=i686-pc
os=-mingw32
;;
xps | xps100)
basic_machine=xps100-honeywell
;;
ymp)
basic_machine=ymp-cray
os=-unicos
;;
z8k-*-coff)
basic_machine=z8k-unknown
os=-sim
;;
z80-*-coff)
basic_machine=z80-unknown
os=-sim
;;
none)
basic_machine=none-none
os=-none
;;
# Here we handle the default manufacturer of certain CPU types. It is in
# some cases the only manufacturer, in others, it is the most popular.
w89k)
basic_machine=hppa1.1-winbond
;;
op50n)
basic_machine=hppa1.1-oki
;;
op60c)
basic_machine=hppa1.1-oki
;;
romp)
basic_machine=romp-ibm
;;
mmix)
basic_machine=mmix-knuth
;;
rs6000)
basic_machine=rs6000-ibm
;;
vax)
basic_machine=vax-dec
;;
pdp10)
# there are many clones, so DEC is not a safe bet
basic_machine=pdp10-unknown
;;
pdp11)
basic_machine=pdp11-dec
;;
we32k)
basic_machine=we32k-att
;;
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
basic_machine=sparc-sun
;;
cydra)
basic_machine=cydra-cydrome
;;
orion)
basic_machine=orion-highlevel
;;
orion105)
basic_machine=clipper-highlevel
;;
mac | mpw | mac-mpw)
basic_machine=m68k-apple
;;
pmac | pmac-mpw)
basic_machine=powerpc-apple
;;
*-unknown)
# Make sure to match an already-canonicalized machine name.
;;
*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
exit 1
;;
esac
# Here we canonicalize certain aliases for manufacturers.
case $basic_machine in
*-digital*)
basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
;;
*-commodore*)
basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
;;
*)
;;
esac
# Decode manufacturer-specific aliases for certain operating systems.
if [ x"$os" != x"" ]
then
case $os in
# First match some system type aliases
# that might get confused with valid system types.
# -solaris* is a basic system type, with this one exception.
-auroraux)
os=-auroraux
;;
-solaris1 | -solaris1.*)
os=`echo $os | sed -e 's|solaris1|sunos4|'`
;;
-solaris)
os=-solaris2
;;
-svr4*)
os=-sysv4
;;
-unixware*)
os=-sysv4.2uw
;;
-gnu/linux*)
os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
;;
# First accept the basic system types.
# The portable systems comes first.
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
| -sym* | -kopensolaris* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
| -aos* | -aros* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
| -openbsd* | -solidbsd* \
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* | -cegcc* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -linux-android* \
| -linux-newlib* | -linux-uclibc* \
| -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
case $basic_machine in
x86-* | i*86-*)
;;
*)
os=-nto$os
;;
esac
;;
-nto-qnx*)
;;
-nto*)
os=`echo $os | sed -e 's|nto|nto-qnx|'`
;;
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
| -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
;;
-mac*)
os=`echo $os | sed -e 's|mac|macos|'`
;;
-linux-dietlibc)
os=-linux-dietlibc
;;
-linux*)
os=`echo $os | sed -e 's|linux|linux-gnu|'`
;;
-sunos5*)
os=`echo $os | sed -e 's|sunos5|solaris2|'`
;;
-sunos6*)
os=`echo $os | sed -e 's|sunos6|solaris3|'`
;;
-opened*)
os=-openedition
;;
-os400*)
os=-os400
;;
-wince*)
os=-wince
;;
-osfrose*)
os=-osfrose
;;
-osf*)
os=-osf
;;
-utek*)
os=-bsd
;;
-dynix*)
os=-bsd
;;
-acis*)
os=-aos
;;
-atheos*)
os=-atheos
;;
-syllable*)
os=-syllable
;;
-386bsd)
os=-bsd
;;
-ctix* | -uts*)
os=-sysv
;;
-nova*)
os=-rtmk-nova
;;
-ns2 )
os=-nextstep2
;;
-nsk*)
os=-nsk
;;
# Preserve the version number of sinix5.
-sinix5.*)
os=`echo $os | sed -e 's|sinix|sysv|'`
;;
-sinix*)
os=-sysv4
;;
-tpf*)
os=-tpf
;;
-triton*)
os=-sysv3
;;
-oss*)
os=-sysv3
;;
-svr4)
os=-sysv4
;;
-svr3)
os=-sysv3
;;
-sysvr4)
os=-sysv4
;;
# This must come after -sysvr4.
-sysv*)
;;
-ose*)
os=-ose
;;
-es1800*)
os=-ose
;;
-xenix)
os=-xenix
;;
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
os=-mint
;;
-aros*)
os=-aros
;;
-kaos*)
os=-kaos
;;
-zvmoe)
os=-zvmoe
;;
-dicos*)
os=-dicos
;;
-nacl*)
;;
-none)
;;
*)
# Get rid of the `-' at the beginning of $os.
os=`echo $os | sed 's/[^-]*-//'`
echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
exit 1
;;
esac
else
# Here we handle the default operating systems that come with various machines.
# The value should be what the vendor currently ships out the door with their
# machine or put another way, the most popular os provided with the machine.
# Note that if you're going to try to match "-MANUFACTURER" here (say,
# "-sun"), then you have to tell the case statement up towards the top
# that MANUFACTURER isn't an operating system. Otherwise, code above
# will signal an error saying that MANUFACTURER isn't an operating
# system, and we'll never get to this point.
case $basic_machine in
score-*)
os=-elf
;;
spu-*)
os=-elf
;;
*-acorn)
os=-riscix1.2
;;
arm*-rebel)
os=-linux
;;
arm*-semi)
os=-aout
;;
c4x-* | tic4x-*)
os=-coff
;;
tic54x-*)
os=-coff
;;
tic55x-*)
os=-coff
;;
tic6x-*)
os=-coff
;;
# This must come before the *-dec entry.
pdp10-*)
os=-tops20
;;
pdp11-*)
os=-none
;;
*-dec | vax-*)
os=-ultrix4.2
;;
m68*-apollo)
os=-domain
;;
i386-sun)
os=-sunos4.0.2
;;
m68000-sun)
os=-sunos3
# This also exists in the configure program, but was not the
# default.
# os=-sunos4
;;
m68*-cisco)
os=-aout
;;
mep-*)
os=-elf
;;
mips*-cisco)
os=-elf
;;
mips*-*)
os=-elf
;;
or32-*)
os=-coff
;;
*-tti) # must be before sparc entry or we get the wrong os.
os=-sysv3
;;
sparc-* | *-sun)
os=-sunos4.1.1
;;
*-be)
os=-beos
;;
*-haiku)
os=-haiku
;;
*-ibm)
os=-aix
;;
*-knuth)
os=-mmixware
;;
*-wec)
os=-proelf
;;
*-winbond)
os=-proelf
;;
*-oki)
os=-proelf
;;
*-hp)
os=-hpux
;;
*-hitachi)
os=-hiux
;;
i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
os=-sysv
;;
*-cbm)
os=-amigaos
;;
*-dg)
os=-dgux
;;
*-dolphin)
os=-sysv3
;;
m68k-ccur)
os=-rtu
;;
m88k-omron*)
os=-luna
;;
*-next )
os=-nextstep
;;
*-sequent)
os=-ptx
;;
*-crds)
os=-unos
;;
*-ns)
os=-genix
;;
i370-*)
os=-mvs
;;
*-next)
os=-nextstep3
;;
*-gould)
os=-sysv
;;
*-highlevel)
os=-bsd
;;
*-encore)
os=-bsd
;;
*-sgi)
os=-irix
;;
*-siemens)
os=-sysv4
;;
*-masscomp)
os=-rtu
;;
f30[01]-fujitsu | f700-fujitsu)
os=-uxpv
;;
*-rom68k)
os=-coff
;;
*-*bug)
os=-coff
;;
*-apple)
os=-macos
;;
*-atari*)
os=-mint
;;
*)
os=-none
;;
esac
fi
# Here we handle the case where we know the os, and the CPU type, but not the
# manufacturer. We pick the logical manufacturer.
vendor=unknown
case $basic_machine in
*-unknown)
case $os in
-riscix*)
vendor=acorn
;;
-sunos*)
vendor=sun
;;
-cnk*|-aix*)
vendor=ibm
;;
-beos*)
vendor=be
;;
-hpux*)
vendor=hp
;;
-mpeix*)
vendor=hp
;;
-hiux*)
vendor=hitachi
;;
-unos*)
vendor=crds
;;
-dgux*)
vendor=dg
;;
-luna*)
vendor=omron
;;
-genix*)
vendor=ns
;;
-mvs* | -opened*)
vendor=ibm
;;
-os400*)
vendor=ibm
;;
-ptx*)
vendor=sequent
;;
-tpf*)
vendor=ibm
;;
-vxsim* | -vxworks* | -windiss*)
vendor=wrs
;;
-aux*)
vendor=apple
;;
-hms*)
vendor=hitachi
;;
-mpw* | -macos*)
vendor=apple
;;
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
vendor=atari
;;
-vos*)
vendor=stratus
;;
esac
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
;;
esac
echo $basic_machine$os
exit
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
gle-graphics-4.2.4c/platform/autoconf/gle-graphics.pc.in 0000664 0000000 0000000 00000000263 11405446017 021674 0 ustar root root prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
gle_top=@GLE_INSTALL_DATA@
Name: GLE
Description: Graphics Layout Engine
Version: @GLE_VERSION@
gle-graphics-4.2.4c/platform/autoconf/install-sh 0000775 0000000 0000000 00000032464 11405446017 020412 0 ustar root root #!/bin/sh
# install - install a program, script, or datafile
scriptversion=2006-12-25.00
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
nl='
'
IFS=" "" $nl"
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit=${DOITPROG-}
if test -z "$doit"; then
doit_exec=exec
else
doit_exec=$doit
fi
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
chgrpprog=${CHGRPPROG-chgrp}
chmodprog=${CHMODPROG-chmod}
chownprog=${CHOWNPROG-chown}
cmpprog=${CMPPROG-cmp}
cpprog=${CPPROG-cp}
mkdirprog=${MKDIRPROG-mkdir}
mvprog=${MVPROG-mv}
rmprog=${RMPROG-rm}
stripprog=${STRIPPROG-strip}
posix_glob='?'
initialize_posix_glob='
test "$posix_glob" != "?" || {
if (set -f) 2>/dev/null; then
posix_glob=
else
posix_glob=:
fi
}
'
posix_mkdir=
# Desired mode of installed file.
mode=0755
chgrpcmd=
chmodcmd=$chmodprog
chowncmd=
mvcmd=$mvprog
rmcmd="$rmprog -f"
stripcmd=
src=
dst=
dir_arg=
dst_arg=
copy_on_change=false
no_target_directory=
usage="\
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
or: $0 [OPTION]... SRCFILES... DIRECTORY
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
or: $0 [OPTION]... -d DIRECTORIES...
In the 1st form, copy SRCFILE to DSTFILE.
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
In the 4th, create DIRECTORIES.
Options:
--help display this help and exit.
--version display version info and exit.
-c (ignored)
-C install only if different (preserve the last data modification time)
-d create directories instead of installing files.
-g GROUP $chgrpprog installed files to GROUP.
-m MODE $chmodprog installed files to MODE.
-o USER $chownprog installed files to USER.
-s $stripprog installed files.
-t DIRECTORY install into DIRECTORY.
-T report an error if DSTFILE is a directory.
Environment variables override the default commands:
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
RMPROG STRIPPROG
"
while test $# -ne 0; do
case $1 in
-c) ;;
-C) copy_on_change=true;;
-d) dir_arg=true;;
-g) chgrpcmd="$chgrpprog $2"
shift;;
--help) echo "$usage"; exit $?;;
-m) mode=$2
case $mode in
*' '* | *' '* | *'
'* | *'*'* | *'?'* | *'['*)
echo "$0: invalid mode: $mode" >&2
exit 1;;
esac
shift;;
-o) chowncmd="$chownprog $2"
shift;;
-s) stripcmd=$stripprog;;
-t) dst_arg=$2
shift;;
-T) no_target_directory=true;;
--version) echo "$0 $scriptversion"; exit $?;;
--) shift
break;;
-*) echo "$0: invalid option: $1" >&2
exit 1;;
*) break;;
esac
shift
done
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
# When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
# Otherwise, the last argument is the destination. Remove it from $@.
for arg
do
if test -n "$dst_arg"; then
# $@ is not empty: it contains at least $arg.
set fnord "$@" "$dst_arg"
shift # fnord
fi
shift # arg
dst_arg=$arg
done
fi
if test $# -eq 0; then
if test -z "$dir_arg"; then
echo "$0: no input file specified." >&2
exit 1
fi
# It's OK to call `install-sh -d' without argument.
# This can happen when creating conditional directories.
exit 0
fi
if test -z "$dir_arg"; then
trap '(exit $?); exit' 1 2 13 15
# Set umask so as not to create temps with too-generous modes.
# However, 'strip' requires both read and write access to temps.
case $mode in
# Optimize common cases.
*644) cp_umask=133;;
*755) cp_umask=22;;
*[0-7])
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw='% 200'
fi
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
*)
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw=,u+rw
fi
cp_umask=$mode$u_plus_rw;;
esac
fi
for src
do
# Protect names starting with `-'.
case $src in
-*) src=./$src;;
esac
if test -n "$dir_arg"; then
dst=$src
dstdir=$dst
test -d "$dstdir"
dstdir_status=$?
else
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if test ! -f "$src" && test ! -d "$src"; then
echo "$0: $src does not exist." >&2
exit 1
fi
if test -z "$dst_arg"; then
echo "$0: no destination specified." >&2
exit 1
fi
dst=$dst_arg
# Protect names starting with `-'.
case $dst in
-*) dst=./$dst;;
esac
# If destination is a directory, append the input filename; won't work
# if double slashes aren't ignored.
if test -d "$dst"; then
if test -n "$no_target_directory"; then
echo "$0: $dst_arg: Is a directory" >&2
exit 1
fi
dstdir=$dst
dst=$dstdir/`basename "$src"`
dstdir_status=0
else
# Prefer dirname, but fall back on a substitute if dirname fails.
dstdir=`
(dirname "$dst") 2>/dev/null ||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$dst" : 'X\(//\)[^/]' \| \
X"$dst" : 'X\(//\)$' \| \
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$dst" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'
`
test -d "$dstdir"
dstdir_status=$?
fi
fi
obsolete_mkdir_used=false
if test $dstdir_status != 0; then
case $posix_mkdir in
'')
# Create intermediate dirs using mode 755 as modified by the umask.
# This is like FreeBSD 'install' as of 1997-10-28.
umask=`umask`
case $stripcmd.$umask in
# Optimize common cases.
*[2367][2367]) mkdir_umask=$umask;;
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
*[0-7])
mkdir_umask=`expr $umask + 22 \
- $umask % 100 % 40 + $umask % 20 \
- $umask % 10 % 4 + $umask % 2
`;;
*) mkdir_umask=$umask,go-w;;
esac
# With -d, create the new directory with the user-specified mode.
# Otherwise, rely on $mkdir_umask.
if test -n "$dir_arg"; then
mkdir_mode=-m$mode
else
mkdir_mode=
fi
posix_mkdir=false
case $umask in
*[123567][0-7][0-7])
# POSIX mkdir -p sets u+wx bits regardless of umask, which
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
;;
*)
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
if (umask $mkdir_umask &&
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
then
if test -z "$dir_arg" || {
# Check for POSIX incompatibilities with -m.
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
# other-writeable bit of parent directory when it shouldn't.
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
ls_ld_tmpdir=`ls -ld "$tmpdir"`
case $ls_ld_tmpdir in
d????-?r-*) different_mode=700;;
d????-?--*) different_mode=755;;
*) false;;
esac &&
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
}
}
then posix_mkdir=:
fi
rmdir "$tmpdir/d" "$tmpdir"
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
fi
trap '' 0;;
esac;;
esac
if
$posix_mkdir && (
umask $mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
)
then :
else
# The umask is ridiculous, or mkdir does not conform to POSIX,
# or it failed possibly due to a race condition. Create the
# directory the slow way, step by step, checking for races as we go.
case $dstdir in
/*) prefix='/';;
-*) prefix='./';;
*) prefix='';;
esac
eval "$initialize_posix_glob"
oIFS=$IFS
IFS=/
$posix_glob set -f
set fnord $dstdir
shift
$posix_glob set +f
IFS=$oIFS
prefixes=
for d
do
test -z "$d" && continue
prefix=$prefix$d
if test -d "$prefix"; then
prefixes=
else
if $posix_mkdir; then
(umask=$mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
# Don't fail if two instances are running concurrently.
test -d "$prefix" || exit 1
else
case $prefix in
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
*) qprefix=$prefix;;
esac
prefixes="$prefixes '$qprefix'"
fi
fi
prefix=$prefix/
done
if test -n "$prefixes"; then
# Don't fail if two instances are running concurrently.
(umask $mkdir_umask &&
eval "\$doit_exec \$mkdirprog $prefixes") ||
test -d "$dstdir" || exit 1
obsolete_mkdir_used=true
fi
fi
fi
if test -n "$dir_arg"; then
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
else
# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
rmtmp=$dstdir/_rm.$$_
# Trap to clean up those temp files at exit.
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
# Copy the file name to the temp name.
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
# and set any options; do chmod last to preserve setuid bits.
#
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $cpprog $src $dsttmp" command.
#
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
# If -C, don't bother to copy if it wouldn't change the file.
if $copy_on_change &&
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
eval "$initialize_posix_glob" &&
$posix_glob set -f &&
set X $old && old=:$2:$4:$5:$6 &&
set X $new && new=:$2:$4:$5:$6 &&
$posix_glob set +f &&
test "$old" = "$new" &&
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
then
rm -f "$dsttmp"
else
# Rename the file to the real destination.
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
# The rename failed, perhaps because mv can't rename something else
# to itself, or perhaps because mv is so ancient that it does not
# support -f.
{
# Now remove or move aside any old file at destination location.
# We try this two ways since rm can't unlink itself on some
# systems and the destination file might be busy for other
# reasons. In this case, the final cleanup might fail but the new
# file should still install successfully.
{
test ! -f "$dst" ||
$doit $rmcmd -f "$dst" 2>/dev/null ||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
} ||
{ echo "$0: cannot unlink or rename $dst" >&2
(exit 1); exit 1
}
} &&
# Now rename the file to the real destination.
$doit $mvcmd "$dsttmp" "$dst"
}
fi || exit 1
trap '' 0
fi
done
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"
# End:
gle-graphics-4.2.4c/platform/autoconf/config.guess 0000775 0000000 0000000 00000127655 11436540702 020735 0 ustar root root #! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
timestamp='2010-04-03'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Originally written by Per Bothner. Please send patches (context
# diff format) to and include a ChangeLog
# entry.
#
# This script attempts to guess a canonical system name similar to
# config.sub. If it succeeds, it prints the system name on stdout, and
# exits with 0. Otherwise, it exits with 1.
#
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
me=`echo "$0" | sed -e 's,.*/,,'`
usage="\
Usage: $0 [OPTION]
Output the configuration name of the system \`$me' is run on.
Operation modes:
-h, --help print this help, then exit
-t, --time-stamp print date of last modification, then exit
-v, --version print version number, then exit
Report bugs and patches to ."
version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
help="
Try \`$me --help' for more information."
# Parse command line
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
echo "$timestamp" ; exit ;;
--version | -v )
echo "$version" ; exit ;;
--help | --h* | -h )
echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
break ;;
-* )
echo "$me: invalid option $1$help" >&2
exit 1 ;;
* )
break ;;
esac
done
if test $# != 0; then
echo "$me: too many arguments$help" >&2
exit 1
fi
trap 'exit 1' HUP INT TERM
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
# temporary files to be created and, as you can see below, it is a
# headache to deal with in a portable fashion.
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.
# Portable tmp directory creation inspired by the Autoconf team.
set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
: ${TMPDIR=/tmp} ;
{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case $CC_FOR_BUILD,$HOST_CC,$CC in
,,) echo "int x;" > $dummy.c ;
for c in cc gcc c89 c99 ; do
if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
CC_FOR_BUILD="$c"; break ;
fi ;
done ;
if test x"$CC_FOR_BUILD" = x ; then
CC_FOR_BUILD=no_compiler_found ;
fi
;;
,,*) CC_FOR_BUILD=$CC ;;
,*,*) CC_FOR_BUILD=$HOST_CC ;;
esac ; set_cc_for_build= ;'
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@noc.rutgers.edu 1994-08-24)
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
PATH=$PATH:/.attbin ; export PATH
fi
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*:NetBSD:*:*)
# NetBSD (nbsd) targets should (where applicable) match one or
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
# switched to ELF, *-*-netbsd* would select the old
# object file format. This provides both forward
# compatibility and a consistent mechanism for selecting the
# object file format.
#
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
sysctl="sysctl -n hw.machine_arch"
UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
/usr/sbin/$sysctl 2>/dev/null || echo unknown)`
case "${UNAME_MACHINE_ARCH}" in
armeb) machine=armeb-unknown ;;
arm*) machine=arm-unknown ;;
sh3el) machine=shl-unknown ;;
sh3eb) machine=sh-unknown ;;
sh5el) machine=sh5le-unknown ;;
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
esac
# The Operating System including object format, if it has switched
# to ELF recently, or will in the future.
case "${UNAME_MACHINE_ARCH}" in
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
eval $set_cc_for_build
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ELF__
then
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
# Return netbsd for either. FIX?
os=netbsd
else
os=netbsdelf
fi
;;
*)
os=netbsd
;;
esac
# The OS release
# Debian GNU/NetBSD machines have a different userland, and
# thus, need a distinct triplet. However, they do not need
# kernel version information, so it can be replaced with a
# suitable tag, in the style of linux-gnu.
case "${UNAME_VERSION}" in
Debian*)
release='-gnu'
;;
*)
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
;;
esac
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
# contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
echo "${machine}-${os}${release}"
exit ;;
*:OpenBSD:*:*)
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
exit ;;
*:ekkoBSD:*:*)
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
exit ;;
*:SolidBSD:*:*)
echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
exit ;;
macppc:MirBSD:*:*)
echo powerpc-unknown-mirbsd${UNAME_RELEASE}
exit ;;
*:MirBSD:*:*)
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
exit ;;
alpha:OSF1:*:*)
case $UNAME_RELEASE in
*4.0)
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
;;
*5.*)
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
;;
esac
# According to Compaq, /usr/sbin/psrinfo has been available on
# OSF/1 and Tru64 systems produced since 1995. I hope that
# covers most systems running today. This code pipes the CPU
# types through head -n 1, so we only detect the type of CPU 0.
ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
case "$ALPHA_CPU_TYPE" in
"EV4 (21064)")
UNAME_MACHINE="alpha" ;;
"EV4.5 (21064)")
UNAME_MACHINE="alpha" ;;
"LCA4 (21066/21068)")
UNAME_MACHINE="alpha" ;;
"EV5 (21164)")
UNAME_MACHINE="alphaev5" ;;
"EV5.6 (21164A)")
UNAME_MACHINE="alphaev56" ;;
"EV5.6 (21164PC)")
UNAME_MACHINE="alphapca56" ;;
"EV5.7 (21164PC)")
UNAME_MACHINE="alphapca57" ;;
"EV6 (21264)")
UNAME_MACHINE="alphaev6" ;;
"EV6.7 (21264A)")
UNAME_MACHINE="alphaev67" ;;
"EV6.8CB (21264C)")
UNAME_MACHINE="alphaev68" ;;
"EV6.8AL (21264B)")
UNAME_MACHINE="alphaev68" ;;
"EV6.8CX (21264D)")
UNAME_MACHINE="alphaev68" ;;
"EV6.9A (21264/EV69A)")
UNAME_MACHINE="alphaev69" ;;
"EV7 (21364)")
UNAME_MACHINE="alphaev7" ;;
"EV7.9 (21364A)")
UNAME_MACHINE="alphaev79" ;;
esac
# A Pn.n version is a patched version.
# A Vn.n version is a released version.
# A Tn.n version is a released field test version.
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
exit ;;
Alpha\ *:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
# Should we change UNAME_MACHINE based on the output of uname instead
# of the specific Alpha model?
echo alpha-pc-interix
exit ;;
21064:Windows_NT:50:3)
echo alpha-dec-winnt3.5
exit ;;
Amiga*:UNIX_System_V:4.0:*)
echo m68k-unknown-sysv4
exit ;;
*:[Aa]miga[Oo][Ss]:*:*)
echo ${UNAME_MACHINE}-unknown-amigaos
exit ;;
*:[Mm]orph[Oo][Ss]:*:*)
echo ${UNAME_MACHINE}-unknown-morphos
exit ;;
*:OS/390:*:*)
echo i370-ibm-openedition
exit ;;
*:z/VM:*:*)
echo s390-ibm-zvmoe
exit ;;
*:OS400:*:*)
echo powerpc-ibm-os400
exit ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
exit ;;
arm:riscos:*:*|arm:RISCOS:*:*)
echo arm-unknown-riscos
exit ;;
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
echo hppa1.1-hitachi-hiuxmpp
exit ;;
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
if test "`(/bin/universe) 2>/dev/null`" = att ; then
echo pyramid-pyramid-sysv3
else
echo pyramid-pyramid-bsd
fi
exit ;;
NILE*:*:*:dcosx)
echo pyramid-pyramid-svr4
exit ;;
DRS?6000:unix:4.0:6*)
echo sparc-icl-nx6
exit ;;
DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
case `/usr/bin/uname -p` in
sparc) echo sparc-icl-nx7; exit ;;
esac ;;
s390x:SunOS:*:*)
echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4H:SunOS:5.*:*)
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
echo i386-pc-auroraux${UNAME_RELEASE}
exit ;;
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
eval $set_cc_for_build
SUN_ARCH="i386"
# If there is a compiler, see if it is configured for 64-bit objects.
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
# This test works for both compilers.
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
grep IS_64BIT_ARCH >/dev/null
then
SUN_ARCH="x86_64"
fi
fi
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4*:SunOS:6*:*)
# According to config.sub, this is the proper way to canonicalize
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
# it's likely to be more like Solaris than SunOS4.
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4*:SunOS:*:*)
case "`/usr/bin/arch -k`" in
Series*|S4*)
UNAME_RELEASE=`uname -v`
;;
esac
# Japanese Language versions have a version number like `4.1.3-JL'.
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
exit ;;
sun3*:SunOS:*:*)
echo m68k-sun-sunos${UNAME_RELEASE}
exit ;;
sun*:*:4.2BSD:*)
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
case "`/bin/arch`" in
sun3)
echo m68k-sun-sunos${UNAME_RELEASE}
;;
sun4)
echo sparc-sun-sunos${UNAME_RELEASE}
;;
esac
exit ;;
aushp:SunOS:*:*)
echo sparc-auspex-sunos${UNAME_RELEASE}
exit ;;
# The situation for MiNT is a little confusing. The machine name
# can be virtually everything (everything which is not
# "atarist" or "atariste" at least should have a processor
# > m68000). The system name ranges from "MiNT" over "FreeMiNT"
# to the lowercase version "mint" (or "freemint"). Finally
# the system name "TOS" denotes a system which is actually not
# MiNT. But MiNT is downward compatible to TOS, so this should
# be no problem.
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
echo m68k-milan-mint${UNAME_RELEASE}
exit ;;
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
echo m68k-hades-mint${UNAME_RELEASE}
exit ;;
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
echo m68k-unknown-mint${UNAME_RELEASE}
exit ;;
m68k:machten:*:*)
echo m68k-apple-machten${UNAME_RELEASE}
exit ;;
powerpc:machten:*:*)
echo powerpc-apple-machten${UNAME_RELEASE}
exit ;;
RISC*:Mach:*:*)
echo mips-dec-mach_bsd4.3
exit ;;
RISC*:ULTRIX:*:*)
echo mips-dec-ultrix${UNAME_RELEASE}
exit ;;
VAX*:ULTRIX*:*:*)
echo vax-dec-ultrix${UNAME_RELEASE}
exit ;;
2020:CLIX:*:* | 2430:CLIX:*:*)
echo clipper-intergraph-clix${UNAME_RELEASE}
exit ;;
mips:*:*:UMIPS | mips:*:*:RISCos)
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#ifdef __cplusplus
#include /* for printf() prototype */
int main (int argc, char *argv[]) {
#else
int main (argc, argv) int argc; char *argv[]; {
#endif
#if defined (host_mips) && defined (MIPSEB)
#if defined (SYSTYPE_SYSV)
printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
#endif
#if defined (SYSTYPE_SVR4)
printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
#endif
#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
#endif
#endif
exit (-1);
}
EOF
$CC_FOR_BUILD -o $dummy $dummy.c &&
dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
SYSTEM_NAME=`$dummy $dummyarg` &&
{ echo "$SYSTEM_NAME"; exit; }
echo mips-mips-riscos${UNAME_RELEASE}
exit ;;
Motorola:PowerMAX_OS:*:*)
echo powerpc-motorola-powermax
exit ;;
Motorola:*:4.3:PL8-*)
echo powerpc-harris-powermax
exit ;;
Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
echo powerpc-harris-powermax
exit ;;
Night_Hawk:Power_UNIX:*:*)
echo powerpc-harris-powerunix
exit ;;
m88k:CX/UX:7*:*)
echo m88k-harris-cxux7
exit ;;
m88k:*:4*:R4*)
echo m88k-motorola-sysv4
exit ;;
m88k:*:3*:R3*)
echo m88k-motorola-sysv3
exit ;;
AViiON:dgux:*:*)
# DG/UX returns AViiON for all architectures
UNAME_PROCESSOR=`/usr/bin/uname -p`
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
then
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
[ ${TARGET_BINARY_INTERFACE}x = x ]
then
echo m88k-dg-dgux${UNAME_RELEASE}
else
echo m88k-dg-dguxbcs${UNAME_RELEASE}
fi
else
echo i586-dg-dgux${UNAME_RELEASE}
fi
exit ;;
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
echo m88k-dolphin-sysv3
exit ;;
M88*:*:R3*:*)
# Delta 88k system running SVR3
echo m88k-motorola-sysv3
exit ;;
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
echo m88k-tektronix-sysv3
exit ;;
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
echo m68k-tektronix-bsd
exit ;;
*:IRIX*:*:*)
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
exit ;;
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
i*86:AIX:*:*)
echo i386-ibm-aix
exit ;;
ia64:AIX:*:*)
if [ -x /usr/bin/oslevel ] ; then
IBM_REV=`/usr/bin/oslevel`
else
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi
echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
exit ;;
*:AIX:2:3)
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#include
main()
{
if (!__power_pc())
exit(1);
puts("powerpc-ibm-aix3.2.5");
exit(0);
}
EOF
if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
then
echo "$SYSTEM_NAME"
else
echo rs6000-ibm-aix3.2.5
fi
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
echo rs6000-ibm-aix3.2.4
else
echo rs6000-ibm-aix3.2
fi
exit ;;
*:AIX:*:[456])
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
IBM_ARCH=rs6000
else
IBM_ARCH=powerpc
fi
if [ -x /usr/bin/oslevel ] ; then
IBM_REV=`/usr/bin/oslevel`
else
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
exit ;;
*:AIX:*:*)
echo rs6000-ibm-aix
exit ;;
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
echo romp-ibm-bsd4.4
exit ;;
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
exit ;; # report: romp-ibm BSD 4.3
*:BOSX:*:*)
echo rs6000-bull-bosx
exit ;;
DPX/2?00:B.O.S.:*:*)
echo m68k-bull-sysv3
exit ;;
9000/[34]??:4.3bsd:1.*:*)
echo m68k-hp-bsd
exit ;;
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
echo m68k-hp-bsd4.4
exit ;;
9000/[34678]??:HP-UX:*:*)
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
case "${UNAME_MACHINE}" in
9000/31? ) HP_ARCH=m68000 ;;
9000/[34]?? ) HP_ARCH=m68k ;;
9000/[678][0-9][0-9])
if [ -x /usr/bin/getconf ]; then
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
case "${sc_cpu_version}" in
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
532) # CPU_PA_RISC2_0
case "${sc_kernel_bits}" in
32) HP_ARCH="hppa2.0n" ;;
64) HP_ARCH="hppa2.0w" ;;
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
esac ;;
esac
fi
if [ "${HP_ARCH}" = "" ]; then
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#define _HPUX_SOURCE
#include
#include
int main ()
{
#if defined(_SC_KERNEL_BITS)
long bits = sysconf(_SC_KERNEL_BITS);
#endif
long cpu = sysconf (_SC_CPU_VERSION);
switch (cpu)
{
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
case CPU_PA_RISC2_0:
#if defined(_SC_KERNEL_BITS)
switch (bits)
{
case 64: puts ("hppa2.0w"); break;
case 32: puts ("hppa2.0n"); break;
default: puts ("hppa2.0"); break;
} break;
#else /* !defined(_SC_KERNEL_BITS) */
puts ("hppa2.0"); break;
#endif
default: puts ("hppa1.0"); break;
}
exit (0);
}
EOF
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
test -z "$HP_ARCH" && HP_ARCH=hppa
fi ;;
esac
if [ ${HP_ARCH} = "hppa2.0w" ]
then
eval $set_cc_for_build
# hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
# 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
# generating 64-bit code. GNU and HP use different nomenclature:
#
# $ CC_FOR_BUILD=cc ./config.guess
# => hppa2.0w-hp-hpux11.23
# $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
# => hppa64-hp-hpux11.23
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
grep -q __LP64__
then
HP_ARCH="hppa2.0w"
else
HP_ARCH="hppa64"
fi
fi
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
exit ;;
ia64:HP-UX:*:*)
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
echo ia64-hp-hpux${HPUX_REV}
exit ;;
3050*:HI-UX:*:*)
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#include
int
main ()
{
long cpu = sysconf (_SC_CPU_VERSION);
/* The order matters, because CPU_IS_HP_MC68K erroneously returns
true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
results, however. */
if (CPU_IS_PA_RISC (cpu))
{
switch (cpu)
{
case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
default: puts ("hppa-hitachi-hiuxwe2"); break;
}
}
else if (CPU_IS_HP_MC68K (cpu))
puts ("m68k-hitachi-hiuxwe2");
else puts ("unknown-hitachi-hiuxwe2");
exit (0);
}
EOF
$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
{ echo "$SYSTEM_NAME"; exit; }
echo unknown-hitachi-hiuxwe2
exit ;;
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
echo hppa1.1-hp-bsd
exit ;;
9000/8??:4.3bsd:*:*)
echo hppa1.0-hp-bsd
exit ;;
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
echo hppa1.0-hp-mpeix
exit ;;
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
echo hppa1.1-hp-osf
exit ;;
hp8??:OSF1:*:*)
echo hppa1.0-hp-osf
exit ;;
i*86:OSF1:*:*)
if [ -x /usr/sbin/sysversion ] ; then
echo ${UNAME_MACHINE}-unknown-osf1mk
else
echo ${UNAME_MACHINE}-unknown-osf1
fi
exit ;;
parisc*:Lites*:*:*)
echo hppa1.1-hp-lites
exit ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
exit ;;
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
exit ;;
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
echo c34-convex-bsd
exit ;;
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
echo c38-convex-bsd
exit ;;
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
exit ;;
CRAY*Y-MP:*:*:*)
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
CRAY*[A-Z]90:*:*:*)
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
-e 's/\.[^.]*$/.X/'
exit ;;
CRAY*TS:*:*:*)
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
CRAY*T3E:*:*:*)
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
CRAY*SV1:*:*:*)
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
*:UNICOS/mp:*:*)
echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit ;;
5000:UNIX_System_V:4.*:*)
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit ;;
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
exit ;;
sparc*:BSD/OS:*:*)
echo sparc-unknown-bsdi${UNAME_RELEASE}
exit ;;
*:BSD/OS:*:*)
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit ;;
*:FreeBSD:*:*)
case ${UNAME_MACHINE} in
pc98)
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
amd64)
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
*)
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
esac
exit ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
exit ;;
*:MINGW*:*)
echo ${UNAME_MACHINE}-pc-mingw32
exit ;;
i*:windows32*:*)
# uname -m includes "-pc" on this system.
echo ${UNAME_MACHINE}-mingw32
exit ;;
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit ;;
*:Interix*:*)
case ${UNAME_MACHINE} in
x86)
echo i586-pc-interix${UNAME_RELEASE}
exit ;;
authenticamd | genuineintel | EM64T)
echo x86_64-unknown-interix${UNAME_RELEASE}
exit ;;
IA64)
echo ia64-unknown-interix${UNAME_RELEASE}
exit ;;
esac ;;
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks
exit ;;
8664:Windows_NT:*)
echo x86_64-pc-mks
exit ;;
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
# UNAME_MACHINE based on the output of uname instead of i386?
echo i586-pc-interix
exit ;;
i*:UWIN*:*)
echo ${UNAME_MACHINE}-pc-uwin
exit ;;
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
echo x86_64-unknown-cygwin
exit ;;
p*:CYGWIN*:*)
echo powerpcle-unknown-cygwin
exit ;;
prep*:SunOS:5.*:*)
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
*:GNU:*:*)
# the GNU system
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit ;;
*:GNU/*:*:*)
# other systems with GNU libc and userland
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
exit ;;
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
EV5) UNAME_MACHINE=alphaev5 ;;
EV56) UNAME_MACHINE=alphaev56 ;;
PCA56) UNAME_MACHINE=alphapca56 ;;
PCA57) UNAME_MACHINE=alphapca56 ;;
EV6) UNAME_MACHINE=alphaev6 ;;
EV67) UNAME_MACHINE=alphaev67 ;;
EV68*) UNAME_MACHINE=alphaev68 ;;
esac
objdump --private-headers /bin/sh | grep -q ld.so.1
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
exit ;;
arm*:Linux:*:*)
eval $set_cc_for_build
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_EABI__
then
echo ${UNAME_MACHINE}-unknown-linux-gnu
else
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
fi
exit ;;
avr32*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
cris:Linux:*:*)
echo cris-axis-linux-gnu
exit ;;
crisv32:Linux:*:*)
echo crisv32-axis-linux-gnu
exit ;;
frv:Linux:*:*)
echo frv-unknown-linux-gnu
exit ;;
i*86:Linux:*:*)
LIBC=gnu
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#ifdef __dietlibc__
LIBC=dietlibc
#endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
exit ;;
ia64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
m32r*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
m68*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
mips:Linux:*:* | mips64:Linux:*:*)
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#undef CPU
#undef ${UNAME_MACHINE}
#undef ${UNAME_MACHINE}el
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
CPU=${UNAME_MACHINE}el
#else
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
CPU=${UNAME_MACHINE}
#else
CPU=
#endif
#endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
;;
or32:Linux:*:*)
echo or32-unknown-linux-gnu
exit ;;
padre:Linux:*:*)
echo sparc-unknown-linux-gnu
exit ;;
parisc64:Linux:*:* | hppa64:Linux:*:*)
echo hppa64-unknown-linux-gnu
exit ;;
parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
PA7*) echo hppa1.1-unknown-linux-gnu ;;
PA8*) echo hppa2.0-unknown-linux-gnu ;;
*) echo hppa-unknown-linux-gnu ;;
esac
exit ;;
ppc64:Linux:*:*)
echo powerpc64-unknown-linux-gnu
exit ;;
ppc:Linux:*:*)
echo powerpc-unknown-linux-gnu
exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
echo ${UNAME_MACHINE}-ibm-linux
exit ;;
sh64*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
sh*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
sparc:Linux:*:* | sparc64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
vax:Linux:*:*)
echo ${UNAME_MACHINE}-dec-linux-gnu
exit ;;
x86_64:Linux:*:*)
echo x86_64-unknown-linux-gnu
exit ;;
xtensa*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
# earlier versions are messed up and put the nodename in both
# sysname and nodename.
echo i386-sequent-sysv4
exit ;;
i*86:UNIX_SV:4.2MP:2.*)
# Unixware is an offshoot of SVR4, but it has its own version
# number series starting with 2...
# I am not positive that other SVR4 systems won't match this,
# I just have to hope. -- rms.
# Use sysv4.2uw... so that sysv4* matches it.
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
exit ;;
i*86:OS/2:*:*)
# If we were able to find `uname', then EMX Unix compatibility
# is probably installed.
echo ${UNAME_MACHINE}-pc-os2-emx
exit ;;
i*86:XTS-300:*:STOP)
echo ${UNAME_MACHINE}-unknown-stop
exit ;;
i*86:atheos:*:*)
echo ${UNAME_MACHINE}-unknown-atheos
exit ;;
i*86:syllable:*:*)
echo ${UNAME_MACHINE}-pc-syllable
exit ;;
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
echo i386-unknown-lynxos${UNAME_RELEASE}
exit ;;
i*86:*DOS:*:*)
echo ${UNAME_MACHINE}-pc-msdosdjgpp
exit ;;
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
else
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
fi
exit ;;
i*86:*:5:[678]*)
# UnixWare 7.x, OpenUNIX and OpenServer 6.
case `/bin/uname -X | grep "^Machine"` in
*486*) UNAME_MACHINE=i486 ;;
*Pentium) UNAME_MACHINE=i586 ;;
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
esac
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
exit ;;
i*86:*:3.2:*)
if test -f /usr/options/cb.name; then
UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then
UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
&& UNAME_MACHINE=i586
(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
&& UNAME_MACHINE=i686
(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
&& UNAME_MACHINE=i686
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
else
echo ${UNAME_MACHINE}-pc-sysv32
fi
exit ;;
pc:*:*:*)
# Left here for compatibility:
# uname -m prints for DJGPP always 'pc', but it prints nothing about
# the processor, so we play safe by assuming i586.
# Note: whatever this is, it MUST be the same as what config.sub
# prints for the "djgpp" host, or else GDB configury will decide that
# this is a cross-build.
echo i586-pc-msdosdjgpp
exit ;;
Intel:Mach:3*:*)
echo i386-pc-mach3
exit ;;
paragon:*:*:*)
echo i860-intel-osf1
exit ;;
i860:*:4.*:*) # i860-SVR4
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
else # Add other i860-SVR4 vendors below as they are discovered.
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
fi
exit ;;
mini*:CTIX:SYS*5:*)
# "miniframe"
echo m68010-convergent-sysv
exit ;;
mc68k:UNIX:SYSTEM5:3.51m)
echo m68k-convergent-sysv
exit ;;
M680?0:D-NIX:5.3:*)
echo m68k-diab-dnix
exit ;;
M68*:*:R3V[5678]*:*)
test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
OS_REL=''
test -r /etc/.relid \
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
&& { echo i486-ncr-sysv4; exit; } ;;
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
OS_REL='.3'
test -r /etc/.relid \
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; }
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
echo m68k-unknown-lynxos${UNAME_RELEASE}
exit ;;
mc68030:UNIX_System_V:4.*:*)
echo m68k-atari-sysv4
exit ;;
TSUNAMI:LynxOS:2.*:*)
echo sparc-unknown-lynxos${UNAME_RELEASE}
exit ;;
rs6000:LynxOS:2.*:*)
echo rs6000-unknown-lynxos${UNAME_RELEASE}
exit ;;
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
echo powerpc-unknown-lynxos${UNAME_RELEASE}
exit ;;
SM[BE]S:UNIX_SV:*:*)
echo mips-dde-sysv${UNAME_RELEASE}
exit ;;
RM*:ReliantUNIX-*:*:*)
echo mips-sni-sysv4
exit ;;
RM*:SINIX-*:*:*)
echo mips-sni-sysv4
exit ;;
*:SINIX-*:*:*)
if uname -p 2>/dev/null >/dev/null ; then
UNAME_MACHINE=`(uname -p) 2>/dev/null`
echo ${UNAME_MACHINE}-sni-sysv4
else
echo ns32k-sni-sysv
fi
exit ;;
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
# says
echo i586-unisys-sysv4
exit ;;
*:UNIX_System_V:4*:FTX*)
# From Gerald Hewes .
# How about differentiating between stratus architectures? -djm
echo hppa1.1-stratus-sysv4
exit ;;
*:*:*:FTX*)
# From seanf@swdc.stratus.com.
echo i860-stratus-sysv4
exit ;;
i*86:VOS:*:*)
# From Paul.Green@stratus.com.
echo ${UNAME_MACHINE}-stratus-vos
exit ;;
*:VOS:*:*)
# From Paul.Green@stratus.com.
echo hppa1.1-stratus-vos
exit ;;
mc68*:A/UX:*:*)
echo m68k-apple-aux${UNAME_RELEASE}
exit ;;
news*:NEWS-OS:6*:*)
echo mips-sony-newsos6
exit ;;
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
if [ -d /usr/nec ]; then
echo mips-nec-sysv${UNAME_RELEASE}
else
echo mips-unknown-sysv${UNAME_RELEASE}
fi
exit ;;
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
echo powerpc-be-beos
exit ;;
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
echo powerpc-apple-beos
exit ;;
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
echo i586-pc-beos
exit ;;
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
echo i586-pc-haiku
exit ;;
SX-4:SUPER-UX:*:*)
echo sx4-nec-superux${UNAME_RELEASE}
exit ;;
SX-5:SUPER-UX:*:*)
echo sx5-nec-superux${UNAME_RELEASE}
exit ;;
SX-6:SUPER-UX:*:*)
echo sx6-nec-superux${UNAME_RELEASE}
exit ;;
SX-7:SUPER-UX:*:*)
echo sx7-nec-superux${UNAME_RELEASE}
exit ;;
SX-8:SUPER-UX:*:*)
echo sx8-nec-superux${UNAME_RELEASE}
exit ;;
SX-8R:SUPER-UX:*:*)
echo sx8r-nec-superux${UNAME_RELEASE}
exit ;;
Power*:Rhapsody:*:*)
echo powerpc-apple-rhapsody${UNAME_RELEASE}
exit ;;
*:Rhapsody:*:*)
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
case $UNAME_PROCESSOR in
i386)
eval $set_cc_for_build
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
grep IS_64BIT_ARCH >/dev/null
then
UNAME_PROCESSOR="x86_64"
fi
fi ;;
unknown) UNAME_PROCESSOR=powerpc ;;
esac
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
exit ;;
*:procnto*:*:* | *:QNX:[0123456789]*:*)
UNAME_PROCESSOR=`uname -p`
if test "$UNAME_PROCESSOR" = "x86"; then
UNAME_PROCESSOR=i386
UNAME_MACHINE=pc
fi
echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
exit ;;
*:QNX:*:4*)
echo i386-pc-qnx
exit ;;
NSE-?:NONSTOP_KERNEL:*:*)
echo nse-tandem-nsk${UNAME_RELEASE}
exit ;;
NSR-?:NONSTOP_KERNEL:*:*)
echo nsr-tandem-nsk${UNAME_RELEASE}
exit ;;
*:NonStop-UX:*:*)
echo mips-compaq-nonstopux
exit ;;
BS2000:POSIX*:*:*)
echo bs2000-siemens-sysv
exit ;;
DS/*:UNIX_System_V:*:*)
echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
exit ;;
*:Plan9:*:*)
# "uname -m" is not consistent, so use $cputype instead. 386
# is converted to i386 for consistency with other x86
# operating systems.
if test "$cputype" = "386"; then
UNAME_MACHINE=i386
else
UNAME_MACHINE="$cputype"
fi
echo ${UNAME_MACHINE}-unknown-plan9
exit ;;
*:TOPS-10:*:*)
echo pdp10-unknown-tops10
exit ;;
*:TENEX:*:*)
echo pdp10-unknown-tenex
exit ;;
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
echo pdp10-dec-tops20
exit ;;
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
echo pdp10-xkl-tops20
exit ;;
*:TOPS-20:*:*)
echo pdp10-unknown-tops20
exit ;;
*:ITS:*:*)
echo pdp10-unknown-its
exit ;;
SEI:*:*:SEIUX)
echo mips-sei-seiux${UNAME_RELEASE}
exit ;;
*:DragonFly:*:*)
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit ;;
*:*VMS:*:*)
UNAME_MACHINE=`(uname -p) 2>/dev/null`
case "${UNAME_MACHINE}" in
A*) echo alpha-dec-vms ; exit ;;
I*) echo ia64-dec-vms ; exit ;;
V*) echo vax-dec-vms ; exit ;;
esac ;;
*:XENIX:*:SysV)
echo i386-pc-xenix
exit ;;
i*86:skyos:*:*)
echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
exit ;;
i*86:rdos:*:*)
echo ${UNAME_MACHINE}-pc-rdos
exit ;;
i*86:AROS:*:*)
echo ${UNAME_MACHINE}-pc-aros
exit ;;
esac
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
eval $set_cc_for_build
cat >$dummy.c <
# include
#endif
main ()
{
#if defined (sony)
#if defined (MIPSEB)
/* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
I don't know.... */
printf ("mips-sony-bsd\n"); exit (0);
#else
#include
printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
"4"
#else
""
#endif
); exit (0);
#endif
#endif
#if defined (__arm) && defined (__acorn) && defined (__unix)
printf ("arm-acorn-riscix\n"); exit (0);
#endif
#if defined (hp300) && !defined (hpux)
printf ("m68k-hp-bsd\n"); exit (0);
#endif
#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
int version;
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
if (version < 4)
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
else
printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
exit (0);
#endif
#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
printf ("ns32k-encore-mach\n"); exit (0);
#else
printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif
#if defined (__386BSD__)
printf ("i386-pc-bsd\n"); exit (0);
#endif
#if defined (sequent)
#if defined (i386)
printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif
#if defined (_SEQUENT_)
struct utsname un;
uname(&un);
if (strncmp(un.version, "V2", 2) == 0) {
printf ("i386-sequent-ptx2\n"); exit (0);
}
if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
printf ("i386-sequent-ptx1\n"); exit (0);
}
printf ("i386-sequent-ptx\n"); exit (0);
#endif
#if defined (vax)
# if !defined (ultrix)
# include
# if defined (BSD)
# if BSD == 43
printf ("vax-dec-bsd4.3\n"); exit (0);
# else
# if BSD == 199006
printf ("vax-dec-bsd4.3reno\n"); exit (0);
# else
printf ("vax-dec-bsd\n"); exit (0);
# endif
# endif
# else
printf ("vax-dec-bsd\n"); exit (0);
# endif
# else
printf ("vax-dec-ultrix\n"); exit (0);
# endif
#endif
#if defined (alliant) && defined (i860)
printf ("i860-alliant-bsd\n"); exit (0);
#endif
exit (1);
}
EOF
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
{ echo "$SYSTEM_NAME"; exit; }
# Apollos put the system type in the environment.
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
# Convex versions that predate uname can use getsysinfo(1)
if [ -x /usr/convex/getsysinfo ]
then
case `getsysinfo -f cpu_type` in
c1*)
echo c1-convex-bsd
exit ;;
c2*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
exit ;;
c34*)
echo c34-convex-bsd
exit ;;
c38*)
echo c38-convex-bsd
exit ;;
c4*)
echo c4-convex-bsd
exit ;;
esac
fi
cat >&2 < in order to provide the needed
information to handle your system.
config.guess timestamp = $timestamp
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
hostinfo = `(hostinfo) 2>/dev/null`
/bin/universe = `(/bin/universe) 2>/dev/null`
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
/bin/arch = `(/bin/arch) 2>/dev/null`
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
UNAME_MACHINE = ${UNAME_MACHINE}
UNAME_RELEASE = ${UNAME_RELEASE}
UNAME_SYSTEM = ${UNAME_SYSTEM}
UNAME_VERSION = ${UNAME_VERSION}
EOF
exit 1
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
gle-graphics-4.2.4c/platform/autopackage/gle.png 0000664 0000000 0000000 00000003443 11405446017 020324 0 ustar root root ‰PNG
IHDR 0 0 Wù‡ bKGD ùC» pHYs d_‘ vpAg 0 0 ÎîŒW IDAThÞÝš{LSWÇ?·¥´PpP©Š Ë|%s¢Ã™ Ì(¾0‹sêtfÿ¸?æÜœf1™™QÅ-Y|ÄeËœèj¦›f¾V¦13€º©ƒ‰¥oÚ»?n^oK)`+û&'ýÝß9ç×ï÷žsÏ=+ÐBàC H|<[P
ÀwÀNàA`æ|¿C$é0®“ü í ÕÃÕÀÀèX÷>`` k6}Äu©9+ìªX3è'¼=v
²Rº5¶9EšìRƒ Õ½{±URÀ4àã9zf˜5]¾†6»ªÝTýîbÛv‘´4˜9Ìfؾ]*³É?¶ëàÝÐ
>'˜Y˂滅2\B¥Ì·ôÀRšíÍÁÀ2`+ ˜Ô 8;D<^1DÅÆbïÏS‘6ÇÎO§¤:6dgKBöˆ@§ ïù&%™13)É žï²p¨Še>ZºF;ü¶µ]u³ù‚‹ûí>VOÖòÑTiCTwùî]((€ª*à€`sÃ=¨®~‹–zŒéöýXj$»ðùF&d_À˜d$whnвÄo Šþt ,AñY[¤½ûõ¢èC