configure.pl (b3ba5bc7) configure.pl (ed9d7cbe)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 80 unchanged lines hidden (view full) ---

89$main::OO_SDK_JAVA_BIN_DIR = "bin";
90if ( $main::operatingSystem =~ m/darwin/ )
91{
92 $main::OO_SDK_JAVA_BIN_DIR="Commands";
93}
94$main::OO_SDK_JAVA_HOME_SUGGESTION = searchprog("javac");
95$main::javaVersion = "1.5.0_01";
96
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 80 unchanged lines hidden (view full) ---

89$main::OO_SDK_JAVA_BIN_DIR = "bin";
90if ( $main::operatingSystem =~ m/darwin/ )
91{
92 $main::OO_SDK_JAVA_BIN_DIR="Commands";
93}
94$main::OO_SDK_JAVA_HOME_SUGGESTION = searchprog("javac");
95$main::javaVersion = "1.5.0_01";
96
97$main::OO_SDK_BOOST_HOME_SUGGESTION = "";
98$main::boostVersion = "1.48.0";
99$main::skipBoostDir = 0;
100
97$main::SDK_AUTO_DEPLOYMENT = "";
98$main::SDK_AUTO_DEPLOYMENT_SUGGESTION = "YES";
99
100$main::OO_SDK_OUTPUT_DIR_SUGGESTION = "$ENV{HOME}";
101$main::OO_SDK_OUTPUT_DIR = "";
102$main::skipOutputDir = 0;
103
104$main::return = 0;

--- 380 unchanged lines hidden (view full) ---

485 }
486 }else
487 {
488 # the Java SDK is optional
489 $main::correctVersion = 1;
490 }
491}
492
101$main::SDK_AUTO_DEPLOYMENT = "";
102$main::SDK_AUTO_DEPLOYMENT_SUGGESTION = "YES";
103
104$main::OO_SDK_OUTPUT_DIR_SUGGESTION = "$ENV{HOME}";
105$main::OO_SDK_OUTPUT_DIR = "";
106$main::skipOutputDir = 0;
107
108$main::return = 0;

--- 380 unchanged lines hidden (view full) ---

489 }
490 }else
491 {
492 # the Java SDK is optional
493 $main::correctVersion = 1;
494 }
495}
496
497# prepare boost directory (optional)
498while ( (!$main::skipBoostDir) &&
499 ((! -d "$main::OO_SDK_BOOST_HOME" ) ||
500 ((-d "$main::OO_SDK_BOOST_HOME") && (! -e "$main::OO_SDK_BOOST_HOME/boost/tr1/unordered_map.hpp"))) )
501{
493
502
503 print " Enter boost directory [$main::OO_SDK_BOOST_HOME_SUGGESTION]: ";
504 $main::OO_SDK_BOOST_HOME = readStdIn();
505 chop($main::OO_SDK_BOOST_HOME);
506 if ( $main::OO_SDK_BOOST_HOME eq "" )
507 {
508 $main::OO_SDK_BOOST_HOME = $main::OO_SDK_BOOST_HOME_SUGGESTION;
509 }
510 if ( (! -d "$main::OO_SDK_BOOST_HOME") ||
511 ((-d "$main::OO_SDK_BOOST_HOME") && (! -e "$main::OO_SDK_BOOST_HOME/boost/tr1/unordered_map.hpp")) )
512 {
513 print " Error: boost couldn't be find or verified, please specify a boost directory.\n";
514 if ( skipChoice("optional output directory") == 1 )
515 {
516 $main::skipBoostDir = 1;
517 }
518 $main::OO_SDK_BOOST_HOME = "";
519 } else
520 {
521 # the boost directory is optional
522 $main::skipBoostDir = 1;
523 }
524}
525
494# prepare output directory (optional)
495while ( (!$main::skipOutputDir) &&
496 (! -d "$main::OO_SDK_OUTPUT_DIR") )
497{
498 print " Default output directory is in your HOME directory.\n";
499 print " Enter an existent directory if you prefer a different output directory (optional) [$main::OO_SDK_OUTPUT_DIR_SUGGESTION]: ";
500
501 $main::OO_SDK_OUTPUT_DIR = readStdIn();

--- 237 unchanged lines hidden (view full) ---

739 open ( FILEIN, "$main::sdkpath/$inputFile" ) || die "\nERROR: could not open '$main::sdkpath/$inputFile' for reading";
740 open ( FILEOUT, ">$main::OO_SDK_CONFIG_HOME/$main::hostname/$outputFile" ) || die "\nERROR: could not open '$main::OO_SDK_CONFIG_HOME/$main::hostname/$outputFile' for writing";
741
742 while ( <FILEIN> )
743 {
744 $_ =~ s#\@OO_SDK_NAME\@#$main::OO_SDK_NAME#go;
745 $_ =~ s#\@OO_SDK_HOME\@#$main::OO_SDK_HOME#go;
746 $_ =~ s#\@OFFICE_HOME\@#$main::OFFICE_HOME#go;
526# prepare output directory (optional)
527while ( (!$main::skipOutputDir) &&
528 (! -d "$main::OO_SDK_OUTPUT_DIR") )
529{
530 print " Default output directory is in your HOME directory.\n";
531 print " Enter an existent directory if you prefer a different output directory (optional) [$main::OO_SDK_OUTPUT_DIR_SUGGESTION]: ";
532
533 $main::OO_SDK_OUTPUT_DIR = readStdIn();

--- 237 unchanged lines hidden (view full) ---

771 open ( FILEIN, "$main::sdkpath/$inputFile" ) || die "\nERROR: could not open '$main::sdkpath/$inputFile' for reading";
772 open ( FILEOUT, ">$main::OO_SDK_CONFIG_HOME/$main::hostname/$outputFile" ) || die "\nERROR: could not open '$main::OO_SDK_CONFIG_HOME/$main::hostname/$outputFile' for writing";
773
774 while ( <FILEIN> )
775 {
776 $_ =~ s#\@OO_SDK_NAME\@#$main::OO_SDK_NAME#go;
777 $_ =~ s#\@OO_SDK_HOME\@#$main::OO_SDK_HOME#go;
778 $_ =~ s#\@OFFICE_HOME\@#$main::OFFICE_HOME#go;
747# $_ =~ s#\@OFFICE_BASE_HOME\@#$main::OFFICE_BASE_HOME#go;
748 $_ =~ s#\@OO_SDK_MAKE_HOME\@#$main::OO_SDK_MAKE_HOME#go;
749 $_ =~ s#\@OO_SDK_ZIP_HOME\@#$main::OO_SDK_ZIP_HOME#go;
750 $_ =~ s#\@OO_SDK_CAT_HOME\@#$main::OO_SDK_CAT_HOME#go;
751 $_ =~ s#\@OO_SDK_SED_HOME\@#$main::OO_SDK_SED_HOME#go;
752 $_ =~ s#\@OO_SDK_CPP_HOME\@#$main::OO_SDK_CPP_HOME#go;
753 $_ =~ s#\@OO_SDK_CC_55_OR_HIGHER\@#$main::OO_SDK_CC_55_OR_HIGHER#go;
754 $_ =~ s#\@OO_SDK_JAVA_HOME\@#$main::OO_SDK_JAVA_HOME#go;
779 $_ =~ s#\@OO_SDK_MAKE_HOME\@#$main::OO_SDK_MAKE_HOME#go;
780 $_ =~ s#\@OO_SDK_ZIP_HOME\@#$main::OO_SDK_ZIP_HOME#go;
781 $_ =~ s#\@OO_SDK_CAT_HOME\@#$main::OO_SDK_CAT_HOME#go;
782 $_ =~ s#\@OO_SDK_SED_HOME\@#$main::OO_SDK_SED_HOME#go;
783 $_ =~ s#\@OO_SDK_CPP_HOME\@#$main::OO_SDK_CPP_HOME#go;
784 $_ =~ s#\@OO_SDK_CC_55_OR_HIGHER\@#$main::OO_SDK_CC_55_OR_HIGHER#go;
785 $_ =~ s#\@OO_SDK_JAVA_HOME\@#$main::OO_SDK_JAVA_HOME#go;
786 $_ =~ s#\@OO_SDK_BOOST_HOME\@#$main::OO_SDK_BOOST_HOME#go;
755 $_ =~ s#\@SDK_AUTO_DEPLOYMENT\@#$main::SDK_AUTO_DEPLOYMENT#go;
756 $_ =~ s#\@OO_SDK_OUTPUT_DIR\@#$main::OO_SDK_OUTPUT_DIR#go;
757
758 print FILEOUT $_;
759 }
760
761 close FILEIN;
762 close FILEOUT;
763}
787 $_ =~ s#\@SDK_AUTO_DEPLOYMENT\@#$main::SDK_AUTO_DEPLOYMENT#go;
788 $_ =~ s#\@OO_SDK_OUTPUT_DIR\@#$main::OO_SDK_OUTPUT_DIR#go;
789
790 print FILEOUT $_;
791 }
792
793 close FILEIN;
794 close FILEOUT;
795}