Changeset 15560

Show
Ignore:
Timestamp:
18.05.2008 22:19:28 (12 years ago)
Author:
davidb
Message:

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

Location:
indexers/trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • indexers/trunk/configure

    r13703 r15560  
    275275ac_subdirs_all="$ac_subdirs_all packages/unac" 
    276276ac_subdirs_all="$ac_subdirs_all mg mgpp" 
    277 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 ENABLE_ACCENTFOLD subdirs LIBOBJS LTLIBOBJS' 
     277ac_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 ENABLE_ACCENTFOLD COMPAT32BITFLAGS subdirs LIBOBJS LTLIBOBJS' 
    278278ac_subst_files='' 
    279279 
     
    12411241 
    12421242 
     1243cat >>confdefs.h <<_ACEOF 
     1244#define COMPAT32BITFLAGS $COMPAT32BITFLAGS 
     1245_ACEOF 
     1246 
     1247 
     1248 
     1249 
    12431250 
    12441251# Check whether --with-unac or --without-unac was given. 
     
    19211928s,@LIBS@,$LIBS,;t t 
    19221929s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t 
     1930s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t 
    19231931s,@subdirs@,$subdirs,;t t 
    19241932s,@LIBOBJS@,$LIBOBJS,;t t 
  • indexers/trunk/configure.ac

    r13703 r15560  
    77AC_DEFINE_UNQUOTED(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD) 
    88AC_SUBST(ENABLE_ACCENTFOLD) 
     9 
     10AC_DEFINE_UNQUOTED(COMPAT32BITFLAGS, $COMPAT32BITFLAGS) 
     11AC_SUBST(COMPAT32BITFLAGS) 
     12 
    913 
    1014dnl 
  • 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 
  • indexers/trunk/mg/configure.in

    r10917 r15560  
    22AC_INIT(src/text/mgquery.c) 
    33AC_CONFIG_HEADER(config.h) 
     4 
     5dnl get $target_cpu, $target_vendor, and $target_os 
     6dnl (as well as host_*) 
     7AC_CANONICAL_SYSTEM 
    48AC_ARG_PROGRAM 
    59 
     
    812VERSION=1.2 
    913 
    10 LDFLAGS= 
    11  
    1214AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") 
    1315AC_DEFINE_UNQUOTED(VERSION, "$VERSION") 
    1416AC_SUBST(PACKAGE) 
    1517AC_SUBST(VERSION) 
     18 
     19 
     20AC_MSG_CHECKING(to see if architecture is 64-bit) 
     21arch_64bit=no 
     22case "$host_cpu" in 
     23x86_64) arch_64bit=yes ;; 
     24esac 
     25 
     26if test "$arch_64bit" = yes; then 
     27  AC_MSG_RESULT(yes) 
     28  if test -z "$COMPAT32BITFLAGS" ; then 
     29    COMPAT32BITFLAGS="-m32" 
     30  fi 
     31else 
     32  AC_MSG_RESULT(no) 
     33  if test -z "$COMPAT32BITFLAGS" ; then 
     34    COMPAT32BITFLAGS= 
     35  fi 
     36fi 
     37AC_SUBST(COMPAT32BITFLAGS) 
    1638 
    1739dnl Checks for programs. 
  • indexers/trunk/mgpp/configure

    r14170 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 ENABLE_ACCENTFOLD 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 UNAC_DIR 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 ENABLE_ACCENTFOLD 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 UNAC_DIR 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 
     
    13181323          ac_config_headers="$ac_config_headers config.h" 
    13191324 
     1325 
     1326ac_aux_dir= 
     1327for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 
     1328  if test -f $ac_dir/install-sh; then 
     1329    ac_aux_dir=$ac_dir 
     1330    ac_install_sh="$ac_aux_dir/install-sh -c" 
     1331    break 
     1332  elif test -f $ac_dir/install.sh; then 
     1333    ac_aux_dir=$ac_dir 
     1334    ac_install_sh="$ac_aux_dir/install.sh -c" 
     1335    break 
     1336  elif test -f $ac_dir/shtool; then 
     1337    ac_aux_dir=$ac_dir 
     1338    ac_install_sh="$ac_aux_dir/shtool install -c" 
     1339    break 
     1340  fi 
     1341done 
     1342if test -z "$ac_aux_dir"; then 
     1343  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 
     1344echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 
     1345   { (exit 1); exit 1; }; } 
     1346fi 
     1347ac_config_guess="$SHELL $ac_aux_dir/config.guess" 
     1348ac_config_sub="$SHELL $ac_aux_dir/config.sub" 
     1349ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 
     1350 
     1351# Make sure we can run config.sub. 
     1352$ac_config_sub sun4 >/dev/null 2>&1 || 
     1353  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 
     1354echo "$as_me: error: cannot run $ac_config_sub" >&2;} 
     1355   { (exit 1); exit 1; }; } 
     1356 
     1357echo "$as_me:$LINENO: checking build system type" >&5 
     1358echo $ECHO_N "checking build system type... $ECHO_C" >&6 
     1359if test "${ac_cv_build+set}" = set; then 
     1360  echo $ECHO_N "(cached) $ECHO_C" >&6 
     1361else 
     1362  ac_cv_build_alias=$build_alias 
     1363test -z "$ac_cv_build_alias" && 
     1364  ac_cv_build_alias=`$ac_config_guess` 
     1365test -z "$ac_cv_build_alias" && 
     1366  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 
     1367echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 
     1368   { (exit 1); exit 1; }; } 
     1369ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 
     1370  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 
     1371echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 
     1372   { (exit 1); exit 1; }; } 
     1373 
     1374fi 
     1375echo "$as_me:$LINENO: result: $ac_cv_build" >&5 
     1376echo "${ECHO_T}$ac_cv_build" >&6 
     1377build=$ac_cv_build 
     1378build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
     1379build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
     1380build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
     1381 
     1382 
     1383echo "$as_me:$LINENO: checking host system type" >&5 
     1384echo $ECHO_N "checking host system type... $ECHO_C" >&6 
     1385if test "${ac_cv_host+set}" = set; then 
     1386  echo $ECHO_N "(cached) $ECHO_C" >&6 
     1387else 
     1388  ac_cv_host_alias=$host_alias 
     1389test -z "$ac_cv_host_alias" && 
     1390  ac_cv_host_alias=$ac_cv_build_alias 
     1391ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 
     1392  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 
     1393echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 
     1394   { (exit 1); exit 1; }; } 
     1395 
     1396fi 
     1397echo "$as_me:$LINENO: result: $ac_cv_host" >&5 
     1398echo "${ECHO_T}$ac_cv_host" >&6 
     1399host=$ac_cv_host 
     1400host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
     1401host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
     1402host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
     1403 
     1404 
     1405echo "$as_me:$LINENO: checking target system type" >&5 
     1406echo $ECHO_N "checking target system type... $ECHO_C" >&6 
     1407if test "${ac_cv_target+set}" = set; then 
     1408  echo $ECHO_N "(cached) $ECHO_C" >&6 
     1409else 
     1410  ac_cv_target_alias=$target_alias 
     1411test "x$ac_cv_target_alias" = "x" && 
     1412  ac_cv_target_alias=$ac_cv_host_alias 
     1413ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 
     1414  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 
     1415echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 
     1416   { (exit 1); exit 1; }; } 
     1417 
     1418fi 
     1419echo "$as_me:$LINENO: result: $ac_cv_target" >&5 
     1420echo "${ECHO_T}$ac_cv_target" >&6 
     1421target=$ac_cv_target 
     1422target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
     1423target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
     1424target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
     1425 
     1426 
     1427# The aliases save the names the user supplied, while $host etc. 
     1428# will get canonicalized. 
     1429test -n "$target_alias" && 
     1430  test "$program_prefix$program_suffix$program_transform_name" = \ 
     1431    NONENONEs,x,x, && 
     1432  program_prefix=${target_alias}- 
    13201433test "$program_prefix" != NONE && 
    13211434  program_transform_name="s,^,$program_prefix,;$program_transform_name" 
     
    13351448VERSION=1.3 
    13361449 
    1337 LDFLAGS= 
    1338  
    13391450cat >>confdefs.h <<_ACEOF 
    13401451#define PACKAGE "$PACKAGE" 
     
    13461457 
    13471458 
     1459 
     1460 
     1461 
     1462echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5 
     1463echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6 
     1464arch_64bit=no 
     1465case "$host_cpu" in 
     1466x86_64) arch_64bit=yes ;; 
     1467esac 
     1468 
     1469if test "$arch_64bit" = yes; then 
     1470  echo "$as_me:$LINENO: result: yes" >&5 
     1471echo "${ECHO_T}yes" >&6 
     1472  if test -z "$COMPAT32BITFLAGS" ; then 
     1473    COMPAT32BITFLAGS="-m32" 
     1474  fi 
     1475else 
     1476  echo "$as_me:$LINENO: result: no" >&5 
     1477echo "${ECHO_T}no" >&6 
     1478  if test -z "$COMPAT32BITFLAGS" ; then 
     1479    COMPAT32BITFLAGS= 
     1480  fi 
     1481fi 
    13481482 
    13491483 
     
    27262860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 
    27272861ac_compiler_gnu=$ac_cv_c_compiler_gnu 
    2728  
    2729 ac_aux_dir= 
    2730 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 
    2731   if test -f $ac_dir/install-sh; then 
    2732     ac_aux_dir=$ac_dir 
    2733     ac_install_sh="$ac_aux_dir/install-sh -c" 
    2734     break 
    2735   elif test -f $ac_dir/install.sh; then 
    2736     ac_aux_dir=$ac_dir 
    2737     ac_install_sh="$ac_aux_dir/install.sh -c" 
    2738     break 
    2739   elif test -f $ac_dir/shtool; then 
    2740     ac_aux_dir=$ac_dir 
    2741     ac_install_sh="$ac_aux_dir/shtool install -c" 
    2742     break 
    2743   fi 
    2744 done 
    2745 if test -z "$ac_aux_dir"; then 
    2746   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 
    2747 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 
    2748    { (exit 1); exit 1; }; } 
    2749 fi 
    2750 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 
    2751 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 
    2752 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 
    27532862 
    27542863# Find a good install program.  We prefer a C program (faster), 
     
    82938402s,@ECHO_T@,$ECHO_T,;t t 
    82948403s,@LIBS@,$LIBS,;t t 
     8404s,@build@,$build,;t t 
     8405s,@build_cpu@,$build_cpu,;t t 
     8406s,@build_vendor@,$build_vendor,;t t 
     8407s,@build_os@,$build_os,;t t 
     8408s,@host@,$host,;t t 
     8409s,@host_cpu@,$host_cpu,;t t 
     8410s,@host_vendor@,$host_vendor,;t t 
     8411s,@host_os@,$host_os,;t t 
     8412s,@target@,$target,;t t 
     8413s,@target_cpu@,$target_cpu,;t t 
     8414s,@target_vendor@,$target_vendor,;t t 
     8415s,@target_os@,$target_os,;t t 
    82958416s,@PACKAGE@,$PACKAGE,;t t 
    82968417s,@VERSION@,$VERSION,;t t 
     8418s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t 
    82978419s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t 
    82988420s,@CXX@,$CXX,;t t 
  • indexers/trunk/mgpp/configure.in

    r14170 r15560  
    22AC_INIT(text/MGQuery.cpp) 
    33AC_CONFIG_HEADER(config.h) 
     4 
     5dnl get $target_cpu, $target_vendor, and $target_os 
     6dnl (as well as host_*) 
     7AC_CANONICAL_SYSTEM 
    48AC_ARG_PROGRAM 
    59 
     
    812VERSION=1.3 
    913 
    10 LDFLAGS= 
    11  
    1214AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") 
    1315AC_DEFINE_UNQUOTED(VERSION, "$VERSION") 
    1416AC_SUBST(PACKAGE) 
    1517AC_SUBST(VERSION) 
     18 
     19 
     20AC_MSG_CHECKING(to see if architecture is 64-bit) 
     21arch_64bit=no 
     22case "$host_cpu" in 
     23x86_64) arch_64bit=yes ;; 
     24esac 
     25 
     26if test "$arch_64bit" = yes; then 
     27  AC_MSG_RESULT(yes) 
     28  if test -z "$COMPAT32BITFLAGS" ; then 
     29    COMPAT32BITFLAGS="-m32" 
     30  fi 
     31else 
     32  AC_MSG_RESULT(no) 
     33  if test -z "$COMPAT32BITFLAGS" ; then 
     34    COMPAT32BITFLAGS= 
     35  fi 
     36fi 
     37AC_SUBST(COMPAT32BITFLAGS) 
    1638 
    1739dnl