summaryrefslogtreecommitdiff
path: root/config/auto-aux
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2004-04-09 13:23:11 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2004-04-09 13:23:11 +0000
commitb9ba49e3101057a1197e5a3cad2ac66abdb0ed9b (patch)
tree1fb520e4c0ddfc3fd0892b7f5ef79586524e94de /config/auto-aux
parentbb4028ab61127548e61da1d9e87d9f6936a1a1d8 (diff)
downloadocaml-b9ba49e3101057a1197e5a3cad2ac66abdb0ed9b.tar.gz
Permettre de tester l'existence d'une struct ou d'une union
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6192 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'config/auto-aux')
-rwxr-xr-xconfig/auto-aux/hasgot3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/auto-aux/hasgot b/config/auto-aux/hasgot
index 99384768a9..5014b903d7 100755
--- a/config/auto-aux/hasgot
+++ b/config/auto-aux/hasgot
@@ -4,10 +4,11 @@ opts=""
libs="$cclibs"
args=$*
rm -f hasgot.c
+var="x"
while : ; do
case "$1" in
-i) echo "#include <$2>" >> hasgot.c; shift;;
- -t) echo "$2 the_$2;" >> hasgot.c; shift;;
+ -t) echo "$2 $var;" >> hasgot.c; var="x$var"; shift;;
-l*|-L*|-F*) libs="$libs $1";;
-framework) libs="$libs $1 $2"; shift;;
-*) opts="$opts $1";;