summaryrefslogtreecommitdiff
path: root/source3/configure
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-27 03:00:39 +0000
committerJeremy Allison <jra@samba.org>2002-03-27 03:00:39 +0000
commit7d7c594644d9b374e522f208b1f0bd5ab8abb9ab (patch)
treec197c1ed507014055f027cf0ace873e11ac3caca /source3/configure
parent1a06eeb6dae9b148a6e70470660e51a42def2399 (diff)
downloadsamba-7d7c594644d9b374e522f208b1f0bd5ab8abb9ab.tar.gz
samba-7d7c594644d9b374e522f208b1f0bd5ab8abb9ab.tar.bz2
samba-7d7c594644d9b374e522f208b1f0bd5ab8abb9ab.zip
Removed HAVE_LIBDL from most places (except system.c). Added checks for
dlopen & friends into configure.in. This should help building on *BSD where dl*** calls are in libc. Jeremy (This used to be commit ac1baba35d7a399bf800ced49a4384e39955e3eb)
Diffstat (limited to 'source3/configure')
-rwxr-xr-xsource3/configure20
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/configure b/source3/configure
index 5d4b975c45..22650c1da7 100755
--- a/source3/configure
+++ b/source3/configure
@@ -2617,12 +2617,12 @@ else
#line 2618 "configure"
#include "confdefs.h"
#include <stdio.h>
-int main()
+main()
{
FILE *f=fopen("conftestval", "w");
- if (!f) return(1);
+ if (!f) exit(1);
fprintf(f, "%d\n", sizeof(int));
- return(0);
+ exit(0);
}
EOF
if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
@@ -2656,12 +2656,12 @@ else
#line 2657 "configure"
#include "confdefs.h"
#include <stdio.h>
-int main()
+main()
{
FILE *f=fopen("conftestval", "w");
- if (!f) return(1);
+ if (!f) exit(1);
fprintf(f, "%d\n", sizeof(long));
- return(0);
+ exit(0);
}
EOF
if { (eval echo configure:2668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
@@ -2695,12 +2695,12 @@ else
#line 2696 "configure"
#include "confdefs.h"
#include <stdio.h>
-int main()
+main()
{
FILE *f=fopen("conftestval", "w");
- if (!f) return(1);
+ if (!f) exit(1);
fprintf(f, "%d\n", sizeof(short));
- return(0);
+ exit(0);
}
EOF
if { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
@@ -5175,7 +5175,7 @@ else
RUNPROG=""
fi
-for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
+for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5182: checking for $ac_func" >&5