Ignore:
Timestamp:
2008-05-18T22:19:28+12:00 (16 years ago)
Author:
davidb
Message:

Addition of COMPAT32BITFLAGS so mg and mgpp can compile on a 64-bit machine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indexers/trunk/mg/configure

    r10917 r15560  
    310310#endif"
    311311
    312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LTLIBOBJS'
     312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os PACKAGE VERSION COMPAT32BITFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LTLIBOBJS'
    313313ac_subst_files=''
    314314
     
    844844  --program-suffix=SUFFIX            append SUFFIX to installed program names
    845845  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     846
     847System types:
     848  --build=BUILD     configure for building on BUILD [guessed]
     849  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
     850  --target=TARGET   configure for building compilers for TARGET [HOST]
    846851_ACEOF
    847852fi
     
    13091314          ac_config_headers="$ac_config_headers config.h"
    13101315
     1316
     1317ac_aux_dir=
     1318for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     1319  if test -f $ac_dir/install-sh; then
     1320    ac_aux_dir=$ac_dir
     1321    ac_install_sh="$ac_aux_dir/install-sh -c"
     1322    break
     1323  elif test -f $ac_dir/install.sh; then
     1324    ac_aux_dir=$ac_dir
     1325    ac_install_sh="$ac_aux_dir/install.sh -c"
     1326    break
     1327  elif test -f $ac_dir/shtool; then
     1328    ac_aux_dir=$ac_dir
     1329    ac_install_sh="$ac_aux_dir/shtool install -c"
     1330    break
     1331  fi
     1332done
     1333if test -z "$ac_aux_dir"; then
     1334  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     1335echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     1336   { (exit 1); exit 1; }; }
     1337fi
     1338ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     1339ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     1340ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     1341
     1342# Make sure we can run config.sub.
     1343$ac_config_sub sun4 >/dev/null 2>&1 ||
     1344  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     1345echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     1346   { (exit 1); exit 1; }; }
     1347
     1348echo "$as_me:$LINENO: checking build system type" >&5
     1349echo $ECHO_N "checking build system type... $ECHO_C" >&6
     1350if test "${ac_cv_build+set}" = set; then
     1351  echo $ECHO_N "(cached) $ECHO_C" >&6
     1352else
     1353  ac_cv_build_alias=$build_alias
     1354test -z "$ac_cv_build_alias" &&
     1355  ac_cv_build_alias=`$ac_config_guess`
     1356test -z "$ac_cv_build_alias" &&
     1357  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     1358echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     1359   { (exit 1); exit 1; }; }
     1360ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     1361  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     1362echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     1363   { (exit 1); exit 1; }; }
     1364
     1365fi
     1366echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     1367echo "${ECHO_T}$ac_cv_build" >&6
     1368build=$ac_cv_build
     1369build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1370build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1371build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1372
     1373
     1374echo "$as_me:$LINENO: checking host system type" >&5
     1375echo $ECHO_N "checking host system type... $ECHO_C" >&6
     1376if test "${ac_cv_host+set}" = set; then
     1377  echo $ECHO_N "(cached) $ECHO_C" >&6
     1378else
     1379  ac_cv_host_alias=$host_alias
     1380test -z "$ac_cv_host_alias" &&
     1381  ac_cv_host_alias=$ac_cv_build_alias
     1382ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     1383  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     1384echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
     1385   { (exit 1); exit 1; }; }
     1386
     1387fi
     1388echo "$as_me:$LINENO: result: $ac_cv_host" >&5
     1389echo "${ECHO_T}$ac_cv_host" >&6
     1390host=$ac_cv_host
     1391host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1392host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1393host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1394
     1395
     1396echo "$as_me:$LINENO: checking target system type" >&5
     1397echo $ECHO_N "checking target system type... $ECHO_C" >&6
     1398if test "${ac_cv_target+set}" = set; then
     1399  echo $ECHO_N "(cached) $ECHO_C" >&6
     1400else
     1401  ac_cv_target_alias=$target_alias
     1402test "x$ac_cv_target_alias" = "x" &&
     1403  ac_cv_target_alias=$ac_cv_host_alias
     1404ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
     1405  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
     1406echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
     1407   { (exit 1); exit 1; }; }
     1408
     1409fi
     1410echo "$as_me:$LINENO: result: $ac_cv_target" >&5
     1411echo "${ECHO_T}$ac_cv_target" >&6
     1412target=$ac_cv_target
     1413target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1414target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1415target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1416
     1417
     1418# The aliases save the names the user supplied, while $host etc.
     1419# will get canonicalized.
     1420test -n "$target_alias" &&
     1421  test "$program_prefix$program_suffix$program_transform_name" = \
     1422    NONENONEs,x,x, &&
     1423  program_prefix=${target_alias}-
    13111424test "$program_prefix" != NONE &&
    13121425  program_transform_name="s,^,$program_prefix,;$program_transform_name"
     
    13261439VERSION=1.2
    13271440
    1328 LDFLAGS=
    1329 
    13301441cat >>confdefs.h <<_ACEOF
    13311442#define PACKAGE "$PACKAGE"
     
    13371448
    13381449
     1450
     1451
     1452
     1453echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
     1454echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
     1455arch_64bit=no
     1456case "$host_cpu" in
     1457x86_64) arch_64bit=yes ;;
     1458esac
     1459
     1460if test "$arch_64bit" = yes; then
     1461  echo "$as_me:$LINENO: result: yes" >&5
     1462echo "${ECHO_T}yes" >&6
     1463  if test -z "$COMPAT32BITFLAGS" ; then
     1464    COMPAT32BITFLAGS="-m32"
     1465  fi
     1466else
     1467  echo "$as_me:$LINENO: result: no" >&5
     1468echo "${ECHO_T}no" >&6
     1469  if test -z "$COMPAT32BITFLAGS" ; then
     1470    COMPAT32BITFLAGS=
     1471  fi
     1472fi
    13391473
    13401474
     
    27042838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    27052839ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2706 
    2707 ac_aux_dir=
    2708 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    2709   if test -f $ac_dir/install-sh; then
    2710     ac_aux_dir=$ac_dir
    2711     ac_install_sh="$ac_aux_dir/install-sh -c"
    2712     break
    2713   elif test -f $ac_dir/install.sh; then
    2714     ac_aux_dir=$ac_dir
    2715     ac_install_sh="$ac_aux_dir/install.sh -c"
    2716     break
    2717   elif test -f $ac_dir/shtool; then
    2718     ac_aux_dir=$ac_dir
    2719     ac_install_sh="$ac_aux_dir/shtool install -c"
    2720     break
    2721   fi
    2722 done
    2723 if test -z "$ac_aux_dir"; then
    2724   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2725 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2726    { (exit 1); exit 1; }; }
    2727 fi
    2728 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2729 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2730 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    27312840
    27322841# Find a good install program.  We prefer a C program (faster),
     
    71237232s,@ECHO_T@,$ECHO_T,;t t
    71247233s,@LIBS@,$LIBS,;t t
     7234s,@build@,$build,;t t
     7235s,@build_cpu@,$build_cpu,;t t
     7236s,@build_vendor@,$build_vendor,;t t
     7237s,@build_os@,$build_os,;t t
     7238s,@host@,$host,;t t
     7239s,@host_cpu@,$host_cpu,;t t
     7240s,@host_vendor@,$host_vendor,;t t
     7241s,@host_os@,$host_os,;t t
     7242s,@target@,$target,;t t
     7243s,@target_cpu@,$target_cpu,;t t
     7244s,@target_vendor@,$target_vendor,;t t
     7245s,@target_os@,$target_os,;t t
    71257246s,@PACKAGE@,$PACKAGE,;t t
    71267247s,@VERSION@,$VERSION,;t t
     7248s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
    71277249s,@CXX@,$CXX,;t t
    71287250s,@CXXFLAGS@,$CXXFLAGS,;t t
Note: See TracChangeset for help on using the changeset viewer.