configured libhfs
This commit is contained in:
parent
305abb1fa5
commit
da79fe1c8e
|
@ -0,0 +1,143 @@
|
|||
# Generated automatically from Makefile.in by configure.
|
||||
#
|
||||
# libhfs - library for reading and writing Macintosh HFS volumes
|
||||
# Copyright (C) 1996-1998 Robert Leslie
|
||||
#
|
||||
# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
#
|
||||
# $Id: Makefile.in,v 1.11 1998/11/02 22:08:51 rob Exp $
|
||||
#
|
||||
|
||||
|
||||
src = .
|
||||
|
||||
### USER CUSTOMIZATIONS FOLLOW ################################################
|
||||
|
||||
prefix = /usr/local
|
||||
exec_prefix = ${prefix}
|
||||
|
||||
MANDEST = ${prefix}/man
|
||||
|
||||
INCDEST = ${prefix}/include
|
||||
LIBDEST = ${exec_prefix}/lib
|
||||
|
||||
INSTALL = /usr/local/bin/ginstall -c
|
||||
LIBINSTALL = ${INSTALL} -m 644
|
||||
SOFTLINK = ln -s
|
||||
|
||||
OS = unix
|
||||
|
||||
CC = gcc
|
||||
INCLUDES =
|
||||
DEFINES = -DHAVE_CONFIG_H
|
||||
LIBOBJS =
|
||||
LIBS =
|
||||
|
||||
COPTS = -g -O2
|
||||
LDOPTS =
|
||||
|
||||
AR = ar rc
|
||||
RANLIB = ranlib
|
||||
|
||||
### END OF USER CUSTOMIZATION #################################################
|
||||
|
||||
CFLAGS = $(COPTS) $(INCLUDES) $(DEFINES)
|
||||
LDFLAGS = $(LDOPTS)
|
||||
|
||||
###############################################################################
|
||||
|
||||
TARGETS = $(HFSTARGET)
|
||||
|
||||
HFSTARGET = libhfs.a
|
||||
HFSOBJS = os.o data.o block.o low.o medium.o file.o btree.o node.o \
|
||||
record.o volume.o hfs.o version.o $(LIBOBJS)
|
||||
|
||||
###############################################################################
|
||||
|
||||
all :: $(TARGETS)
|
||||
|
||||
check :: all
|
||||
@echo "No self-tests available."
|
||||
|
||||
install ::
|
||||
$(LIBINSTALL) libhfs.a "$(LIBDEST)/."
|
||||
$(LIBINSTALL) hfs.h "$(INCDEST)/."
|
||||
|
||||
again :: clean all
|
||||
|
||||
depend ::
|
||||
( sed -n '1,/^### DEPEND/p' Makefile.in; \
|
||||
echo; \
|
||||
$(CC) -MM $(INCLUDES) $(DEFINES) *.c; \
|
||||
) > Makefile.in.new
|
||||
mv -f Makefile.in.new Makefile.in
|
||||
|
||||
clean ::
|
||||
rm -f $(TARGETS) *.o gmon.* core
|
||||
|
||||
distclean :: clean
|
||||
rm -f config.status config.cache config.log config.h Makefile
|
||||
|
||||
maintainer-clean :: distclean
|
||||
rm -f config.h.in configure
|
||||
|
||||
###############################################################################
|
||||
|
||||
Makefile: config.status
|
||||
./config.status && touch .stamp/config.h
|
||||
|
||||
.stamp/config.h: config.status
|
||||
./config.status && touch .stamp/config.h
|
||||
|
||||
config.status: .stamp/configure .stamp/config.h.in Makefile.in
|
||||
./config.status --recheck
|
||||
|
||||
.stamp/configure: configure.in
|
||||
autoconf && touch .stamp/configure
|
||||
|
||||
.stamp/config.h.in: configure.in acconfig.h
|
||||
autoheader && touch .stamp/config.h.in
|
||||
|
||||
###############################################################################
|
||||
|
||||
$(HFSTARGET): $(HFSOBJS)
|
||||
$(AR) $@ $(HFSOBJS)
|
||||
$(RANLIB) $@
|
||||
|
||||
os.c: os/$(OS).c
|
||||
rm -f $@
|
||||
$(SOFTLINK) os/$(OS).c $@
|
||||
|
||||
### DEPENDENCIES FOLLOW #######################################################
|
||||
|
||||
block.o: block.c config.h libhfs.h hfs.h apple.h volume.h block.h os.h
|
||||
btree.o: btree.c config.h libhfs.h hfs.h apple.h btree.h data.h file.h \
|
||||
block.h node.h
|
||||
data.o: data.c config.h data.h
|
||||
file.o: file.c config.h libhfs.h hfs.h apple.h file.h btree.h record.h \
|
||||
volume.h
|
||||
hfs.o: hfs.c config.h libhfs.h hfs.h apple.h data.h block.h medium.h \
|
||||
file.h btree.h node.h record.h volume.h
|
||||
low.o: low.c config.h libhfs.h hfs.h apple.h low.h data.h block.h \
|
||||
file.h
|
||||
medium.o: medium.c config.h libhfs.h hfs.h apple.h block.h low.h \
|
||||
medium.h
|
||||
memcmp.o: memcmp.c config.h
|
||||
node.o: node.c config.h libhfs.h hfs.h apple.h node.h data.h btree.h
|
||||
os.o: os.c config.h libhfs.h hfs.h apple.h os.h
|
||||
record.o: record.c config.h libhfs.h hfs.h apple.h record.h data.h
|
||||
version.o: version.c version.h
|
||||
volume.o: volume.c config.h libhfs.h hfs.h apple.h volume.h data.h \
|
||||
block.h low.h medium.h file.h btree.h record.h os.h
|
|
@ -0,0 +1,33 @@
|
|||
# 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. It is not useful on other systems.
|
||||
# If it contains results you don't want to keep, you may remove or edit it.
|
||||
#
|
||||
# By default, configure uses ./config.cache as the cache file,
|
||||
# creating it if it does not exist already. You can give configure
|
||||
# the --cache-file=FILE option to use a different cache file; that is
|
||||
# what configure does when it calls configure scripts in
|
||||
# subdirectories, so they share the cache.
|
||||
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
||||
# config.status only pays attention to the cache file if you give it the
|
||||
# --recheck option to rerun configure.
|
||||
#
|
||||
ac_cv_c_const=${ac_cv_c_const=yes}
|
||||
ac_cv_func_memcmp_clean=${ac_cv_func_memcmp_clean=yes}
|
||||
ac_cv_func_mktime=${ac_cv_func_mktime=yes}
|
||||
ac_cv_header_fcntl_h=${ac_cv_header_fcntl_h=yes}
|
||||
ac_cv_header_stdc=${ac_cv_header_stdc=yes}
|
||||
ac_cv_header_unistd_h=${ac_cv_header_unistd_h=yes}
|
||||
ac_cv_path_install=${ac_cv_path_install='/usr/local/bin/ginstall -c'}
|
||||
ac_cv_prog_CC=${ac_cv_prog_CC=gcc}
|
||||
ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'}
|
||||
ac_cv_prog_LN_S=${ac_cv_prog_LN_S='ln -s'}
|
||||
ac_cv_prog_RANLIB=${ac_cv_prog_RANLIB=ranlib}
|
||||
ac_cv_prog_cc_cross=${ac_cv_prog_cc_cross=no}
|
||||
ac_cv_prog_cc_g=${ac_cv_prog_cc_g=yes}
|
||||
ac_cv_prog_cc_works=${ac_cv_prog_cc_works=yes}
|
||||
ac_cv_prog_gcc=${ac_cv_prog_gcc=yes}
|
||||
ac_cv_prog_gcc_traditional=${ac_cv_prog_gcc_traditional=no}
|
||||
ac_cv_prog_make_make_set=${ac_cv_prog_make_make_set=yes}
|
||||
ac_cv_struct_tm=${ac_cv_struct_tm=time.h}
|
||||
ac_cv_type_size_t=${ac_cv_type_size_t=yes}
|
|
@ -0,0 +1,58 @@
|
|||
/* config.h. Generated automatically by configure. */
|
||||
/* config.h.in. Generated automatically from configure.in by autoheader. */
|
||||
/*
|
||||
* libhfs - library for reading and writing Macintosh HFS volumes
|
||||
* Copyright (C) 1996-1998 Robert Leslie
|
||||
*
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Id: acconfig.h,v 1.5 1998/04/11 08:27:11 rob Exp $
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
* Definitions selected automatically by `configure' *
|
||||
*****************************************************************************/
|
||||
|
||||
/* Define to empty if the keyword does not work. */
|
||||
/* #undef const */
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> doesn't define. */
|
||||
/* #undef size_t */
|
||||
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define if your <sys/time.h> declares struct tm. */
|
||||
/* #undef TM_IN_SYS_TIME */
|
||||
|
||||
/* Define if you want to enable diagnostic debugging support. */
|
||||
/* #undef DEBUG */
|
||||
|
||||
/* Define if you have the mktime function. */
|
||||
#define HAVE_MKTIME 1
|
||||
|
||||
/* Define if you have the <fcntl.h> header file. */
|
||||
#define HAVE_FCNTL_H 1
|
||||
|
||||
/* Define if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/*****************************************************************************
|
||||
* End of automatically configured definitions *
|
||||
*****************************************************************************/
|
||||
|
||||
# ifdef DEBUG
|
||||
# include <stdio.h>
|
||||
# endif
|
|
@ -0,0 +1,62 @@
|
|||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
configure:543: checking whether make sets ${MAKE}
|
||||
configure:572: checking for gcc
|
||||
configure:649: checking whether the C compiler (gcc ) works
|
||||
configure:663: gcc -o conftest conftest.c 1>&5
|
||||
configure:660:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
|
||||
main(){return(0);}
|
||||
^
|
||||
1 warning generated.
|
||||
configure:683: checking whether the C compiler (gcc ) is a cross-compiler
|
||||
configure:688: checking whether we are using GNU C
|
||||
configure:697: gcc -E conftest.c
|
||||
configure:712: checking whether gcc accepts -g
|
||||
configure:769: checking for a BSD compatible install
|
||||
configure:821: checking for ranlib
|
||||
configure:848: checking whether ln -s works
|
||||
configure:870: checking how to run the C preprocessor
|
||||
configure:891: gcc -E conftest.c >/dev/null 2>conftest.out
|
||||
configure:932: checking whether gcc needs -traditional
|
||||
configure:957:10: fatal error: 'termio.h' file not found
|
||||
#include <termio.h>
|
||||
^~~~~~~~~~
|
||||
1 error generated.
|
||||
configure:980: checking for ANSI C header files
|
||||
configure:993: gcc -E conftest.c >/dev/null 2>conftest.out
|
||||
configure:1060: gcc -o conftest -g -O2 conftest.c 1>&5
|
||||
configure:1055:67: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
|
||||
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
||||
^
|
||||
configure:1055:67: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
|
||||
1 warning generated.
|
||||
configure:1087: checking for unistd.h
|
||||
configure:1097: gcc -E conftest.c >/dev/null 2>conftest.out
|
||||
configure:1087: checking for fcntl.h
|
||||
configure:1097: gcc -E conftest.c >/dev/null 2>conftest.out
|
||||
configure:1126: checking for size_t
|
||||
configure:1159: checking whether struct tm is in sys/time.h or time.h
|
||||
configure:1172: gcc -c -g -O2 conftest.c 1>&5
|
||||
configure:1168:20: warning: expression result unused [-Wunused-value]
|
||||
struct tm *tp; tp->tm_sec;
|
||||
~~ ^~~~~~
|
||||
1 warning generated.
|
||||
configure:1194: checking for working const
|
||||
configure:1248: gcc -c -g -O2 conftest.c 1>&5
|
||||
configure:1271: checking for 8-bit clean memcmp
|
||||
configure:1289: gcc -o conftest -g -O2 conftest.c 1>&5
|
||||
configure:1281:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
|
||||
main()
|
||||
^
|
||||
configure:1284:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
|
||||
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
|
||||
^
|
||||
configure:1284:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
|
||||
configure:1284:8: warning: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
|
||||
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
|
||||
^
|
||||
configure:1284:8: note: include the header <string.h> or explicitly provide a declaration for 'memcmp'
|
||||
3 warnings generated.
|
||||
configure:1309: checking for mktime
|
||||
configure:1337: gcc -o conftest -g -O2 conftest.c 1>&5
|
|
@ -0,0 +1,241 @@
|
|||
#! /bin/sh
|
||||
# Generated automatically by configure.
|
||||
# Run this file to recreate the current configuration.
|
||||
# This directory was configured as follows,
|
||||
# on host ElBook:
|
||||
#
|
||||
# ./configure
|
||||
#
|
||||
# Compiler output produced by configure, useful for debugging
|
||||
# configure, is in ./config.log if it exists.
|
||||
|
||||
ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]"
|
||||
for ac_option
|
||||
do
|
||||
case "$ac_option" in
|
||||
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
||||
echo "running ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion"
|
||||
exec ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion ;;
|
||||
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
||||
echo "./config.status generated by autoconf version 2.12"
|
||||
exit 0 ;;
|
||||
-help | --help | --hel | --he | --h)
|
||||
echo "$ac_cs_usage"; exit 0 ;;
|
||||
*) echo "$ac_cs_usage"; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
ac_given_srcdir=.
|
||||
ac_given_INSTALL="/usr/local/bin/ginstall -c"
|
||||
|
||||
trap 'rm -fr Makefile config.h conftest*; exit 1' 1 2 15
|
||||
|
||||
# Protect against being on the right side of a sed subst in config.status.
|
||||
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
|
||||
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
|
||||
/^[ ]*VPATH[ ]*=[^:]*$/d
|
||||
|
||||
s%@CFLAGS@%-g -O2%g
|
||||
s%@CPPFLAGS@%%g
|
||||
s%@CXXFLAGS@%%g
|
||||
s%@DEFS@%-DHAVE_CONFIG_H%g
|
||||
s%@LDFLAGS@%%g
|
||||
s%@LIBS@%%g
|
||||
s%@exec_prefix@%${prefix}%g
|
||||
s%@prefix@%/usr/local%g
|
||||
s%@program_transform_name@%s,x,x,%g
|
||||
s%@bindir@%${exec_prefix}/bin%g
|
||||
s%@sbindir@%${exec_prefix}/sbin%g
|
||||
s%@libexecdir@%${exec_prefix}/libexec%g
|
||||
s%@datadir@%${prefix}/share%g
|
||||
s%@sysconfdir@%${prefix}/etc%g
|
||||
s%@sharedstatedir@%${prefix}/com%g
|
||||
s%@localstatedir@%${prefix}/var%g
|
||||
s%@libdir@%${exec_prefix}/lib%g
|
||||
s%@includedir@%${prefix}/include%g
|
||||
s%@oldincludedir@%/usr/include%g
|
||||
s%@infodir@%${prefix}/info%g
|
||||
s%@mandir@%${prefix}/man%g
|
||||
s%@SET_MAKE@%%g
|
||||
s%@CC@%gcc%g
|
||||
s%@INSTALL_PROGRAM@%${INSTALL}%g
|
||||
s%@INSTALL_DATA@%${INSTALL} -m 644%g
|
||||
s%@RANLIB@%ranlib%g
|
||||
s%@LN_S@%ln -s%g
|
||||
s%@CPP@%gcc -E%g
|
||||
s%@LIBOBJS@%%g
|
||||
|
||||
CEOF
|
||||
|
||||
# Split the substitutions into bite-sized pieces for seds with
|
||||
# small command number limits, like on Digital OSF/1 and HP-UX.
|
||||
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
||||
ac_file=1 # Number of current file.
|
||||
ac_beg=1 # First line for current file.
|
||||
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
||||
ac_more_lines=:
|
||||
ac_sed_cmds=""
|
||||
while $ac_more_lines; do
|
||||
if test $ac_beg -gt 1; then
|
||||
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
||||
else
|
||||
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
||||
fi
|
||||
if test ! -s conftest.s$ac_file; then
|
||||
ac_more_lines=false
|
||||
rm -f conftest.s$ac_file
|
||||
else
|
||||
if test -z "$ac_sed_cmds"; then
|
||||
ac_sed_cmds="sed -f conftest.s$ac_file"
|
||||
else
|
||||
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
||||
fi
|
||||
ac_file=`expr $ac_file + 1`
|
||||
ac_beg=$ac_end
|
||||
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
||||
fi
|
||||
done
|
||||
if test -z "$ac_sed_cmds"; then
|
||||
ac_sed_cmds=cat
|
||||
fi
|
||||
|
||||
CONFIG_FILES=${CONFIG_FILES-"Makefile"}
|
||||
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
||||
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
||||
case "$ac_file" in
|
||||
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
||||
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
||||
*) ac_file_in="${ac_file}.in" ;;
|
||||
esac
|
||||
|
||||
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
||||
|
||||
# Remove last slash and all that follows it. Not all systems have dirname.
|
||||
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
||||
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
||||
# The file is in a subdirectory.
|
||||
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
||||
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
||||
# A "../" for each directory in $ac_dir_suffix.
|
||||
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
||||
else
|
||||
ac_dir_suffix= ac_dots=
|
||||
fi
|
||||
|
||||
case "$ac_given_srcdir" in
|
||||
.) srcdir=.
|
||||
if test -z "$ac_dots"; then top_srcdir=.
|
||||
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
||||
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
||||
*) # Relative path.
|
||||
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
||||
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
||||
esac
|
||||
|
||||
case "$ac_given_INSTALL" in
|
||||
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
||||
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
||||
esac
|
||||
|
||||
echo creating "$ac_file"
|
||||
rm -f "$ac_file"
|
||||
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
||||
case "$ac_file" in
|
||||
*Makefile*) ac_comsub="1i\\
|
||||
# $configure_input" ;;
|
||||
*) ac_comsub= ;;
|
||||
esac
|
||||
|
||||
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
||||
sed -e "$ac_comsub
|
||||
s%@configure_input@%$configure_input%g
|
||||
s%@srcdir@%$srcdir%g
|
||||
s%@top_srcdir@%$top_srcdir%g
|
||||
s%@INSTALL@%$INSTALL%g
|
||||
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
||||
fi; done
|
||||
rm -f conftest.s*
|
||||
|
||||
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
||||
# NAME is the cpp macro being defined and VALUE is the value it is being given.
|
||||
#
|
||||
# ac_d sets the value in "#define NAME VALUE" lines.
|
||||
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
||||
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
||||
ac_dC='\3'
|
||||
ac_dD='%g'
|
||||
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
||||
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
||||
ac_uB='\([ ]\)%\1#\2define\3'
|
||||
ac_uC=' '
|
||||
ac_uD='\4%g'
|
||||
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
||||
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
||||
ac_eB='$%\1#\2define\3'
|
||||
ac_eC=' '
|
||||
ac_eD='%g'
|
||||
|
||||
if test "${CONFIG_HEADERS+set}" != set; then
|
||||
CONFIG_HEADERS="config.h"
|
||||
fi
|
||||
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
||||
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
||||
case "$ac_file" in
|
||||
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
||||
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
||||
*) ac_file_in="${ac_file}.in" ;;
|
||||
esac
|
||||
|
||||
echo creating $ac_file
|
||||
|
||||
rm -f conftest.frag conftest.in conftest.out
|
||||
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
||||
cat $ac_file_inputs > conftest.in
|
||||
|
||||
cat > conftest.frag <<CEOF
|
||||
${ac_dA}STDC_HEADERS${ac_dB}STDC_HEADERS${ac_dC}1${ac_dD}
|
||||
${ac_uA}STDC_HEADERS${ac_uB}STDC_HEADERS${ac_uC}1${ac_uD}
|
||||
${ac_eA}STDC_HEADERS${ac_eB}STDC_HEADERS${ac_eC}1${ac_eD}
|
||||
${ac_dA}HAVE_UNISTD_H${ac_dB}HAVE_UNISTD_H${ac_dC}1${ac_dD}
|
||||
${ac_uA}HAVE_UNISTD_H${ac_uB}HAVE_UNISTD_H${ac_uC}1${ac_uD}
|
||||
${ac_eA}HAVE_UNISTD_H${ac_eB}HAVE_UNISTD_H${ac_eC}1${ac_eD}
|
||||
${ac_dA}HAVE_FCNTL_H${ac_dB}HAVE_FCNTL_H${ac_dC}1${ac_dD}
|
||||
${ac_uA}HAVE_FCNTL_H${ac_uB}HAVE_FCNTL_H${ac_uC}1${ac_uD}
|
||||
${ac_eA}HAVE_FCNTL_H${ac_eB}HAVE_FCNTL_H${ac_eC}1${ac_eD}
|
||||
${ac_dA}HAVE_MKTIME${ac_dB}HAVE_MKTIME${ac_dC}1${ac_dD}
|
||||
${ac_uA}HAVE_MKTIME${ac_uB}HAVE_MKTIME${ac_uC}1${ac_uD}
|
||||
${ac_eA}HAVE_MKTIME${ac_eB}HAVE_MKTIME${ac_eC}1${ac_eD}
|
||||
CEOF
|
||||
sed -f conftest.frag conftest.in > conftest.out
|
||||
rm -f conftest.in
|
||||
mv conftest.out conftest.in
|
||||
|
||||
cat > conftest.frag <<CEOF
|
||||
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
||||
CEOF
|
||||
sed -f conftest.frag conftest.in > conftest.out
|
||||
rm -f conftest.in
|
||||
mv conftest.out conftest.in
|
||||
|
||||
rm -f conftest.frag conftest.h
|
||||
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
||||
cat conftest.in >> conftest.h
|
||||
rm -f conftest.in
|
||||
if cmp -s $ac_file conftest.h 2>/dev/null; then
|
||||
echo "$ac_file is unchanged"
|
||||
rm -f conftest.h
|
||||
else
|
||||
# Remove last slash and all that follows it. Not all systems have dirname.
|
||||
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
||||
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
||||
# The file is in a subdirectory.
|
||||
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
||||
fi
|
||||
rm -f $ac_file
|
||||
mv conftest.h $ac_file
|
||||
fi
|
||||
fi; done
|
||||
|
||||
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue